A wireless robotic vehicle controlled via Bluetooth using HC-05 module and TM4C123GXL microcontroller. Supports multiple operation modes including free navigation and predefined geometric patterns.
- Dual Operation Modes:
- Free Ride Mode: Manual control via smartphone (2m range)
- Custom Shapes Mode: Autonomous execution of geometric patterns
- Bluetooth Configuration: AT command setup for HC-05 module
- Motor Control: PWM-driven DRV8838 motor driver for precise movement
- Expandable Architecture: Optional IR/ultrasonic sensors for obstacle avoidance
Component | Specification |
---|---|
Microcontroller | TM4C123GXL |
Bluetooth Module | HC-05 |
Motor Driver | DRV8838 |
DC Motors | 4x (Differential Drive) |
Power Source | 6x AA batteries |
// Example AT commands from setupbluetooth.c
void configureBluetooth() {
sendATCommand("AT+NAME=BluetoothCar");
sendATCommand("AT+PSWD=1234");
sendATCommand("AT+UART=9600,0,0");
}
Required Tools:
- USB-TTL converter for AT command configuration
- Terminal software (Putty/CoolTerm)
Pattern | Command | Parameters |
---|---|---|
Circle | C | Radius (10-50cm) |
Square | S | Side length |
Figure 8 | 8 | Scale factor |
Zig-Zag | Z | Amplitude |
Movement Commands:
F
: ForwardB
: BackwardL
: Left turnR
: Right turnS
: Emergency stop
main.c
├── bluetooth_handler.c
├── motor_control.c
├── pattern_generator.c
└── setupbluetooth.c
- Flash
setupbluetooth.c
to configure HC-05 module - Upload main firmware to TM4C123GXL
- Pair with Android device using PIN 1234
- Use terminal app or custom Android controller
- Battery Monitoring: Integrated voltage sensing
- LED Status Indicators: System state visualization