Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Final Report: Bachelor of Technology in Electronics and Communication ENGINEERING (2018-2022)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 21

FINAL REPORT

BACHELOR OF TECHNOLOGY
In
ELECTRONICS AND COMMUNICATION
ENGINEERING (2018-2022)

Smart Street Light Using NodeMCU

Submitted by:
Ashish Kumar (01116412818)
Bikash Kumar Sah (70116412818)

Under Guidance of Dr.


M. Bala
Professor, Department of ECE

UNIVERSITY SCHOOL OF INFORMATION & COMMUNICATION


TECHNOLOGY (USICT), GGSIPU
TABLE OF CONTENTS

Chapter No. Topics Page No.

Consent Letter 3
Candidate’s Declaration 4
Acknowledgment 5
Objective 6
Summary 7
Chapter-1 1.1 Introduction 8-9
Chapter-2 2.1 Problem Statement 10
Chapter-3 11-15
1.1.Requirements
1.1.1.Hardware specifications
1.1.2.Software specifications
Chapter-4 16-18
4.1 Circuit Diagram and explanation
Chapter-5 5.1 Flowchart of the Project working 19-20
5.1.1 Explanation
5.2 Flowchart for IoT setup 21-22
5.2.1 Explanation
Chapter-6 6.1 Output of the project 23-24
6.2 Code of the project 25-35
Chapter-7 7.1 What’s new 36
7.2 Advantages of the Project 36
7.2 Application of the Project 37
7.2 Future Scope 37

References 40-41
Consent Letter
Candidate’s Declaration

This is certify that we, Ashish kumar roll number 01116412818 and
Bikash Kumar Sah, roll number 70116412818 of B.Tech ECE 7th sem
from USICT, GGSIPU Delhi take full responsibility for the content of this
report, source code and relevant modules and accountable for the work
done by us.
We hereby declare that the report, source code and the relevant modules
are not plagiarized from any source directly or indirectly. If any
plagiarism found we shall be responsible for the same.
We hereby declare that we will not upload or publish this report in any of
online or offline forums. We hereby declare that the work presented in this
minor project “Smart Streetlight” is submitted for the partial fulfilment
of the Btech ECE degree.

Name:Ashish Kumar Name: Bikash Kumar sah


Roll no. 01116412818 Roll no.70116412818
Btech ECE 7th sem Btech ECE 7th sem
Acknowledge
We express our deep sense of gratitude to Dr. M. Bala,
Professor in Electronics Department for encouraging us to take
this project namely “Smart Street Using NodeMCU”. We are
highly indebted to our project mentor, for his continuous
support, supervision, motivation, and guidance throughout the
tenure of our project and their experience gave us the lightin
handling this project and helped us in clarifying the abstruse
concepts, requiring knowledge and perception, handling
critical situations and in understanding the objective of our
work.

Name:Ashish Kumar Name: Bikash Kumar sah


Roll no. 01116412818 Roll no.70116412818
Btech ECE 7th sem Btech ECE 7th sem
OBJECTIVE

The objective of this IOT Based Smart Light System is to decrease


the unwanted consumption of electricity when not in use and also to
decrease the cost of manpower that is used to turn off/on the lights
manually over a web server using the internet of things platform
Blynk which allows us to remotely control the lights from anywhere
with just a single click.
CHAPTER-1

1.1 INTRODUCTION
The developed cites has adopted the concept to keep the city bright so
that there will be less crimes that’s why they have implemented the
streetlight everywhere along the road but this initiative needs a lot of
manpower to control when the light should be turned on/off. In this
project we are trying to solve this problem by making streetlights smart.
This project is implemented with wifi based board Node MCU
(ESP8266) which controls the street lights based on detection of vehicles
or any other obstacles on the street. Whenever the obstacle is detected on
the street within the specified time the light will get automatically
ON/OFF according to the obstacle detection and the same information
can be accessed through internet. The real time information of the street
light (ON/OFF status) can be accessed from anytime, anywhere on the
real time dashboard.
CHAPTER-2

2.1 PROBLEM STATEMENT

To make the street lights more efficient and reduce the


undesirable consumption of electricity and also reduce the
work force required for turning the lights on/off. It is intended
to make the lights more technically advanced for the proper
utilization of available source.

The ESP8266 Wi-Fi module is a self-contained SOC with an


integrated TCP/IP protocol stack that can give any
microcontroller access to your Wi-Fi network. The ESP8266 is
capable of either hosting an application or offloading all Wi-Fi
networking functions from another application processor. The
ESP8266 module is pre-programmed with an AT command set
firmware. This module has a powerful enough on-board
processing and storage capability that allows it to be integrated
withthe sensors and other application-specific devices through
its GPIOs with minimal development up-front and minimal
loading during runtime. It contains a self- calibrated RF
allowing it to work under all operating conditions and requires
no external RF parts.
CHAPTER-3

3.1 HARDWARE SPECIFICATION

- Components required

 NodeMcu (ESP8266)
 LEDS
 Resistors
 Bread board
 Jumper Wires

- COMPONENTS OVERVIEW

1. NodeMCU

