I am making a simple beam breaker. I have an infra red emitter and detector (photo transistor) but need to get the signal into the pic (16f84a). I was just wondering how to start with the cleanest signal I could (0 or 5 volts not 1.2 or 2.3 volts) I perfer not going with the pre-made units because I am trying to understand how it works. All of the circuits I find involve op amps and technically the out put should but just that (0 or 5volts) or pretty darn close. I set it up and if I break the beam very slowly you can see the led dimly start to light before it comes fully on. I played around with lots of resistor combinations but it does not seem to make a difference. I want a relay type of instantanious change.
Thanks again for your help and sorry for the Hysteria I am a big Def Lepard fan and I can't find the spell checker on this thing.