Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfaced with a rain sensor, an LCD display, and a PCF8574 IO Expansion Board. The rain sensor detects moisture levels, and the data is displayed on the LCD. The PCF8574 IO Expansion Board is used to expand the I/O capabilities of the Arduino UNO, allowing it to control the LCD display.
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
LCD 16x2 (Wokwi Compatible)
- Description: A 16x2 character LCD display.
- Pins: VSS, VDD, V0, RS, RW, E, D0, D1, D2, D3, D4, D5, D6, D7, A, K
PCF8574 IO Expansion Board
- Description: An I/O expander board that uses the I2C bus.
- Pins: VCC, GND, SDA, SCL, A2+, A2c, A2-, A1+, A1c, A1-, A0+, A0c, A0-, O0, O1, O2, O3, O4, O5, O6, O7, INT
Wiring Details
Arduino UNO
- 5V connected to RAIN SENSOR VCC
- GND connected to RAIN SENSOR GRD
- A1 connected to RAIN SENSOR AO
- A4 connected to PCF8574 IO Expansion Board SDA
- A5 connected to PCF8574 IO Expansion Board SCL
- D4 connected to RAIN SENSOR DO
RAIN SENSOR
- VCC connected to Arduino UNO 5V
- GRD connected to Arduino UNO GND
- AO connected to Arduino UNO A1
- DO connected to Arduino UNO D4
LCD 16x2 (Wokwi Compatible)
- RS connected to PCF8574 IO Expansion Board O0
- RW connected to PCF8574 IO Expansion Board O1
- E connected to PCF8574 IO Expansion Board O2
- D3 connected to PCF8574 IO Expansion Board O3
- D4 connected to PCF8574 IO Expansion Board O4
- D5 connected to PCF8574 IO Expansion Board O5
- D6 connected to PCF8574 IO Expansion Board O6
- D7 connected to PCF8574 IO Expansion Board O7
PCF8574 IO Expansion Board
- SDA connected to Arduino UNO A4
- SCL connected to Arduino UNO A5
- O0 connected to LCD 16x2 (Wokwi Compatible) RS
- O1 connected to LCD 16x2 (Wokwi Compatible) RW
- O2 connected to LCD 16x2 (Wokwi Compatible) E
- O3 connected to LCD 16x2 (Wokwi Compatible) D3
- O4 connected to LCD 16x2 (Wokwi Compatible) D4
- O5 connected to LCD 16x2 (Wokwi Compatible) D5
- O6 connected to LCD 16x2 (Wokwi Compatible) D6
- O7 connected to LCD 16x2 (Wokwi Compatible) D7
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.
