Circuit Documentation
Summary
The circuit in question is designed to interface an IoT board with a rain sensor and a Tower Pro SG90 servo motor. The IoT board serves as the central processing unit, reading the status of the rain sensor and controlling the servo motor accordingly. The rain sensor is used to detect the presence of rain, and the servo motor is likely used to actuate a mechanism in response to the sensor's input. The circuit is powered by the 5V supply from the IoT board, which also provides ground connections to the other components.
Component List
IoT Board
- Pins: sda, scl, 3v3, GND, 5V, D5, D18, D33, 14, D27, D32
- Description: A microcontroller-based board capable of connecting to the internet and controlling various peripherals. It is the central component of the circuit.
Tower Pro SG90 Servo
- Pins: Signal, +5V, GND
- Description: A small and lightweight servo motor that can be precisely controlled to move to a specific position.
Rain Sensor
- Pins: AO, DO, GRD, VCC
- Description: A sensor that detects water presence by measuring the resistance between two tracks. It provides both analog and digital outputs.
Wiring Details
IoT Board
- 5V: Provides power to the Rain Sensor and the Tower Pro SG90 servo.
- GND: Common ground with the Rain Sensor and the Tower Pro SG90 servo.
- D27: Digital output connected to the digital output (DO) of the Rain Sensor.
- D32: Digital output connected to the Signal input of the Tower Pro SG90 servo.
Tower Pro SG90 Servo
- Signal: Receives control signal from the IoT board's D32 pin.
- +5V: Connected to the 5V supply from the IoT board.
- GND: Common ground with the IoT board.
Rain Sensor
- VCC: Powered by the 5V supply from the IoT board.
- DO: Digital output connected to the IoT board's D27 pin.
- GRD: Common ground with the IoT board.
Documented Code
No code has been provided for the microcontrollers in the circuit. To fully implement the circuit's functionality, embedded code for the IoT board is required. This code would typically initialize the board's peripherals, read inputs from the rain sensor, and control the servo motor based on the sensor's status.
Please note that the actual functionality of the circuit can only be confirmed with the corresponding embedded code, which is not included in the provided inputs.