项目作者: robotical

项目描述 :
Arduino Library for the VCNL Distance Sensor and Breakout Board
高级语言: Arduino
项目地址: git://github.com/robotical/VCNL4200-Arduino.git
创建时间: 2017-09-26T10:11:35Z
项目社区:https://github.com/robotical/VCNL4200-Arduino

开源协议:

下载


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.