IoT environmental moniotoring
IoT environmental moniotoring
Key Features:
2. **MQ2 Gas Sensor**: The MQ2 sensor detects various gases present in the
environment, including carbon monoxide (CO), methane (CH4), and liquefied
petroleum gas (LPG). It provides real-time measurements of air quality, enabling
early detection of potential pollutants.
6. **Phone-Based Data Monitoring**: Users can access the monitoring system via
a dedicated mobile application, providing a user-friendly interface for viewing
real-time data, historical trends, and receiving alerts. This enhances the
accessibility and convenience of monitoring environmental parameters.
NodeMCU is an open source firmware for which open source prototyping board
designs are available. The name "NodeMCU" combines "node" and "MCU"
(micro-controller unit).[8]. The term "NodeMCU" strictly speaking refers to the
firmware rather than the associated development kits.[citation needed]
Both the firmware and prototyping board designs are open source.[9]
The firmware uses the Lua scripting language. The firmware is based on the eLua
project, and built on the Espressif Non-OS SDK for ESP8266. It uses many open
source projects, such as lua-cjson [10] and SPIFFS.[11] Due to resource constraints,
users need to select the modules relevant for their project and build a firmware
tailored to their needs. Support for the 32-bit ESP32 has also been implemented.
The prototyping hardware typically used is a circuit board functioning as a dual in-
line package (DIP) which integrates a USB controller with a smaller surface-
mounted board containing the MCU and antenna. The choice of the DIP format
allows for easy prototyping on breadboards. The design was initially was based on
the ESP-12 module of the ESP8266, which is a Wi-Fi SoC integrated with
a Tensilica Xtensa LX106 core, widely used in IoT applications (see related
projects).
HISTORY
NodeMCU was created shortly after the ESP8266 came out. On December 30,
2013, Espressif Systems[6] began production of the ESP8266.[12] NodeMCU started
on 13 Oct 2014, when Hong committed the first file of nodemcu-firmware to
GitHub.[13] Two months later, the project expanded to include an open-hardware
platform when developer Huang R committed the gerber file of an ESP8266 board,
named devkit v0.9.[14] Later that month, Tuan PM ported MQTT client library
from Contiki to the ESP8266 SoC platform,[15] and committed to NodeMCU
project, then NodeMCU was able to support the MQTT IoT protocol, using Lua to
access the MQTT broker. Another important update was made on 30 Jan 2015,
when Devsaurus ported the u8glib[16] to the NodeMCU project,[17] enabling
NodeMCU to easily drive LCD, Screen, OLED, even VGA displays.
In the summer of 2015 the original creators abandoned the firmware project and a
group of independent contributors took over. By the summer of 2016 the
NodeMCU included more than 40 different modules.
Smoke Sensor
The MQ-2 is a flammable gas and smoke sensor detects the concentrations of
combustible gas in the air and outputs its reading as an analog voltage.The sensor
can measure concentrations of flammable gas of 300 to 10,000 ppm.The MQ-2 gas
sensor is sensitive to LPG, i-butane, propane, methane, alcohol, Hydrogen and
smoke.They are used in gas leakage detecting equipments in family and industry
and in portable gas detector.For details
Specification
upply Voltage:5V
Sensitive to H2, LPG, CH4, CO, Alcohol, Smoke or Propane
Analog and Digital Output
Digital Out is High or Low based on a adjustable preset threshold.
H - Out of the two H pins, one pin is connected to supply and the other
1
Pins to ground
A- The A pins and B pins are interchangeable. These pins will be tied
2
Pins to the Supply voltage.
B- The A pins and B pins are interchangeable. One pin will act as
3
Pins output while the other will be pulled to ground.
Smoke detection.
This is a section on Smoke detection and alarming system. The proposed system is
very useful for home and industrial environment. The system detects the Smoke
and control alarm works automatically. The main part of the project is the GAS
sensor and a controller circuit. The GAS sensor communicates with the controller
through a voltage comparator circuit to adjust the response time. The output of the
sensor is feed to a comparator designed using Op-Amp. The comparator input
from the voltage divider network is compared with a reference voltage correspond
to the voltage of set GAS intensity. The output of the comparator is feed to a motor
driver through a timer, to start the motor.
OVER TEMPERTURE DETECTOR
In this section our aim is to detect over temperature, for that we needs a
voltage and gives the corresponding outputs according to the temperature. In the
voltage.
Connection :
The temperature sensor (THERMISTOR) one end of the terminal of the thermister
is connected to a Vcc and the other end terminal is connected to the GND through
room temperature, the corresponding voltage will be available at the output. If the
terminal (+) reference value is greater than the non-inverting terminal (-), the
connected to the non-inverting terminal (-) reference value is greater than the
inverting terminal (+), the comparator output is low i.e. OFF condition. But, here
comparator is connected to the temperature sensor and the set value input inverting
That output signal is given to the LED indicator section for indication purpose for
of the sensor circuit that forms a voltage divider network gives a corresponding
voltage suppose 3V. That voltage goes to the input of the comparator.
The output of the signal sampling voltage (3v) goes to the input of both of the
comparator. In the comparator we have set the voltage say 3.5Vto the inverting
terminal. In this case inverting terminal is greater than the non-inverting terminal.
That means output of the comparator is LOW i.e, the line voltage is in normal
condition.
due to the increase in temperature say 6V. That voltage goes to the input of the
In this comparator we have set the voltage say 3.5V to the inverting terminal. In
this case non- inverting terminal is greater than the inverting terminal. That means
output of the comparator goes to +Vsat is HIGH this means that over temperature
has occurred.
OVER TEMPERATURE DETECTOR
V cc =+12V
470E
8
3
+
V+
68k
1
OUT
V cc =+12V 2 BC 547
-
V-
4 L M 393
10k
10K
V cc =+5V
10K
10k
1.5k
BC 547
RELAY DRIVER
The relay driver is design by using a BC547 transistor .The relay used here
Coil voltage=12Vdc
Contact capacity=230V, 7A
The above specification indicates that the coil requires 12V dc and 200mA current
dc. The Microcontroller can’t supply more then 10mA current. So driver section is
very much required. BC547 has a typical current gain of 200 and maximum current
capacity of 1A. So a typical base current of 200 A can trigger to on the relay.
These are very much reliable devices and widely used on field. The operating
relay which is used here can care 25mA currents continuously. The
voltage appears at the relay driver section, the driver transistor will be driver
transistor will be driven into saturation and allow to flow current in the coil of the
relay, Which in turn create a magnetic field and the magnetic force produced due
to that will act against the spring tension and close the contact coil. Whenever the
base voltage is withdrawn the transistor goes to cutoff .So no current flow in the
coil of the relay. Hence the magnetic field disappears so the contact point breaks
automatically due to spring tension. Those contact points are isolated from the
electromagnetic relays.
closes (NC), normally open (NO). Normally closed points will so a short CKT
path when the relay is off. Normally open points will so a short CKT path when
V CC
5
3
4
1
2
IN 4 0 0 7
10u F REL A Y S P DT
1 .5 K
DATA
INPUT BC 5 4 7
Resistors can be integrated into hybrid and printed circuits, as well as integrated
circuits. Size, and position of leads (or terminals) are relevant to equipment
designers; resistors must be physically large enough not to overheat when
dissipating their power.
Red pushbuttons can also have large heads (mushroom shaped) for
easy operation and to facilitate the stopping of a machine. These pushbuttons are
called emergency stop buttons and are mandated by the electrical code in many
jurisdictions for increased safety. This large mushroom shape can also be found in
buttons for use with operators who need to wear gloves for their work and could
not actuate a regular flush-mounted push button. As an aid for operators and users
in industrial or commercial applications, a pilot light is commonly added to draw
the attention of the user and to provide feedback if the button is pushed. Typically
this light is included into the center of the pushbutton and a lens replaces the
pushbutton hard center disk.
(Push ON Button)
FEATURES:
TRANSISTOR
basis of current required to glow the light emitting diode. Here the driver circuit is required for
2) The driver circuit provides current to the load from a separate source, so the load current
3) The driver circuit activates the load on receipt of a logic signal from the Microcontroller
and of the load in the absence of the signal as he current requirement Is very less to glow
a LED a single stage driver is sufficient to drive the load. The driver circuit is nothing
other than a perfect a transistor switch. The driver transistor goes in to saturation on
receipt of base signal and drives into cut-off region, in absence of base signal.
The driver designs around a BC548/BC547 transistor and designed for a working voltage
IC 10mA
= 4.8K
Ib=Ic/=10mA/200=5x10-5 A=0.5x10-6A
=0.5A
As per the design a 0.5A current is sufficient to trigger the driver circuit. As this current is
VB-IBRB-VBE=0
IBRB = 5-0.7
RB = 5-0.7V/100A = 4.3/100 M
= 0.043x10-6
= 43K
Which is adequate to avoid mis-triggering level also this amount of current can be drawn
The indicator section consists of 8 no of driver with 8 no of LED as indicator load. The
Whenever there is a fault in any of the condition (parameter) it indicates a high output at the
Microcontroller, which is given to the base of the driver transistor (BC547/BC548) with a
base resistance (68k/56k) & thus transistor comes to saturation condition i.e. ON condition,
thus the emitter current flows to the collector of the transistor at which the LED is connected
through a current limiting resistor (330E/470E) thus the LED gets forward biased which
basis of current required to glow the light emitting diode. Here the driver circuit is required for
4) The comparator cannot provide adequate current for glowing the LED. The LEDs
5) The driver circuit provides current to the load from a separate source, so the load current
6) The driver circuit activates the load on receipt of a logic signal from the Microcontroller
and of the load in the absence of the signal as he current requirement Is very less to glow
a LED a single stage driver is sufficient to drive the load. The driver circuit is nothing
other than a perfect a transistor switch. The driver transistor goes in to saturation on
receipt of base signal and drives into cut-off region, in absence of base signal.
The driver designs around a BC548/BC547 transistor and designed for a working voltage
IC 10mA
= 4.8K
Ib=Ic/=10mA/200=5x10-5 A=0.5x10-6A
=0.5A
As per the design a 0.5A current is sufficient to trigger the driver circuit. As this current is
VB-IBRB-VBE=0
IBRB = 5-0.7
RB = 5-0.7V/100A = 4.3/100 M
= 0.043x10-6
= 43K
Which is adequate to avoid mis-triggering level also this amount of current can be drawn
The indicator section consists of 8 no of driver with 8 no of LED as indicator load. The
The signal from the (555,LM393) which is given to the base of the driver transistor
(BC547/BC548) with a base resistance (68k/56k) when ever the base voltage is high,
transistor comes to saturation condition i.e. ON condition, i.e. the emitter current flows to the
collector of the transistor at which the LED is connected through a current limiting resistor
(330E/470E) thus the LED gets forward biased which turns ON the LED, it indicates the
V CC
330E
L ED
68k
DATA
INPUT BC 5 4 7
BUZZER DRIVER
This section interfaces one audible piezo electric buzzer with the controller. The controller
activates the buzzer whenever there is any fault appears in any of the channel.
Microcontroller cannot drive directly to the buzzer, because the Microcontroller cannot give
sufficient current to drive the buzzer for that we need a driver transistor (BC547), which will give
sufficient current to the buzzer.Whenever a signal received to the base of the transistor through
a base resistance (1.5k) is high, the transistor comes to saturation condition i.e. ON condition
thus the buzzer comes to on condition with a audible sound. Similarly, whenever the signal is
not received to the base of the transistor, thus the transistor is in cut-off state i.e. is in OFF state
BUZZER DRIVER
V CC
BUZZER
1 .5 K
DATA
INPUT BC 5 4 7
CONCLUSION
All these operations makes our project a complete one stop solution for the real
implementations. Flexibility with the technical customization and economy are the
main advantages of the design .This project will have a large effect to the living
standard of human being. In the system, a lot of other features can be added to the
user's requirement depending upon the situation.
REFERENCE
[1].M.A.Mazidi, J.G.Mazidi and R.D.McKinlay, The 8051 Microcontroller and
Embedded Systems.
[8]. Y. Zhao and Z. Ye, “A Low Cost GSM/GPRS Based Wireless Home Security
System”, IEEE Transactions on Consumer Electronics, vol. 54, no. 2, pp. 567-572,
2008.
[9]. GSM Based Home Automation with Security (Using Microcontroller) Dr.
ShaikMeeravali 1, P. Sai Prasad 2 International Journal of Engineering Research
&Technology (IJERT) Vol. 2 Issue 9, September -2013ISSN: 2278-0181.