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:
- 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)
- 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
Step 4: Bluetooth
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.
Download HERE: http://www.mediafire.com/download/4ymjpcpfjt5x6sz/Bluetooth_RC_Code_with_iOS.ino
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!