Arduino UNO-Based Environmental Monitoring System with WiFi and GSM Communication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to interface various components with an Arduino UNO microcontroller. The circuit includes sensors, a display, communication modules, a relay, a buzzer, a servo, and power management components. The Arduino UNO serves as the central processing unit, controlling the peripherals and managing data communication.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
Buzzer
- An electromechanical component that produces sound
- Typically used for audible alerts or alarms.
MQ-4 Gas Sensor
- A gas sensor designed for detecting natural gas and methane levels in the air
- It has both analog and digital output capabilities.
Resistor (10 Ohms)
- A passive two-terminal electrical component that implements electrical resistance as a circuit element.
Temperature Sensor (LM35)
- An analog temperature sensor that provides a voltage output proportional to the ambient temperature.
SIM800L GSM Module
- A compact GSM/GPRS module for mobile communication and SMS services.
1 Channel 5V Relay Module
- An electrically operated switch that allows you to control a high power circuit with a low power signal.
Fan
- An electric device that creates airflow by rotating blades.
Mosfet
- A type of field-effect transistor used for switching and amplifying electronic signals.
5V Battery
- A power source providing a 5V output, typically used for portable electronics.
Rocker Switch
- A switch that rocks back and forth when pressed, with one side of the switch raised while the other side is depressed.
I2C LCD 16x2 Screen
- A liquid crystal display capable of displaying 16 characters per line, with 2 lines, and uses the I2C communication protocol.
Servo
- A rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity, and acceleration.
ESP8266 ESP-01 WiFi Module
- A self-contained SOC with integrated TCP/IP protocol stack that can give any microcontroller access to a WiFi network.
Wiring Details
Arduino UNO
3.3Vconnected to ESP8266 ESP-01 WiFi Module (VCC and CH_PD)5Vconnected to Servo (VCC), MQ-4 (VCC), I2C LCD 16x2 Screen (VCC), Fan (5V), SIM800L (VCC)GNDconnected to Mosfet (Source), Servo (GND), Buzzer (GND), MQ-4 (GND), Temperature Sensor (LM35) (+Vs), Rocker Switch (output), SIM800L (GND)Vinconnected to 5V Battery (positive), 1 Channel 5V Relay Module (VCC+)A0connected to MQ-4 (A0)A1connected to Temperature Sensor (LM35) (Vout)A4connected to I2C LCD 16x2 Screen (SDA)A5connected to I2C LCD 16x2 Screen (SCL)D2connected to ESP8266 ESP-01 WiFi Module (TXD), 1 Channel 5V Relay Module (IN), SIM800L (TXD)D3connected to ESP8266 ESP-01 WiFi Module (RXD), SIM800L (RXD)D4connected to SIM800L (RST)D8connected to Buzzer (PIN)D9connected to Servo (PWM)D10connected to Resistor (pin1)
Buzzer
PINconnected to Arduino UNO (D8)GNDconnected to Arduino UNO (GND)
MQ-4 Gas Sensor
A0connected to Arduino UNO (A0)D0not connectedGNDconnected to Arduino UNO (GND)VCCconnected to Arduino UNO (5V)
Resistor (10 Ohms)
pin1connected to Arduino UNO (D10)pin2connected to Mosfet (Gate)
Temperature Sensor (LM35)
+Vsconnected to Arduino UNO (GND)Voutconnected to Arduino UNO (A1)GNDconnected to Arduino UNO (GND)
SIM800L GSM Module
VCCconnected to Arduino UNO (5V)GNDconnected to Arduino UNO (GND)RSTconnected to Arduino UNO (D4)RXDconnected to Arduino UNO (D3)TXDconnected to Arduino UNO (D2)
1 Channel 5V Relay Module
VCC+connected to 5V Battery (positive)VCC- (GND)connected to Arduino UNO (GND)INconnected to Arduino UNO (D2)
Fan
5Vconnected to Arduino UNO (5V)GNDconnected to Mosfet (Drain)
Mosfet
Gateconnected to Resistor (pin2)Drainconnected to Fan (GND)Sourceconnected to Arduino UNO (GND)
5V Battery
positiveconnected to 1 Channel 5V Relay Module (VCC+), Arduino UNO (Vin)negativeconnected to Rocker Switch (input)
Rocker Switch
outputconnected to Arduino UNO (GND)inputconnected to 5V Battery (negative)
I2C LCD 16x2 Screen
SDAconnected to Arduino UNO (A4)SCLconnected to Arduino UNO (A5)VCC (5V)connected to Arduino UNO (5V)GNDconnected to Arduino UNO (GND)
Servo
VCCconnected to Arduino UNO (5V)GNDconnected to Arduino UNO (GND)PWMconnected to Arduino UNO (D9)
ESP8266 ESP-01 WiFi Module
CH_PDconnected to Arduino UNO (3.3V)VCCconnected to Arduino UNO (3.3V)GNDconnected to Arduino UNO (GND)RXDconnected to Arduino UNO (D3)TXDconnected to Arduino UNO (D2)
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes
- The provided code is a template and does not contain any functional code specific to the circuit's operation.
- The user is expected to write the setup and loop functions to initialize the components and define the circuit's behavior during operation.