Skip to the content
2 layers52 × 56 mmGimbal driver board, the printed circuit board in 3D

Gimbal driver board

PA-33/gopro-control-station

Two-axis motorised GoPro mount with physical buttons, BLE camera control, and a built-in HTTPS web UI for live HDMI preview and gallery access. ESP32-S3 / SimpleFOC.

Size
52 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
71
Nets
83
Pads
327
Tracks, vias
719, 131
Pours
3
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
4 Jun 2026
Updated
5 Jun 2026

Overview

Gimbal driver board is an open-source printed circuit board by PA-33, from the PA-33/gopro-control-station repository on GitHub, published under the MIT licence. It is a 2-layer board of 52 × 56 mm with 71 parts on 83 nets, routed with 719 tracks and 131 vias.

It is built around the ESP32-S3-WROOM-1-N8, DRV8313PWP and LM2596S-3.3, with the PCF8574T, USBLC6-2SC6 and 1N5819HW-7-F-01 among its other parts. Its parts include 21 capacitors, 21 resistors, 10 connectors, 8 ICs and 4 diodes. It belongs with the ESP32 boards of this library.

Main components

10

README

README.md

GoPro Control Station

A complete remote control station for a GoPro Hero camera.

System demo

The system combines a two-axis motorised mount (so the camera can be aimed without touching it) with full remote control of the camera itself (shutter, mode, gallery, live HDMI preview). Everything is driven by a single ESP32-S3 board running closed-loop FOC for the motors, BLE for the camera commands, and an HTTPS web server for the user interface.

Features

  • Two-axis motorised mount with absolute angular position
  • Magnetic encoders for accurate, drift-free positioning
  • Soft-limits with automatic end-stop calibration
  • Stall protection with auto-recovery (re-centres the motor on re-enable)
  • BLE control of the GoPro (shutter, mode, sleep, keep-alive)
  • Wi-Fi proxy to the GoPro REST API (gallery, thumbnails, downloads)
  • Browser-based live HDMI preview via a USB-C capture card
  • Self-signed HTTPS server with embedded certificate
  • Persistent configuration and calibration in NVS
  • Status LED strip for camera, motors, recording state and battery

The user interacts with the system through two parallel channels:

  • Physical panel — five buttons (M1+, M1-, M2+, M2-, shutter) and a 7-LED status strip.
  • Web interface — served on the station's own Wi-Fi access point: control, gallery, live HDMI preview and configuration in a mobile-friendly UI.

Repository layout

text
gopro-control-station/
├── platformio.ini              PlatformIO build configuration
├── README.md
├── LICENSE
│
├── src/                        Firmware sources (Arduino + ESP-IDF)
│   ├── bridge_main.cpp         setup() / loop() / status LEDs
│   ├── bridge_foc.cpp/.h       motor control, buttons, calibration
│   ├── bridge_current.cpp/.h   current sensing + stall detection
│   ├── bridge_ble.cpp/.h       NimBLE client (OpenGoPro)
│   ├── bridge_wifi.cpp/.h      Wi-Fi AP + STA + watchdog
│   ├── bridge_https.cpp/.h     TLS web server + REST proxy
│   ├── bridge_server.cpp/.h    plain HTTP (cert download only)
│   ├── bridge_config.cpp/.h    persistent configuration (NVS)
│   ├── bridge_led.h            LED constants
│   └── ssl_cert.h              embedded TLS certificate (auto-generated)
│
├── data/
│   └── index.html              single-page web UI (served from LittleFS)
│
├── certs/                      TLS certificate + regeneration toolchain
│   ├── bridge_cert.pem
│   ├── bridge_key.pem
│   ├── openssl.cnf

Quick start

1. Build and flash the firmware

bash
# Firmware
pio run -e esp32-s3-bridge -t upload

# Web UI (LittleFS image)
pio run -e esp32-s3-bridge -t uploadfs

# Watch the boot log
pio device monitor -e esp32-s3-bridge

A clean first boot prints, in order: PCF8574 ready, FOC init OK x2, Wi-Fi AP up, BLE connected to the camera, HTTPS server started, Wi-Fi STA connected to the GoPro. See docs/repport.tex §5.5 for the reference serial log.

2. Connect

  1. Join the Wi-Fi network GoPro-Bridge (default password gopro1234).
  2. Open https://192.168.4.1 in a browser.
  3. Accept the security warning, or download the certificate from the Config tab and install it to make the warning go away.

3. Adapt to your own GoPro

No source edit is required. After the first boot, go to the Config tab in the web UI, replace the GoPro Wi-Fi SSID and password with the ones printed on your camera (Connections / Connect Device / GoPro App), Save, and reboot.

Documentation

  • docs/mode_emploi.tex — end-user manual (French). Buttons, LEDs, web interface, calibration procedure.
  • hardware/cad/ — CAD sources and exports for the mechanical parts. Print settings and assembly order are documented in §3 of the report.
  • hardware/kicad/ — full electrical schematic and PCB project. The pin assignments are also reproduced in §4 of the report and are hard-coded in the firmware (see src/bridge_foc.cpp).

Regenerating the TLS certificate

The repository ships with a self-signed development certificate that works out of the box. For any deployment where the local network is not trusted, regenerate it:

bash
cd certs
generate.bat            # Windows
# POSIX equivalent: see docs/repport.tex Appendix D

Then re-flash the firmware. Every client that already trusted the previous certificate has to install the new one (web UI, Config tab).

