Project in progress
‘Rain1’ RC Car with Arduino

‘Rain1’ RC Car with Arduino

I made this RC car with an Arduino Uno, which I control via an HC-05 Bluetooth module. The project is now in its initial state.

  • 1,246 views
  • 0 comments
  • 8 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
266 04
Female/Female Jumper Wires
×4
61pby065esl  sx679  tnr8syww5d
HC-05 Bluetooth Module
×1
Adafruit L293D Adafruit Motor/Stepper/Servo Shield for Arduino High Quality
×1
DC 3V-6V Dual Axis Gear Reducer Motor
×1
98y9917 40
Battery, 3.7 V
×1

Apps and online services

Bluetooth RC Controller

About this project

What’s it all about?

I have been working on this project for a couple of weeks. After learning the basics and doing small projects, I thought that now was the time to take things to the next level. I want to build something meaningful, and practical which is also enjoyable. So I thought why not just start with RC car. I researched the materials, read a lot of articles and watched countless tutorials. My plan was to keep it as simple as possible. So I’ve decided to share this small, unassuming and yet very educative project with you. This project is now in the initial state.

“Rain1” RC car -1

Step 1: Required Parts and Tools

To build a awesome small car, you will need:

  • Arduino UNO
  • 4WD custom made chassis
  • HC05 Bluetooth transceiver module with TTL outputs with Switch4WD custom chassis for robot
  • (4x) DC 3V-6V dual axis gear reducer motor
  • L293D Adafruit Motor/Stepper/Servo Shield for Arduino
  • (2X) 3.7V Li-ion 18650 rechargeable battery (3000 mAh & 2600 mAh)
  • 18650×2 battery case holder
  • 70mm rubber tire wheel
  • Mini switch
  • Female to female jumper wire (I used breadboard because I don’t have it)
  • Wire
  • Male to male jumper wire

Step 2: Connection

I mounted the motor shield on Arduino board and connected Bluetooth module to the Audino or directly to the shield by soldering on it to connect RX to TX, TX to RX, ground to ground, VCC to VCC as shown in the figure and also connect Motors to M1 (left) and M2 (right)

Step 3: Motor Shield

The choice was the L293D Adafruit Motor Shield Because there are 2 connections for 5V ‘hobby’ servos connected to the Arduino’s high-resolution dedicated timer. 4 H-Bridges: L293D chipset provides 0.6A per bridge (1.2A peak) with thermal shutdown protection, internal kickback protection diodes. Can run motors on 4.5VDC to 25VDC. Up to 4 bi-directional DC motors with individual 8-bit speed selection (so, about 0.5% resolution). Up to 2 stepper motors (uni polar or bipolar) with single coil, double coil or interleaved stepping. Pull down resistors keep motors disabled during power-up. Big terminal block connectors to easily hook up wires (18-26AWG) and power. Arduino reset button brought up top. 2-pin terminal block and jumper to connect external power, for separate logic/motor supplies

Step 4: Chassis

This part was super easy. I just found that on my local store. So I thought that would be very easy.

Step 5: Power Supply

Connect the 9 volt battery to the arduino board and you can also connect the 9 volt battery to shield through external power for increasing power supply to your motors. Remove the power jumper shown in the figure.

Step 6: Code

I will upload the code later in git repository. This project is now in the initial state. I have to make it more efficient.

Step 7: Controlling the Car with Bluetooth

From  play store I downloaded  the ‘Arduino Bluetooth RC Car’ apk and installed it. Switch on the car and connect the module using 1234 as the password. Then I clicked on gear shown in the app now “choose connect to car”. The red button blinking in the app will turn into green. Now I am connected to the car and play with it. Before uploading the code I removed the 5v or RX and TX pins from the Arduino which are connected to the Bluetooth module because there would have been problems in uploading the code if not.

Step 8: Youtube Videos

Part 1

Part 2

My Social Channels

