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.
 
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
Back
Top