Skip to the content
2 layersMagnet connector, the printed circuit board in 3D

Magnet connector

candykingdom/firefly25

Small blinkenlight boards that sync up using radios

Copper layers
2
Thickness
1.6 mm
Parts
2
Nets
4
Pads
6
Tracks, vias
16, 4
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
28 Feb 2018
Updated
27 Jul 2026

Overview

Magnet connector is an open-source printed circuit board by candykingdom, from the candykingdom/firefly2 repository on GitHub. It is a 2-layer board with 2 parts on 4 nets, routed with 16 tracks and 4 vias.

Its parts include 1 capacitor and 1 IC. It belongs with the radio and wireless boards of this library.

README

README.md

Firefly2

Wireless LED control for Burning Man art installations, bikes, and wearables. Devices driving WS2812 strips self-organize over 915 MHz RFM69 radios into a flood mesh with exactly one master, share a network clock via heartbeats, and render effects as pure functions of network time — so every device animates in sync without streaming frames.

New to the project? Start with GETTING_STARTED.md. Working in the code (human or agent)? The mental model lives in docs/index.md and the shared Claude Code/Codex ground rules in CLAUDE.md.

Web simulator (test without hardware)

bash
python3 -m http.server 8642 -d sim
# open http://localhost:8642/

A zero-dependency browser simulator of the whole system: every effect and palette on the real device catalog, synced to a scrubbable network clock, with master-mode autoplay and control overrides. Byte-exact against the firmware (enforced by tests: npm test). See docs/simulator.md.

Building firmware

Firmware builds with PlatformIO (pip install platformio). One env per device target:

bash
pio run -e node                  # SAMD21 rfboard node (node-arm64 on Apple silicon)
pio run -e fancy-node            # STM32G030 node
pio run -e controller            # STM32G070 handheld controller
pio run -e dmx                   # ESP32 DMX bridge
pio run -e fancy-node -t upload  # flash via ST-Link
pio device monitor               # 115200 baud

Note: [env:node]'s bossac platform_packages entry is OS-specific — uncomment the right line in platformio.ini for your OS. Full env/pin/flag details: docs/build-and-test.md.

Programming over USB

The fancy-node device can be programmed either using an STLink, or via USB port. To program via USB, you must first install stm32loader using pip (pip install stm32loader). You may also need to pass the port (typically /dev/ttyUSB0), e.g. pio run -e fancy-node-usb -t upload --upload-port /dev/ttyUSB0.

Saving device description in flash

Both node and fancy-node support reading the DeviceDescription from flash. The modes are defined by the DeviceMode enum within DeviceDescription.hpp. They work as follows:

  • CURRENT_FROM_HEADER: use the current device defined in Devices.hpp
  • READ_FROM_FLASH: read the device saved in flash, if present. If not present (determined by the validity of check_value), fall back to current.
  • WRITE_TO_FLASH: write current to flash, and then use it. This will only write the device to flash if it is different, to avoid causing flash wear.

Tests & linting

The platform-independent core (lib/, src/generic/) builds on the host against fakes, with ASan + UBSan on (and fatal). Requires cmake and a GCC/Clang toolchain (on Windows, use WSL or similar):

bash
mkdir -p build && cd build
cmake .. -DBUILD_SIMULATOR=false   # true builds the SDL desktop simulator too
make && make test
./smalltests --gtest_filter=RadioStateMachineTest*
bash
./lint.sh check     # clang-format, Google style — CI enforces this
./lint.sh format    # format in place
./ci.sh             # exactly what CI runs: cmake + smalltests + largetests
node --test "sim/test/cases/*.test.mjs"   # simulator suite, incl. firmware byte-exactness
npm run test:e2e    # served UI/API/canvas journeys in Chromium and Firefox

CI (GitHub Actions): host tests, lint, node/fancy-node/controller firmware builds, the simulator suite, and CodeQL C/C++ security scanning.

Repo layout

