beasaltfish/bot-reborn
À propos
A workbench for voice-AI robots: configure a brain per character, wire and flash the ESP32 that becomes its body, and start with no parts at all.
IA et apprentissage automatiqueWhat you can do
- A desk companion that talks back. An ESP32-S3, a microphone, an amp and a speaker on a breadboard, with a screen for a face. 1 min
- A toy car that drives on a spoken command. A $4 toy, a phone as its body, and a reflex model that answers a move in about 200 ms. 40 s
- A pet on a screen. It sits, shakes a paw and lies back down when nobody talks to it. 30 s
- Or none of them yet: wire the whole thing in a browser first. A mistake burns a virtual part, not a real one.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +10
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Originalbot-reborn
English | 中文
A brain you configure, and a workbench to build it on. Turn an ESP32-S3 or an old phone into a robot with a voice and a character — wire it, flash it and set it up from one local app, before you buy a single part.
Asked to prove it's alive in three words: "Two copper wires." — watch the Short, with sound
What you can build
Three gadgets that have already been built on this platform, plus the route that needs no parts at all. Each is a different body on the same brain.
- A desk companion that talks back. An ESP32-S3, a microphone, an amp and a speaker on a breadboard, with a screen for a face. 1 min
- A toy car that drives on a spoken command. A $4 toy, a phone as its body, and a reflex model that answers a move in about 200 ms. 40 s
- A pet on a screen. It sits, shakes a paw and lies back down when nobody talks to it. 30 s
- Or none of them yet: wire the whole thing in a browser first. A mistake burns a virtual part, not a real one.
The gadgets came before the platform: how the first one was built.
The brain and its characters
A small Node server on your computer is the brain. It hears, understands, decides and speaks. Every robot it drives is a character — and a character is data, not code: one page in the admin app, and a second character can copy providers from the first, keys included.
Four layers, each given its own provider and key:
- Ears — speech to text.
- Mind — the chat model, plus the persona that decides who it is and how it talks, in any language.
- Voice — text to speech.
- Reflex — optionally, a decision model you supply and serve yourself. It sees each line first and picks one action, so "stop" stops the car now rather than after a chat round trip.
Ears, mind and voice take any OpenAI-compatible provider; the admin page ships
presets and tests each key as you type it. Reflex is the exception: it wants a
local decision model served at an endpoint, not a chat provider. Keys stay on the computer, in a file under
~/.bot-reborn/ that only your user can read, and are sent only to the
providers you chose. The robot never sees them: it holds a token that says
which character it is. See Security.

Reflex, as an example of a layer
Reflex is one layer like the others, and the model behind it is yours to
choose: a JEV-style decision model, one you trained yourself and serve at
/v1/systemone, or a small one running on the same machine. Nothing about the
platform depends on which.
Whatever it is, it reads each line before the chat model and picks one move —
stop, forward, backward, left, right, keep_going — or pass, which
hands the turn to the chat model. It answers with a probability, not text, which
is why it can be fast: no voice in the reply, only the action.
The one this project has been using is a 0.8B model. On a Mac mini M4 it answers about 200 ms after the transcript.

