Dark activated LED

My best guess is that it's there to drop the voltage down to 0V by the time the current reaches the negative terminal but I'm not sure if that's the case; and if it is, is it absolutely necessary to be there and why exactly? Also a side question: Why is the voltage dropped to 5V in the beginning of the circuit, wouldn't it work if it remained 9V?

  • 2
    \$\begingroup\$ A 741 will not run from 5V. This question is flawed - read the data sheet. \$\endgroup\$
    – Andy aka
    Aug 3 '16 at 12:48
  • 1
    \$\begingroup\$ opamps don't make good comparators, and 741's aren't good opamps (particularly in low-voltage single-supply circuits). \$\endgroup\$
    – brhans
    Aug 3 '16 at 12:48
  • \$\begingroup\$ Why Not 741 op-amp for background on why not \$\endgroup\$
    – Marla
    Aug 3 '16 at 12:51
  • \$\begingroup\$ @Andyaka Why wouldn't a 741 work here? Its inputs will be very close to VCC/2, and the output only has to go low enough and high enough to turn off/on the LED. The short-circuit current is large enough to make the LED turn on. \$\endgroup\$
    – pipe
    Aug 3 '16 at 12:56
  • 2
    \$\begingroup\$ @pipe - read the data sheet in the link you posted in your answer and look at the table of recommended operating conditions. I shall be passing a container around later and I expect everyone to throw their old 741s into it. They will be donated to some audiophile club. \$\endgroup\$
    – Andy aka
    Aug 3 '16 at 13:07

What is the exact purpose of this 2.2 kOhm resistor in the circuit? [...] is it absolutely necessary to be there and why exactly?

Its purpose is to form a voltage divider with LDR (photoresistor). The resistance of LDR varies with the light intensity. The resistor turns the variable resistance into a variable voltage, which is then compared to a reference voltage that you can control with the potentiometer.

Yes, it's necessary in this circuit, and most other circuits using an LDR.

Why is the voltage dropped to 5V in the beginning of the circuit, wouldn't it work if it remained 9V?

You're right here. Due to the circuit's construction of only relying on the relative resistances, the circuit would work fine (even better) without the regulation. You would only have to change the resistor after the LED, because the output from the operational amplifier will be closer to 9 volts than 5 volts.

One minor benefit of having a 5 volt regulation is that you will only get at most 5 volts out of the operational amplifier. This could be useful if you want to connect it straight to a digital input.

Note that the μA741 amplifier chosen here is a pretty bad choice, but why it is so is another question.


This question wasn't asked but I thought it might be useful information for you.

Why is it a 2.2K resistor? Can I just use any resistor?

It's all a matter of sensitivity, the LDR will be the most sensitive to light changes in both light and dark if your fixed resistor is a similar resistance to the midway point of the LDR.

I've plotted a little graph so you can see the effect of using different fixed resistors for the LDR in your circuit schematic

enter image description here

  • \$\begingroup\$ Thank you so much! I was just about to research this and you saved me a lot of time with this information. I think I kind of understand voltage dividers now. Thanks! :) \$\endgroup\$ Aug 3 '16 at 13:16

The sensor is a LDR, which changes resistance when exposed to light. The circuit is a operational amplifier, used as a comparator, that will turn on an LED when a certain level of light is reached.

Comparators respond to voltage, not resistance, so somehow, the resistance value of the LDR must be converted to a voltage. There are a few ways to do this. One, which is not real common, is to use a constant current source, and then the voltage across the LDR would be proportional to it's resistance.

Another way to is put the LDR into a voltage divider. The 2.2 KOhms forms the lower half of the voltage divider.

  • \$\begingroup\$ This, though, is NOT a voltage divider; it is a Wheatstone bridge, and that has advantages (not sensitive to the exciting voltage, for instance: the regulator might be wholly eliminated). \$\endgroup\$
    – Whit3rd
    Aug 3 '16 at 23:55
  • \$\begingroup\$ @Whit3rd A wheatstone bridge is just two voltage dividers. Unless all the arms are together, and the differential signals run together so most noise is common mode, you lose many of the benefits. Also, a Wheatstone bridge is actually pretty sensitive to changes in excitation voltage (sensitivity is usually given in volts per volt excitation), and precision bridge amplifiers use feedback to stabilize excitation or excite with constant current. Lastly, there's very little point in using a Wheatstone bridge to drive a comparator \$\endgroup\$ Aug 4 '16 at 0:34
  • \$\begingroup\$ See page 4.9 in google.com/url?sa=t&source=web&rct=j&url=http://… about how excitation voltage is in all the configurations, and figure 4-17 to see how excitation Volare is served to stabilize \$\endgroup\$ Aug 4 '16 at 0:36
  • \$\begingroup\$ A Wheatstone sensed by a comparator with very high gain is NOT sensitive to excitation (though zero excitation, or polarity reversal, \$\endgroup\$
    – Whit3rd
    Aug 4 '16 at 6:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.