/Grove_Digital_Light_Sensor

TSL2561 & ISL29035

Primary LanguageC++MIT LicenseMIT

Grove - Digital Light Sensor Build Status

Version 1

This module is based on the I2C light-to-digital converter TSL2561 to transform light intensity to a digital signal. Different from traditional analog light sensor, as Grove - Light Sensor, this digital module features a selectable light spectrum range due to its dual light sensitive diodes: infrared and full spectrum.

You can switch between three detection modes to take your readings. They are infrared mode, full spectrum and human visible mode. When running under the human visible mode, this sensor will give you readings just close to your eye feelings.

Version 2 (Fixme when we have a bazaar image)

The version 2 hasn't been on the shelf now.

Usage:

This is an Arduino Library of Grove - Digital Light Sensor (two versions).

Include the corresponding header file

Version 1:

#include <Digital_Light_TSL2561.h>

Version 2:

#include <Digital_Light_ISL29035.h>

Initialization:

//for v1
TSL2561.init();
//for v2
ISL29035.init();

Get the Lux reading of visible light

unsigned long readVisibleLux();

For more information, please refer to wiki page.


This software is written by zhangkun for seeed studio and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond.

Analytics