Battle Car Project:
This project showcases our team's simple three-wheeled battle car, built for a competitive arena environment. The car features both manual and basic autonomous navigation modes:
Hardware:
- Front-facing PSD sensor
- Side-mounted ultrasonic sensor
- Vive Sensor - 2 mounted on the top most layer
- ESP32S2 microcontroller charged by a portable 5V charger
- Motors powered independently using NiMH batteries
Steering:
Manual: Web-based remote control interface
Autonomous: Rudimentary navigation algorithm (future work will enhance autonomy)
Arena Features:
- LED ring and whisker switch integrated for game rules compliance
- Vive setup available, but sensors proved unreliable near arena edges, so were rarely used
Note: Motors do not include encoders (no PID controller implemented); speed control worked well without it, but feel free to enhance with feedback control if needed
The project was built in the Arduino IDE environment. All the header files have been provided for this project in the folder. Please ensure that all files are in one folder when running the main file.
Instructions:
- Upload main file to Microcontroller.
- Connect to the wifi network you named in webserver.cpp
- Ensure to manually define the IP address you want to use for your remote control. This is also possible in the setupWebServer() function in webserver.cpp. Open your browser and enter this IP address as your URL.
- You should now be able to switch between the manual and autonomous modes. Enjoy playing around with this code now!
