Shop OBEX P1 Docs P2 Docs Learn Events
Connecting Sharp GP2D02 IR detectors — Parallax Forums

Connecting Sharp GP2D02 IR detectors

Cats92Cats92 Posts: 149
edited 2007-05-08 17:21 in Propeller 1
Hello,
After a BS2 I have a Propeller (on a demo board) : very nice !
But I try to connect· 2 Sharp GP2D02 IR detectors (previously on the BS2)
and put a 4.7 K resistor on indata and N4148 diode on clock line.
Sensors readings are erratic using BS2.SHIFTIN function (Martin Hebel Library).
As I am know very little in electronic I need help .
Thanks.

Comments

  • bambinobambino Posts: 789
    edited 2007-04-13 14:11
    What's the purpose of the diode on the clock line?
  • Cats92Cats92 Posts: 149
    edited 2007-04-14 09:13
    It is supposed to protect the Sharp and recommended by Acroname
  • Cats92Cats92 Posts: 149
    edited 2007-05-08 17:21
    Hello,

    finally, I found why this Sharp IR did not work with the propeller:

    *first: it is a problem of timing . I have to change a bit the delays in the BS2-Shiftin fonction

    *second: one of the pins seems dead ?

    Now I try to have a better response curve : it is too steep and distances·were obtained with a low ·precision

    Nevertheless , I have a propeller bot (MYTHOS) with radio connection, IR detectors, Joystick commands. The fun begins !

    http://cats92.free.fr/ROBOTS/nouveau/mythos1.jpg

    cats92
Sign In or Register to comment.