Skip to the content
2 layers3D gesture leds, the printed circuit board in 3D

A circular LED display driven by an STM32F103 microcontroller and an MGC3130 3D gesture sensor to control WS2812 (NeoPixel) LEDs via hand movements.

Copper layers
2
Thickness
1.6 mm
Parts
37
Nets
83
Pads
182
Tracks, vias
388, 37
Pours
7
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
19 Jun 2025
Updated
1 Jul 2025

Overview

3D gesture leds is an open-source printed circuit board by rmingon, from the rmingon/3D-gesture-leds repository on GitHub. It is a 2-layer board with 37 parts on 83 nets, routed with 388 tracks and 37 vias.

It is built around the WS2812B. Its parts include 16 diodes, 10 resistors, 8 capacitors, 2 ICs and 1 connector. It belongs with the lEDs and displays and sensors and measurement boards and the STM32 boards of this library.

Main components

1

README

readme.md

3D Gesture‑Controlled LED Ring

A circular LED display driven by an STM32F103 microcontroller and an MGC3130 3D gesture sensor to control WS2812 (NeoPixel) LEDs via hand movements. The project includes KiCad source files, 3D renders, and Gerber exports for easy fabrication.


Features

  • 3D Gesture Control: Leverage the Microchip MGC3130 to detect hand gestures (swipe, wave, hover) and translate them into LED patterns.
  • STM32F103 MCU: Cortex‑M3 core running at 72 MHz, handling USB, I²C, and the WS2812 timing-critical data stream.
  • LED Ring: 16 WS2812B individually addressable RGB LEDs arranged in a circular pattern for smooth animations.
  • Compact PCB: Single‑layer circular board with ground‑plane perforations for weight reduction and better RF performance.
  • Extensible Firmware: Modular code written in STM32CubeIDE (HAL) that can be adapted to other sensors or LED configurations.

Bill of Materials (BOM)

QtyRef DesPartValuePackage
1U1MGC3130‑I_MQ—QFN‑28
1U2STM32F103C8T6—LQFP‑48
16D1–D16WS2812BRGB LED5050 SMD
6C5–C10Ceramic Capacitor2.2 µF0402
4C1–C4Ceramic Capacitor100 nF0402
6R1–R10Resistor1 kΩ0402
1ConnSWD Header4‑pin2.54 mm
1J1Programming Header5‑pin2.54 mm

Board Files


Schematic Overview

  • Power: 3.3 V regulated rail supplies both the STM32 and MGC3130. Bypass and decoupling capacitors placed close to power pins.
  • Gesture Sensor: MGC3130 communicates over I²C (SDA/SCL) and outputs interrupts for processed gestures.
  • LED Driver: STM32 PA0 configured as WS2812 data output (single-wire serial at 800 kHz). External resistors ensure clean signal transitions.
  • Debug & Programming: Standard SWD interface on PA13/PA14 plus UART TX/RX broken out for serial logging.

PCB & Mechanical

  • Circular Form Factor: Diameter 100 mm, six radial slots for mechanical mounting or light diffusion.
  • Ground Plane Perforation: 2×2 mm grid removed in non-critical areas to reduce weight and improve air flow.

Firmware

  1. Development Environment: [STM32CubeIDE]
  2. HAL Libraries: I²C, GPIO, TIM (for precise delays), and USB (optional debug).
  3. Gesture Handling:
    • Initialize MGC3130, poll for data-ready interrupts.
    • Read gesture packets over I²C, parse swipe (left/right/up/down) and circle (clockwise/anticlockwise).
    • Map gestures to LED animation functions (e.g., rotate colors, rainbow, blink).
  4. WS2812 Driver:
    • Use a bit-banged routine with HAL_TIM_PWM and DMA to generate the timing waveform.
    • Buffer 16 × 24 bits (GRB) and transmit at 800 kHz.
c
// Example: Set LED color
void ws2812_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b);
// Example: Rotate animation
void animate_rotate(uint16_t delay_ms);

Assembly & Testing

  1. PCB Fabrication: Send Gerbers to your favorite manufacturer with 0.8 oz copper, HASL finish.
  2. Component Placement: Follow the silkscreen and reference designators. Solder U1 and U2 with paste reflow or hand soldering.
  3. Firmware Flashing: Connect SWD header to ST‑Link. Build and flash the gesture_led_ring project in STM32CubeIDE.
  4. Power‑On Test:
    • LEDs should initially perform a startup sequence.
    • Hover your hand 5 cm above the sensor: LEDs will light up.
    • Swipe left/right: ring rotates colors accordingly.

License

Hardware is released under CERN-OHL-S v2. Firmware samples are MIT. See individual source files for details.


Feel free to fork, adapt, and contribute!

Parts

37
QtyValueFootprintReferences
16WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16
10R_SmallResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R6, R7, R8, R9, R10
52.2ufCapacitor_SMD:C_0603_1608MetricC3, C5, C6, C7, C8
2C_SmallCapacitor_SMD:C_0603_1608MetricC1, C2
1100nfCapacitor_SMD:C_0603_1608MetricC4
1Conn_01x04Connector_Harwin:Harwin_M20-89004xx_1x04_P2.54mm_HorizontalJ1
1MGC3130-I_MQMGC3130-I_MQ:QFN50P500X500X100-29NU1
1STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU2

Similar boards

  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 2 layers95.3 × 161.9 mmDfh badge, the printed circuit board in 3D

    Dfh badge

    tanaes/whopping_Voron_mods

    135 parts787GPL-3.0
  • 2 layers42.8 × 28.8 mmMM Skirt, the printed circuit board in 3D

    MM Skirt

    PrintersForAnts/Micron

    If you want to purchase full kits there are 3 available (Kits are slowly updating to R1 hardware just make sure to double check the included hardware in your kit and if you have any questions reach out in the discord)

    11 parts741GPL-3.0
  • 2 layers149.6 × 127.1 mmErgodash, the printed circuit board in 3D

    Ergodash

    omkbd/ErgoDash

    keyboard

    187 parts732MIT
  • 2 layers285.5 × 95 mmReviung46 ver1 1, the printed circuit board in 3D

    Reviung46 ver1 1

    gtips/reviung

    The REVIUNG41 is 41-key column staggered keyboard.

    119 parts517MIT
  • 2 layers177.7 × 144.5 mmCOMM PANEL, the printed circuit board in 3D

    COMM PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    275 parts431

Questions

What parts does the 3D gesture leds use?

37 parts, built around the WS2812B. 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 3D gesture leds KiCad files?

From the rmingon/3D-gesture-leds repository on GitHub, at the commit this page was made from: the board is hardware/hardware.kicad_pcb and its schematic hardware/hardware.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 3D gesture leds design in my own project?

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