Examples

Every example is a complete, working project: an Arduino sketch, a web page, and a wiring note. Start at the top and work down, or jump to the hardware you have.

Control panel

A dashboard for every pin on your board, laid out over a photo of it. Test circuits without writing a line of code.

Beginner · Multi-user · Tool

Basic light switch

Two buttons on a web page turn the board's LED on and off. The simplest possible start — no frameworks at all.

Beginner · Basics

Potentiometer

Turn a knob, and a circle on screen grows and shrinks with it. Your first taste of live data flowing into a p5.js sketch.

Beginner · Basics · p5.js

Shared light switch

One light, four switches: two physical buttons and two on screen. Press any of them — everything stays in sync.

Beginner · Multi-user

Shared potentiometer

The Arduino announces its own analog input and the browser listens — a turn of the knob shows up live on screen with no JS setup.

Beginner · Multi-user · Basics

Messaging

Send named key/value messages between the browser and the sketch — no pins involved — and inspect every frame on the wire with the live traffic monitor.

Intermediate · Multi-user · Tool

Shared servo

The Arduino sketch creates the servo and the browser receives it automatically — then both sides drive the same horn.

Intermediate · Multi-user · Motion · p5.js

Servo control

A full servo control panel: immediate and timed moves, soft limits, and homing, with a live gauge and call log.

Intermediate · Motion · Tool

Stepper motor

Precise position moves, continuous rotation, and a live position readout — the browser as a motor controller.

Intermediate · Motion · Tool

Bus servos

Drive smart serial servos — the kind used in robot arms. Pose a joint by hand, read it back, and replay it.

Advanced · Motion · Tool

Coordinated motion

Two different motors — mix a servo, stepper, or bus servo — sweep in perfect unison using a group.

Advanced · Motion · Tool

Leader → Follower

Teleoperate a robot arm by hand: move a leader arm and a second follower arm mirrors it live, joint for joint — the LeRobot leader/follower rig, in the browser across two boards.

Advanced · Motion · Tool

Gesture Builder

Author expressive motion on a timeline — draw keyframes for any mix of servos, bus servos, and steppers, play it back phase-locked, and copy out the JavaScript or Arduino code.

Advanced · Motion · Tool

NeoPixel

Mix a colour by moving the mouse across a hue-and-brightness field, and an LED strip follows the colour under your cursor live.

Intermediate · Light · p5.js

Ultrasonic sensor

A distance sensor paints a colour bar that responds as you move your hand closer and further away.

Intermediate · Sensors · p5.js

Motion sensor (IMU)

Tilt the sensor and watch a 3D model rotate with it, live, in all three axes.

Advanced · Sensors · p5.js

Camera stream

Live video from an ESP32 camera lands on a p5.js canvas, pixels and all — ready for creative coding.

Advanced · Vision · p5.js

Camera Pose

Run MediaPipe pose detection on live ESP32 camera video — green landmarks and a skeleton track a person moving in front of the lens.

Advanced · Vision · p5.js