How bengrumm/stm32-rc-car works
This repository implements an STM32-based, four-wheel-drive RC car with touchscreen and Bluetooth control, plus obstacle detection and driver notification. The board’s main loop initializes the hardware and handles touch input; touchscreen commands can program and run a sequence, while Bluetooth UART input can drive the car directly. The README also identifies the Android phone app and the HC-06 link. The app source was not sampled, so its internal behavior is represented only at the documented subsystem level; firmware relationships below are based on excerpts and the source index.
Main entry points: obastacleDetector.c Obstacle Detector · motors.c Motor Driver · Main.c Board Main Loop · bluetoothConnection.c Bluetooth UART
Components 12
Board Firmware
- Board Main Loop
STM-Code/Main.c
Driving Controls
- Touchscreen UI
STM-Code/GUI.c - Programmed Driving
STM-Code/GUI.c - Phone App
Blutooth-Phone-App/app/src/main/java/com/example/bluetoothrccontroller - Bluetooth UART
STM-Code/bluetoothConnection.c
Safety and Feedback
- Obstacle Detector
STM-Code/obastacleDetector.c - Buzzer
STM-Code/obastacleDetector.c
Car Hardware
- Motor Driver
STM-Code/motors.c - RC Car Motors
- HC-06 Module
- Infrared Sensor
Other components
- Driver
Connections 15
- Driver → Touchscreen UI: touches
README.md - Board Main Loop → Touchscreen UI: reads touch
STM-Code/Main.c - Board Main Loop → Bluetooth UART: initializes
STM-Code/Main.c - Board Main Loop → Obstacle Detector: initializes
STM-Code/Main.c - Board Main Loop → Motor Driver: initializes
STM-Code/Main.c - Touchscreen UI → Programmed Driving: handles presses
STM-Code/GUI.c - Programmed Driving → Motor Driver: drives commands
STM-Code/GUI.c - Phone App → HC-06 Module: sends commands
README.md - HC-06 Module → Bluetooth UART: UART input
README.md - Bluetooth UART → Motor Driver: drives commands
STM-Code/bluetoothConnection.c - Obstacle Detector → Motor Driver: stops forward motion
STM-Code/obastacleDetector.c - Obstacle Detector → Bluetooth UART: sends alert
STM-Code/obastacleDetector.c - Obstacle Detector → Buzzer: signals obstacle
STM-Code/obastacleDetector.c - Infrared Sensor → Obstacle Detector: triggers interrupt
README.md - Motor Driver → RC Car Motors: drives
README.md