I am working on a simple comparator circuit that uses a photo diode as one of the inputs. It is used to sense the presence of a coin sitting on top of coin flipper gun. There is no transmitter it just uses the presence of room lighting and absence when the coin covers the photo diode.
I have spent many hours on this and I am still having trouble trying to get it working like it should.
One problem happens when trying to adjust the voltage that is with the photo diode to just above or below the reference diode voltage. Lets say I have the reference at 2.5V and I am bring up the pot that is attached to the photo diode circuit and as I get close to the 2.5V it will suddenly jump up to 4V so then when I turn it down and as it gets close to the 2.5V from the high side then it suddenly jumps down to 1.5V and I keep chasing it back and forth but can never really get it set right.
It seems when I do get it kind of dialed in it will work for a little while then fall out of range. This thing did work fine for years and then the photo diode died and I couldn't get an exact replacement. I tired many different ones that I had around and ordered some from Digikey but the one that seems to respond the most is a LPT032 from eBay. The diagram is just the front part of the circuit. The rest of the circuit just sends out a high/low signal and has a LED to show when it is activated.
Does it matter what the overall Resistor values are on the voltage divider that is on the reference side of the comparator? IF I use 2M or 200 ohms potentiometer how will that affect the circuit. Right now I am using a 2M Pot on the reference side but will a 1K pot produce the same thing? This would be R1 on the schematic.
A few more questions:
Does it make any difference if the photo diode is on the Negative or Positive pin?
Would it make any difference if I swapped positions with the photo diode and R2?
What am I not understanding on this circuit? This kind of thing is used a lot in my business and it looks pretty simple but it just isn't working out.
Thanks very much,
Russ
I have spent many hours on this and I am still having trouble trying to get it working like it should.
One problem happens when trying to adjust the voltage that is with the photo diode to just above or below the reference diode voltage. Lets say I have the reference at 2.5V and I am bring up the pot that is attached to the photo diode circuit and as I get close to the 2.5V it will suddenly jump up to 4V so then when I turn it down and as it gets close to the 2.5V from the high side then it suddenly jumps down to 1.5V and I keep chasing it back and forth but can never really get it set right.
It seems when I do get it kind of dialed in it will work for a little while then fall out of range. This thing did work fine for years and then the photo diode died and I couldn't get an exact replacement. I tired many different ones that I had around and ordered some from Digikey but the one that seems to respond the most is a LPT032 from eBay. The diagram is just the front part of the circuit. The rest of the circuit just sends out a high/low signal and has a LED to show when it is activated.
Does it matter what the overall Resistor values are on the voltage divider that is on the reference side of the comparator? IF I use 2M or 200 ohms potentiometer how will that affect the circuit. Right now I am using a 2M Pot on the reference side but will a 1K pot produce the same thing? This would be R1 on the schematic.
A few more questions:
Does it make any difference if the photo diode is on the Negative or Positive pin?
Would it make any difference if I swapped positions with the photo diode and R2?
What am I not understanding on this circuit? This kind of thing is used a lot in my business and it looks pretty simple but it just isn't working out.
Thanks very much,
Russ
Attachments
-
14 KB Views: 113
-
154 KB Views: 81