Arduino UNO-Based Environmental Monitoring System with Wi-Fi Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates various sensors and modules with an Arduino UNO microcontroller. The circuit includes a DHT11 temperature and humidity sensor, an SW-420 vibration sensor, a SparkFun soil moisture sensor, an InvenSense MPU6050 accelerometer and gyroscope, and an ESP8266 ESP-01 WiFi module. The Arduino UNO serves as the central microcontroller, interfacing with all the sensors and the WiFi module.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
DHT11
- Description: A temperature and humidity sensor.
- Pins: DATA, GND, VCC
SW-420 Vibration Sensor
- Description: A vibration sensor module.
- Pins: vcc, Ground, Digital output
SparkFun Soil Moisture Sensor
- Description: A sensor to measure soil moisture levels.
- Pins: VCC, GND, SIG
InvenSense MPU6050
- Description: A 6-axis accelerometer and gyroscope.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
ESP8266 ESP-01 WiFi Module
- Description: A WiFi module for wireless communication.
- Pins: TXD, CH_PD, RST, VCC, GND, GPIO_2, GPIO_0, RXD
Wiring Details
Arduino UNO
- 5V: Connected to VCC of DHT11, SW-420 Vibration Sensor, and SparkFun Soil Moisture Sensor
- 3.3V: Connected to VCC and CH_PD of ESP8266 ESP-01 WiFi Module, and VCC of InvenSense MPU6050
- GND: Connected to GND of DHT11, SW-420 Vibration Sensor, SparkFun Soil Moisture Sensor, ESP8266 ESP-01 WiFi Module, and InvenSense MPU6050
- A0: Connected to SIG of SparkFun Soil Moisture Sensor
- A4: Connected to SDA of InvenSense MPU6050
- A5: Connected to SCL of InvenSense MPU6050
- D10: Connected to DATA of DHT11
- D9: Connected to RXD of ESP8266 ESP-01 WiFi Module
- D8: Connected to TXD of ESP8266 ESP-01 WiFi Module
- D2: Connected to Digital output of SW-420 Vibration Sensor
DHT11
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- DATA: Connected to D10 of Arduino UNO
SW-420 Vibration Sensor
- vcc: Connected to 5V of Arduino UNO
- Ground: Connected to GND of Arduino UNO
- Digital output: Connected to D2 of Arduino UNO
SparkFun Soil Moisture Sensor
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- SIG: Connected to A0 of Arduino UNO
InvenSense MPU6050
- VCC: Connected to 3.3V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- SDA: Connected to A4 of Arduino UNO
- SCL: Connected to A5 of Arduino UNO
ESP8266 ESP-01 WiFi Module
- VCC: Connected to 3.3V of Arduino UNO
- CH_PD: Connected to 3.3V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- RXD: Connected to D9 of Arduino UNO
- TXD: Connected to D8 of Arduino UNO
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your sensors and modules, and the loop() function is where you place the main logic that runs repeatedly. You will need to add the specific initialization and logic for each sensor and module based on your application requirements.