6

I tried to make this circuit, but it didn't work like it should. I thought my connections were right but maybe it not.

This is the circuit diagram:

enter image description here

This is my layout. (I used other components as placeholders)

enter image description here

What is wrong with my circuit? Is something off and disconnected?

Credit circuit diagram to: https://www.homemade-circuits.com/how-to-connect-ir-photodiode-sensor/

Nurrrr
  • 87
  • 3
  • 1
    What do you think should happen? Do you use some form of reflector to turn the Tx back to the Rx? Does the buzzer ever buzz? Please provide some hints. – Jack Creasey Sep 16 '21 at 04:12
  • Is that a 22 Ohm resistor over on the right side? That band looks black, not brown. – jonk Sep 16 '21 at 04:37
  • @JackCreasey the buzzer not even buzz – Nurrrr Sep 16 '21 at 04:50
  • @jonk it's 220 ohm, maybe it looks black because of the lighting – Nurrrr Sep 16 '21 at 04:51
  • @NurSyaz Yeah. That could be it. I compared the color with the 100 Ohm resistor to find brown and black, for comparison (nice that 100 Ohm provides both) and I was almost sure that band looked just like the 100 Ohm black band and not the brown ones. But you can see that better than I can. Also, how current current does the buzzer require, and at what voltage? Do you know off-hand? – jonk Sep 16 '21 at 05:00
  • @jonk based on the buzzer's description, the current required is 30mA and operating voltage is 3Vdc - 12Vdc – Nurrrr Sep 16 '21 at 05:08
  • @NurSyaz The opamp is marginal, in my opinion, for driving a buzzer. It might work. But you may need to just test it without all the prior circuitry there. Just see if you can make the buzzer work and the LED light up by setting up the inputs to make it happen. If not, then that's a problem to be resolved first, I think. – jonk Sep 16 '21 at 05:26
  • For testing simply, first disconnect buzzer. Change resistor 220 -> 1000 Ohm. See if led light ? Current output is limited to 40 mA (cold) to 20 mA (hot). Use multimeter to measure resistances (alone) to be sure. – Antonio51 Sep 16 '21 at 06:01
  • What is the part number for your "buzzer"? Some devices called "buzzers" require an audio frequency signal to make a sound, and not merely a voltage applied to them. – Math Keeps Me Busy Sep 16 '21 at 17:19
  • You've started with a broken schematic: the source site explicitly says "the diagram above has many mistakes and will never work." The source page then answers in detail your question of why it doesn't work. Throw away your schematic and used the fixed schematic at the bottom of the source page. In other words, you're asking questions here that have already been answered at the source. – Ken Shirriff Sep 16 '21 at 18:57
  • In addition to the other answers and comments, it looks like the bottom row of the op amp is shorted because your cutting/drilling leaves some copper on the bottom of the trace – nanofarad Sep 16 '21 at 19:23

3 Answers3

9

You seem to have used a 22Ω resistor for the LED instead of the 220Ω shown in your schematic, and the link between the LED and that resistor is missing (fortunately for that poor LED).

The graph of figure 10 on page 10 of this LM358 datasheet, it can be seen that the output is unable to swing to the positive supply voltage, when sourcing current. If your buzzer requires 30mA, and the LED draws another 20mA, for a total of 50mA, this is enough to cause the output to drop to 0V. If you're lucky, 4V out. Use that chart to determine what you can expect the LM358 to output, given the current you draw from it.

Here are a couple of better ways to drive a buzzer and LED from that output, which will alleviate the load from the LM358, and transfer the effort of driving the LED and buzzer to a separate transistor:

schematic

simulate this circuit – Schematic created using CircuitLab

I doubt that a reverse biased LED or photodiode in series with a 10kΩ will provide enough current to "lift" the potential at the opamp's non-inverting input very far above zero, if at all, and that input is flirting with the input voltage range limits for the opamp.

Perhaps a larger resistor, like 100kΩ (R6 below) would be a better choice (yielding a larger voltage drop from that tiny photodiode current), even 1MΩ. You could probably benefit from artifically raising that potential to a volt or so above zero, with another large resistance (R7 below), just to get the voltages at the opamp inputs to something more appropriate for the opamp:

schematic

simulate this circuit

After-thought 1:

The 220Ω resistor seems too small for the indicator LED. Assuming it drops 2V, the remaining 9V-2V = 7V across the resistor will cause this current to flow (using Ohm's law):

$$ I_{LED} = \frac{V_{SUPPLY} - V_{LED}}{R_{LED}} = \frac{9V - 2V}{220\Omega} = 31mA $$

I reckon 10mA would be a better value. Again using Ohm's law, the resistance required to pass 10mA would be:

$$ R_{LED} = \frac{V_{SUPPLY} - V_{LED}}{I_{LED}} = \frac{9V - 2V}{10mA} = 700\Omega$$

The nearest appropriate E12 resistor would be 680Ω.

After-thought 2:

Point your LED and photodiode at each other, so that the photodiode receives as much light as possible. This will help troubleshooting, at least during testing.

Simon Fitch
  • 27,759
  • 2
  • 16
  • 87
4

Since the entire circuit is in the DC domain all you may need is a voltmeter to check voltages at the op amp terminals.

  • What is the current required to drive the buzzer? Can the op amp drive it?
  • Did you ohm-check the traces you separated on your universal PCB between pins 1-8, 2-7, 3-6 and 4-5 of the DIL package? (Did you remove all the copper there?)
Transistor
  • 168,990
  • 12
  • 186
  • 385
Martin Vana
  • 684
  • 1
  • 11
3

The LED is not connected to resistor, it is disconnected.

On the other hand, it looks like there is a solder bridge which shorts the LED directly to buzzer pin.

There might be other solder bridges as well at the op amp inputs, which may be the reason nothing works. It is also impossible to say if you have LEDs and the photodiode connected with correct polarity. You can use a mobile phone camera to see if the infrared emitter outputs light.

Justme
  • 127,425
  • 3
  • 97
  • 261