How afnanalamm/dronedroid works
Dronedroid is a hobby project for controlling a drone with hand gestures. The visible workflow is a phone app reading accelerometer values, emitting them over Socket.IO, and a Python service scaling the values and forwarding them over serial to a flight controller. The tree also contains Arduino flight-controller sketches and a separate YMFC-AL firmware set, but their behavior and relationship to the serial bridge are not shown in the excerpts. The graph preserves these firmware components without asserting an unverified connection.
Main entry points: App.jsx Sensor UI · main.py Socket event bridge · index.js App entry · sketch_dec19a_test_serial_dronedroid.ino Serial test sketch
Components 13
Mobile controller
- App entry
Dronedroid_UserController/index.js - Sensor UI
Dronedroid_UserController/App.jsx - Socket client
Dronedroid_UserController/App.jsx
Control bridge
- Socket event bridge
Dronedroid_FlightController/main.py - Serial command output
Dronedroid_FlightController/main.py
Flight firmware
- Serial test sketch
Dronedroid_FlightController/sketch_dec19a_test_serial_dronedroid/sketch_dec19a_test_serial_dronedroid.ino - Temporary sketch
Dronedroid_FlightController/temporary.ino - YMFC flight firmware
YMFC-AL/YMFC-AL-Flight_controller.ino - YMFC setup firmware
YMFC-AL/YMFC-AL-setup.ino - ESC calibration
YMFC-AL/YMFC-AL-esc_calibrate.ino
Other components
- Drone operator
- Device accelerometer
- Flight controller
Connections 12
- Drone operator → Sensor UI: tilts device
Dronedroid_UserController/App.jsx - Device accelerometer → Sensor UI: provides readings
Dronedroid_UserController/App.jsx - App entry → Sensor UI: registers app
Dronedroid_UserController/index.js - Sensor UI → Socket client: emits readings
Dronedroid_UserController/App.jsx - Socket client → Socket event bridge: sends accel event
Dronedroid_UserController/App.jsx - Socket event bridge → Serial command output: scales and writes
Dronedroid_FlightController/main.py - Serial command output → Flight controller: serial commands
Dronedroid_FlightController/main.py - Serial test sketch → Flight controller: may run on
- Temporary sketch → Flight controller: may run on
- YMFC flight firmware → Flight controller: may control
- YMFC setup firmware → Flight controller: may configure
- ESC calibration → Flight controller: may calibrate