Shop OBEX P1 Docs P2 Docs Learn Events
Sharing I/O pins with Infrared detector — Parallax Forums

Sharing I/O pins with Infrared detector

ArchiverArchiver Posts: 46,084
edited 2000-03-16 04:49 in General Discussion
Hello awl. I have a tiny robot with a left and right IR detector. They are
the Radio shlock modules,that output a 0 for a detection.( sorry cant find
the part number offhand. I also added left and right bumper switchs for a
backup.I would like to share a bumper detection with the IR sensor instead
of using 2 extra pins for the L & R bumpers. I wired my bumpers to output a
0 also on sensing. How would I connect both types of sensor to the same I/O
pin? I thought of diodes or something,but cant work out the wiring in my head.
Thankyou all
Sincerely
Kerry
http://Mntnweb.Com
WWW hosting and Authoring
Admin@M...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-03-16 04:49
    Kerry:

    Couldn't you just put a pullup resistor on the stamp pin and feed each
    sensor to that pin thru a diode? The anodes would go to the stamp pin and a
    cathode to each sensor.

    Ray McArthur

    Original Message
    From: Barlow <admin@m...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, March 15, 2000 11:27 PM
    Subject: [noparse][[/noparse]basicstamps] Sharing I/O pins with Infrared detector


    > Hello awl. I have a tiny robot with a left and right IR detector. They are
    > the Radio shlock modules,that output a 0 for a detection.( sorry cant find
    > the part number offhand. I also added left and right bumper switchs for a
    > backup.I would like to share a bumper detection with the IR sensor instead
    > of using 2 extra pins for the L & R bumpers. I wired my bumpers to output
    a
    > 0 also on sensing. How would I connect both types of sensor to the same
    I/O
    > pin? I thought of diodes or something,but cant work out the wiring in my
    head.
    > Thankyou all
    > Sincerely
    > Kerry
    > http://Mntnweb.Com
    > WWW hosting and Authoring
    > Admin@M...
    >
    >
    >
    >
    > -- Easily schedule meetings and events using the group calendar!
    > -- http://www.egroups.com/cal?listname=basicstamps&m=1
    >
    >
Sign In or Register to comment.