Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 409 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 409 Bytes

IR-Sensor-Arduino

Simple code to setup and read data from the VCNL4200 IR Sensor (http://www.mouser.com/ds/2/427/vcnl4200-1115021.pdf)

The code sets up some basic registers in the sensors then continuously requests the distance reading from the sensor (register 0x08). The sensors returns the reading in the form of two bytes, which are then combined and displayed as one number, over the serial monitor.