English
English
简体中文
日本語

Chain DLight

SKU:U236

Description

Chain DLight is a digital ambient light sensing node in the M5Stack Chain series. It features an onboard LTR-308ALS-01 ambient light sensor and can read ambient illuminance values. It supports configuring sensor gain, resolution, measurement period, and illuminance thresholds, as well as illuminance threshold event triggering for automated control. The device integrates a programmable RGB LED for status indication and is suitable for applications such as ambient light monitoring, automatic lighting control, screen brightness adjustment, and smart homes.

Chain DLight integrates an STM32G031G8U6 core MCU and uses a UART serial cascade communication protocol. Through two HY2.0-4P expansion interfaces, it can connect more Chain series devices to build richer light sensing and automation applications.

Features

  • M5Stack Chain series
  • LTR-308ALS-01 digital ambient light sensor
  • STM32G031G8U6 core MCU
  • Illuminance output range: 0 ~ 2,516,580 lx
  • Configurable sensor gain / resolution / measurement period / illuminance thresholds
  • Supports reporting of low / high threshold trigger events
  • Uses a UART serial cascade communication protocol
  • 1x programmable RGB LED
  • 2x HY2.0-4P expansion interfaces

Includes

  • 1 x Chain DLight
  • 1 x Chain Bridge

Applications

  • Ambient light monitoring
  • Automatic lighting control
  • Screen brightness adjustment
  • Smart homes
  • Light state triggering

Specifications

Specification Parameter
MCU STM32G031G8U6
Input Power DC 5V
Light Sensor LTR-308ALS-01
Illuminance Output Range 0 ~ 2,516,580 lx
Sensor Resolution / Conversion Time 16bit / 25ms, 17bit / 50ms, 18bit / 100ms, 19bit / 200ms, 20bit / 400ms
Measurement Period 50ms, 100ms, 500ms, 1000ms, 2000ms
Sensor Gain 1x, 3x, 6x, 9x, 18x
Communication UART 115200bps@8N1
Interface 2x HY2.0-4P
RGB LED 1x WS2812C-2020
Operating Power Consumption DC 5V@21.71mA (white LED at 100% brightness)
Standby Power Consumption DC 5V@8.44mA
Product Size 24.0 x 24.0 x 16.0mm
Product Weight 5.4g
Package Size 138.0 x 93.0 x 19.0mm
Gross Weight 8.8g

Learn

Connection Instructions

Use a Chain Bridge connector to connect the Chain main controller (such as Chain DualKey / Chain Captain) to Chain series devices. Pay attention to the connection direction: the triangular arrow points outward from the main controller, as shown below:

Parameters and Configuration

  • By default, the RGB brightness is 40%, the high threshold is 2047 lx, and the low threshold is 100 lx. Event reporting is enabled by default. The gain is 3x, the resolution is 18bit (100ms conversion time), and the measurement period is 500ms. High-threshold indication overlays red, and low-threshold indication overlays blue.
Configuration Limitation
The measurement period must be strictly greater than the conversion time for the selected resolution. If the measurement period is less than or equal to the conversion time, the configuration operation will fail and the device will retain its previous configuration. For example, when 18bit resolution (100ms conversion time) is selected, the measurement period cannot be set to 100ms; 500ms, 1000ms, or 2000ms can be selected.

Schematics

PinMap

Light Sensor

STM32G031 PA12 PA11 PA1
LTR-308ALS-01 I2C_SDA I2C_SCL INT

RGB LED

STM32G031 PA8
WS2812C RGB

UART

STM32G031 PB6 PB7 PA2 PA3
UART1 TXD1 RXD1
UART2 TXD2 RXD2

Model Size

Structure

Datasheets

Softwares

Arduino

M5Chain Driver Library
The M5Chain driver library can configure illuminance interrupts, thresholds, gain, resolution, and measurement period. Sensor configuration and thresholds revert to their default values after power cycling.

UiFlow2

Internal Firmware

Protocol

Video

Page Tools
PDF