Beruflich Dokumente
Kultur Dokumente
5 Project Module Each of the 54 digital pins on the Mega can be used as
an input or output, using pinMode(), digitalWrite(), and
For this project we do have four modules digitalRead() functions. They operate at 5 volts. Each pin
can provide or receive a maximum of 40 mA and has an
• Arduino Mega 2560
internal pull-up resistor (disconnected by default) of 2050
k Ohms. The Arduino Mega2560 has a number of facilities
• ESP8266 WiFi Module
for communicating with a computer, another Arduino, or
• Gas sensor MQ4 other microcontrollers. The AT-mega2560 provides four
hardware UARTs for TTL (5V) serial communication. An
• Temperature sensor LM35
ATmega8U2 on the board channels one of these over USB
and provides a virtual com port to software on the
5.1 Arduino Mega 2560 computer (Windows machines will need a .inf file, but
OSX and Linux machines will recognize the board as a
The Arduino Mega 2560 is a microcontroller board based COM port automatically. The Arduino software includes a
on the ATmega2560 (datasheet). It has 54 digital serial monitor which allows simple textual data to be sent
input/output pins (of which 14 can be used as PWM to and from the board. The RX and TX LEDs on the board
outputs), 16 analog inputs, 4 UARTs (hardware serial will ash when data is being transmitted via the
ports), a 16 MHz crystal oscillator, a USB connection, a ATmega8U2 chip and USB connection to the computer
power jack, an ICSP header, and a reset button. It contains (but not for serial communication on pins 0 and 1).
everything needed to support the microcontroller; simply
connect it to a computer with a USB cable or power it with
a AC-to-DC adapter or battery to get started. The Mega is
5.2 ESP8266 WiFi Module
compatible with most shields designed for the Arduino ESP8266 is an impressive, low cost WiFi module suitable
Duemilanove or Diecimila. The Arduino Mega2560 can be for adding WiFi functionality to an existing micro-
powered via the USB connection or with an external power controller project via a UART serial connection. The
supply. The power source is selected automatically. module can even be reprogrammed to act as a standalone
External (non-USB) power can come either from an AC-to- WiFi connected device The feature list is impressive and
DC adapter (wall-wart) or battery. The Mega2560 differs includes:
from all preceding boards in that it does not use the FTDI
USB-to-serial driver chip. Instead, it features the • 802.11 b/g/n protocol
Atmega8U2 programmed as a USB-to-serial converter.
• Wi-Fi Direct (P2P), soft-AP
The power pins are as follows:
• Integrated TCP/IP protocol stack
• VIN. The input voltage to the Arduino board when it's
using an external power source (as opposed to 5 volts
from the USB connection or other regulated power 5.3 Gas Sensor
source). You can supply voltage through this pin, or, if
supplying voltage via the power jack, access it through Gas sensor applies SnO2 which has a lower con-ductivity
this pin. in the clear air as a gas-sensing mate-rial. In an atmosphere
where there may be pollut-ing gas, the conductivity of the
• 5V. The regulated power supply used to power the gas sensor raises along with the concentration of the
microcontroller and other components on the polluting gas increases. It performs a good detection to
smoke
and other harmful gas, especially sensitive to direction. And if it is rotated in the anti-clock wise
ammonia, sulfide and benzene steam. Its ability to direction, the robot moves in the backward direc-
detect various harmful gas and lower cost make MQ- tion.Now all these updated values are displayed on the
135 an ideal choice of different applications of gas users mobile by creating a separate web page based on
detection. a common IP address.
6 Working Principle
Arduino is the main heart of the circuit. It is
connected with three different sensors, a WiFi module
and with a driver motor. The three sensors namely
temperature, gas and ultrasonic sensors that are used
to detect the temperature of the surroundings , toxic
gases and obstacles present in the path of the robot
respectively. In case if any gas leakages happens,
toxic gas automatic clear operates automatically. This
works based on the communication between the
module and arduino board. When any obstacles are
detected, the robot has to automatically change its
direction. To achieve this, a separate driver motor is
circuited with Arduino kit. This motor is again
coupled with the another circuit consisting of four
motors. In this operation, if two motors are rotated in
the clock wise direction, then the robot will move in
the forward