IR opto switch and propeller
Brian Carpenter
Posts: 728
I have a micro ir opto switch that i want to use for a position sensor with my propeller project. I thought this would be an easy solution but it is proving not so. Attached is the schematic of the device.
My plan was to monitor it with waitpeq command. However, i did not realize that i would not get a square signal as i turn the encoder. i have tested by connecting an LED to the output and as i turn the wheel, it goes from of to dim to bright and back to dim and them off. what external hardware or software do i need to create a square (on-off) signal from this device?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
My plan was to monitor it with waitpeq command. However, i did not realize that i would not get a square signal as i turn the encoder. i have tested by connecting an LED to the output and as i turn the wheel, it goes from of to dim to bright and back to dim and them off. what external hardware or software do i need to create a square (on-off) signal from this device?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
I was thinking that i would get a lower voltage on the white area. Maybe i need to try a different type of paper. I am open to all suggestions.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
www.nxp.com/documents/data_sheet/74HC_HCT14.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
will that voltage range be acceptable?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
You could always design your own Schmitt using an op amp, or a comparator chip. I've done that in the past, as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
Post Edited (Leon) : 7/11/2010 5:04:15 PM GMT