Infrared sensor/emmiter interphace to 28X2 3V

I am not sure about connecting an IR sensor to an input pin in the 28X2 (3V) please see the attached schematic.
I completed a POV sign with the LEDs attached to the propeller of a radio controlled airplane. To determine where to start the letters I used a device (QRB1134) that contains the emmiter and detector in one piece. It worked but it is too large and heavy to be in the rotating circuit.
I decided to try a configuration where the detector is in the moving part and the IR LED is stationary. All I need it to cause an interrupt when the detector passes by the LED.
 

Attachments

Last edited:

eclectic

Moderator
@Andres

I used circuit 1, with a 10k resistor, from
http://www.fairchildsemi.com/an/AN/AN-3005.pdf


using a 3v 28X2 and this program

Code:
#picaxe 28x2

' Converted by X2 Conversion Wizard Version 1.0.2

let dirsB = %11111111
let dirsC = %00000000
let adcsetup = 0

setint %00000000 , %00010000 ,C
main:

sertxd (".")
goto main

interrupt:
high b.7
pause 1000
sertxd ("interrupted")
low b.7
setint %00000000 , %00010000 ,C
return
It triggers (interrupts) with an IR LED.

e
 
Last edited:
Top