Analog Distance Sensor

From Mech
Revision as of 19:50, 27 March 2015 by JaneMiller (talk | contribs) (Created page with " == Sharp 4-30 cm Analog Distance Sensor == '''Summary''' *This sensor detects reflective objects that are 4-30 cm away. *The sensor outputs a voltage from approximately 0-3...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Sharp 4-30 cm Analog Distance Sensor

Summary

  • This sensor detects reflective objects that are 4-30 cm away.
  • The sensor outputs a voltage from approximately 0-3.3 volts which you can read into a microcontroller

Wiring

  • This sensor has three cables coming out of it: red-power, black-ground and white-signal.
  • Wire the power cable to the Arduino's 5V, the ground to the Arduino's ground
    • Plug the signal cable into any of the Arduino's analog input pins (A0-A5 for the Arduino UNO) with a small pull-down resistor

Programming