Opto slot interface

cadcamboss

New Member
Hi all
I am trying to construct an opto slot interface for controlling a motor driven mechanism. can't find a circuit anywere. can anyone help?
 

papaof2

Senior Member
Are you trying to detect the presence/absence of something in the slot (limit switch) or count pulses from a slotted wheel turning in the slot?

Presence/absence could be as simple as checking an input pin for high/low. Counting pulses is likely to be more complex.

Tell us more.

John
 

Tom2000

Senior Member
Hi all
I am trying to construct an opto slot interface for controlling a motor driven mechanism. can't find a circuit anywere. can anyone help?
You might try the circuit below.

The exact resistor values will depend upon your specific opto interrupter. If you can't find a data sheet, try 470 ohms for the LED current limiting resistor and 4k7 for the collector load resistor.

With nothing in the slot, the circuit will output a low to the Picaxe. With the light path interrupted, a high.

Good luck!

Tom
 

Attachments

Andrew Cowan

Senior Member
count, pin, time, variable

Code:
main:
count, 2, 2000, w0
serout 7,N2400,(#w0)
pause 8000
serout 7,N2400,(254,255)
goto main
Made that up - not sure if I got the LCD code right.

A
 
Top