Grove Digital Light Sensor

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.

We can switch among 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.

Features

  • Selectable detection modes

  • High resolution 16-Bit digital output at 400 kHz I2C Fast-Mode

  • Wide dynamic range: 0.1 - 40,000 LUX

  • Wide operating temperature range: -40°C to 85°C

  • Programmable interrupt function with User-Defined Upper and lower threshold settings

!!!Tip More details about Grove modules please refer to Grove System

Specifications

Items

Min

Typical

Max

Unit

Supply voltage, VDD

3.3

5

5.1

V

Operating temperature

-30

\

70

SCL,SDA input low voltage

-0.5

\

0.8

V

SCL,SDA input high voltage

2.3

\

5.1

V

Platforms Supported

Hardware Overview

U1: TSL2561 IC, Light-To-Digital Converter. Here is the Functional Block Diagram.

  • Register Map

    The TSL2561 is controlled and monitored by sixteen registers (three are reserved) and a command register accessed through the serial interface. These registers provide for a variety of control functions and can be read to determine results of the ADC conversions. The register set is summarised as shown below.

    • Spectrum Response Curve

    Two channels of the digital light sensor have different response characteristic. That's why you can choose its working mode by having both of them on or one of them off.

U3: XC6206MR332 IC, Positive Voltage Regulators.

Q1,Q2: BSN20 IC, N-channel Enhancement Mode Vertical D-MOS Transistor.

SCL,SDA: I2C Signal Interface

Getting Started

With Arduino

Connection

Here we will show you how this Grove - Digital light sensor works via a simple demo. First of all, we need to prepare the below stuffs:

Seeeduino V4

Grove - Digital light sensor

Base Shield

enter image description here

enter image description here

enter image description here

  • Connect Grove - Digital light Sensor to I2C port of base shield.

  • Plug the base Shield into Arduino.

  • Connect Arduino to PC by using a USB cable.

Software

  • Or copy below code to IDE and upload to Arduino.

  • Open the serial monitor to monitor the result.

With Raspberry Pi

Connection

First of all, we need to prepare the below stuffs:

Raspberry pi

Grove - Digital light sensor

GrovePi_Plus

enter image description here

enter image description here

enter image description here

  • Follow instruction to configure the development environment.

  • Plug the sensor to grovepi+ socket I2C by using a grove cable.

Software

  • Navigate to the demos' directory:

  • To see the code

  • Run the demo.

  • Here is the Result.

Resources

Last updated

Was this helpful?