Sharp GP2Y0A60SZ Help Me!

Hello, https://www.pololu.com/product/2474
I need to measure distance with infrared . How can I do it ? Does anyone have any information?

That site has a link to the Datasheet.

There is a graph of the response you can use to get the distance from the analogue reading.

Weedpharma

Is Arduino code examples?

ynskrmz:
Is Arduino code examples?

Do you know how to read an analog pin? If not, look at this example, where the example's potentiometer is replaced by your sensor.

Then, do you know how to use the "if/else" function? Use that to break the distance vs voltage graph into sections and give you the distance from the voltage you read.

THANK YOU :slight_smile: