Skip to main content

Androids Apps controlled Robot with project Demo.

It is the special type of Robot which is controlled via Android phone using special Apps. Here we use Bluetooth for the communication between Robot and the Remote (i.e Mobile).
Robot changes its direction according to the instruction given to it.
Bluetooth is the standard Wireless technology  used for exchange the data  over the short distance.

Android Apps Control Robot




Component Required :-

  1. Bluetooth Module[HC05]
  2. Arduino UNO
  3. Motor Driver
  4. Motors
  5. Wheels 
  6. Robot Chasis
  7. Jumper Wires
Here we use Bluetooth module HC05 for sending the data from Transmitter device.It has 6 Pins but we use only 4 out of 6 pins they are VCC,GND,TX,RX.
Image:- Bluetooth Module HC05
VCC and GND are used for power supply and TX and RX  for transmitting and receiving the data.

Circuit Diagram:-

         Fig :- Bluetooth Controlled Robot Circuit diagram

 Connect the circuit as shown in the figure
Output From The motor driver to 6,7,8,9 pin of Arduino. RXD and TXD pin to the 10,11 pin of Arduino.

Code :-
#include <SoftwareSerial.h>
SoftwareSerial myserial(10,11);
int lm1=6;
int lm2=7;
int rm1=8;
int rm2=9;
void setup()
{
pinMode(lm1,OUTPUT);
pinMode(lm2,OUTPUT);
pinMode(rm1,OUTPUT);
pinMode (rm2,OUTPUT);
Serial.begin(9600);
myserial.begin(9600);
myserial.println("connect A B C or any other");
}
void loop()
{
if (myserial.available())
{
      int val=myserial.read();
      Serial.println(val);

if(val=='A')
 {
      digitalWrite(lm1,HIGH);
      digitalWrite(lm2,LOW);
      digitalWrite(rm1,HIGH);
      digitalWrite(rm2,LOW);
      Serial.println("\n Moving Forward");
 }
 else if(val=='B')
 {
      digitalWrite(lm1,LOW);
      digitalWrite(lm2,HIGH);
      digitalWrite(rm1,LOW);
      digitalWrite(rm2,HIGH);
      Serial.println("\n moving backward");
 }
 else if(val=='C')
 {
      digitalWrite(lm1,HIGH);
      digitalWrite(lm2,LOW);
      digitalWrite(rm1,LOW);
      digitalWrite(rm2,HIGH);
      Serial.println("\n moving left");
 }
 else if(val=='D')
 {
    digitalWrite(lm1,LOW);
    digitalWrite(lm2,HIGH);
    digitalWrite(rm1,HIGH);
    digitalWrite(rm2,LOW);
    Serial.println("\n now moving right");
 }
 else
{
  digitalWrite(lm1,LOW);
  digitalWrite(lm2,LOW);
  digitalWrite(rm1,LOW);
  digitalWrite(rm2,LOW);
  Serial.println(" \n now stop");
}
}
}
For Demo Click here
Feel free to comment about your problem.

Popular posts from this blog

SMPS of computer

                                            fig:- working principle of SMPS       fig :- SMPS of computer From the above figure, we came to know that the function of SMPS in computer which is to convert  the high 220V-AC to 0-12V DC.SMPS contain several color of wires which carry the different voltage to the different parts of the computer.The following table shows the different color cables and its carrying voltage.      

warm clothes distribution program

‘ Small step can make a big difference ’ Rural Women Development Centre from morang,Nepal distributed the warm clothes to the needy people. They manage it possible by collecting fund from working staffs and management committe. Here is the video link of the distribution program. https://youtu.be/AxaHbivcQUM

Multiple mcp23017 interfacing with Arduino

MCP23017 is the I/O port extender that runs on 12C. It is 16-bit I/O expender.in this tutorial we are going to interface the single and multiple  mcp23017 with arduino.  fig:- mcp32017 module IT has 16 I/O ports from PA0 to PA7 and PB0 to PB7. first of all we are going to interface the single mcp23017 with Arduino. For this  connect the circuit as shown on figure. Download the library for mcp23017  from  sketch-- include library -- manage libraries.