Introduction: Remote Controlled Bluetooth Car

In this instructable, we are going to be making a remote controlled bluetooth car that was laser-cut and whose dimensions are modeled after the Bigtime Muscle 2006 Chevy Camaro Concept

Step 1: Materials

1. Arduino UNO board

2. L298N motor driver IC

3. HC-06 Bluetooth module

4. Small breadboard

5. 2 x Motors with wheels2 x Wheels for front (I found these two from an old toy car- Chevy Camaro)

6. A power supply more than 5V ( I have used a power bank of max current of 1A)jumper wires and Do

7. Laser cutter and Onshore Design

8. Soldering Tool

Step 2: Wiring

Before getting into the mechanisms of wiring, use the picture of onshape attached to follow the dimensions and laser cut the car. Moreover, in starting your remote controlled bluetooth car, assemble the respective birch wood parts to create a wooden car (see the introduction for the car design).

Attached above is a rough outline on the position of the wires. First, connect the Bluetooth module to the breadboard on position A 1234 on the small breadboard. Next attach the jumper wires to the specific spot on the breadboard (green to RXD, yellow to TXD, black to GND, red to VCC).

Moreover, insert 3 double A batteries to the empty socket. Moreover, to connect the remaining wires look at the picture. If you run into problems while connecting, solder the two wires together and it would establish a connection. The finished wiring is attached above



The Code is here:
#include #include int bluetoothTx = 1; int bluetoothRx = 0; SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); int Motor1A = 8; int Motor1B = 9; int Motor2A = 10; int Motor2B = 11; void setup() { bluetooth.begin(115200); bluetooth.print("$$$"); delay(100); bluetooth.println("U,9600,N"); bluetooth.begin(9600); pinMode( Motor1A, OUTPUT ); pinMode( Motor1B, OUTPUT ); pinMode( Motor2A, OUTPUT ); pinMode( Motor2B, OUTPUT ); digitalWrite( Motor1A, LOW ); digitalWrite( Motor1B, LOW ); digitalWrite( Motor2A, LOW ); digitalWrite( Motor2B, LOW ); } int flag1 = -1; int flag2 = -1; void loop() { if(bluetooth.available()) { char toSend = (char)bluetooth.read(); if(toSend == 'S') { flag1 = 0; flag2 = 0; digitalWrite( Motor1A, LOW ); analogWrite( Motor1B, LOW ); digitalWrite( Motor2A, LOW ); analogWrite( Motor2B, LOW ); } if(toSend == 'F' || toSend == 'G' || toSend == 'I') { if(flag1 != 1) { flag1 = 1; digitalWrite( Motor1A, HIGH ); analogWrite( Motor1B, 50 ); } } if(toSend == 'B' || toSend == 'H' || toSend == 'J') { if(flag1 != 2) { flag1 = 2; digitalWrite( Motor1B, HIGH ); analogWrite( Motor1A, 50 ); } } if(toSend == 'L' || toSend == 'G' || toSend == 'H') { if(flag2 != 1) { flag2 = 1; digitalWrite( Motor2B, HIGH ); analogWrite( Motor2A, 50 ); } } else if(toSend == 'R' || toSend == 'I' || toSend == 'J') { if(flag2 != 2) { flag2 = 2; digitalWrite( Motor2A, HIGH ); analogWrite( Motor2B, 50 ); } } else { if(flag2 != 3) { flag2 = 3; digitalWrite( Motor2A, LOW ); analogWrite( Motor2B, LOW ); } } } }

Step 3: Connecting/Application/Uploading of Code to the Arduino

Use the following pictures to give a 3 dimensional overview of the car. In order to control the car via the bluetooth module download Car Bluetooth RC. Look at the app to ensure that you are connected. Once you have done that, you are free to drive your car. Thanks!

Step 4: Final Comments

This was a project created down at Brophy College Preparatory as Freshman; we put a lot of time and effort into it and I hope you like it! Thanks!