03 · MIXED-SIGNAL HARDWARE · KICAD 10 · BOARD LAID OUT · PRODUCTION FILES READY

Handwriting-recognition smart pen

Smart pen prototype in hand, OLED status screen visible
FIG. 1 · EARLY PROTOTYPE · FINAL HARDWARE IN PROGRESS
Overview

A pen that reads your handwriting on the device itself. The machine learning runs locally on the pen, with no phone and no cloud. I designed the electronics for it: the full schematic, drawn entirely by hand in KiCad. The design fits a normal-sized pen body and targets about 10 hours on a charge. The board is now laid out: 290 parts on a 4-layer board, routed with AI-assisted routing scripts, with a clean design-rule check and production files ready to order.

290 parts4 layers9-DOF4 power rails
Full pen schematic in KiCad: power tree on the left, SoC and data lines center, sensing and peripherals right
FIG. 2 · THE SCHEMATIC · TAP TO ENLARGE
Sensing

The core problem is measuring how a pen moves in three dimensions accurately enough to reconstruct letters. I put two inertial sensors at opposite ends of the pen, at the tip and the tail, because the further apart they sit the more clearly rotation shows up as a difference between them. A magnetometer fills in absolute orientation, and a small camera on a two-lane MIPI interface acts as a tiebreaker for characters the motion data isn’t confident about.

Power

The part that took the longest was power. A pen has almost no room for a battery, so idle draw decides whether the thing is usable. I designed the full tree: USB-C charging and protection, a buck-boost converter to 3.3 volts, and dedicated 1.8, 1.35 and 0.95 volt rails for a RISC-V processor with a built-in neural accelerator, all from one Li-ion cell, plus load switches that cut power to the camera and sensor domains entirely when they’re not in use.

Verification

I wrote my own netlist checkers, which parse the schematic looking for nets that appear only once. A net with a single connection means something is wired to nothing, and it’s the kind of mistake that’s invisible in a schematic and expensive on a fabricated board. The finished schematic passes KiCad’s electrical rules check with zero errors, and the board passes its design-rule check.

Key parts
  • 2× LSM6DSO32 IMU, tip and tail
  • IIS2MDC magnetometer, 9-DOF orientation
  • MIPI camera to cross-check unclear characters
  • SG2002 RISC-V SoC, built-in NPU, inference on device
  • RTL8723DS Wi-Fi and Bluetooth, small display, haptics
  • USB-C charging + protection, buck-boost to 3.3 V
  • 1.8, 1.35 and 0.95 V rails, load-switched camera and sensor domains
  • 290 parts, 4-layer board, production files ready
← 02 SHELF-PICK ROBOT04 VISION TRACKING →