PathContents
lib/, src/generic/Platform-independent core: radio protocol, mesh, effects, LED management
src/arduino/Hardware backends (FastLED, RadioHead RFM69)
src/devices/One main per device target (node, fancy-node, controller, dmx)
test/Host GoogleTest suites + FakeNetwork multi-node mesh simulation
sim/Browser simulator (production C++ renderer via committed Wasm, usable without hardware)
docs/Architecture and per-subsystem notes — start at docs/index.md
hardware/, boards/, bootloader/PCB designs, PlatformIO board definitions, bootloaders
specs/Spec-kit feature specs (spec → plan → tasks workflow, see CLAUDE.md)

For agents & contributors

  • CLAUDE.md — the canonical guidance for Claude Code and Codex, including build commands, architecture, and the invariants you must not break. Codex reaches the same file through AGENTS.md; shared skills remain canonical under .claude/skills/ and are exposed to Codex through .agents/skills/.
  • docs/ — per-subsystem research notes (radio/network, LED/effects, devices, build/test, hardware). Update them when you change documented behavior.
  • Substantial features go through the spec-kit workflow (speckit-specify → plan → tasks → implement; use / in Claude Code or $ in Codex); specs live in specs/.

Parts

2
QtyValueFootprintReferences
1100nFCapacitor_SMD:C_0402_1005MetricC1
1WS2812-2020Homebrew:LED_WS2812-2020U1

More from candykingdom/firefly2

4
  • 2 layers150 × 68 mmController, the printed circuit board in 3D

    Controller

    candykingdom/firefly2

    Small blinkenlight boards that sync up using radios

    194 parts5
  • 4 layers47.1 × 30.7 mmFancy node, the printed circuit board in 3D

    Fancy node

    candykingdom/firefly2

    Small blinkenlight boards that sync up using radios

    67 parts5
  • 4 layers21 × 63 mmRfboard, the printed circuit board in 3D

    Rfboard

    candykingdom/firefly2

    Small blinkenlight boards that sync up using radios

    67 parts5
  • 2 layers40.2 × 46.4 mmRing-40mm, the printed circuit board in 3D

    Ring-40mm

    candykingdom/firefly2

    Small blinkenlight boards that sync up using radios

    45 parts5

Similar boards

  • 2 layers37 × 19 mmPassive rpi hub75-adapter, the printed circuit board in 3D

    Passive rpi hub75-adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    2 parts4.4kGPL-2.0
  • 2 layersDiode template, the printed circuit board in 3D

    Diode template

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    2 parts547GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 button, the printed circuit board in 3D

    L0 button

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    2 parts546MIT
  • 2 layers35.1 × 46.8 mmSDEX2M2 Breakout Board, the printed circuit board in 3D

    SDEX2M2 Breakout Board

    NVNTLabs/switch2-SDEX2M2

    Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2

    2 parts542GPL-3.0
  • 2 layers59.3 × 36.6 mmExpansionBoardTemplate, the printed circuit board in 3D

    ExpansionBoardTemplate

    BlueSCSI/BlueSCSI-v2

    BlueSCSI v2/Ultra - an open source, open hardware, SCSI emulator using the Pi Pico PR2040 and Pico 2 RP2350

    2 parts459GPL-3.0
  • 2 layersAlpha.9mm.wire, the printed circuit board in 3D

    Alpha.9mm.wire

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    2 parts410
  • 2 layers26.7 × 64 mmGpu power, the printed circuit board in 3D

    Gpu power

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    2 parts397Apache-2.0

Questions

What parts does the Magnet connector use?

2 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 Magnet connector KiCad files?

From the candykingdom/firefly2 repository on GitHub, at the commit this page was made from: the board is hardware/magnet-connector/magnet-connector.kicad_pcb and its schematic hardware/controller/controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Magnet connector design in my own project?

Its repository states no licence, so its author keeps all rights: ask candykingdom before reusing the design.