Source: https://components101.com/development-boards/nodemcu-esp8266-pinout-
features-and-datasheet
The ESP8266 is the name of a micro controller designed by Espressif
Systems. The ESP8266 itself is a self-contained WiFi networking solution
offering as a bridge from existing micro controller to WiFi and is also
capable of running self-contained applications.

This module come with a built in USB connector and a rich assortment of
pin-outs. With a micro USB cable, you can connect NodeMCU devkit to
your laptop and flash it without any trouble, just like Arduino. It is also
immediately breadboard friendly.

2. LEDS

Source: https://www.instructables.com/LEDs-for-Beginners/

3. RESISTORS
Source: https://www.theengineeringprojects.com/2018/01/introduction-to-
resistors.html

A resistor (also known as an electrical resistor) is defined as a two-terminal


passive electrical element that provides electrical resistance to current flow.
Resistance is a measure of the opposition to the flow of current in a resistor.
The larger a resistor’s resistance, the greater the barrier against the flow of
current. There are many different types of resistors, such as a thermistor.
In an electrical and electronic circuit, the primary function of a resistor is to
“resist” the flow of electrons, i.e., electric current. That is why it is called a
“resistor”.

4. Breadboard

Source: http://www.cytron.io/p-breadboard-8.5x5.5cm-400-holes
5. Jumper Wires

Source: https://cityos-air.readme.io/docs/6-jumper-cable-wires

3.2 SOFTWARE SPECIFICATION


 ARDUINO IDE SOFTWARE
 BLYNK APP

-ARDUINO IDE

- The open-source Arduino Software (IDE) makes it easy to write code


and upload it to the board. This software can be used with any Arduino
board.
- It is used to write and upload programs to Arduino compatible boards,
but also, with the help of third-party cores, other vendor development
boards.

-BLYNK APP

- Blynk is a simple and powerful no-code application builder where you


can prototype, deploy, and manage connected electronic devices at any
scale - from your personal projects to millions of products used by your
clients.

Source:- https://www.researchgate.net/figure/Hardware-Module-Design-Based-on-
NodeMCU-with-Blynk-application-Meanwhile-for-the-design_fig2_338000653
CHAPTER- 4

4.1 CIRCUIT DIAGRAM

PROPOSED SYSTEM

STREET LIGHT

BLYNK APP ON PHONE

WiFi
ACTUAL SYSTEM
The following are the steps for connection:

1. First connect the circuit properly using the circuit diagram.


2. After the successful connection we have to start the coding
on the nodeMCU.
3. Add the ESP8266WiFi in the arduino IDE.
4. Now to connect the the NodeMCU we have to give our wifi
name as per the code wifi module only connect to our wifi if
username & password is same as it is written.
5. Now we have to login Blynk app with our official email id
and generate the authorisation token and put it into the code.
6. Create the project in BLYNK app and in that create the
on/off button, using that we can switch on/off the street
light.

CHAPTER- 5

5.1 CODE of the PROJECT


1. #define BLYNK_PRINT Serial
2. #include <ESP8266WiFi.h>
3. #include <BlynkSimpleEsp8266.h>

4. char auth[] "G9mNE4lnjI_mWGhz3Dyhd_IgJrnWqEiP"; // the auth code that you got on


your gmail

5. char ssid[] = "ece4"; // username or ssid of your WI-FI


6. char pass[] = "123456789"; // password of your Wi-Fi

7. void setup()
8. {
9. // Debug console
10. Serial.begin(9600);
11. pinMode(D1,OUTPUT); //extend these to D8 if you are using a 8 pin relay
12. pinMode(D2,OUTPUT);
13. pinMode(D7,OUTPUT);
14. pinMode(D8,OUTPUT);
15. digitalWrite(D1,HIGH); // Make it low if you want everything to go off
16. digitalWrite(D2,HIGH); // in case of a power cut
17. digitalWrite(D7,HIGH);
18. digitalWrite(D8,HIGH);
19. Blynk.begin(auth, ssid, pass);
20. }

21. void loop()


22. {
23. Blynk.run();
24. }

5.2 OUTPUT of the PROJECT

When the Street Light is turned ON.


Screenshot of the Blynk app
When street light is off.
Screenshot of the Blynk
CHAPTER-6

6.1 FUTURE SCOPE OF THE PROJECT

We aim in using the available technology and sources to


overcome the huge but neglected problem in our lives. Our Project
will be providing real-time condition of street lights using using
NodeMCU. We aim at making our project compact and easy to
use, compiling it into a permanent portable setup. We will be
using other different sensors to make street lights more technology
friendly. We will be researching in the field that if there is more
traffic flow then the brightness of lights should more and vice
versa.

REFERENCES

[1]"Internet of Things: Science Fiction or Business Fact?" (PDF).


Harvard Business Review. November 2014. Retrieved 3 October
2016.

[2]"Internet of Things Global Standards Initiative". ITU. Retrieved


26 June 2015.

[3]https://www.scribd.com/presentation/429898605/Smart-Street-
Lighting-With-NodeMCU

[4]https://iotdesignpro.com/projects/iot-based-smart-street-light-using-
esp8266-and-thingspeak

You might also like