Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yes, that's what I meant. The diode in the opto is a LED and the transistor is a phototransistor. The LED lights the phototransistor and turns it on.ok kpatz thank you, and when you said LED earlier im assuming you were talking about the diode inside the opto? just making sure i might be missing something lols
poor man's opto ; )
about the 1k resistor what does this do?
is this what you call debouncing?
my pic reads multiple signals coming in when it's not attached.
and can a lm555 in monostable accomplish this?
hi,
You can lengthen the pulse width with a 555 mono.
eric, hows the circuit above?
i wanted to isolate the 12v from 5v of my PIC so thats why the optocoupler. is this opto redundant already?
i was thinking to attach it to the trigger part of the 555, pins 4 and 5 of the Opto act like the switch instead of a push button. you think im doing this right?
about the length, enough for the PIC to detect the high so some interrupt would cause some led to light up.
wow this is one badass solution eric lols. this will save me two ics.
theres one problem the coin mech signal is negative so can i reverse the polarity, R2 to +5?
hi,
When you say 'negative' do you mean its a minus voltage.?
post a sketch of the coin mech signal, mark on it the voltages etc.
will this work?
i forgot the signal pin of the coin mech is 0v when NO and +12 when NC