Skilled AI Agents for Embedded and IoT Systems Development
Organizations: Department of Electrical and Computer Engineering, Duke University
Abstract
Large language models (LLMs) and agentic systems have shown promise for automated software development, but applying them to hardware-in-the-loop (HIL) embedded and Internet-of-Things (IoT) systems remains challenging due to the tight coupling between software logic and physical hardware behavior. Code that compiles successfully may still fail when deployed on real devices because of timing constraints, peripheral initialization requirements, or hardware-specific behaviors. To address this challenge, we introduce a skills-based agentic framework for HIL embedded development together with IoT-SkillsBench, a benchmark designed to systematically evaluate AI agents in real embedded programming environments. IoT-SkillsBench spans three representative embedded platforms, 23 peripherals, and 42 tasks across three difficulty levels, where each task is evaluated under three agent configurations (no-skills, LLM-generated skills, and human-expert skills) and validated through real hardware execution. Across 378 hardware validated experiments, we show that concise human-expert skills with structured expert knowledge enable near-perfect success rates across platforms.
Figures & tables
| Skills | Platform | L1 (12) | L2 (16) | L3 (14) | Total (42) |
|---|---|---|---|---|---|
| No-Skills | Arduino | 0/0/12 | 1/1/14 | 2/1/11 | 3/2/37 |
| ESP-IDF | 0/0/12 | 4/3/9 | 1/8/5 | 5/11/26 | |
| Zephyr | 0/2/10 | 1/5/10 | 2/8/4 | 3/15/24 | |
| LLM | Arduino | 0/0/12 | 1/0/15 | 1/1/12 | 2/1/39 |
| ESP-IDF | 0/0/12 | 1/4/11 | 0/11/3 | 1/15/26 | |
| Zephyr | 0/2/10 | 4/8/4 | 0/9/5 | 4/19/19 |
| Skills | Platform | L1 (12) | L2 (16) | L3 (14) | Total (42) |
|---|---|---|---|---|---|
| No-Skills | Arduino | 0/0/12 | 0/0/16 | 0/0/14 | 0/0/42 |
| ESP-IDF | 0/0/12 | 2/2/12 | 1/6/7 | 3/8/31 | |
| Zephyr | 0/1/11 | 0/5/11 | 0/8/6 | 0/14/28 | |
| LLM | Arduino | 0/0/12 | 0/0/16 | 1/0/13 | 1/0/41 |
| ESP-IDF | 0/0/12 | 1/4/11 | 0/10/4 | 1/14/27 | |
| Zephyr | 0/2/10 | 1/6/9 | 0/6/8 | 1/14/27 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| # | Peripheral | Interface | Category |
|---|---|---|---|
| 1 | LED | GPIO (Digital Out) | Actuator |
| 2 | Push Button | GPIO (Digital In) | Input |
| 3 | Active Buzzer | GPIO (Digital Out) | Actuator |
| 4 | Passive Buzzer | PWM | Actuator |
| 5 | Relay Module | GPIO (Digital Out) | Actuator |
| 6 | Laser Emitter Module | GPIO (Digital Out) | Actuator |
AI Coding Agents
AI coding agents use language models and software tools to plan, edit, test, and maintain code with varying levels of autonomy.
See all 310 papers