Hardware overview

  • MCU: ESP32-S3 (esp32-s3-devkitc-1), 8 MB flash, no PSRAM.
  • Motors: 2x BLDC (11 pole pairs), each driven by a DRV8313.
  • Encoders: 2x AS5048A magnetic absolute encoders (SPI / HSPI bus).
  • Buttons: 5x momentary, multiplexed through a PCF8574T (I2C).
  • Current sense: 2x INA180A1 with 50 mOhm shunts, read on ADC2.
  • Indicators: WS2815 strip, 7 LEDs.
  • Camera: GoPro Hero (any model compatible with the OpenGoPro BLE specification) with the official Media Mod for HDMI output.
  • HDMI capture: any UVC-class USB-C card (UGREEN 15389 is auto-selected by the web UI).

License

This project is released under the MIT License. You can use, modify and redistribute it freely, including for commercial purposes, provided that the copyright notice and the license text are kept.

Acknowledgements

Built on top of SimpleFOC, NimBLE-Arduino, ESPAsyncWebServer, and the pioarduino fork of platform-espressif32. Camera control follows the OpenGoPro specification.

Context

This project was developed by Pierre Adamini and Florian Klein as part of the Assistive Technology Challenge at EPFL (2026).

Parts

71
QtyValueFootprintReferences
1310kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R4, R5, R6, R7, R8, R9, R11, R13, R17, R18, R19, R21
12100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C4, C5, C8, C9, C11, C12, C13, C18, C19, C21, C22
20.05Resistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR10, R20
210nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6, C16
210uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C3
2470nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC7, C17
2470uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC14, C15
25k1Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2
2DRV8313PWPDRV8313PWP:SOP65P640X120-29NU3, U7
2INA180A1Package_TO_SOT_SMD:SOT-23-5_HandSolderingU4, U8
2MotorConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ2, J10
2MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2
2RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR14, R15
2SW_MEC_5Gbouton_smd:bouton_smd_kit_botaniqueSW1, SW2
1100Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR12
1100uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC10
11N5819HW-7-FLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
11N5819WSLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD2
11kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR16
133uHInductor_SMD:L_1008_2520Metric_Pad1.43x2.20mm_HandSolderL1
13v3 outConnector_Wire:SolderWire-0.5sqmm_1x02_P4.8mm_D0.9mm_OD2.3mmJ9
1AO3400APackage_TO_SOT_SMD:SOT-23_HandsolderingQ1
1Bat inConnector_Wire:SolderWire-1sqmm_1x02_P7.8mm_D1.4mm_OD3.9mmJ8
1Conn_01x09_SocketConnector_JST:JST_GH_BM09B-GHS-TBT_1x09-1MP_P1.25mm_VerticalJ4
1ESP32-S3-WROOM-1PCM_Espressif:ESP32-S3-WROOM-1_homemadeU2
1Encoder1Connector_JST:JST_SH_BM06B-SRSS-TB_1x06-1MP_P1.00mm_VerticalJ3
1Encoder2Connector_JST:JST_SH_BM06B-SRSS-TB_1x06-1MP_P1.00mm_VerticalJ5
1I2CConnector_JST:JST_SH_BM04B-SRSS-TB_1x04-1MP_P1.00mm_VerticalJ6
1LEDConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ7
1LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4
1LM2596S-3.3Package_TO_SOT_SMD:TO-263-5_TabPin3U6
1PCF8574TPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU5
1PS1240P02BTPS1240P02BT:XDCR_PS1240P02BTLS1
1SS34Diode_SMD:D_SMA_HandsolderingD3
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

Similar boards

  • 2 layers32.3 × 87.6 mmESP32-Gimbal, the printed circuit board in 3D

    ESP32-Gimbal

    Visaging/ESP32-Gimbal

    A high-performance, open-source 3-axis smartphone gimbal built from scratch using a custom PCB and the SimpleFOC library. It features real-time stabilization, native USB-C programming, and custom motion modes.

    60 parts4MIT
  • 2 layers43 × 43 mmNew version, the printed circuit board in 3D

    New version

    Robopoly/Kit-Botanique

    76 parts
  • 2 layers37 × 70.9 mmOpendiag, the printed circuit board in 3D

    Opendiag

    maximus64/opendiag-hardware

    OpenDIAG - Open Source OBD2 Interface (Hardware)

    148 parts5CERN-OHL-S-2.0
  • 4 layers54.6 × 86.4 mmCom4bbb, the printed circuit board in 3D

    Com4bbb

    eurovibes/com4bbb

    RS485 / WiFi cape for Beaglebone black

    72 partsCERN-OHL-S-2.0
  • 2 layers142.5 × 99 mmPCB Prrojects, the printed circuit board in 3D

    PCB Prrojects

    PipistarXu/stm32g431-lm2596-board

    24 parts1MIT
  • 2 layers105.4 × 86.5 mmGood Boy Limiter, the printed circuit board in 3D

    Good Boy Limiter

    JohnanLuca02/BYTE_Electronics

    Repository for everything concerning the electronics (PCB, Electrical schemes, BOM, ...) of the robot dog project of the AiTeam called BYTE.

    111 parts1
  • 2 layers200 × 200 mmSignalFLowLab, the printed circuit board in 3D

    SignalFLowLab

    Serpant4632/SignalFLowLab

    130 parts
  • 4 layers100 × 74 mmMission board, the printed circuit board in 3D

    Mission board

    tmb5932/fixed-wing-drone

    The basics needed to allow a RC plane to be turned autonomous on signal.

    128 parts

Questions

How big is the Gimbal driver board PCB?

It measures 52 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Gimbal driver board use?

71 parts, built around the ESP32-S3-WROOM-1-N8, DRV8313PWP, LM2596S-3.3 and PCF8574T. 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 Gimbal driver board KiCad files?

From the PA-33/gopro-control-station repository on GitHub, at the commit this page was made from: the board is hardware/kicad/gimbal_driver_board/gimbal_driver_board.kicad_pcb and its schematic hardware/kicad/gimbal_driver_board/driver1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Gimbal driver board 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).