Mobile phone control spy robot project

Mobile phone control spy robot project

Hey guys, welcome back to Techatronic. So, today we are making a very cool project. which is mobile phone control spy robot. as the name described a spy robot. isn’t it cool? it can help in to observe any place for example if you want to observe the hospital area you can observe with this robot. same as this you can observe any place you want. only you need to sit anywhere near the robot. and control the robot by using the mobile phone. and you can see the video on your mobile phone.

 

spy robotthere is a lot of search for this awesome project. thus, we chose to make the article with all the directions needed to make it possible. how can it respond? it moves as per your directions which we will give you on your cell phone. furthermore, you can utilize this RC vehicle spy robot in numerous applications, for instance, you can utilize this robot in your home to convey food. or on the other hand, we can utilize this robot to observe the activity at ours home. this relies upon you where you can utilize this amazing robot. to figure out how to make a spy robot using Arduino to please peruse the full article step by step.

Spy robot is just a simple Bluetooth control RC car having an inbuilt wifi camera. for the camera, there is an app that you have to install on your mobile phone and this camera will send all the information to the mobile phone.

the camera we are using is given as below you can buy this camera from amazon.

 

the camera is very cheap, the camera comes with an app and 360-degree rotation.

in the Arduino Bluetooth vehicle the information sent by the cell phone to the Bluetooth module hc-05 which is associated with the Arduino and the Arduino takes choices as indicated by the information got through Bluetooth. in the event that you send instructions for left from your cell phone, at that point the Arduino will send the guide to the engine to move the right. in any case, you need to associate the cell phone with your Bluetooth RC vehicle. furthermore, there is an application that controls the spy robot with camera using Bluetooth communication.

Components Required to make spy robot with a camera 

  • Arduino Uno  (click to buy)
  • Bluetooth Module HC-05
  • Jumper Wires
  • Chassis
  • L298N Motor Driver
  • 12V Battery

 Connection Diagram for Bluetooth controlled  spy robot

 

CODE for Bluetooth-controlled spy robot

 // Techatronic.com  
 // Download Library of SoftwareSerial link given  
 // https://github.com/PaulStoffregen/SoftwareSerial  
 #include <SoftwareSerial.h>  
 SoftwareSerial SoftSerial(2,3); // SoftSerial( RX , TX );  
 // 2 pin connect to TX of HC-05 Bluetooth  
 // 3 pin connect to RX of HC-05 Bluetooth  
 void setup()  
 {  
   Serial.begin(9600);   // buart rate  
   SoftSerial.begin(9600);  
   pinMode(4,OUTPUT);  // LED Pin  
   pinMode(5,OUTPUT);  // LED Pin  
   pinMode(6,OUTPUT);  // LED Pin  
   pinMode(7,OUTPUT);  // LED Pin  
   pinMode(9,OUTPUT);  // MOTOR Pin  
   pinMode(10,OUTPUT);  // MOTOR Pin  
   pinMode(11,OUTPUT);  // MOTOR Pin  
   pinMode(12,OUTPUT);  // MOTOR Pin  
 }  
 void loop()  
 {  
  if (SoftSerial.available()>0)  
    {  
       char data = SoftSerial.read();  
       Serial.println(data);  
     if(data=='F')     // FORWARD DIRECTION  
     {  
     digitalWrite(4,HIGH); // LED ON  
     digitalWrite(5,LOW);  // LED OFF  
     digitalWrite(6,LOW);  // LED OFF  
     digitalWrite(7,LOW);  // LED OFF  
     digitalWrite(9,HIGH);  // MOTOR HIGH  
     digitalWrite(10,LOW);  // MOTOR LOW  
     digitalWrite(11,LOW);  // MOTOR LOW  
     digitalWrite(12,HIGH); // MOTOR HIGH  
     }  
     if(data=='L')     // LEFT DIRECTION  
     {  
     digitalWrite(4,LOW);  // LED OFF  
     digitalWrite(5,HIGH); // LED ON  
     digitalWrite(6,LOW);  // LED OFF  
     digitalWrite(7,LOW);  // LED OFF  
     digitalWrite(9,HIGH);  // MOTOR HIGH  
     digitalWrite(10,LOW);  // MOTOR LOW  
     digitalWrite(11,HIGH); // MOTOR HIGH  
     digitalWrite(12,LOW);  // MOTOR LOW  
     }  
     if(data=='R')     // RIGHT DIRECTION  
     {  
     digitalWrite(4,LOW);  // LED OFF  
     digitalWrite(5,LOW);  // LED OFF  
     digitalWrite(6,HIGH); // LED ON  
     digitalWrite(7,LOW);  // LED OFF  
     digitalWrite(9,LOW);  // MOTOR LOW  
     digitalWrite(10,HIGH); // MOTOR HIGH  
     digitalWrite(11,LOW); // MOTOR LOW  
     digitalWrite(12,HIGH); // MOTOR HIGH  
     }  
     if(data=='B')     // BACKWARD DIRECTION  
     {  
     digitalWrite(4,LOW);  // LED OFF  
     digitalWrite(5,LOW);  // LED OFF  
     digitalWrite(6,LOW);  // LED OFF  
     digitalWrite(7,HIGH); // LED ON  
     digitalWrite(9,LOW);  // MOTOR HIGH  
     digitalWrite(10,HIGH); // MOTOR LOW  
     digitalWrite(11,HIGH); // MOTOR LOW  
     digitalWrite(12,LOW); // MOTOR HIGH  
     }  
     if(data=='S')     // STOP DIRECTION  
     {  
     digitalWrite(4,LOW);  // LED OFF  
     digitalWrite(5,LOW);  // LED OFF  
     digitalWrite(6,LOW);  // LED OFF  
     digitalWrite(7,LOW);  // LED OFF  
     digitalWrite(9,LOW);  // MOTOR HIGH  
     digitalWrite(10,LOW); // MOTOR LOW  
     digitalWrite(11,LOW); // MOTOR LOW  
     digitalWrite(12,LOW); // MOTOR HIGH  
     }  
    }  
 }  

upload the given code in Arduino using arduino ide.

download app to control the robot

 

 

 

bluetooth rc car app

 

After download, the app opens the app which is the first one in the image.

 

Click on the Bluetooth and open the Bluetooth setting

 

 

 

 

 

 

bluetooth rc car app
bluetooth rc car app

 

Click on the HC-05 and left it to pair.

 

 

 

Spy Robot with Camera Project

Enter the password 1234

Spy Robot with Camera Project

Now, you have connected.

Spy Robot with Camera Project

Now. Click on the Bluetooth not connected.

Spy Robot with Camera Project

Click on the HC-05 address

Now, you have successfully connected and can use this app.

Learn 10+ basic activity & sensor interfacing with our Arduino ebook. Well explained program. And brief circuit diagram WhatsApp and email support. which will help you to learn basic electronics, Arduino Coding, Sensor interfacing with Arduino, Arduino, and much more. buy Arduino Ebook to learn https://techatronic.com/arduino-ebook/

This Post Has 2 Comments

  1. priyansh

    You can use ESP 32 cam module instead of this bulky camera

    1. shahid saifi

      yes you are right, but this camera has 360 degree rotation

Comments are closed.