Needle 2 ESP32
A 45-million-parameter language model doing grammar-guaranteed tool calling entirely on one ESP32-S3: type a request and the board's RGB LED does what you asked, with no network.
- Hardware:
- ESP32-S3
- Difficulty:
- Advanced
- Creator:
- andrisgauracs
45M-parameter LLM offline on an ESP32-S3 turning English into valid commands.

- Posted
What it does
A 45-million-parameter language model doing grammar-guaranteed tool calling entirely on one ESP32-S3: type a request and the board's RGB LED does what you asked, with no network.
What you need
- Runs offline
- Yes, per the source
- Difficulty
- Advanced
- License
- No license stated
Parts
- ESP32-S3 (board)
- AI model or service
- 45M-param needle 2 LLM
Full instructions: View original
How it works
An independent C99 engine (about 3,700 lines) reads the model weights from 16 MB of flash and uses 8 MB of octal PSRAM for its KV cache. Output is constrained so every tool call is valid JSON. It runs at about 1.87 tokens per second, roughly 25 seconds per request with reasoning turned off.
Like this build? Get the weekly builds
Every Thursday: the 5 best gadget hacks you can copy. Free.
Built something? Submit a build
Hardware
- ESP32-S3
This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.
Featured? Add this badge
Built this? Paste the badge into your README. It links back to this page.
Markdown
[](https://hardwarelab.dev/projects/needle-2-esp32/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)HTML
<a href="https://hardwarelab.dev/projects/needle-2-esp32/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>Related builds
All 23 in Local LLM Rigs & Edge Agents
ESP32s3 LLM Cluster
Seven ESP32-S3s daisy-chained to run a 0.5B ternary LLM.
- 7x ESP32-S3 over SPI
Advanced259


Muse Gadgets SDK
Meta’s open SDKs for connecting Muse to ESP32 and Raspberry Pi gadgets.
- ESP32 boards
- Raspberry Pi (3B+, 4, 5 or Zero 2 W) or another Linux computer with Bluetooth LE
Intermediate2.7K
ESP32 iPhone Agent
An ESP32-S3 board lets an AI model use a real iPhone: no computer at run time, no jailbreak.
- Seeed XIAO ESP32S3 (plain, 8MB PSRAM; any ESP32-S3 with native USB + PSRAM)
- iPhone on iOS 18+ with cellular data
- Lightning to USB Camera Adapter (Lightning iPhones only)
- +2 more
Intermediate4.8K
PFor
A 180.9M-parameter MoE language model and agent on a $6.80 ESP32-P4.
- WT9932P4-Tiny (ESP32-P4 v1.3, 32MB PSRAM, 16MB flash)
Advanced$6.80 (Wireless-Tag store)12