Introduction: How to Build a RC Bluetooth Arduino Car
This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com)
This is an outline of how to build a remote controlled car that works through your phone's bluetooth. This project was created in the spring 2015 semester.
Step 1: Gather Your Components
These are the materials that I personally used. You can pick other brands and places to buy them from at your own discretion.
1/8 Drill Bit
1 Android Device
Step 2: Print 3D Printed Parts
These are picture previews of the 3D components that will be printed out, as well as a picture of all the components put together. The stl files to print the parts can also be found below. You will need to print out 2 wheels, 1 lid and 1 enclosure.
Step 3: Assembly
Follow steps 4 - 8.
Solder the wires to each motors, as shown above, to attach to the battery pack. Set it aside. Be careful to not complete the circuit by letting the battery pack wires touch each other.
I have already pre-drilled the holes, so follow the arrows for each instruction.
Drill holes through the enclosure to attach the wheels. Use the base of the support wheel and the metal side bar (support for RC motor) as the guides by putting it up to the enclosure and mark it with a metallic permanent marker (or anything that would show up on the plastic. Metallic permanent marker just happened to worked well for my black colored box.)
Now drill one hole anywhere through the enclosure. We will
be wiring the motors through this hole, so keep in mind to drill through wherever you think will be the most convenient for the wiring and the placement of the rest of the electronic components. I drilled mine almost at the center area of the box.
Screw in the wheels and run the motor wires through the hole.
I attached some Velcro under the rest of my electronic components. Cut the Velcro down to fit the area if needed. Do not let the Velcro touch the soldered parts under each board.
Follow the following diagram for the wiring or the outline below:
The wires go as following:
Breadboard to Arduino Uno:
VCC to 5V
GND to GND (with the GND on the breadboard being grounded and connected to the 2 of the 1k Ohm resistors)
TXD to RX
RXD to TX (with the RXD on the breadboard being connected to 3 of the 1 k Ohms resistors. One of the resistors is grounded.)
Arduino Uno to Motor Controller:
Pin 2 to 5V (next to the ENA)
Pin 3 to ENA
Pin 4 to 5V (next to the ENB)
Pin 5 to ENB
Breadboard to Motor Controller:
Ground to Ground (listed as GND)
DC Motors to Motor Controller:
Left wheel: Positive to OUT C, Negative to OUT D
Right wheel: Positive to OUT A, Negative to OUT B
Battery Pack to Motor Controller:
Positive to VCC
Negative to GND
Note: It might be easier to wire each component on its own first. Put them all in place, then connect them all together.
Step 9: After the Assembly and Wiring
It should look something like this depending on your motor bridge controller layout.
The rubber bands are placed on the wheels to provide better traction.
Step 10: Code for Arduino
The most important part of this project is the arduino code. Without this code this device would not be able to function. In the video above you will find a description of the code that is used and the .ino file below contains the code with comments for each command.
BluetoothRC will need to be downloaded from the google playstore from the link provided in Step 1. As described in the code it is important to remember the pre-assigned numerical values for each command. These numerical values can be changed to any value desired in the code. The combination of these variables is what allows the movement forward and reverse.
Upload the code to the arduino through the Arduino software.
Step 11: Get Started With the Car
Make sure everything is assembled correctly and working properly.
Experiment with the android application to get used to the distinct commands.
Nolan Cash made it!