0
\$\begingroup\$

Following schematic was suggested for visualizing the frequency (which is variable) of an oscillator using two LEDs that light up alternatingly. It seems that the value of the resistor determines how much voltage is provided to the LEDs. I've never seen this circuit before and was wondering, is there no need for a current limiting resistor for these LEDs?

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
  • 1
    \$\begingroup\$ An LED sets its own voltage. You vary its brightness by varying its current. In this circuit the voltage feeding the resistor's input produces a current in the resistor and the opamp inverts it and causes the LED current to be the same as in the resistor. \$\endgroup\$ – Audioguru May 18 at 21:36
  • \$\begingroup\$ @Audioguru Thanks! \$\endgroup\$ – flawr May 18 at 21:52
2
\$\begingroup\$

R1 is already the current limiting resistor. Since no current is flowing into the opamp input, and its inverting input is at ground due to the feedback loop, the current through R1 will flow directly into the diodes. Therefore the current flowing through the LEDs will be $$ I_D = V_{osc}(t)/R_1 = \frac {5V} {4.7k \Omega} sin( \omega t)\, .$$ The current amplitude through the LEDs is approximately 1mA. In the equation I have assumed sinusoidal oscillation.

It might depend on the LED specification, but I feel the LED current a little bit low.

| improve this answer | |
\$\endgroup\$
  • 1
    \$\begingroup\$ Thanks for your answer! Can you elaborate how exactly you arrive at this solution? As I understand the op amp tries to make the inverting input go to 0V, so let's say the input is at 5V, then the output of the op amp must be negative. But I don't quite see how we can compute the current through the LED from that? \$\endgroup\$ – flawr May 18 at 21:38
  • \$\begingroup\$ Please could you expand on this with explanatory text, for new readers . \$\endgroup\$ – TonyM May 18 at 21:45
  • \$\begingroup\$ Ah I think now I understand: Since the inverting input is kept at 0V, we can compute the current flowing throu the resistor using Ohms Law, which is \$I = V_{osc} / R_1\$. Since (in the ideal case) there is no current flowing through the inverting input, all the current must go through the LED, therefore the current through the resistor is equal to the current through the LEDs. \$\endgroup\$ – flawr May 18 at 21:51
  • \$\begingroup\$ I've adjusted the answer to make it clearer. \$\endgroup\$ – Horror Vacui May 18 at 21:56

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.