Arduino UNO-Based Battery-Powered Rain Sensor with Servo Motor Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, three Servo Motor 9G units, a Rain Sensor, and a 18650 Li-ion Battery pack. The circuit is designed to control the servo motors based on input from the rain sensor, powered by the battery pack.
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
Servo Motor 9G
- Description: A small and lightweight servo motor.
- Pins: VCC 5V, PMW, GND
Rain Sensor
- Description: A sensor to detect rain.
- Pins: AO, DO, GRD, VCC
18650 Li-ion Battery x 2
- Description: A pair of 18650 Li-ion batteries.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V: Connected to VCC 5V of all Servo Motor 9G units and VCC of the Rain Sensor.
- GND: Connected to GND of all Servo Motor 9G units, GRD of the Rain Sensor, and - of the 18650 Li-ion Battery pack.
- Vin: Connected to + of the 18650 Li-ion Battery pack.
- A0: Connected to DO of the Rain Sensor.
- D9: Connected to PMW of all Servo Motor 9G units.
Servo Motor 9G (Unit 1)
- VCC 5V: Connected to 5V of the Arduino UNO.
- PMW: Connected to D9 of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
Servo Motor 9G (Unit 2)
- VCC 5V: Connected to 5V of the Arduino UNO.
- PMW: Connected to D9 of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
Servo Motor 9G (Unit 3)
- VCC 5V: Connected to 5V of the Arduino UNO.
- PMW: Connected to D9 of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
Rain Sensor
- VCC: Connected to 5V of the Arduino UNO.
- DO: Connected to A0 of the Arduino UNO.
- GRD: Connected to GND of the Arduino UNO.
18650 Li-ion Battery x 2
- +: Connected to Vin of the Arduino UNO.
- -: Connected to GND of the Arduino UNO.
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 Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code running on the Arduino UNO microcontroller.