Arduino UNO-Based Environmental Monitoring System with RGB LED and Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a KY-037 Microphone, two IR sensors, an RGB LED, a resistor, and an MQ135 gas sensor. The document includes a component list, wiring details, and the embedded code used in the microcontroller.
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
KY-037 Microphone
- Description: A sound sensor module that outputs both analog and digital signals.
- Pins: Analog output, Ground, VCC, Digital output
IR Sensor (1)
- Description: An infrared sensor used for object detection.
- Pins: out, gnd, vcc
IR Sensor (2)
- Description: An infrared sensor used for object detection.
- Pins: out, gnd, vcc
RGB LED (Wokwi compatible)
- Description: A common anode RGB LED.
- Pins: R, COM, G, B
Resistor
- Description: A resistor with a resistance of 100 Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 100 Ohms
MQ135
- Description: A gas sensor for detecting air quality.
- Pins: VCC, GND, A0, D0
Wiring Details
Arduino UNO
- A0: Connected to Analog output of KY-037 Microphone
- A3: Connected to A0 of MQ135
- D2: Connected to out of IR Sensor (1)
- D7: Connected to out of IR Sensor (2)
KY-037 Microphone
- Analog output: Connected to A0 of Arduino UNO
- Ground: Not connected
- VCC: Not connected
- Digital output: Not connected
IR Sensor (1)
- out: Connected to D2 of Arduino UNO
- gnd: Not connected
- vcc: Not connected
IR Sensor (2)
- out: Connected to D7 of Arduino UNO
- gnd: Not connected
- vcc: Not connected
RGB LED (Wokwi compatible)
- R: Not connected
- COM: Not connected
- G: Connected to pin1 of Resistor
- B: Not connected
Resistor
- pin1: Connected to G of RGB LED
- pin2: Not connected
MQ135
- VCC: Not connected
- GND: Not connected
- A0: Connected to A3 of Arduino UNO
- D0: Not connected
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 document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the embedded code.