Professional Documents
Culture Documents
A PROJECT REPORT
Submitted by
of
BACHELOR OF ENGINEERING
in
December 2011
1
Birla Vishwakarma Mahavidyalaya (BVM)
Electronics Department
2011
CERTIFICATE
Date:
This is to certify that Mr. DHRUV GOR_ID No. 20EL100, KARAN MEHTA ID No
20EL098 and ADITYA DAVE_ID No. 20EL099 of B.Tech. (Electronics Engineering)
SEM-IV has satisfactorily completed the term work of the subject Mini Project (2EL31)
prescribed by BVM an Autonomous Institution during the Academic Year 2022-2023.
Then, the gear motors rotate according to those values. The L298 Motor
driver board is used for this. Also, the speed of these motors can be
controlled by the slider created in the Blynk app.
OBJECTIVES
1. Introduction
2. Components Required
4. Circuit Diagram
5. Component Description
7. Advantages
8. Disadvantages
9. Application
11. References
INTRODUCTION
ESP8266 Car Control using Android App and WiFi and this is a very
interesting project, in which we will see how to make a robot car
controlled by a Smartphone. This Robot car can pair up with any
smartphone that will be used as a transmitter or few call it remote.
This Car is equipped with 4 gear motors that provide this mini beast the
required torque.
1. Nodemcu ESP8266
2. Lithium-ion/ DC 9V batteries
3. Battery case
5. BO motors(4 pieces)
7. Jumper wires
Place BO motors on the corners of wooden board and couple them with gel
type super glue, I would recommend using this as it does not leave any
sticky mess between the surfaces.
I do not recommend using hot glue as it weakens the plastic body and the
adhesive strength is not too high.
The logic here is very simple 2 motors run on same connections as we are
making an 4WD car.
If you are not sure of exact terminals as in most of the cases motors + and
– are not given because they matter only in the direction of rotation you
can change them accordingly.
You can attach a wheel and connect battery so that you can mark the
directions before soldering the wires.
Once the circuit is complete we can add wheels to the motor shaft.
Now, Open the blynk app , let’s set up these buttons. First, click the up
button and enter the button name as you like. After, change the PIN value
to “virtual V0”. Change the edge type to “PILL” mode.
Second, click the down button and enter the button name as you like.
After, change the PIN value to “virtual V7”. Change the edge type to
“PILL” mode.
Third, click the left button and enter the button name as you like. After,
change the PIN value to “virtual V8”. Change the edge type to “PILL”
mode.
Last, click the right button and enter the button name as you like. After,
change the PIN value to “virtual V9”. Change the edge type to “PILL”
mode
CIRCUIT DIAGRAM
COMPONENTS DESCRIPTION
L298N motor driver is necessary to drive any motors via external power
supply.
It has 4 pins for signal input from the board that gives directions for motor.
Add jumper wires between Motor driver and breadboard, Just follow this
Circuit connection.
D1 ->Input 1
D2 ->Input 2
D3 -> Input 3
D4 ->Input 4
This completes circuit, Don’t power this until you add some codes.
Nodemcu ESP8266
#define IN1 D1
#define IN2 D2
#define IN3 D3
#define IN4 D4
// Go to the Project Settings (nut icon).
char auth[] = "t8gFgu9bJIoSJbeepIbItnksb9gUmQeW";
void setup()
{
Serial.begin(115200);
void loop()
{
// waits 15ms for the servo to reach the position
Blynk.run();
}
//Robot starts
BLYNK_WRITE(V7)
{
int pinValue7 = param.asInt(); // assigning incoming value from pin V1 to
a variable
Serial.println(pinValue7);
if(pinValue7==HIGH)
{
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
Serial.println("Forward");
}
else
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,LOW);
digitalWrite(IN3,LOW);
digitalWrite(IN4,LOW);
Serial.println("Stop");
}
}
BLYNK_WRITE(V8)
{
int pinValue8 = param.asInt(); // assigning incoming value from pin V2 to
a variable
Serial.println(pinValue8);
if(pinValue8==HIGH)
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
Serial.println("Backward");
}
else
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,LOW);
digitalWrite(IN3,LOW);
digitalWrite(IN4,LOW);
Serial.println("Stop");
}
}
BLYNK_WRITE(V9)
{
int pinValue9 = param.asInt(); // assigning incoming value from pin V3 to
a variable
Serial.println(pinValue9);
if(pinValue9==HIGH)
{
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
Serial.println("Right");
}
else
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,LOW);
digitalWrite(IN3,LOW);
digitalWrite(IN4,LOW);
Serial.println("Stop");
}
}
BLYNK_WRITE(V0)
{
int pinValue0 = param.asInt(); // assigning incoming value from pin V4 to
a variable
Serial.println(pinValue0);
if(pinValue0==HIGH)
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
Serial.println("Left");
}
else
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,LOW);
digitalWrite(IN3,LOW);
digitalWrite(IN4,LOW);
Serial.println("Stop");
}
}
ADVANTAGES
DISADVANTAGES
As it is Wifi connected so it needs a faster and more stable connection for
running a car
It consumes high battery so it drain very fast.
APPLICATIONS
CONCLUSION
REFERENCES
https://www.ijsr.net
https://srituhobby.com/how-to-make-a-wifi-controlled-car-using-
nodemcu-and-blynk-app-step-by-step-instructions