Sunteți pe pagina 1din 7

Semester Project Report

Project Title: WIFI Control Car


Instructor: Engr. Fahad Randhawa
Subject Name: Communication & Control Lab
Semester: 5th Semester
Program: B.Sc. Electrical Engineering & Technology

Name of the Student Student ID


M Hamza Iqbal F17-048/8566
M Arish F17-042 /8418
M Usama Aslam F17-055/8614

WIFI CONTROL CAR


Introduction:
A robot is a machine designed to execute one or more tasks repeatedly, with speed and precision. There are as
many different types of robots as there are tasks for them to perform. A robot is a mechanical or virtual
artificial agent, usually an electro-mechanical machine that is guided by a computer program or electronic
circuitry. Robots can be autonomous or semi-autonomous. Robots have replaced human in performing repetitive
and dangerous tasks which humans prefer not to do, or are unable to do because of size limitations, or which
take place in extreme environments such as outer space or the bottom of the sea. If both Wi-Fi technology and
robot are introduced together it will bring a great advantage. Thus we will be able to operate the robot with the
help of Wi-Fi and can make he do whatever we wish to.

Problem Statement:
Now a days due to advancement in technology various newly designed smart homes make use of Wi-Fi enabled
robot for various applications. Mostly they are used for home security purpose. Thus one can keep an eye on the
people coming inside home just by the robot car just by introducing a camera into it.
Various other application are also done by this robot car like doing various works on the command ex-
switching on the lights when the robot is given command by the Wi-Fi enabled device.

Methodology:
The system specification shows the description of the function and the performance of system and the user. The
scope of our project “Based control system” is immense. The future implications of the project are very great
considering the amount of time and resources it saves. The project we have undertaken can be used as a
reference or as a base for realizing a scheme to be implemented in other projects of greater level such as smart
homes, various robot controlled industries etc.

Hardware Tools Required:


 ESP8266
 L298N Motor Driver Module
 Arduino UNO
 Robot Chassis
 4 x 5V Geared Motors
 Connecting Wires
 Power supply (or battery)

Block Diagram:
Circuit Diagram
Coding:
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
#define ESP8266_BAUD 9600
ESP8266 wifi(&Serial);
char auth[] = "281f8675c5cc4c55a4d259ef7518d313";

#include<AFMotor.h>

AF_DCMotor motor1(1, MOTOR12_1KHZ);


AF_DCMotor motor2(2, MOTOR12_1KHZ);
AF_DCMotor motor3(3, MOTOR12_1KHZ);
AF_DCMotor motor4(4, MOTOR12_1KHZ);

void setup()
{
// Set console baud rate
Serial.begin(9600);
delay(10);
Serial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, "PTCL-BB", "F4C0A9AB"); // wifi username and password
}
BLYNK_WRITE(V1)
{
int x = param[0].asInt();
int y = param[1].asInt();
// Do something with x and y

if(y>220)
forward();
else if(y<35)
backward();
else if(x>220)
right();
else if(x<35)
left();
else
Stop();
}
void loop()
{
Blynk.run();
}

void forward()
{
motor1.setSpeed(255);
motor1.run(FORWARD);
motor2.setSpeed(255);
motor2.run(FORWARD);
motor3.setSpeed(255);
motor3.run(FORWARD);
motor4.setSpeed(255);
motor4.run(FORWARD);
}
void backward()
{
motor1.setSpeed(255);
motor1.run(BACKWARD);
motor2.setSpeed(255);
motor2.run(BACKWARD);
motor3.setSpeed(255);
motor3.run(BACKWARD);
motor4.setSpeed(255);
motor4.run(BACKWARD);
}

void left()
{
motor1.setSpeed(255);
motor1.run(FORWARD);
motor2.setSpeed(255);
motor2.run(FORWARD);
motor3.setSpeed(0);
motor3.run(RELEASE);
motor4.setSpeed(0);
motor4.run(RELEASE);

void right()
{
motor1.setSpeed(0);
motor1.run(RELEASE);
motor2.setSpeed(0);
motor2.run(RELEASE);
motor3.setSpeed(255);
motor3.run(FORWARD);
motor4.setSpeed(255);
motor4.run(FORWARD);

void Stop()
{
motor1.setSpeed(0);
motor1.run(RELEASE);
motor2.setSpeed(0);
motor2.run(RELEASE);
motor3.setSpeed(0);
motor3.run(RELEASE);
motor4.setSpeed(0);
motor4.run(RELEASE);
}

Applications:
Robot car controlled by Wi-Fi will make our work much more easier as we can make the robot do any work we
need by just a single movement on our mobile phone on computer. In near future we can see such designs
getting too common and being used extensively for household purposes.

Conclusion:
This has been a brief review of several wireless technology usages that might be used to control mobile robots.
It is important to compare this technology and the bandwidth, frequency, data rate to transfer data among the
devices for better development for mobile robot controller. All we need to do is to focus on how to bring the
different characteristics of all the wireless technologies together in one portable application. Selection of
wireless technologies depends on the type of application to be developed considering the following; range,
frequency and data rate.

S-ar putea să vă placă și