An advanced guide and toolset for developing, configuring, and optimizing Raspberry Pi I2C sensors like the BMI270 IMU and MAX30205 temperature sensor.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install raspberry-pi-i2c
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install raspberry-pi-i2c using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill equips AI agents and developers with precise instructions, optimized code patterns, and practical troubleshooting strategies to design high-performance IoT applications on Raspberry Pi boards. Integrating Openclaw Skills into your hardware project workflow bridges the gap between raw hardware registers and high-level software implementation, resolving common performance bottlenecks in I2C communications.
By focusing on both standard hardware I2C (/dev/i2c-1) and software-based bit-banging using the modern gpiod library, this guide ensures robust connectivity for multiple sensors. It specifically targets the implementation of complex initialization sequences, such as loading 8KB firmware binaries to the BMI270 6-axis IMU and reading high-precision clinical grade data from the MAX30205.
Ensure you have a modern Linux system running on your Raspberry Pi (such as Raspberry Pi OS).
To enable standard hardware I2C, configure the system via:
sudo raspi-config
# Select Interface Options -> I2C -> Enable
Alternatively, add dtparam=i2c_arm=on to /boot/config.txt and reboot.
Install the required dependencies for Python and C development:
# Install Python dependencies
pip3 install gpiod smbus2
# Install C library development files
sudo apt install libgpiod-dev i2c-tools
Make sure your user has permissions to access GPIO lines without sudo:
sudo usermod -aG gpio $USER
This Openclaw Skills configuration expects standard registers and returns structural data payloads. Below is the mapping and taxonomy used during operations.
| Byte Range | Field | Data Type | Description |
|---|---|---|---|
| Bytes 0-1 | Accel X | int16 (Little-Endian) | Raw accelerometer X-axis value |
| Bytes 2-3 | Accel Y | int16 (Little-Endian) | Raw accelerometer Y-axis value |
| Bytes 4-5 | Accel Z | int16 (Little-Endian) | Raw accelerometer Z-axis value |
| Bytes 6-7 | Gyro X | int16 (Little-Endian) | Raw gyroscope X-axis value |
| Bytes 8-9 | Gyro Y | int16 (Little-Endian) | Raw gyroscope Y-axis value |
| Bytes 10-11 | Gyro Z | int16 (Little-Endian) | Raw gyroscope Z-axis value |
| Register Name | Hex Address | Read/Write | Description |
|---|---|---|---|
| Temperature | 0x00 | RO (2 Bytes) | Real-time body temperature data |
| Configuration | 0x01 | R/W (1 Byte) | Controls shutdown mode, fault queue, OS polarity |
| THYST | 0x02 | R/W (2 Bytes) | Temperature hysteresis limit |
| TOS | 0x03 | R/W (2 Bytes) | Temperature over-limit status interrupt threshold |
Loading
A zero-API, rule-based six-dimensional analysis and decision engine for commodities futures markets, designed to power both AI agents and human traders.

An automated workflow skill designed to smoothly integrate MobTech SMSSDK into iOS projects with minimal disruption.

Equip your AI agents with real-time web search, image discovery, and LLM-friendly webpage extraction capabilities using the iFlow Search API.

An AI-powered pre-production assistant that converts unstructured creative ideas into production-ready comic scripts, storyboards, and character designs.

An architectural blueprint and audit tool designed to keep your OpenClaw bootstrap filesystem lean, organized, and optimized for low token usage.

An AI behavioral tracking tool that uses computer vision to analyze pet play area video feeds, quantify toy interactions, and generate daily health and wellness activity curves.








































