Hey guys,
I have been spending the past few hours searching the web for a tutorial on how to connect up a Proximity sensor onto an arduino board so that when I move my hand closer to the sensor it sets off the buzzer. So when my hand is in front of the sensor the buzzer will go off and when there is nothing in front of the sensor the buzzer stays off.
Would anyone happen to know of any tutorials I can go to or would you guys know how to do it, its for a university project.
Any help would be greatly appreciated.
Thanks!
What proximity detector are you using ?
Im using the IR Proximity Sensor (Long Range)
dpar139:
Im using the IR Proximity Sensor (Long Range)
A link to the device would be useful to eliminate uncertainties …
http://www.sparkfun.com/products/8958
If this is the one you’re using then it has an analog voltage output on the yellow wire. This needs to go to an analog input pin. The distance, within the limits of the device, is given by the voltage. The datasheet gives the relationship between distance and voltage and there are comments at the link above that are useful as well. For example, this one …
http://www.acroname.com/robotics/info/a … inear.html
If you’re unsure about how to read an analog voltage, this simple tutorial should prove illuminating …
http://arduino.cc/en/Tutorial/AnalogReadSerial