Arduino UNO-Based Weather Station with Rain, Temperature, Humidity, and Distance Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with several sensors: a rain sensor, a DHT11 temperature and humidity sensor, an MKE-S01 ultrasonic distance sensor, and an MPU6050 accelerometer and gyroscope. The Arduino UNO serves as the central controller, reading data from the sensors and potentially performing actions based on the sensor inputs.
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
RAIN SENSOR
- Description: A sensor module used to detect rain.
- Pins: AO, DO, GRD, VCC
DHT11
- Description: A temperature and humidity sensor.
- Pins: DATA, GND, VCC
MKE-S01 Ultrasonic Distance Sensor
- Description: An ultrasonic sensor used to measure distance.
- Pins: GND, 5V, TRIG, ECHO
MPU6050
- Description: A 6-axis accelerometer and gyroscope.
- Pins: vcc, gnd, scl, sda, xda, xcl, AD0, int, 3.3v
Wiring Details
Arduino UNO
- 5V: Connected to VCC of MPU6050, VCC of RAIN SENSOR, 5V of MKE-S01 Ultrasonic Distance Sensor, and VCC of DHT11.
- GND: Connected to gnd of MPU6050, GRD of RAIN SENSOR, GND of MKE-S01 Ultrasonic Distance Sensor, and GND of DHT11.
- A0: Connected to AO of RAIN SENSOR.
- A4: Connected to sda of MPU6050.
- A5: Connected to scl of MPU6050.
- D10: Connected to ECHO of MKE-S01 Ultrasonic Distance Sensor.
- D9: Connected to TRIG of MKE-S01 Ultrasonic Distance Sensor.
- D2: Connected to DATA of DHT11.
RAIN SENSOR
- VCC: Connected to 5V of Arduino UNO.
- GRD: Connected to GND of Arduino UNO.
- AO: Connected to A0 of Arduino UNO.
DHT11
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- DATA: Connected to D2 of Arduino UNO.
MKE-S01 Ultrasonic Distance Sensor
- 5V: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- TRIG: Connected to D9 of Arduino UNO.
- ECHO: Connected to D10 of Arduino UNO.
MPU6050
- vcc: Connected to 5V of Arduino UNO.
- gnd: Connected to GND of Arduino UNO.
- sda: Connected to A4 of Arduino UNO.
- scl: Connected to A5 of Arduino UNO.
Code Documentation
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:
}
documentation.txt