Inspiration

I learn electronics the way most beginners do: a breadboard tutorial on YouTube and a kit of parts. But you need the parts first, a backwards LED just means "nothing happens" with no hint why, and laptop simulators make you click tiny icons in the same window that should be playing the tutorial.

Spectacles let the bench live on my real desk, at real size. My laptop stays free for the tutorial, and my hands do the building, just like with real parts.

What it does

Virtual Electronics Bench puts a half-size breadboard, a 2×AA battery pack and a parts tray (LED, 220 Ω resistor, jumper wires) on your desk.

  • Pinch a part from the tray, drag it over the board and let go: it snaps into the nearest row. A marker shows the holes before you drop.
  • Plug in jumper wires and the battery's red and black leads the same way.
  • A quick pinch on a placed LED flips it around.
  • The bench checks the circuit as you build:
    • 🟢 the LED glows when battery + → resistor → LED → battery − is a complete, correct loop
    • 🔴 it turns red right away if the LED is in backwards
  • The LED has a visibly longer, kinked leg (+) and a flat rim (−), like a real one, so you learn to read the part.

For demos there's a Demo Prebuild mode (everything wired except the LED) with a drop guide: glowing target holes, + / − labels, bouncing arrows and a dotted path from the tray to the board.

How we built it

  • Lens Studio 5.23 with TypeScript, Spectacles Interaction Kit (SIK) for pinch/grab with either hand, and LEAF for automated tests.
  • Everything is procedural and real-scale (cm): breadboard, hole grid, battery, tray, LED, resistor bands and wires are generated in code, with no imported models.
  • BreadboardModel knows every hole and which holes are connected (columns a–e / f–j, the four power rails).
  • CircuitChecker joins connected holes into nets with union-find, then decides off / glow / reversed by tracing the LED's legs back to the battery terminals.
  • Parts get grab zones much larger than their visible size, because real-size parts are too small to pinch reliably. Drops are projected from the eye through the part onto the board, so they land where you see them.
  • To demo in Lens Studio's webcam preview (no head tracking), the bench can lie on a printed image marker on the desk, with a mirrored version for mirrored webcams, a close-up card for when the big marker is out of view, smoothing and glitch rejection for steady tracking.

Challenges we ran into

  • Tiny parts. A real LED leg is 0.5 mm wide. Oversized grab zones, snap markers and eye-ray projection made placing them workable.
  • "Right away" for a backwards LED. Direction only means something once the LED is linked to the battery's + and −, so the checker works on connected nets, not on positions.
  • Marker jitter. With the marker half out of view, the tracker jumps for single frames. We only follow a jump once it persists for a few frames, and ease toward the tracked pose.
  • No device on hand. Everything had to be provable in the preview, so every done criterion got a LEAF test that drives the real Lens.

Accomplishments that we're proud of

  • All the design brief's done criteria pass as automated LEAF tests: the LED snaps into a row, a backwards LED turns red, flipping it clears the red, and a correct circuit glows.
  • The bench sits convincingly on a real, messy desk next to a real laptop.

What we learned

  • Designing for glasses means real scale and real places: where the laptop is, where the eyes go, what the hands can actually pinch.
  • How to keep a spatial UI honest with automated tests in Lens Studio.

What's next

  • More checks: short circuits, a missing resistor.
  • More parts (buttons, buzzers) and an Arduino / ESP32 as a power source.
  • Testing comfort and two-handed building on real Spectacles.

Built With

  • lens-studio
  • spectacles
  • spectacles-interaction-kit
  • typescript
Share this project:

Updates

Submission history