Photodiode to dim a led in bright light and brighten in dim light

Click For Summary

Discussion Overview

The discussion revolves around the use of a photodiode to control the brightness of LEDs based on ambient light conditions, specifically aiming to brighten LEDs in low light and dim them in bright light. Participants explore circuit designs involving operational amplifiers and trans-impedance amplifiers to achieve this functionality.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their goal of using a photodiode and op amp to control LED brightness, mentioning previous success with a PNP transistor.
  • Another participant questions the rationale behind dimming the LED in bright light, suggesting it seems counterintuitive.
  • A participant clarifies that the dimming is intended for a toy car, where the LED should be less bright during the day and brighter at night for visibility.
  • One suggestion involves using a trans-impedance amplifier (TIA) to convert the photodiode current to a voltage, which could then be used to adjust the LED brightness based on a setpoint voltage.
  • Another participant proposes using current sensing resistors to monitor the current through the photodiode and LEDs, suggesting that this could be integrated into a differential amplifier circuit.

Areas of Agreement / Disagreement

Participants express differing views on the approach to controlling LED brightness, with no consensus on a single circuit design or methodology. Some participants offer suggestions while others question the underlying logic of the initial proposal.

Contextual Notes

The discussion includes various assumptions about circuit design and the specific requirements for the application, such as the need for a setpoint voltage and the role of gain adjustments in the TIA. There are also unresolved aspects regarding the implementation of the proposed circuits.

bneal
Messages
2
Reaction score
0
Hello everyone!

I'm currently working on something and am finding myself a little stuck. I am trying to determine how to use a photodiode to brighten leds in low light conditions and dim in bright light conditions. I was able to do this with a simple pnp transistor, however, i need to be able to complete this task with an op amp.

I was able to construct a current to high voltage converter, and also a high gain current amplifier but was at a lack of knowledge as to how to use it to dim or brighten lights.

So does anyone know of a circuit that does what i am attempting to do, or does someone know how to use a current or voltage to dim a led running of a simple battery and resistor. Each time i connect my op amps output to my led, it either makes the battery draw more or less current, without affecting the lights.

The values do not matter, given a circuit i can interpret and scale to my needs, i just need to see it done.
 
Engineering news on Phys.org
bneal said:
Hello everyone!

I'm currently working on something and am finding myself a little stuck. I am trying to determine how to use a photodiode to brighten leds in low light conditions and dim in bright light conditions. I was able to do this with a simple pnp transistor, however, i need to be able to complete this task with an op amp.

I was able to construct a current to high voltage converter, and also a high gain current amplifier but was at a lack of knowledge as to how to use it to dim or brighten lights.

So does anyone know of a circuit that does what i am attempting to do, or does someone know how to use a current or voltage to dim a led running of a simple battery and resistor. Each time i connect my op amps output to my led, it either makes the battery draw more or less current, without affecting the lights.

The values do not matter, given a circuit i can interpret and scale to my needs, i just need to see it done.

Welcome to the PF.

That seems a bit backwards to me. Why would you want to make the LED harder to see in bright light?
 
berkeman said:
Welcome to the PF.

That seems a bit backwards to me. Why would you want to make the LED harder to see in bright light?

Thx.

Well I am working on designing a toy car, during the day there is already light, so you can dim the lights, or almost shut them off completely. During the night when you can't see outside i want the lights to be bright so you can see.
 
So here's one way.
Use a TIA (trans-impedance amp) to turn the photodiode current into a voltage.
Now bias the LED on with a some setpoint voltage through a resistor.
(say 10 V and 5 k ohm) and then subtract the TIA voltage from the setpoint voltage. (turning the LED off in bright light.) Adjust the gain of the TIA to make things work the way you want.

George H.
 
Put current sensing resistors after your photodiode and your led lights. Sense resistors are just accurate resistors which have an adequate power rating for the application.

The current passing through the sense resistors will create voltages which can be inputs to an opamp circuit that suits your needs. I think you can do the whole thing with one differential amplifier circuit.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
29
Views
5K
Replies
24
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
6
Views
2K
Replies
23
Views
8K