Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: m4nti on October 03, 2009, 01:36:18 AM

Title: IR Problems
Post by: m4nti on October 03, 2009, 01:36:18 AM
Hey guys,

we're using a Sharp IR Rangefinder (GP2D12F) and we want to try it out before connecting it to the microcontroller. So we plugged in a 5V supply to the red wire of the IR, grounded the black wire, and checked the volltage output between the green wire and ground.

unfortunately, it stays at an ~ constant of 2.9V.

Can we test the IR sensor this way or are we doing something wrong? we checked that 5V are being supplied (just in case you ask).
Title: Re: IR Problems
Post by: Soeren on October 03, 2009, 11:21:40 PM
Hi,

[...] So we plugged in a 5V supply to the red wire of the IR, grounded the black wire, and checked the volltage output between the green wire and ground.
The bare sensor hasn't got any colored wires, so better check with the pin-out:
(http://That.Homepage.dk/Img/GP2D12.png)


Can we test the IR sensor this way or are we doing something wrong? we checked that 5V are being supplied (just in case you ask).
Yes, if connected correctly you can - just remember to change the free distance in front of it to see changes (your hands shouldn't be in front of it of course). An oscilloscope is a better tool for seeing changes dynamically though.