Arduino UNO-Based Multi-Color LED Indicator with DHT22 Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of three LEDs (red, green, and yellow), three resistors, a DHT22 temperature and humidity sensor, and an Arduino UNO microcontroller. The LEDs are connected to the Arduino through resistors, and the DHT22 sensor is connected to the Arduino for data acquisition. The Arduino UNO is programmed to control the LEDs and read data from the DHT22 sensor.
Component List
LED: Two Pin (red)
- Description: A red LED with two pins: cathode and anode.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green LED with two pins: cathode and anode.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: A yellow LED with two pins: cathode and anode.
- Pins: cathode, anode
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
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
DHT22
- Description: A temperature and humidity sensor.
- Pins: +, Out, -
Wiring Details
LED: Two Pin (red)
- cathode is connected to GND on the Arduino UNO.
- anode is connected to pin1 of a 200 Ohm resistor.
LED: Two Pin (green)
- cathode is connected to GND on the Arduino UNO.
- anode is connected to pin1 of a 200 Ohm resistor.
LED: Two Pin (yellow)
- cathode is connected to GND on the Arduino UNO.
- anode is connected to pin1 of a 200 Ohm resistor.
Resistor (200 Ohms)
- pin2 of the first resistor is connected to D11 on the Arduino UNO.
- pin2 of the second resistor is connected to D10 on the Arduino UNO.
- pin2 of the third resistor is connected to D9 on the Arduino UNO.
Arduino UNO
- GND is connected to the cathode of the red, green, and yellow LEDs.
- 5V is connected to the + pin of the DHT22 sensor.
- GND is connected to the - pin of the DHT22 sensor.
- D11 is connected to pin2 of the first 200 Ohm resistor.
- D10 is connected to pin2 of the second 200 Ohm resistor.
- D9 is connected to pin2 of the third 200 Ohm resistor.
- D2 is connected to the Out pin of the DHT22 sensor.
DHT22
- + is connected to 5V on the Arduino UNO.
- Out is connected to D2 on the Arduino UNO.
- - is connected to GND on 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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used for the Arduino UNO microcontroller.