xiao-accessory-loggerhat

Document XIAO Logger HAT wiring, I2C sensors, and firmware examples.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/therebelrobot/microcontroller-base --skill xiao-accessory-loggerhat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xiao-accessory-loggerhat
Source: https://github.com/therebelrobot/microcontroller-base/tree/main/.roo/skills/XIAO-Accessory-LoggerHAT
Command: npx skills add https://github.com/therebelrobot/microcontroller-base --skill xiao-accessory-loggerhat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a comprehensive reference for using the XIAO Logger HAT with Seeed Studio XIAO microcontrollers, detailing I2C sensor integration, pin usage, and power management to streamline environmental data logging projects.

Core Features & Use Cases

  • Supports I2C sensors (SHT40 temperature/humidity, BH1750 light) and PCF8563 real-time clock
  • Covers wiring, pin mapping, sensor enable control via a GPIO, and ADC battery monitoring
  • Includes Arduino and TinyGo setup, example code, and configuration notes for multiple boards and use cases such as data logging and timekeeping
  • Helps avoid pin conflicts when combining Logger HAT with other accessories

Quick Start

Install the required libraries, wire the Logger HAT to your XIAO board, and run the provided Arduino or TinyGo examples to begin reading sensors.

Frequently Asked Questions about xiao-accessory-loggerhat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect I2C sensors like SHT40 and BH1750 to a Seeed Studio XIAO microcontroller?

To connect I2C sensors like SHT40 and BH1750 to a Seeed Studio XIAO, use the XIAO Logger HAT for wiring details and pin mapping. It provides GPIO-based sensor enable control and configuration notes to streamline environmental data logging setup.

Can I use the XIAO Logger HAT with both Arduino and TinyGo firmware?

Yes, the XIAO Logger HAT supports both Arduino and TinyGo firmware. It provides setup instructions, library recommendations, and practical example code for reading SHT40, BH1750, and PCF8563 sensors across multiple XIAO board configurations.

How does the PCF8563 real-time clock work with the XIAO Logger HAT for data logging?

The PCF8563 real-time clock integrates via the I2C bus on the XIAO Logger HAT to provide accurate timekeeping for data logging. The HAT supplies wiring details and configuration notes to synchronize environmental sensor readings with timestamps.

How do I avoid pin conflicts when combining the XIAO Logger HAT with other accessories?

To avoid pin conflicts when combining the XIAO Logger HAT with other accessories, reference the HAT's detailed pin usage and mapping guide. It identifies reserved I2C lines and ADC battery monitoring pins to ensure compatible accessory stacking.

How do I monitor battery levels using the XIAO Logger HAT ADC?

Monitor battery levels using the XIAO Logger HAT by reading the dedicated ADC pin mapped for battery monitoring. The guide provides pin configuration details and example code to accurately track power levels alongside I2C sensor data.