How photobooth-app/photobooth-buzzer works
Photobooth Buzzer is ESP32 firmware for a battery-powered physical button that emulates a Bluetooth HID keyboard to trigger photo captures. On startup it configures the button and BLE HID services and starts a fuel-gauge task; while connected, a button tap sends the configured key as press/release reports for the paired photobooth host. The README also documents battery status reporting and USB-C charging/programming, while CAD assets describe the physical build. Firmware behavior is evidenced by the sole sampled source file; hardware capabilities beyond the code are described in the README.
Main entry points: main.cpp Tap handler · buzzer-case.SLDASM Buzzer button · README.md Battery gauge · buzzer.SLDASM Printed enclosure
Components 12
ESP32 firmware
- Button input
src/main.cpp - Tap handler
src/main.cpp - Key reports
src/main.cpp - BLE HID setup
src/main.cpp - Fuel gauge task
src/main.cpp - Battery status
src/main.cpp
Device hardware
- Buzzer button
cad/solidworks/buzzer-case.SLDASM - Battery gauge
README.md - Printed enclosure
cad/solidworks/buzzer.SLDASM - USB-C charging
README.md
Other components
- Photobooth user
- Photobooth host
Connections 12
- Photobooth user → Buzzer button: presses
README.md - Buzzer button → Button input: actuates
- Button input → Tap handler: dispatches
src/main.cpp - Tap handler → BLE HID setup: checks connection
src/main.cpp - Tap handler → Key reports: calls
src/main.cpp - Key reports → Photobooth host: sends keystrokes
src/main.cpp - BLE HID setup → Photobooth host: advertises HID
src/main.cpp - Battery gauge → Fuel gauge task: measures charge
- Fuel gauge task → Battery status: reads charge
src/main.cpp - Battery status → BLE HID setup: sets HID level
src/main.cpp - USB-C charging → Battery gauge: charges
README.md - Printed enclosure → Buzzer button: houses