Web Analytics Made Easy -
StatCounter
How to connect a Sharp 2Y0A710F distance sensor to Arduino – Devacron.com

How to connect a Sharp 2Y0A710F distance sensor to Arduino

Sharp_2Y0A710

Sharp 2Y0A710F is a distance measuring sensor unit, composed of an integrated combination of PSD (position sensitive detector) , IRED (infrared emitting diode) and signal processing circuit. The variety of the reflectivity of the object, the environmental temperature and the operating duration are not influenced easily to the distance detection because of adopting the triangulation method. The sensor outputs the voltage corresponding to the detection distance. So it can also be used as a proximity sensor. In order to get readings you have to connect it to an analog pin since it is analog sensor.

Sharp_2Y0A710_Arduino_Connection

And here is the code you can use:

sharpsensor_arduino

Please keep in mind that the readings are not that accurate and it might be a good idea to use it only for detecting objects within the range of 100cm – 550cm.

 

2 thoughts on “How to connect a Sharp 2Y0A710F distance sensor to Arduino”

  1. Juan Manuel Di Florio says:

    Hola soy de Argentina. Tu codigo me ayudo mucho, pero tengo una duda, como hago para poner que a las 500cm suene un buzzer pasivo? Desde ya Muchas Gracias! Saludos

  2. Juan Manuel Di Florio says:

    Hola, quisiera saber como mejorar la presicion del sensor y aƱadirle al codigo que a los 500cm suene un buzzer Pasivo. Gracias!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.