Facebook: https://www.facebook.com/auvee12

Instructables: https://www.instructables.com/member/rafath.auvee/?cb=1561557854

Twitter: https://twitter.com/RafathAuvee

Instagram: https://www.instagram.com/rafath_auvee

Linkedin: https://www.linkedin.com/in/auvee/

Published by Rafath

My name is Rafath Bin Zafar Auvee. An enthusiastic, self-taught, motivated programmerI am studying Bachelor of Science & Engineering in Computer Science and Engineering at Bangladesh Army University of Science and Technology. ​For me, computer programming is love, passion, exploration & much more. Basically, I do a lot of self-made Arduino projects and solve problems in online Judge.In this blog, I will write about the work that I have done. View all posts by Rafath.

Code

Rain1.inoC/C++
#include <AFMotor.h>
AF_DCMotor motor1(1); 
AF_DCMotor motor2(2); 
AF_DCMotor motor3(3);
AF_DCMotor motor4(4);
char command; 
void setup() 
{       
  Serial.begin(9600);
}

void loop(){
  if(Serial.available() > 0){ 
    command = Serial.read(); 
    Stop(); 
    switch(command){
    case 'F':  
      forward();
      break;
    case 'B':  
       back();
      break;
    case 'L':  
      left();
      break;
    case 'R':
      right();
      break;
    }
  } 
}

void forward()
{
  motor1.setSpeed(255);
  motor1.run(FORWARD);
  motor2.setSpeed(255);
  motor2.run(FORWARD); 
  motor3.setSpeed(255);
  motor3.run(FORWARD); 
  motor4.setSpeed(255);
  motor4.run(FORWARD); 
}

void back()
{
  motor1.setSpeed(255);
  motor1.run(BACKWARD);
  motor2.setSpeed(255);
  motor2.run(BACKWARD);
  motor3.setSpeed(255); 
  motor3.run(BACKWARD);
  motor4.setSpeed(255);
  motor4.run(BACKWARD);
}

void left()
{
  motor1.setSpeed(255);
  motor1.run(BACKWARD);
  motor2.setSpeed(255); 
  motor2.run(BACKWARD);
  motor3.setSpeed(255); 
  motor3.run(FORWARD); 
  motor4.setSpeed(255); 
  motor4.run(FORWARD);
}

void right()
{
  motor1.setSpeed(255);
  motor1.run(FORWARD);
  motor2.setSpeed(255); 
  motor2.run(FORWARD); 
  motor3.setSpeed(255);
  motor3.run(BACKWARD); 
  motor4.setSpeed(255); 
  motor4.run(BACKWARD); 
} 

void Stop()
{
  motor1.setSpeed(0);
  motor1.run(RELEASE);
  motor2.setSpeed(0); 
  motor2.run(RELEASE); 
  motor3.setSpeed(0); 
  motor3.run(RELEASE);
  motor4.setSpeed(0); 
  motor4.run(RELEASE); 
}

Schematics

Diagram
Bluetooth car circuit2 rrspd8k4no

Comments

Similar projects you might like

Turn your RC Car to Bluetooth RC car

Project tutorial by Prajjwal Nag

  • 16,268 views
  • 2 comments
  • 20 respects

High Speed Arduino RC car

by Muhammad Aqib

  • 4,239 views
  • 4 comments
  • 14 respects

Arduino 4WD RC Car

Project tutorial by Andriy Baranov

  • 22,729 views
  • 7 comments
  • 63 respects

Android Arduino RC Car

Project tutorial by RAFI RASHEED T C

  • 19,849 views
  • 3 comments
  • 41 respects

Bluetooth Control RC Car

Project tutorial by electronicprojects

  • 1,659 views
  • 2 comments
  • 11 respects

RC Car Over Spektrum Remote

Project showcase by Gkid19

  • 1,484 views
  • 0 comments
  • 1 respect
Add projectSign up / Login