How ahansardar/saferide works
SafeRide is a Windows dashboard for configuring and operating a two-Arduino safety prototype. The main workflow is: select connected boards, configure and validate them, generate matching firmware, compile and upload it, then relay helmet telemetry to the vehicle and display live safety status. The vehicle firmware makes the final relay decision. The README also documents optional USB-driver assistance, session-log export, and verified automatic updates. Some connections are supported by README statements and the app’s indexed imports; unsampled implementation details are not inferred.
Main entry points: app.py Dashboard · firmware_builder.py Firmware generation · uploader.py Compile and upload · updater.py Update manager
Components 21
Dashboard operation
- Dashboard
app.py - USB serial bridge
app.py - Packet parsing
core.py - Live safety display
app.py
Firmware and boards
- Firmware generation
firmware_builder.py - Compile and upload
uploader.py - Helmet firmware
firmware/helmet/helmet.ino - Vehicle firmware
firmware/vehicle/vehicle.ino
Configuration and support
- Session log
session_log.py - Configuration wizard
app.py - Config validation
device_config.py - Saved settings
device_config.py - USB driver assistant
app.py - Driver support
driver_support.py - Driver package
drivers/CH341SER.EXE
Release updates
- Update manager
updater.py - Release metadata
version.py
Other components
- Operator
- Arduino CLI
- Arduino boards
- GitHub Releases
Connections 25
- Operator → Dashboard: operates
README.md - Dashboard → Configuration wizard: configures
README.md - Configuration wizard → Config validation: validates
app.py - Config validation → Saved settings: saves settings
device_config.py - Dashboard → Firmware generation: generates firmware
app.py - Firmware generation → Config validation: uses settings
firmware_builder.py - Dashboard → Compile and upload: uploads sketches
README.md - Compile and upload → Arduino CLI: runs commands
uploader.py - Compile and upload → Arduino boards: flashes
README.md - Firmware generation → Helmet firmware: renders
firmware_builder.py - Firmware generation → Vehicle firmware: renders
firmware_builder.py - Operator → Arduino boards: connects by USB
README.md - Dashboard → USB serial bridge: starts link
README.md - USB serial bridge → Packet parsing: parses packets
app.py - USB serial bridge → Vehicle firmware: relays telemetry
README.md - Helmet firmware → USB serial bridge: sends telemetry
README.md - Vehicle firmware → Arduino boards: decides relay
README.md - Packet parsing → Live safety display: supplies state
app.py - Dashboard → Session log: records activity
README.md - Operator → USB driver assistant: requests drivers
README.md - USB driver assistant → Driver support: launches install
app.py - Driver support → Driver package: verifies installer
driver_support.py - Dashboard → Update manager: checks and downloads
app.py - Update manager → Release metadata: reads release settings
updater.py - Update manager → GitHub Releases: fetches assets
README.md