Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumBugsWebsite,  Reference,  Examples Bugs › Error in GP2D12 Ranger example

Page Index Toggle Pages: 1
Error in GP2D12 Ranger example (Read 5165 times)
05/10/08 at 02:47:00

roypardi   Offline
Junior Member
I Love YaBB 2!
Boston USA

Posts: 57
Hi - it looks like there is an error in the GP2D12 example here:


The pull-up resistor means that the pin will always see 5v and (I assume) ignore input from the sensor - at least I just tried it and that is the result.

A pull-down resistor works; also works without any resistor (I guess it doesn't hurt to have one)

fwiw - a decoupling capacitor is critical for that GP2D series- they draw a lot of current. Without a cap I was getting very erratic readings. A good article on this is here: http://www.robotroom.com/DistanceSensor3.html

IP Logged
Page Index Toggle Pages: 1