Tuesday, September 23, 2014

Measure brightness in Lux using BH1750 sensor on Spark Core

A Spark.io library for the BH1750FVI IC.


The BH1750 IC is a light intensity sensor module with built-in a 16 bit AD converter generating digital signal. With the BH1750 Light Sensor intensity can be directly measured by the luxmeter, without needing to make calculations.

This library provides function to measure lux through I2C on a Spark Core.


Code

Notes
  • read risk disclaimer
  • excuse my bad english