top of page
Writer's picturenik patel

bluetooth controlled robotic car using arduino UNO & adafruit motor shield

The idea was to make an extremely simple Bluetooth-controlled robot.

It was done with an effort to understand the working of the Bluetooth module (HC-05) and how to use it. It can move forward, backward, left, right and stop by giving letter inputs of 'f', 'b', 'l', 'r' and 's'

respectively.

We can integrate the Arduino with differents shields or modules and build fantastic things. In this project i will show you how use the Bluetooth module to control a robot platform through commands coming from a smartphone.

Note: This model uses Adafruit L293D motor shield. This requires you to download and use

a particular library for the same. You can use a generic motor shield as well but the code will change.




Component Required:

Hardware:

Arduino Uno

Motor Shield L293D Driver

Bluetooth Module

car chassis


Software:

Arduino IDE

Bluetooth Controller app (you can download this app on playstore)




Mount The Hardware

The mounting of the robotic platform is very easy.

  • To connect the electric circuit, you have to fit the shield on the Arduino and then connecting the motors to the shield.

  • After that you have to connect the bluetooth module. The module pins depends on what you are using,

  • but basically it has: VCC (connected to the 5V pin of the Arduino), GND (connected on GND on Arduino),RX (connected to the TX pin of the arduino) and TX (connected to the RX pin of the Arduino).

Software

The code is also uncomplicated.

  • To control the motors, i used the library <AFMotor.h>.

  • The communication between the smartphone and the Bluetooth module was done using the serial communication arduino.

  • The app "Bluetooth RC Controller" send to the bluetooth module the following commands:

(note: here i used Bluetooth RC Controller app.)

Forward -> F

Back -> B

Left -> L

Right -> R

Forward Left -> G

Forward Right -> I

Back Left -> H

Back Right -> J

Stop -> S

Front Lights On -> W

Front Lights Off -> w

Back Lights On -> U

Back Lights Off -> u

Horn On -> V

Horn Off -> v

Extra On -> X

Extra Off -> x

Speed 0 -> 0

Speed 10 -> 1

Speed 20 -> 2

Speed 30 -> 3

.

.

.

Speed 90 -> 9

Speed 100 -> q

Stop All -> D

In this project was used just the basic commands: Forward, Back, Left and Right.


The entire code is available for you to download.






4 views0 comments

Comentarios


Post: Blog2_Post
bottom of page