Introduction: Solar Bluetooth Car With Gripper
In this instructable, I will show you how to create a simple Arduino based Bluetooth Car with gripper mechanism that you can control with your phone. During the build I will explain to you why you should use a Motor Shield and I will also the difference between the HC-05 and the HC-06 Bluetooth Module.
This project is intended to be as easy to build as possible since all the elements and parts are easy to find on eBay, Amazon, Digikey etc.
Please support me by subscribing and voting for me in the contests. It would really encourage me to keep bringing more creative projects. Thanks.
Step 1: Order Your Components!
In this project you will need these components :
- 1x Arduino Mega 2560 (or arduino uno )
- 1x Adafuit motor shield
- 1x HC-05 Bluetooth Module
- 2x Micro Servo (SG90)
- 4x Motors + Gearbox
- 4x Wheels
- 1x 2.2K ohm resistor
- 1x 4.7K ohm resostor
- Jumper Wires
Step 2: Print Your Body!
The body is made with 5mm PVC. I used this material because It's very light, strong enough to support the weight of the components, it's cheap and you can easly find it.
The body is made with a CNC Machine, since i don't have a 3D printer i bended a 90 degree angle on some parts by applying some heat.
Here you can download the DXF files of the body that I created for this project.
Step 3: Motor Shield? Why?
You must know that any power coming through the Arduino pins has likely gone through the on-board voltage regulator on the board. The voltage regulator is not designed to handle large amounts of current. And if your board is being powered through USB, USB isn't designed to provide large amounts of current. Finding another way to power a motor where the current does not flow through the on-board regulator will reduce the amount of heat generated and save board power for any other sensors or controls that might be necessary.
Another advantage of a motor shield is that it make it much easier to interface with component like motors, and it simplifies the wiring and allowing features like motordirectionreversal.
Step 4: The HC-05
Comparing it to the HC-06 module, which can only be set as a Slave, the HC-05 can be set as Master as well which enables making a communication between two separate Arduino Boards. But in this project both of these modules will work, because we only need the Bluetooth module as Slave mode.
The HC-05 Bluetooth Module that I have can be powered from 3.6 to 6 volts, because it comes on breakout board which contains a voltage regulator. So, make sure that your bluetooth module can support the 5V coming from the Arduino.
The logic voltage level of the data pins is 3.3V. So, we need to make a simple voltage divider between the Arduino TX and the Bluetooth module RX using two resistors.
Step 5: Wire Up the Electronics!
Here you can find the schematic that I created for this project.
As you can see, this schematic is very easy:
- The First Servo motor connect to Servo1 on the Motor Shield
- The Second Servo motor connect to Servo2 on the Motor Shield
Rear Left Motor connect to M1 on the Motor Shield
Rear Right Motor connect to M2 on the Motor Shield
Front Left Motor connect to M3 on the Motor Shield
Front Right Motor connect to M4 on the Motor Shield
- Arduino5V connect to VCC on the HC-05
- Arduino RX connect to TX on the HC-05
- Arduino TX connect to RX on the HC-05
- Arduino GND connect to GND on the HC-05
Step 6: Powering the Car
For this project i used my DIY Solar Power Bank to power up the car that i will show you how to make in my next instructable.
Step 7: Upload the Code!
Here you can download the Arduino sketch that I created for this project.
But make sure to download and include this AFMotor library : Adafruit Motor Shield Library
Step 8: Control Your Car !
To control the car with your phone all you need is to download this app : Arduino RC
After you install this app, connect to your module then go to the analog mode and then set your commands
For example for my car I used :
Cross is Forward (F in the code)
Triangle is Backward (B in the code)
Circle is Right (R in the code)
Square is Left (L in the code)
Step 9: Success!
Awesome! You did it! You just created your own Bluetooth car!
If you have any questions about the project, I would be happy to answer them.
If you build this project, I'd love to hear from you! Let me know where I can make the instructions better.