Repository navigation
orbe 0.1.0
orbe is an open-source hardware simulator for AI agents. You describe a circuit as a scene file, run real firmware on it, and drive it from the command line. It runs Arduino Nano and Uno scenes headless, or in 3D in the browser. It is for developers and agent builders who want to build and test hardware projects without the hardware.
Install
curl -fsSL https://orbefab.com/embedded/install.sh | shThe script downloads the archive for your machine from this release, checks its SHA-256 and puts orbe in ~/.local/bin. The archive includes the 3D viewer. When that folder is not on your PATH, the script says so. It never edits your shell rc files. --dir and --version pick another folder or version.
To give your agents the orbe skill:
npx skills add orbefab/embeddedFirst run
mkdir demo && cd demo
orbe add nano-button-led
orbe check scene.jsonc
orbe test
orbe open --headed
orbe play
orbe closeorbe add copies a Block: a scene, its parts, prebuilt firmware and tests. orbe test runs the tests headless. orbe open --headed opens the scene, paused, and the 3D viewer in your browser. After orbe play, or Play in the page, holding the button in the page lights the LED, and letting go turns it off.
What's in 0.1
CLI. check and lint give each finding a file, line, column and hint. add, part, search and blocks read the catalog. open, step, press, release, set, get, expect, snapshot, play, pause and close drive a live session. test runs test files. show opens the viewer on a session. skills list and skills get print the agent skills. registry build builds a registry. Every command takes --json.
Chips and boards. The Nano and an Uno R3 compatible board, each with an ATmega328P. The chip is cycle-counted: instruction set, GPIO, the three timers, interrupts, USART0, SPI, the TWI master, the ADC, the temperature sensor, EEPROM, the watchdog and sleep. The circuit around it is solved as analog. A run warns when a pin or a supply goes past its rating. orbe set changes the temperature, humidity and light a scene declares.
Parts catalog. 60 parts, including breadboards, LEDs, resistors, capacitors, diodes, transistors, op-amps, an LDR, a trimmer, buttons and a DHT22. Each part has a description and categories and names its datasheet, and its 3D model marks which surfaces are metal and which are plastic. orbe part <id> prints pins, ratings with their datasheet sources, and what is not simulated.
Blocks. Four working circuits:
nano-button-led: a button lights an LED on a Nano.uno-button-led: the same on an Uno, with the board's L LED.nano-led-fade: an LED fades by PWM.nano-light-comparator: an LDR and an LM358 light an LED in the dark, and the Nano prints dark or light.
Viewer. The viewer is built into orbe. It draws the scene in 3D with metal and plastic finishes and shadows, and only a lit LED glows. A click on a button presses it. The page has Play/Pause and a slider for each world quantity the scene declares. Hover names the part, pin or breadboard hole under the pointer. It listens only on 127.0.0.1, and the page's URL carries a token.
Website. orbefab.com/embedded shows how to install and run orbe. It plays every Block in the browser with nothing installed, and shows each Block's sketch, scene and tests. It lists every part in 3D with its pins, ratings and datasheets, and serves the @orbefab registry.
Agent skills. orbe skills get core and orbe skills get arduino print how to use the installed version.
Formats. The registry is format 1. A new optional field keeps the format, and a breaking change raises it. A diagnostic code keeps its meaning, and its message can change, so match on the code. Scene and part files are format 1, and a later release does not promise to read a 0.1 scene.
Known limits
- Only the Nano and the Uno run. ESP32 support is in progress: the engine models the ESP32-S3, but 0.1 has no ESP32 part, board or Block to add.
- orbe never builds firmware. Build it with arduino-cli or your own toolchain.
- Nothing sends serial into the chip. USB is not simulated.
- A wire to the Nano's 3V3, VIN, A6 or A7, or the Uno's VIN, is refused. The Uno's barrel jack is not simulated.
- These stop the run: the analog comparator, Timer2 on a 32 kHz crystal, self-programming, moved vectors, synchronous or reserved USART modes, reserved ADC references or channels, a reserved sleep mode, and a flash word that is no instruction.
- These warn once: I2C slave mode,
OSCCAL, an ADC read of A6 or A7, and an I2C clock below about 18 kHz. - Clamp diodes are not modelled.
- The chips' supply current does not follow the sketch. It stays at the datasheet's typical value, in sleep too.
- A potentiometer's position is fixed for a run.
- A session stops at 2 hours of simulated time.
Platforms
Linux x86_64 with glibc 2.35 or newer (Ubuntu 22.04, Debian 12 and later) and macOS arm64. The install script refuses other machines.
Chromium is the supported browser for the viewer and the site. Firefox and WebKit get a smoke test only. On Linux, headless Firefox has no WebGL, so its smoke test does not cover the 3D view.
License
MIT OR Apache-2.0, at your option. The Block firmware images link the Arduino AVR core 1.8.6, which is LGPL-2.1-or-later. Each firmware/NOTICE says where to get that source, and orbefab.com/embedded serves it.