Skip to content
HardwareLab

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.

Needle 2 ESP32
No photo in the source; GitHub repository card, served from HardwareLab.

By andrisgauracs

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 build guide

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

More ESP32 builds

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.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](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>