Introduction: Bluetooth IOS DIY RC Car
Hello everybody, today I will show you how I made a RC Car, that you can control via iOS. I know how hard it is to hook up a Bluetooth module to the iOS, so today I will show you how I did mine, and its actually quite simple.
Step 1: Parts List:
To get started, we will need to get an assortment of parts, mostly ranging to a total of $10-$20
- Wires (For connection from arduino to motor driver)
- Arduino (I used an uno, but I'm sure other types will work)
- 6 AA battery pack or 1 9V battery pack
- 1 L298n motor driver
- 4 tires
- 4 DC Motors
- Chassis of your choice (Recommend acrylic)
- 1 HM-10 Bluetooth Module
Step 2: Connections (Arduino to Motor Driver)
We will start off with the connections, and get difficult part out of the way. On the arduino, there are pins called "DIGITAL PINS", we will use these to connect from the arduino to the motor driver. To start off, I recommend getting 6 different colored wires to connect. Once the wires are obtained, connect as follows.
- Digital Pin 11 on arduino goes to IND on motor driver
- Digital Pin 10 on arduino goes to INC on motor driver
- Digital Pin 9 on arduino goes to ENA on motor driver
- Digital Pin 8 on arduino goes to ENB on motor driver
- Digital Pin 6 on arduino goes to INB on motor driver
- Digital Pin 5 on arduino goes to INA on motor driver
For the power connections from the arduino to the motor driver
- Vin on arduino goes to VCC on motor driver
- GND on arduino goes to GND on motor driver
Step 3: Wheels and Motors
For the wheels and motors, I essentially made my own design for the chassis and cut it on acrylic to have perfect spots for the motors. But if you do not have access to that, I would personally just make a motor holder type of thing for the wheels. The wheels are classic RC wheels, with a slot to put in where the motors would run. Once the motors are hooked up to the bottom of the chassis in your preferable choice, just simply slide the wheels on the ends. Once everything is set up, insert the wires from the end of the motors into the motor slots on the motor driver. It may take some fiddling around and switching the wires around, but you will know when they are in correctly.
Step 4: Bluetooth
The Bluetooth is actually quite simple to connect. There will be 5 pins on the end of the Bluetooth module, the STATE and EN pin will not be essential for what we are doing. Simply again, get 4 wires, suggested different colors, and plug them into the RX, TX, GND, and VCC pins on the module.
Once the wires are on:
- Place the RX wire on the module into the TX slot on the arduino
- Place the TX wire on the module into the RX slot on the arduino
- Place the VCC wire on the module into the 5V slot on the arduino
- Place the GND wire on the module into one of the GND slots on the arduino
Step 5: Code
The code is quite simple, but again quite complex. There are many things you may change on the code to make it go faster or to change the output letters for the serial, but here is a good place to start out.
Once downloaded, upload your code to the arduino.
Step 6: App
The app I used is a free app on iOS called BLE Joystick. The app works wonderfully with the code provided. Once on the app, just connect via Bluetooth on the top right of the screen.
Step 7: Finish
To start up your car, just plug in the battery pack into your arduino. Keep all of your components on the top of your chassis via your choice.
Thank you for following my instructable, I hope you enjoy!
1 Person Made This Project!
- lmikonos made it!