Arduino UNO-Based Weather Monitoring System with Ultrasonic Sensing and Alerting Features
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components with an Arduino UNO microcontroller to perform a range of functions. It includes a rain sensor for detecting water presence, a buzzer for audible alerts, a servo motor for mechanical movements, an HC-SR04 ultrasonic sensor for distance measurement, and two LEDs (red and green) for visual indicators. The Arduino UNO serves as the central processing unit, controlling the peripherals based on the inputs from the sensors and executing the embedded code.
Component List
RAIN SENSOR
- Pins: AO, DO, GRD, VCC
- Description: A sensor that detects the presence of water.
Buzzer
- Pins: PIN, GND
- Description: An audible signaling device.
Servo
- Pins: GND, VCC, PWM
- Description: A rotary actuator or linear actuator that allows for precise control of angular or linear position.
HC-SR04 Ultrasonic Sensor
- Pins: VCC, TRIG, ECHO, GND
- Description: A sensor that measures distance by emitting ultrasonic waves and measuring the time taken for the echo to return.
LED: Two Pin (red)
- Pins: cathode, anode
- Description: A red light-emitting diode used as a visual indicator.
Arduino UNO
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
- Description: A microcontroller board based on the ATmega328P, with digital input/output pins, analog inputs, and various power options.
LED: Two Pin (green)
- Pins: cathode, anode
- Description: A green light-emitting diode used as a visual indicator.
Wiring Details
RAIN SENSOR
- AO: Connected to Arduino UNO A3
- DO: Not connected
- GRD: Connected to common ground
- VCC: Connected to Arduino UNO 5V
Buzzer
- PIN: Connected to Arduino UNO D3
- GND: Connected to common ground
Servo
- GND: Connected to common ground
- VCC: Connected to Arduino UNO 5V
- PWM: Connected to Arduino UNO D8
HC-SR04 Ultrasonic Sensor
- VCC: Connected to Arduino UNO 5V
- TRIG: Connected to Arduino UNO D5
- ECHO: Connected to Arduino UNO D6
- GND: Connected to common ground
LED: Two Pin (red)
- cathode: Connected to common ground
- anode: Connected to Arduino UNO D2
LED: Two Pin (green)
- cathode: Connected to common ground
- anode: Connected to Arduino UNO D4
Arduino UNO
- 5V: Provides power to RAIN SENSOR, Servo, and HC-SR04 Ultrasonic Sensor
- GND: Common ground for RAIN SENSOR, Buzzer, Servo, HC-SR04 Ultrasonic Sensor, and both LEDs
- A3: Receives analog input from RAIN SENSOR AO
- D2: Controls red LED
- D3: Controls Buzzer
- D4: Controls green LED
- D5: Sends trigger signal to HC-SR04 Ultrasonic Sensor
- D6: Receives echo signal from HC-SR04 Ultrasonic Sensor
- D8: Sends PWM signal to Servo
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:
}
Note: The provided code is a template and does not include specific functionality. It should be populated with the necessary setup and loop code to control the connected components based on the circuit design.