Circuit Documentation
Summary
This circuit involves multiple Arduino microcontrollers, sensors, and a display. The primary components include DHT22 temperature and humidity sensors, LM35 temperature sensors, photocells (LDR), a 16x2 I2C LCD, and a pushbutton. The circuit is designed to read environmental data and display it on the LCD.
Component List
DHT22 (Wokwi Compatible)
- Description: Digital temperature and humidity sensor.
- Pins: VCC, SDA, NC, GND
Arduino UNO
- Description: 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
Arduino UNO R4 WiFi
- Description: Microcontroller board with WiFi capabilities.
- Pins: OFF, GND, VRTC, IIC0_SCL, IIC0_SDA, 3V3, GPIO 41, GPIO 0, GPIO 42, GPIO 43, GPIO 44, BOOT, IOREF, RESET, 5V, VIN, A0, A1, A2, A3, A4, A5, RSPCKA, CIPO, COPI, D0/RX, D1/TX, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, SDA, SCL
16x2 I2C LCD
- Description: 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
Photocell (LDR)
- Description: Light-dependent resistor.
- Pins: pin 0, pin 1
Resistor
- Description: Passive electrical component.
- Pins: pin1, pin2
- Properties: Resistance: 220 Ohms
Temperature Sensor (LM35)
- Description: Analog temperature sensor.
- Pins: +Vs, Vout, GND
Pushbutton
- Description: Simple pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Wiring Details
DHT22 (Wokwi Compatible)
- GND connected to GND of Arduino UNO
- SDA connected to D2 of Arduino UNO
- VCC connected to 5V of Arduino UNO
Photocell (LDR)
- pin 0 connected to pin2 of Resistor and A0 of Arduino UNO R4 WiFi
- pin 1 connected to 5V of Arduino UNO R4 WiFi and VCC of 16x2 I2C LCD
Temperature Sensor (LM35)
- +Vs connected to 5V of Arduino UNO
- Vout connected to A0 of Arduino UNO
- GND connected to GND of Arduino UNO
16x2 I2C LCD
- GND connected to GND of Arduino UNO R4 WiFi
- VCC connected to 5V of Arduino UNO R4 WiFi
- SDA connected to A4 of Arduino UNO R4 WiFi
- SCL connected to A5 of Arduino UNO R4 WiFi
Pushbutton
- Pin 4 (out) connected to D3 of Arduino UNO
Resistor
- pin1 connected to GND of Arduino UNO R4 WiFi and GND of 16x2 I2C LCD
- pin2 connected to pin 0 of Photocell (LDR)
Documented Code
Arduino UNO (Instance 1)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO R4 WiFi
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Instance 2)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Instance 3)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and documented code for each microcontroller.
