Hi guys, I just got my GP2D12 sensor, and was wondering to which pin on the BB2 should I connect it and should I change anything in my current configuration? I`m using the BB2 in unison with the SSC 32 (connected as shown in this thread lynxmotion.net/viewtopic.php?t=2401
What we really need to know is what processor you are using. I have example code for the GP2D12 for the Atom Pro here. lynxmotion.net/viewtopic.php?t=4714
If you are using the Pro you can connect it to pins 0,1,2,3, or 16,17,18,19. Note the last four pins are labeled AX0-AX3 on the Bot Board II.
The sensor is a 5vdc device. Jumper 5vdc to the power bus on the port you connect it to. You canโt plug servos into the same port as the sensor is connected to.
Thanks for the help, I followed this guide: lynxmotion.com/images/html/build133.htm
step 9 and ran the sample code, and I think it works (if I move an object away from the IR, I get a large int value, if the object goes out of range or too close I get a small value).