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

AI Thread Summary
The discussion focuses on using a photodiode to control LED brightness based on ambient light conditions, specifically dimming LEDs in bright light and brightening them in low light. The user has successfully implemented this with a pnp transistor but seeks a solution using an operational amplifier (op amp). Suggestions include utilizing a trans-impedance amplifier (TIA) to convert photodiode current into voltage and adjusting the gain to control LED brightness effectively. Additionally, the use of current sensing resistors is recommended to monitor the current through the LEDs, which can be integrated into an op amp circuit for the desired functionality. The conversation emphasizes the need for a circuit that can adapt to varying light conditions while maintaining LED performance.
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.
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top