Analog Distance Sensor

From Mech
Revision as of 18:50, 27 March 2015 by JaneMiller (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Personal tools