Skip to the content
2 layers77.5 × 94.5 mmEdge rs, the printed circuit board in 3D

An open-source arousal-monitoring device, written in Rust, that reports to xToys over WiFi so xToys can drive and stop your toys.

Size
77.5 × 94.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
32
Pads
96
Tracks, vias
132, 13
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Aug 2026
Updated
18 Sep 2026

Overview

Edge rs is an open-source printed circuit board by free-edger, from the free-edger/free-edger repository on GitHub, published under the MIT licence. It is a 2-layer board of 77.5 × 94.5 mm with 24 parts on 32 nets, routed with 132 tracks and 13 vias.

Its parts include 7 capacitors, 6 connectors, 6 switches and 5 resistors. It belongs with the ESP32 boards of this library.

README

README.md

Free Edger

Free Edger logo

An open-source arousal-monitoring device, written in Rust, that reports to xToys over WiFi so xToys can drive and stop your toys.

Spiritual successor to the NoGasm and the Edge-o-Matic 3000, designed from scratch — because the EOM3000 isn't sold in Germany, and because the C++ originals can't be unit tested.

Not affiliated with Maus-Tec. "Edge-o-Matic" is their registered trademark.

What it does

An inflatable plug is connected by tube to a digital pressure sensor. The device samples that pressure at 50 Hz, estimates arousal from the size and frequency of involuntary contractions, and pushes events to an xToys webhook. An xToys script reacts — typically by killing toy intensity the moment an edge is detected.

The device does not drive toys. xToys already talks to every toy worth talking to; duplicating that badly would be the wrong use of a weekend.

