Arduino interfaceing

 There are various types of proximity sensors available. Ultrasound sensor, which we discussed in another article for measuring distance, can also be used as a proximity sensor. In this article however, we will consider IR proximity sensor.

A typical IR proximity sensor looks like the one below −

There is an IR Emitter LED and an IR Receiver (photodiode). As you can see, the sensor has 3 pins (VCC, GND and OUT). The OUT pin gives a LOW signal when the there is an obstacle which acts as a reflecting surface, and the light from the LED is reflected back to the received.

Using the property of the OUT pin (LOW when obstacle is detected), we can program our Arduino to determine if an object is nearby.

Circuit Diagram

The Circuit Diagram is shown below −

As you can see, the Vcc pin is connected to 5V on Arduino, GND to GND, and OUT to pin 7.

Comments

Popular posts from this blog

Alternating Current

SOLAR TRANSFORMERS