Bluetooth Controlled Bot for Robo Soccer

Hello, This is a detailed instruction to build a Bluetooth controlled bot for Robo soccer. It is controlled by Bluetooth via a application in your device(android or ios). Mobile phone is used to connect to bluetooth module connected to the car and then it send signals to the arduino which send signals to motor driver module which give power to motors to move.

It is super easy and very nice to play with,so you should definitely try it.

Supplies:

1 Motor driver L298n

4 DC motors ans 4 wheels

1 chassis

1 arduino

wires

2 power sources(12v and 9v)

1 bluetooth module HC-05

2 cardboard pieces

tape and Glue

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Make a Rough Diagram

I always draw a rough prototype of the bot that I'm going to make as it always tells how to proceed and what will be the next step that I have to take. Here I've used Autodesk's tinkercad for this model and it makes it very easy to build.

Step 2: Make Connections

First, connect the 4 motors with chassis and make series connection for each side of motors, as both motors of a side will move in same direction always.

Then connect those motor wires with the motor driver and make it's connections with arduino.

All the connections pin are given in the code so, please see that for the pin numbers.

Next connect the bluetooth module with the arduino and make all the vcc and ground connections.

Remember to make a common ground of both batteries, modules and arduino.

Step 3: Code

char terminalread;

void setup()

{ // put your setup code here, to run once:

pinMode(4,OUTPUT);

pinMode(5,OUTPUT);

pinMode(6,OUTPUT);

pinMode(7,OUTPUT);

Serial.begin(38400); }

void loop()

{ // put your main code here, to run repeatedly:

if(Serial.available()>0)

{ terminalread=Serial.read();

delay(10);

if(terminalread=='F');//forward

{ digitalWrite(4,HIGH);

digitalWrite(5,LOW);

digitalWrite(6,HIGH);

digitalWrite(7,LOW); }

if(terminalread=='B');//backward

{ digitalWrite(4,LOW);

digitalWrite(5,HIGH);

digitalWrite(6,LOW);

digitalWrite(7,HIGH);; }

if(terminalread=='R');//right

{ digitalWrite(4,LOW);

digitalWrite(5,HIGH);

digitalWrite(6,HIGH);

digitalWrite(7,LOW); }

if(terminalread=='L');//left

{ digitalWrite(4,HIGH);

digitalWrite(5,LOW);

digitalWrite(6,LOW);

digitalWrite(7,HIGH); } }

else //do nothing

{ digitalWrite(4,LOW);

digitalWrite(5,LOW);

digitalWrite(6,LOW);

digitalWrite(7,LOW); }

delay(200); }

Step 4: Mobile Application

Now Download any mobile for "Arduino Bluetooth Controller", and change the code setting in it for word that it send to module to that given in code.

Upload the code to arduino.

Connect bluetooth and write password. It is usually 0000 or 1234. Now connect the bot with bluetooth.

Step 5: Test It and Play

Now test it, do some changes if needed.

At last, al you have to do is to connect the cardboard plates to the bot front and now you'r bot is ready to play soccer.

Make it Move

Participated in the
Make it Move

Be the First to Share

    Recommendations

    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • STEM Contest

      STEM Contest

    Discussions