Forge: AI Embedded Platform
I built a phone app that turns a plain-language request into firmware and flashes it to an ESP32 over the air, with my team at TartanHacks 2026 at CMU.
CMU Hackathon · Pittsburgh, PA
- React Native
- ESP32
- PlatformIO
- Dedalus AI
- REST APIs
The Challenge
Hardware has a high barrier to entry. Before you blink an LED you need a desktop IDE, drivers, a toolchain, a USB cable, and enough C/C++ to write the firmware. Our team of three, Yahil, Eren, and me, started TartanHacks 2026 at Carnegie Mellon with a question: what would it take to do the whole embedded workflow from a phone?
Rather than assume the problem, we surveyed students from Mechanical, Electrical, CS, and Design backgrounds, so these were not beginners. 58.3% said they would not know where to start connecting an ESP32 to Wi-Fi. The top blockers were C/C++ (58%), toolchains (54%), and wiring and datasheets (46%). Typical quotes were that setting up drivers and toolchains is a nightmare and that everything feels intimidating. That became our goal: let someone describe device behavior in plain language and have working firmware running on real hardware, wirelessly.
The Design
We designed Forge as one loop with six steps. The user connects the app to an ESP32 on the same Wi-Fi network, describes what they want ("make the LED blink and add an SG90 servo slider"), and an AI agent pipeline generates the firmware. A cloud service compiles it, the board downloads and flashes the binary over the air, and the app reconnects and shows live controls.
The agents generate firmware within a defined set of capabilities (constrained capability contracts), and a separate validator agent checks logic, safety, and spec compliance before every deploy. The user also reviews a confirmation screen before anything is sent.
Because the firmware is constrained, the app can know what the device does. Alongside the binary, the build produces a UI schema, and the app renders controls from it: toggles, sliders, and gauges. That is why a request that includes a servo yields a slider.
Safety
Over-the-air updates are where this idea could hurt someone's hardware, so we treated safety as a feature. Our presentation lists the safeguards: the validator agent before every deploy, a confirmation screen before the update, a stable firmware fallback with one-tap rollback if anything fails, manual LED controls that stay available even mid-update, and servo angles that are clamped and rate-limited to avoid damaging the hardware.
The Build
The app is React Native built with Expo. It talks to Dedalus Labs AI agents over REST APIs for generation and validation. For compilation, the toolchain itself became a service: a cloud service runs the PlatformIO CLI to build the firmware, so the phone never touches a compiler. The board receives the result through ArduinoOTA. The loop on the ESP32 side was Arduino-style firmware, with the app auto-generating its controls from the components named in the request.
We also built a separate presentation site for the demo (a Next.js page) that walks through the survey results, the six-step loop, screenshots of the describe, review-code, and deploy screens, and the safeguards above.
The Results
It worked. In the demo you speak or type "add a servo on pin 9 that sweeps," and about 15 seconds later the board is running it, with no IDE and no cable. We presented Forge at TartanHacks 2026 at CMU. The app and firmware, and the presentation site, are both on GitHub.
What I Learned
- Cloud-compiling for constrained hardware means treating the toolchain itself as a service — the phone never touches a compiler.
- OTA safety (verification, an offline-during-flash state, auto-restart) matters as much as the code generation; a bad flash can brick the only device in the room.
- Auto-generating the control UI from the detected components is what makes it feel finished — the generated code is only half the product.
Related Links
Let's make something amazing.