A low-cost, easy-to-assemble differential drive robot, specifically designed for students. This platform provides hands-on experience with fundamental mechatronic components, robot construction, and introductory programming for mechatronics applications.
🔗 Quick Links:
- 🎮 Web Simulator - Test your code without hardware
- 🧭 Flowchart tool - Plan your program as a flowchart
All components can be purchased from AliExpress and the chassis manufactured using a 3D Printer and Laser cutter.
- Laser cut chassis using (3mm Ply)
- 3D Printed components
- Ultrasonic Sensor
- RP2040 Uno Development Board
- Omni Wheel
- L298NH Motor Shield
- 4x Dupont Cables
- 2x TT Tyre
- 2x TT DC plastic geared motor
- 5x2.1 Barrel Jack
- 6x AA Battery Holder with Switch
- 6x AA Batteries
Note
TempeHS Senior Software Engineering students have already completed these steps.
Detailed assembly instructions including hardware testing can be found in the Assembly_Instructions.md
Build MicroPython firmware with your custom AIDriver libraries integrated. The build system creates firmware with libraries frozen for fast loading and main.py on the filesystem for IDE editing.
🚀 Quick Build (Recommended):
cd /workspaces/AIDriver_MicroPython_Challanges/.devcontainer
./build_firmware.sh�️ Recovery Mode: If main.py becomes corrupted, connect GPIO pin 4 to ground during boot to restore the original code. This deletes every other file on the robot.
📖 Complete Documentation: Build_Custom_MicroPython_Firmware.md - Comprehensive build guide with recovery features
- Turn on richer console output by setting
aidriver.DEBUG_AIDRIVER = Truein yourmain.py. The library prints sensor sanity checks, motor actions, and student-friendly error hints without changing behaviour. - Every run writes
event_log.txtnext tomain.py, and the previous run is kept inevent_log_prev.txt. It records high-level actions (drive/rotate/brake/hold) with human-readable speed bands and notes when speeds are too low to move or will arc left/right. - To protect the robot's flash storage, repeated actions (for example
drive_forward+hold_state(0.1)insidewhile True) are written once and then summarised as... last 2 events repeated 42 more times – latest distance reading: 693 mm. Distance readings are logged at most once a second (or when they change by 100 mm or more), and each log file stops at 32 KB with aLOG FULLline. - When
main.pyends for any reason (finished, crashed or stopped), the firmware brakes the motors so the robot never drives off on its own. - In recovery mode (GPIO4 held low during boot), every file and folder on the robot is deleted except
main.pyand the two event logs;main.pyis restored and both logs are cleared, so students start from a clean slate. The built-in (frozen) libraries are not affected.
Once students have assembled their robot they are to complete the programming challenges to build their skills in programming mechatronics before designing a vehicle automation project.
🎮 Web Simulator: Test your code before uploading to the robot using the AIDriver Simulator - no hardware required!
- Challenge 1 - Drive in a straight line
- Challenge 2 - Drive in a large circle
- Challenge 3 - Autonomous collision prevention
- Challenge 4 - Drive in a square
- Challenge 5 - Autonomous obstacle avoidance
- Challenge 6 - Autonomous maze navigation
- Challenge 7 - Remote control
AIDriver_MicroPython_Challanges by Ben Jones is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International



