Friday, June 18, 2021

IR Sensor for Arduino

 IR Sensor for Arduino



IR Sensor or Infrared Sensor has two main parts. IR Transmitter and IR Receiver. The work of IR transmitter or Infrared transmitter is to transmit the infrared waves whereas the work of IR receiver is to receive these infrared waves. IR receiver constantly sends digital data in the form of 0 or 1 to Vout pin of the sensor.



If there is an object in front of  IR sensor, the transmitted infrared waves from IR transmitter reflects from that object and is received by the IR receiver. IR sensor gives 0 in this condition. Whereas, if there is no object in front of the IR sensor, the transmitted infrared waves from IR transmitter is not received by the IR receiver. And IR sensor gives 1 in this condition.



Pinout of an IR sensor:

1)  Ground

2)  5 volt

3)  Enable

4)  Vout

**IR receiver constantly sends digital data in the form of 0 or 1 to Vout pin of the sensor.





No comments:

Post a Comment