Generated API docs (rustdoc) for every crate: docs/api/index.html. Regenerate with cargo doc --workspace --no-deps and copy target/doc/* over docs/api/ (root index.html is hand-written and points at edge_core).

Repository layout

text
crates/
  edge-core/     algorithm + session state machine. no_std, no I/O, host-testable
  edge-sensor/   Honeywell ABP2 / MPRLS I2C driver over embedded-hal 1.0
  edge-xtoys/    xToys webhook wire types
  edge-meta/     local-only adaptive media companion (Stash + live telemetry)
  edge-fw/       the ESP32 firmware (own workspace — different target)
tools/
  replay/        push recorded CSV sessions through edge-core and tune thresholds
docs/
  spec.md        full design spec: hardware, protocol, roadmap
  decisions/     architecture decision records
  xtoys-script.js  the companion xToys script, including the watchdog
hardware/        KiCad project (CERN-OHL-S)
enclosure/       3D-printable case

Setup and safety behaviour for the adaptive media companion: crates/edge-meta/README.md.

The important structural decision

edge-core has no hardware dependencies. It compiles and runs on your laptop, so the arousal algorithm is tuned against recorded data in unit tests rather than guessed at on the device:

bash
cargo test                                    # everything host-side
cargo run -p replay -- --demo                 # synthetic session
cargo run -p replay -- session.csv --threshold 1200

Building the firmware

The firmware targets Xtensa, which needs Espressif's Rust fork:

bash
cargo install espup ldproxy espflash
espup install
. $HOME/export-esp.sh

cd crates/edge-fw

# WiFi + xToys credentials, until Phase 2 adds on-device provisioning.
# Gitignored, and baked into the binary — use a throwaway webhook.
cp cfg.toml.example cfg.toml

# breadboard: ESP32-WROOM-32 NodeMCU (default)
cargo run --release

# no sensor yet? run the whole pipeline off a synthetic pressure series
cargo run --release --features playback

# the PCB: ESP32-S3-WROOM-1
# (set target = "xtensa-esp32s3-espidf" and MCU = "esp32s3" in .cargo/config.toml)
cargo run --release --no-default-features --features board-esp32s3-pcb

crates/edge-fw is deliberately outside the root Cargo workspace — otherwise cargo test on the host would try to build ESP-IDF.

Status

PhaseState
0 — foundations, workspace, algorithmdone, host-tested
1 — sensor driverdriver written and host-tested, needs hardware bring-up
2 — local device (UI, config)not started — no on-device provisioning yet, so credentials come from cfg.toml
3 — xToys transportworking on hardware: edges reach xToys, watchdog verified. Round-trip latency not yet measured
4 — PCBschematic designed on paper (docs/spec.md), no KiCad yet
5 — enclosurenot started

Safety

  • Nothing in this project touches mains voltage. Ever.
  • The device can only measure pressure. There is no pump and there never will be.
  • Use a squeeze bulb with a bleed valve — it's the inflation control and the pressure relief in one.
  • Long-press MENU is the safeword. It works with the network down, because it's handled in the sensing loop, not over the wire.
  • The xToys script watchdog stops all toys if heartbeats stop arriving.

Licence

  • Firmware and tools: MIT (LICENSE)
  • Hardware: CERN-OHL-S-2.0 (hardware/LICENSE.md)

AI involvement

The code, docs, and hardware design in this repository were written with Claude Code (Anthropic) as the primary author, driven by a human through design/spec/plan/review cycles rather than typed line-by-line. Treat that as you would any other AI-assisted project: review before you build or flash it onto hardware you control.

Parts

24
QtyValueFootprintReferences
6100nCapacitor_SMD:C_0805_2012MetricC1, C4, C5, C6, C7, C10
310kResistor_SMD:R_0805_2012MetricR3, R19, R20
24k7Resistor_SMD:R_0805_2012MetricR1, R2
1470u bulk (LED chain)Capacitor_THT:CP_Radial_D6.3mm_P2.50mmC8
1BACKButton_Switch_THT:SW_PUSH_6mm_H5mmSW1
1EDGEButton_Switch_THT:SW_PUSH_6mm_H5mmSW5
1ESP32 DevKit V1 30-pin socketedge-rs:PinSocket_2x15_DevKitV1_P2.54mm_RS25.4mmJ6
1MENUButton_Switch_THT:SW_PUSH_6mm_H5mmSW4
1MIDButton_Switch_THT:SW_PUSH_6mm_H5mmSW2
1OKButton_Switch_THT:SW_PUSH_6mm_H5mmSW3
1OLED SH1106 I2CConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2
1Pressure SensorConnector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalJ1
1RotaryEncoder_SwitchRotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW6
1TP 3V3Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ5
1TP GNDConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ7
1TP I2CConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ3

Similar boards

  • 2 layers56 × 65 mmSeaTalk1, the printed circuit board in 3D

    SeaTalk1

    dotnet/iot

    This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.

    24 parts2.4kMIT
  • 2 layers26.2 × 45.5 mmPL18 multiprotocol, the printed circuit board in 3D

    PL18 multiprotocol

    pascallanger/DIY-Multiprotocol-TX-Module

    Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.

    24 parts1.9kGPL-3.0
  • 2 layers58 × 35.5 mmHat, the printed circuit board in 3D

    Hat

    menloresearch/asimov-1

    v1 of Asimov, an open-source humanoid robot

    24 parts1.4kCERN-OHL-S-2.0
  • 2 layers21.6 × 19.5 mmMicron Logo LED, the printed circuit board in 3D

    Micron Logo LED

    DraftShift/StealthChanger

    Tool changing system for Vorons and other front mount printer motion systems, not just stealthburner.

    24 parts1.2kGPL-3.0
  • 2 layers158 × 11 mmRainbow Matchstick, the printed circuit board in 3D

    Rainbow Matchstick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    24 parts1.1kGPL-3.0
  • 2 layers85.6 × 54 mmTRACED wio1262-carrier, the printed circuit board in 3D

    TRACED wio1262-carrier

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    24 parts915
  • 2 layers36 × 20 mmCombined, the printed circuit board in 3D

    Combined

    adamb314/ServoProject

    Getting the most out of your hobby servo

    24 parts545

Questions

How big is the Edge rs PCB?

It measures 77.5 × 94.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Edge rs use?

24 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Edge rs KiCad files?

From the free-edger/free-edger repository on GitHub, at the commit this page was made from: the board is hardware/kicad/edge-rs.kicad_pcb and its schematic hardware/kicad/edge-rs.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Edge rs design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).