Project tutorial
LulaBot: Arduino Rolling Robot!

LulaBot: Arduino Rolling Robot! © MIT

A two-wheeled, Arduino-based robot that rolls around.

  • 11 views
  • 0 comments
  • 1 respect

Components and supplies

Necessary tools and machines

Hy gluegun
Hot glue gun (generic)

Apps and online services

About this project

The LulaBot!

Step 1: Parts You'll Need

1. 3.3k and 2.2k resistor

<_e_1jU4><_e_1jU4>Note: The HC05 will survive 5v butit's 3.3v logic voltage devicethat's why I used 3.3k and 2.2k resistors to step down the voltage from 5v to almost 3.3v. Better save to than be sorry right?<_e_1jU4>for body I used a Badminton shuttle box

Step 2: Principle

This robot is wireless controlled. So the android app sends some characters and arduino reads them via the HC05 bluetooth module using Serial communication. Say I sent 'f' then coded the robot if it reads 'f' execute the forward statements. If no command do nothing means stop the robot.

Step 3: Make the Body

Don't know why I couldn't upload pictures to this site. Please watch the video to get to know I I made the body.

To make the body first I cut the box (rolling box). Then I cut some round pieces of card board to place the motor on each side (see picture 2 & 3). Then use sufficient amount of hot glue to secure everything in place. Also cut a place to add batteries and electronics inside. After that install the wheels. Now, you see the wheel just barely touches the ground so add some hot glue to make the wheel larger, looks kind of wheels ice trucks use (see last two pictures). Then paint it as you want, it's your robot baby ;). I used powder spray coat.

Step 4: The Circuit and Electronics

I have made it using L293d motor driver as it is too tiny and was suitable for small robots. But for your convenience I made the same circuit with L298n motor driver module (It's easier to use). Then I soldered everything on a vero board (look at pics).

find the images of circuits below.

Step 5: Uploading the Code & Download App

|| Now Arduino pro mini is cheapest that's why It doesn't come with usb programming option. You can upload code using a usb to TTL module but I like another way. You can use your arduino Uno to upload code to your arduino pro mini.

Steps:

Remove the Atmega IC

Uno 5v -- pro mini vcc

TX -- tx

RX -- rx

reset -- rst

<_e_1jU4><_e_1jU4>Download the code from https://github.com/ashraf-minhaj/LulaBot

or find the code below.

<_e_1jU4>Then Download the app from here.

Step 6: Final Step

Now open the app and then it'll ask to on bluetooth hit ok. Before you can connect ot HC05 you need to pair to that bluletooth module first. Open your bluetooth settings and then click pair (password is already given there).

I used 2 3.7v lithium batteries to make a 7.4v battery. You may use 7 to 9 v batteries.

Now have fun and please pray and subscribe if you have liked the robot.

Thanks a lot for reading.

Code

CodeC/C++
/****LulBot***/

/* Arduino Rolling robot
 *  by Ashraf Minhaj
 *  mail me at ashraf_minhaj@yahoo.com
 *  tutorial- ashrafminhajfb.blogspot.com
 */

//Declare the arduino pins

int lm1 = 10; //declare 1st motor pins
int lm2 = 9;

int rm1 = 8;   //right motor pins
int rm2 = 7;


void setup()
{
  //initlize the mode of the pins
   pinMode(lm1,OUTPUT);
   pinMode(lm2,OUTPUT);
   pinMode(rm1,OUTPUT);
   pinMode(rm2,OUTPUT);

   //set the serial communication rate
  Serial.begin(9600);
}

void loop()
{
  //check whether arduino is reciving signal or not 
  while(Serial.available() == 0);
  char val = Serial.read() ;//reads the signal
  Serial.print(val);

  /*********For Forward motion*********/
  
  if (val == 'F')
  {
    Serial.println("FORWARD");
    digitalWrite(lm1,HIGH);  
    digitalWrite(rm1,HIGH);
    digitalWrite(lm2,LOW);       
    digitalWrite(rm2,LOW);
    
  }

 
    /*********For Backward Motion*********/
  else if(val == 'B')
  {
    Serial.println("BACK");
    digitalWrite(lm2,HIGH);    
    digitalWrite(rm2,HIGH);
    digitalWrite(lm1,LOW);      
    digitalWrite(rm1,LOW);
  
  }
   /*********Right*********/
  else if(val == 'R')
  {
    Serial.println("RIGHT");
    digitalWrite(lm1,HIGH);  
    digitalWrite(rm2,HIGH);
    digitalWrite(lm2,LOW);       
    digitalWrite(rm1,LOW);
  }
   /*********Left*********/
  else if(val == 'L')
  {
    Serial.println("LEFT");
    digitalWrite(lm2,HIGH);  
    digitalWrite(rm1,HIGH);
    digitalWrite(lm1,LOW);       
    digitalWrite(rm2,LOW);
  
  }

  
  /*********STOP*********/
  else
  {
    Serial.println("No data or Invalid!!!");
    digitalWrite(lm1,LOW);  
    digitalWrite(rm1,LOW);
    digitalWrite(lm2,LOW);       
    digitalWrite(rm2,LOW);

  }
  
}

Schematics

Circuit Diagram
Circuitfull l293d hs6gclzjay
circuit with l298n
Circuitfull l298n jk3llbpbpo

Comments

Similar projects you might like

Otto DIY+ Arduino Bluetooth Robot Easy to 3D Print

Project tutorial by Team Otto builders

  • 52,483 views
  • 122 comments
  • 176 respects

Bluetooth-Controlled Arduino Robot

Project showcase by jayesh_nawani

  • 1,646 views
  • 1 comment
  • 8 respects

Two Mode Robot Controlling through Android and Windowsphone8

Project tutorial by Anas Siddiqui

  • 16,932 views
  • 9 comments
  • 52 respects

Smart Face Tracking Robot Car

Project tutorial by Sebastian Hernandez

  • 6,595 views
  • 5 comments
  • 39 respects

4-Wheel Robot Made With Arduino Controlled Using Dabble

Project tutorial by STEMpedia

  • 2,880 views
  • 5 comments
  • 20 respects

CUTSIE WHUN Version 2 - The Ultimate Balancing Robot

Project in progress by Pigeon-Kicker

  • 1,700 views
  • 0 comments
  • 8 respects
Add projectSign up / Login