Forum >The problem with the Sharp GP2D12
ArduinoGeneral

The problem with the Sharp GP2D12

userHead jessy 2011-06-21 20:35:46 3727 Views3 Replies
I've a problem with the Sharp GP2D12...

(Wire red) Input 5.012v from 5v of the arduino (Wire black) in the ground (Wire blue) in the analog A0 input

Simple Test Sketch:

void setup() {
Serial.begin(9600);
}

void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue, DEC);
}


I've 2-3 in every condition of the sensor between the obstacle

Confirmed with voltage output : 0,01 v form the wire blue

Is the sensor defect?
2012-07-16 19:06:30 Hi Vincent,




this is a post from last year... Jessie is one of our staff, she posted this for a customer, but the customer never came to the forum...


Thank for your interest in helping others here :)

userHeadPic Hector
2012-07-15 03:46:07 I think he was saying "2-3V" . jessy, have you solved your problem? userHeadPic Vincent14
2011-06-22 21:15:02 Hi,

I'm not understanding your last statement "I've 2-3 in every condition of the sensor between the obstacle"

Could you please clarify?

Thanks,

Hector
userHeadPic Hector