Interfacing Proximity Sensor With Mediatek Linkit One Board

by Got007 in Circuits > Sensors

1284 Views, 5 Favorites, 0 Comments

Interfacing Proximity Sensor With Mediatek Linkit One Board

00242-1.jpg

In this Instructable You will Be able to Interface Sharp IR Proximity Sensor With Mediatek Linkit One Board.


A proximity sensor is a sensor able to detect the presence of nearby objects without any physical contact.
A proximity sensor often emits an electromagnetic field or a beam of electromagnetic radiation (infrared, for instance), and looks for changes in thefield or return signal. The object being sensed is often referred to as the proximity sensor's target. Different proximity sensor targets demand different sensors. For example, a capacitive or photoelectric sensor might be suitable for a plastic target; an inductive proximity sensor always requires a metal target.

What You Need

IMG_20151218_211537.jpg
IMG-20151219-WA0002.jpg

  • Mediatek LinkitOne Board
  • Sharp GP2Y0A21YK Proximity Sensor
  • Connecting wires
  • USB cable

Connections

IMG_20151219_004125.jpg

Red Wire:5V on Board

Brown wire: Gnd On Board

Black Wire:A0 Analog Pin on Board

I have also uploaded the Graph Of output voltage versus distance so That U can Depict The Behaviour of The sensor with Distance.

Code,Compile and Run

IMG_20151219_004234.jpg

Upload The Code and You are Ready To Go!!!! Congratulations you have Successfully Interfaced Proximity Sensor with the Mediatek Linkit One Board.

I have Uploaded the Sharp library Zip file which You will need to add to The Arduino IDE