[ESP‑Claw + UNIHIKER K10]: Build an Adaptive AI Ambient Light with Zero Code and Low Cost
Project Introduction
This project uses ESP‑Claw framework combined with UNIHIKER K10 and SCI acquisition module to build an adaptive AI‑controlled ambient light with zero‑code operation and low hardware cost.
By connecting a light sensor and an RGB light strip, the system automatically adjusts the light’s brightness and switch status according to real‑time ambient light intensity. It turns on the light when the environment gets dark, turns it off when bright enough, and increases brightness under extremely dim conditions, realizing intelligent perception and automatic control of the physical environment.
Hardware Wiring
Connect the SCI module to the I2C port of the UNIHIKER K10 with a 4‑pin cable. Attach the light sensor to Port2 of the SCI data acquisition module, and plug the RGB light strip into the P1 port of the UNIHIKER K10.

Production Steps
After finishing the wiring, flash the ESP‑Claw firmware following the previous tutorial: How boring the sensor‑free ESP‑Claw is , and complete the Wi‑Fi and LLM configuration. Once configured, you can officially enable ESP‑Claw to "perceive ambient light".
Step 1: Establish Light Perception
First, make the ESP‑Claw‑powered UNIHIKER K10 "understand" real‑time ambient light data.
Send the following message in the chat tool:
I have now connected a light sensor to the SCI module. Please read the current light intensity data and determine whether the room environment is dark, dim, normal, or bright.
ESP‑Claw will automatically read data from the light sensor via the SCI module and complete physical quantity conversion. It then evaluates ambient brightness based on real‑time data and context, and returns the corresponding light level. This step is critical, because from this point on, ESP‑Claw is no longer merely "receiving text information", but truly "observing the physical environment".
Step 2: Set Up Automatic Light Control Rules
After the UNIHIKER K10 recognizes light intensity data, configure it to independently decide light‑control strategies.
Send the following message in the chat tool:
I have connected a 7‑LED RGB light strip to Port P1 (GPIO2) of the UNIHIKER K10. Please create an adaptive lighting control strategy that automatically adjusts light brightness according to ambient light intensity, and switches light colors based on time to realize adaptive home‑scene lighting.
ESP‑Claw will parse natural‑language instructions, automatically generate GPIO control logic, and execute lighting control strategies when conditions are met.

At this point, you will find that the whole system is no longer merely a simple automatic lighting device. Instead, it functions as a genuine AI ambient‑lighting Agent. Rather than executing fixed rules only, it continuously senses environmental changes and determines lighting behaviors based on real‑time conditions.
Traditional smart home automation mostly follows rigid logic such as “turn on the light if brightness falls below a certain threshold”. What sets ESP‑Claw apart is its large‑language‑model‑powered comprehension capability. It can even take additional factors including time, weather, user habits, and historical environmental data into account to judge whether lighting is truly needed at the moment, as well as the optimal brightness and atmosphere. This marks the biggest difference between an AI Agent and conventional IoT automation.
Summary
This project forms a complete closed loop from environmental perception to active control by reading light‑sensor data via the SCI module and leveraging ESP‑Claw’s natural‑language understanding capability. The light sensor detects real‑world light variations, the SCI module processes data uniformly, ESP‑Claw interprets the environment and generates control commands, and the UNIHIKER K10 executes RGB lighting control. Once ESP‑Claw gains the ability to “understand light”, the lighting fixture is no longer limited to simple on‑off functions. It evolves into an AI lighting Agent that perceives surroundings, responds proactively, and truly interacts with the physical world.









