Close

[ADIOS] Grove digital light sensor

A project log for ADIOS

Acquisition and Display for Indoor and Outdoor Sensors

tjTJ 04/16/2018 at 18:310 Comments

Buy

http://www.seeedstudio.com/depot/Grove-Digital-Light-Sensor-p-1281.html

Wiki

http://www.seeedstudio.com/wiki/Grove_-_Digital_Light_Sensor

C++ library

https://github.com/Seeed-Studio/Grove_Digital_Light_Sensor

Hardware

Left part cutted and socket removed

5V3.3V
GndGnd
SCLTrinket A5 (Analog 5 => SCL, 3.3 kOhms hardware pull-up added)
SDATrinket A4 (Analog 4 => SDA, 3.3 kOhms hardware pull-up added)

Arduino code

#include <Wire.h>
#include <Digital_Light_TSL2561.h>

void setup(void) {
  Wire.begin();
  TSL2561.init();
}

void loop(void) {
  display.println(TSL2561.readVisibleLux());
}

Discussions