Circuit Documentation
Summary
This circuit consists of an Arduino Nano microcontroller, a Servo motor, and a Rain Sensor. The Arduino Nano controls the Servo motor and reads data from the Rain Sensor. The Servo motor is used for mechanical movement, while the Rain Sensor detects the presence of rain.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
- Purpose in Circuit: Acts as the main controller, reading data from the Rain Sensor and controlling the Servo motor.
Servo
- Description: A motor that can be controlled to move to a specific position.
- Pins: GND, VCC, PWM
- Purpose in Circuit: Provides mechanical movement based on the control signals from the Arduino Nano.
Rain Sensor
- Description: A sensor that detects the presence of rain.
- Pins: AO, DO, GRD, VCC
- Purpose in Circuit: Detects rain and sends the data to the Arduino Nano.
Wiring Details
Arduino Nano
- GND: Connected to GND of Servo and GRD of Rain Sensor.
- D2: Connected to PWM of Servo.
- 5V: Connected to VCC of Servo.
- A0: Connected to AO of Rain Sensor.
- 3V3: Connected to VCC of Rain Sensor.
Servo
- GND: Connected to GND of Arduino Nano.
- VCC: Connected to 5V of Arduino Nano.
- PWM: Connected to D2 of Arduino Nano.
Rain Sensor
- GRD: Connected to GND of Arduino Nano.
- AO: Connected to A0 of Arduino Nano.
- VCC: Connected to 3V3 of Arduino Nano.
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component descriptions, wiring details, and the code used in the Arduino Nano.
