This is the Arduino driver code for my Android class final project. This code handles setting up and driving the motors of the bot, as well as handling the communication between the phone and Arduino through Bluetooth.
This is the meat of the project, the companion phone app can be found here: CS414FinalProject-Android
If you'd like a detailed breakdown of the project, the challenges, and the solutions, checkout the project report: Final Project Report
Most if not all project parts are listed below, so check them out if you're interested and want to take a go at building one!
Thanks for checking out the repo, happy coding!
A list of the parts needed to build this project can be found below. Please, please, please,
take the time to search and watch how to PROPERLY and SAFELY handle, charge and discharge LiPo
/ Lithium Ion
batteries.
Also, you will need some sort of chassis or support platform to mount the wheels and the other parts. Below is a link to a potential chassis, and included is a number of the parts listed below, but the parts below require no - minimal soldering, so more plug and play.
Would also recommend using a hot glue
gun for mounting the motors! If not hot glue then command strips
, but you will probably end up needing to reinforce them quite often for the wheels to not come loose or out of alignment.
- Arduino MEGA R3
- 2 x 11.1V 3S 850mAh 75C LiPo Batteries
- You can get a larger capacity battery if needed (i.e > 850mAh), but make sure to then also buy a compatible
charger
andconnector
plugs - You can also get a higher voltage battery if needed (i.e > 11.1V), but make sure to step down the voltage for the
Arduino
to between 7-12V; as well as for theMotor Driver
between 5-40V- Note: If using TT motors, driving motors with more than 25-30V, you will probably burn out your motors. Check your motors datasheet to see what the max input voltage the motors can take is.
- You can get a larger capacity battery if needed (i.e > 850mAh), but make sure to then also buy a compatible
- LiPo Battery Balance Charger
- If you can spare the extra expense, go with this charger: ISDT Q6 Nano Lipo Battery Charger/Discharger
- XT30 Plug Connectors
- DC-DC Voltage Regulators
- L298N Motor Drivers
- TT DC Gearbox Motors
- HC-06 Bluetooth Module
- Breadboard Jumper Wires
- Lipo Battery Safe Bag
- Lipo Battery Voltage Checker
- Be PREPARED these things are loud when the alarm goes off