IR Sensor Hookup
Archiver
Posts: 46,084
I have an IR object detector from and old kit that I put together a
while back and i want to add it to my new project. The sensor board
was made to hook up to a motor and control that motor so that when it
doesn't sense anything and when it senses something it reverses the
polarity to the motor and backs up. I was wondering how i could hook
this up to my stamp. I think i could just hook one of the motor wires
to a pin and then that will go high and low depending on whether it
detects something or not but i think that it wouldn't be a complete
circuit then because the circuit was made so that it goes into the
motor and comes out the other side so i was wondering if i needed to
ground the other motor wire or hook it up in some special way. Thanks
in advance for any info.
while back and i want to add it to my new project. The sensor board
was made to hook up to a motor and control that motor so that when it
doesn't sense anything and when it senses something it reverses the
polarity to the motor and backs up. I was wondering how i could hook
this up to my stamp. I think i could just hook one of the motor wires
to a pin and then that will go high and low depending on whether it
detects something or not but i think that it wouldn't be a complete
circuit then because the circuit was made so that it goes into the
motor and comes out the other side so i was wondering if i needed to
ground the other motor wire or hook it up in some special way. Thanks
in advance for any info.
Comments
Bruce Wynn here. Really could use a little more info on your IR sensor and
its circuit layout. Normally an IR LED and an companion phototransistor are
paired together to form a proximity or break the beam detector circuit. One
lead of the IR LED and one lead of the Phototransistor will be tied to +5vdc.
The other lead of the IR LED will require a current limiting resistor say
about 220 ohms. The resistor will be grounded. This setup leaves the IR LED
always on. The Phototransistor requires a resistor between +5 vdc and itself
or between itself and ground. Resistor between + 5 vdc and itself produces a
hi (+5 vdc) when the beam is broken. Without a wiring schematic on your
sensor and its motor I cannot offer further info. Hope this helps.
Bruce
> Greetings Duncan,
>
> Bruce Wynn here. Really could use a little more info on your IR
sensor and
> its circuit layout. Normally an IR LED and an companion
phototransistor are
> paired together to form a proximity or break the beam detector
circuit. One
> lead of the IR LED and one lead of the Phototransistor will be tied
to +5vdc.
> The other lead of the IR LED will require a current limiting
resistor say
> about 220 ohms. The resistor will be grounded. This setup leaves
the IR LED
> always on. The Phototransistor requires a resistor between +5 vdc
and itself
> or between itself and ground. Resistor between + 5 vdc and itself
produces a
> hi (+5 vdc) when the beam is broken. Without a wiring schematic on
your
> sensor and its motor I cannot offer further info. Hope this helps.
>
> Bruce