|
arduino IDEArduino
|
Smart Street Light
Smart Street Light spotlights different restrictions and difficulties identified with traditional and old street lights that are confronted nowadays and the answer for the deal with those issues by embracing the vision of a bright street light. Smart street lights are vitality effective as well as extremely dependable. The primary thought in the present field advances is computerization, power utilization, and expense adequacy. Automation is implied for the decrease of labor as the human has gotten to be excessively occupied and even incapable, making it impossible to discover time to switch the lights. Two sensors viz. The light-dependent resistor (LDR) and GAS SENSOR MQ135 sense the brightness in the surrounding environment and automatically control the intensity of street lights accordingly and detects the presence and concentration of various hazardous gases and vapors such as toxic or explosive gases, and volatile organic compounds. Here I have utilized an Arduino Uno to control all the commands from LDR and gas Sensor and execute them legitimately. Fundamentally it acts as the mind of the entire framework.
PROBLEM STATEMENT
Disadvantages of Classical Street Light
- Street lights remain on when there is a visible spectrum of light.
- These street lights need a manual switching operation.
- lt also needs manpower.
- These street lights are unnecessarily glowing with their full intensity in the absence of any activities in the street.
- High power consumption and waste of energy.
- Less reliable. Manual hectic operation due to change in season and climate.
To face the various problem mentioned above in the conventional lighting system we need a lighting system that is well equipped with recent inventions and technology. As it is well known to everyone is that the natural sources to generate power is limited and we are wasting so much energy meaninglessly. So if we can use automation in this particular case so that all the street lights can be switched on and off automatically when it is really necessary. And if we can use controller circuits to implement a model so that all the street lights can only glow with their maximum intensity when there is an activity in its region otherwise it should glow at a minimum given intensity. So that we can save a huge amount of power. With the inventions of light-emitting diodes which have a small amount of power consumption and high efficiency, we should use light-emitting diodes instead of all classical fuse bulbs.
Day to day, the level of Air pollution is increasing rapidly due to increased industries, factories, and vehicle use which affect human health. So here we have additionally designed a device/system which can measure air quality around it and monitor air pollution levels. According to a WHO report, each year 2.4 million people lose their life because of breathing disorders that originate from air pollution. Polluted air might affect the human heart, lungs, eye, nose, throat, and skin, leading to disorders such as breathing trouble, lung cancer, bronchitis, and pneumonia.
Block Diagram
MATERIALS AND METHODS
- ARDUINO UNO
- WIFI MODULE (ESP8266)
- LED PANEL
- LDR
- GAS SENSOR (MQ135)
- RESISTORS (10Ω)
- MOSFET (IRFZ44)
- BATTERY(9V)
- THINGSPEAK
- ARDUINO IDE
Step 1 : Follow Circuit And Construct
Flowchart
Software Used Code for
- Arduino IDE
- Cloud Services
- ThinkSpeak
Code for Arduino UNO to sensors
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5, 6);
int aqValue;
const int analogInPin = A0;
const int analogOutPin = 9;
int sensorValue = 0;
int outputValue = 0;
int count=0;
void setup()
{
mySerial.begin(115200);
Serial.begin(115200);
}
void loop()
{
sensorValue = analogRead(analogInPin);
outputValue = map(sensorValue,10,200,0,255);
outputValue= constrain(outputValue ,0,255);
outputValue=abs(outputValue-255);
analogWrite(analogOutPin, outputValue);
Serial.print(”sensor = ”);
Serial.print(sensorValue);
Serial.print(”output = ”);
Serial.println(outputValue);
delay(20);
count++;
Serial.println(count);
if(count>1800) {
26
airpo();
}
}
void airpo(){
aqValue = analogRead(A3);
Serial.println(aqValue);
mySerial.println(aqValue);
count=0;
delay(2000);
}
Code for ESP8266 to connect to Thingspeak
#include ”ThingSpeak.h”
#include <WiFi.h>
char networkname[] = ”anoop”; // network name
char passcode[] = ”123412345”; // passcode
WiFiClient client;
unsigned long tsChannelID =1810300; // ThingSpeak Channel ID
const char * tsWriteAPIKey = ”O02RUCQC8R2ATVMM”; String airQuaility = ””;
const int fieldOne = 1;
void setup()
{
Serial.begin(115200);
WiFi.mode(WIFI STA);//client
ThingSpeak.begin(client);
thingSpeak();
}
void loop()
{
thingSpeak();
if (Serial.available() > 0)
27
{
while (Serial.available() > 0)
{
int inChar = Serial.read();
airQuaility += (char)inChar;
}
}
pushData();
}
void thingSpeak()
{
if (WiFi.status() != WL CONNECTED)
{
while (WiFi.status() != WL CONNECTED)
{
WiFi.begin(networkname, passcode);
delay(5000);
}
}
}
void pushData()
{
int getData = ThingSpeak.writeField(tsChannelID, fieldOne, airQuaility, tsWriteAPIKey);
if (getData != 200)
{
delay(15000);
pushData();
}
airQuaility = ””;
}
Working:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5, 6);
int aqValue;
const int analogInPin = A0;
const int analogOutPin = 9;
int sensorValue = 0;
int outputValue = 0;
int count=0;
void setup()
{
mySerial.begin(115200);
Serial.begin(115200);
}
void loop()
{
sensorValue = analogRead(analogInPin);
outputValue = map(sensorValue,10,200,0,255);
outputValue= constrain(outputValue ,0,255);
outputValue=abs(outputValue-255);
analogWrite(analogOutPin, outputValue);
Serial.print(”sensor = ”);
Serial.print(sensorValue);
Serial.print(”output = ”);
Serial.println(outputValue);
delay(20);
count++;
Serial.println(count);
if(count>1800) {
26
airpo();
}
}
void airpo(){
aqValue = analogRead(A3);
Serial.println(aqValue);
mySerial.println(aqValue);
count=0;
delay(2000);
}
#include ”ThingSpeak.h”
#include <WiFi.h>
char networkname[] = ”anoop”; // network name
char passcode[] = ”123412345”; // passcode
WiFiClient client;
unsigned long tsChannelID =1810300; // ThingSpeak Channel ID
const char * tsWriteAPIKey = ”O02RUCQC8R2ATVMM”; String airQuaility = ””;
const int fieldOne = 1;
void setup()
{
Serial.begin(115200);
WiFi.mode(WIFI STA);//client
ThingSpeak.begin(client);
thingSpeak();
}
void loop()
{
thingSpeak();
if (Serial.available() > 0)
27
{
while (Serial.available() > 0)
{
int inChar = Serial.read();
airQuaility += (char)inChar;
}
}
pushData();
}
void thingSpeak()
{
if (WiFi.status() != WL CONNECTED)
{
while (WiFi.status() != WL CONNECTED)
{
WiFi.begin(networkname, passcode);
delay(5000);
}
}
}
void pushData()
{
int getData = ThingSpeak.writeField(tsChannelID, fieldOne, airQuaility, tsWriteAPIKey);
if (getData != 200)
{
delay(15000);
pushData();
}
airQuaility = ””;
}
Smart Street Light
- Comments(0)
- Likes(1)
- Engineer Aug 02,2023
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by mohdazhar
- Automatic Bus Stop Announcement System When we travel by bus ,the route of the bus is unknown to a new passenger. It mostly affects the ill...
- Earthquake Alert System Based On IOT Many countries have implemented EEW(early earthquake warning) systems to save human lives. The earth...
- Smart Street Light Smart Street Light spotlights different restrictions and difficulties identified with traditional an...
- Line Break Detector With Alert System Line Break Detector With Alert System is a mechanism which helps the consumer and KSEB officers to d...
- Smart Railway Gate Opening System Using IOT The railway crossing accidents are increasing day by day due to human-manned railway crossings. Live...
- Advanced Biometric Finger Print Scanner We took the case of our hostel mess and concluded that there is no proper way to manage the hostel m...
- Baby Monitoring System We are very well familiar with the hurdles faced by Parents to nurture their infant and especially i...
- TOKEN MACHINE AND QUEUE MANAGEMENT SYSTEM FOR HOSPITALS ABSTRACTPatient wait times have a strong influence on patient satisfaction levels. A common scenario...
- Make your own branded ESP32 development board with PCBWay! What about making your own custom PCB boards with your own branding? Doesn't that sound nice? PCB ma...
- FOODIE BOT Automation has become an integral part of today's modern life. We are increasingly noticing that mor...
- A ESP32 BASED BLUETOOTH MINI ROBOT A simple mini robot that you can control with your phone. The robot can be improvised and implemente...
- IOT smart AC plug A smart plug is a home automation device and is a hot new thing. Several types of smart plugs are av...
- "A perfectly working line follower robot using arduino" LINE FOLLOWER ROBOT - THE EASIEST!This is a simple tutorial to make a line follower robot using Ardu...
- IOT PLANT - GROW YOUR PLANTS FROM ANYWHERE AROUND THE WORLD. Watch the video The device and plant setupWhat about growing any plants from anywhere around the wor...
- HOW TO PROGRAM ESP8266 - 01 In this tutorial, I am going to show how to program ESP8266 - 01 using an Arduino board or using FTD...
- Make Your First Arduino Robot - the Best Tutorial Out There Smartphone-controlled obstacle avoiding and wall follower robot.Are you a beginner in Arduino and ha...
- THE ULTIMATE OFFROAD RC ROVER Let's make an all-terrain remote-controlled rover bot. This is a great starter project for hobbyists...
- MAKE A 3.3 VOLT REGULATOR FOR ESP8266 The 3.3-volt power supply is one of the main issues when we use ESP8266 - 01 as a standalone board. ...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
125 0 0 -
DIY Laser Power Meter with Arduino
173 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
164 0 2 -