AI01 4-Sensors: Temperature, Humidity, Light and Acceleration

Use this page with AI

Explore with your favorite AI

Gemini & other AI

Copy this page’s context into your AI to explore how it works and what you can build.

Open Gemini

Copy the prompt, then paste it into Gemini’s message box.

View prompt

AI01 leaf frontAI01 leaf backAI01 leaf overview

Features

Measure temperature, humidity, ambient light (illuminance), and acceleration. Combined with an MCU (microcontroller) leaf, this leaf lets you read changes in the surrounding environment and the leaf’s movement.

A Leafony stack and the AI01 4-Sensors leaf shown separately

The AI01 4-Sensors leaf is shown on the right. The left shows an example stack with MCU, communication, power, and other leaves. Click the figure to enlarge it. The Japanese labels identify the Leafony stack and the separate 4-Sensors leaf.

It has a temperature/humidity sensor, an illuminance sensor, and an accelerometer. The MCU leaf reads their measurements over I2C.

Sensor locations

Arrows identifying the accelerometer, temperature/humidity sensor, and illuminance sensor on AI01

The arrows identify the accelerometer (加速度), temperature/humidity sensor (温湿度), and illuminance sensor (照度). The specifications below list the sensor chips and their measurement ranges.

Specification

Dimension

ItemDescription
Dimension  W23×D20.5×H4.7mm

Temperature/Humidity Sensor

ItemDescription
Part numberHTS221TR
Relative Temperature range-40~120℃
Temperature accuracy±0.5°C (15 to +40°C)
Relative humidity range0 to 100%
Humidity accuracy3.5% rH (20 to +80% rH)
InterfacesI2C(Address: 0x5F)

Illuminance Sensor

ItemDescription
Part numberOPT3001
Measurement range0.01 lux to 83 k lux
IR Rejects> 99% (typ)
InterfacesI2C(Address: 0x44 or 0x45)

Acceleration Sensor

ItemDescription
Part numberLIS2DHTR
Measurement range±2g/±4g/±8g/±16g (selectable)
Function6D/4D orientation detection
Freefall detection
Motion detection
InterfacesI2C(Address: 0x19)

Block diagram

AI01 block diagram

Pinassign

AI01 pin assignment

See the pin assignment data for details.

Sample App

AVR MCU Examples

ESP32 MCU Examples

STM32 MCU Examples

Library

Libraries are available for this leaf. Follow the library installation guide to install the required libraries.

Document

Revision history

  • First edition, August 2019
Leaf photo
Search documentation, sample apps, and Q&A