It scores 86.6% on its test set (142 of 164). In use it does better than that number suggests, because a move fires only above 0.8: anything it is unsure of is passed to the chat model, which is slower but does not lurch the car off. Getting a reflex wrong is worse than getting it late.
The example model:
- Trained with Unsloth's decision-model recipe
- Dataset:
beasaltfish/robot-simple-commands— built bytraining/commands/ - Weights:
beasaltfish/robot-simple-commands-qwen3.5-0.8b(GGUF)
That example is English only. A command in another language should score low and fall through to the chat model, but that is untested.
The workbench
The wiring simulator is a bench in your browser, at /sim/ on the brain's own
machine. It exists so the first hour of a build costs nothing:
- Wire it by hand, hole by hole: a seated pin's wire ends in a free hole on the same strip, and the netlist is computed from what you actually built.
- Build it for me leaves the audio build standing; Demo shows it going together in about forty seconds. Either way you can undo it and do it yourself.
- Mistakes are bounded, and some of them burn a virtual part — a reversed supply is the classic.
- Ten device families come with a bilingual five-stage lesson each, and there are fourteen guided projects that build something small and check it.
Power, current, level and bus checks are bounded models, not SPICE. Firmware support is reported separately, and the table below is the honest version of it. The firmware studio can build and run a sketch against the bench without touching a board.
Five minutes, no parts
Start the brain on a computer on the same Wi-Fi as the body. Three commands; Node 20.19+ or 22.12+ first.
npm install npm run setup # the wake-word and VAD models, a Node check, one build npm startnpm run setupsays what is missing and how to fix it. The admin page opens in your browser: create a character, then fill Ears, Mind and Voice with a provider and key each (any OpenAI-compatible provider).Open the workbench: http://localhost:8787/sim/ (or the link in the admin sidebar). It opens only on the computer the brain runs on — the workbench is the brain's own page.
No keys yet? Open Projects, pick Audio only, then Shopping list. That is what to buy, with the spec to check on each listing and a rough price; print it. Press Demo to watch it go together in about forty seconds, or Build it for me to leave the same bench standing and wire it up by hand.
With keys? Do the same with Audio only, then accept the token the status line offers. The console types it and reboots the board; once it says
welcomed as …, speak one sentence and listen for the answer.
No parts, no keys, no hardware. When you want the real one, keep reading. macOS is what this has been walked through on; Windows is untested.
Real hardware
Every build needs the brain, a computer on the same Wi-Fi as the body, plus API keys for speech-to-text, a chat model and text-to-speech.
The body is an ESP32-S3: it talks, listens, shows a pet dog on a screen, and runs timed moves on a car's motor driver inputs (GPIO 4–7).
- An ESP32-S3 dev board, an INMP441 microphone, a MAX98357A amp and
a speaker, and a small SPI screen. Pin tables are in
firmware/README.md. - Chrome or Edge and a USB cable. Open the admin page, plug the board into the port marked USB, and click Set up a board: "First time" writes the firmware, the Wi-Fi and the character's token, with no ESP-IDF to install. The board finds the brain on its own.
- Turn Barge-in off for this character. The body has no echo cancellation, so it would hear itself and interrupt itself.
- Driving a toy, open the character's Body tab and set Toy on wheels,
wire the four motor inputs, and calibrate:
cal driveif it goes backwards,cal steerif it turns the wrong way. The board stops the car within a second of losing the brain.
The phone body — an Android phone plus an FT232H, which is what drove the car
in the demos above — still works, but it is not the direction here and the
README does not teach it: docs/hardware.md does. Without
wheels, open the admin with ?bench, open the character's Body tab and set
Dry run: the moves only reach the brain's log.
Voice only is a robot that just talks.
What runs where
The workbench models more than the real firmware implements — on purpose. This table is which is which:
| Device | Simulated | On real firmware | Lesson |
|---|---|---|---|
| LED and resistor | yes | — | yes |
| Push button, two-terminal | yes | — | yes |
| Button module (KY-004) | yes | — | yes |
| HC-SR04 distance | yes | — | yes |
| BME280 environment | yes | — | yes |
| SSD1306 OLED | yes | — | yes |
| SG90 servo | yes | — | yes |
| TB6612FNG + DC motor | yes | — | yes |
| WS2812 strip | yes | — | yes |
| Power: USB, 4×AA, bench, MB102 | yes | USB only | yes |
| MPU-6050 (the tarot wand) | yes | reads it, untested on a board | — |
The real firmware still implements only the original body: the INMP441 microphone, the MAX98357A amp and speaker, a screen, four motor pins on GPIO 4–7 for the car, and the MPU-6050 on I²C. Everything else in that table is something the workbench can teach and the board cannot run yet.
What a body can do
A body is a template, not a firmware and not the character. There are five, in
core/bodies.js: voice only, a pet on a screen, a tarot
reader, a toy on wheels, and a dry run kept out of the picker (open the admin
with ?bench to see it). The admin's Body tab draws one card per template:
the capabilities it has — hear, speak, show, move — the parts each
body costs, and the actions the model may call.
| Template | Capabilities | Actions the model may call | Parts |
|---|---|---|---|
Voice only (none) |
hear, speak | play_sound |
ESP32 board, mic, amp |
Pet on a screen (pet) |
hear, speak, show | pose, play_sound |
ESP32 board, mic, amp, screen |
Tarot reader (tarot) |
hear, speak, show | draw_card |
ESP32 board, mic, amp, screen, wand (optional) |
Toy on wheels (toy) |
hear, speak, move | move, cruise, stop, play_sound |
toy, ESP32 board, mic, amp |
Dry run (dry-run) |
hear, speak, move | the toy's four | nothing: every verb is logged, never sent |
A screen body can also show the reply across the bottom of its picture as a
caption, off by default until the Display editor on the Body tab turns
it on for one character (the character's display.caption: a line count and a
cell width).
A body's tools are yours to edit (the file key is tools; an older character
may still say actions). The Body tab holds them as JSON, and once you write
your own the body keeps them instead of following the template; the model is
then offered those tools, plus the fixed tools its template names (the language
setting, for a body that speaks words), and the prompt is built from that body's
own constraints. Who the character is — its persona and whether the reply is
spoken or sounded — belongs to the character file, not the body. Nothing is
compiled and nothing is flashed for this: a tool is a program of the five verbs
the hardware already answers (drive, halt, voice, pose, draw). The
parts list is the other half: it is what to buy, and it is fixed by the
template.
A character with no body chosen is voice only; a character file written before
this setting has no body key and is still the toy
(core/config.js). The rest of the account — the verbs, and
what an action may say — is in docs/development.md.
A body can also come from a plugin you write yourself: one directory per body
under ~/.bot-reborn/bodies/, each with a body.json that names the parts, the
GPIO pins the body may touch and the commands it runs. The brain reads them at
startup and refuses a bad manifest with one line in the log; the admin then shows
the plugin beside the five templates. This is simulator-only for now. The
workbench answers plain pin reads and writes; a pwm command is expanded, map
and all, but the bench has no pulse model and answers unavailable; i2c and
adc resources are refused when the plugin loads, because their contract is not
settled. No real board runs a plugin either: the firmware speaks protocol 2, so
a plugin body is turned away from it.
docs/hardware/plugin-example.md has the
whole format.
Every build in Demo builds is a body. The four handwritten ones say which one they build — Audio only is Voice only, Audio + screen is Pet, Audio + toy robot is Toy, and Tarot wand is Tarot. The workbench reads the repository's modules from the brain too, so a module's project is in the same group whether or not it is installed. Pick a demo and the project panel says which character wears that body and offers the one step that settles it: install it, or switch the character to it. Pairing from a demo is part of the flow, not a prerequisite — the body question comes after the character is known. The same is true of a body you saved yourself.
Installing a module can also be done from the admin (Body → Modules), where you confirm its example actions; they are what tells the model when to use it. Plug in USB to pair, say "turn on the light", and the bench LED lights. Only the LED module ships today. Installing again rewrites the commands, so a body that is already connected must pair again afterwards.
A character file has no version number. An older brain reading a file written by
a newer one silently drops the keys it does not know: a body's tools, for
instance, disappear with no error and the body falls back to its template. Keep
the brain and the characters you wrote them with; there is no migration step to
run on a downgrade.
Status and limits
ESP32 body: hears, talks, shows a pet dog on a breadboard and drives a toy's
motor inputs, all set up from the admin page. The admin page can also pick the
screen, but no panel model is marked verified yet, so the picker is empty and
says so; until one is lit and recorded, type screen in the serial console for
the list, then screen <id> and reboot — the choice takes effect at boot. The tarot wand works in the simulator; the firmware reads it too, but
that has not been tried on a real board yet.
Phone body: works end to end on one robot and one phone, and is kept as it is. The simple-commands reflex was driven by a real voice on that car and the 0.8 threshold holds up; the bark preset is still on its first guess. The phone is top-heavy and has tipped the car over backing up.
Some hardware numbers are still unmeasured.
More
- bot-reborn.agentlenshq.com — a 20-second look at the workbench
firmware/README.md— the ESP32 body: pins, flashing, setupdocs/story.md— the gadget this platform came out ofdocs/hardware.md— the toy car's wiring, pin map, every measurementdocs/esp32-lessons.md— faults the ESP32 board has haddocs/development.md— reading the code, running it, tests, securitydocs/instruments.md— the calibration page behind the geardocs/ui.md— the robot's face and what each state meansdocs/promo-video.md— what making the video taught ustraining/commands/— the simple-commands dataset, its builder and model card
License
MIT. The sounds in server/sounds/ are CC0 — see their
credits.
Explorer des projets similaires
Chargement…

