Circuit Documentation
Summary of the Circuit
This circuit is designed around an Arduino UNO microcontroller and includes various peripherals such as an MQ-3 alcohol sensor, a buzzer, and three LEDs (red, green, and yellow) each with a current-limiting resistor. The Arduino UNO is responsible for interfacing with the MQ-3 sensor to detect alcohol levels and controlling the LEDs and buzzer based on the sensor's readings. The circuit is powered by the Arduino's 5V output, and the ground connections are shared across the components.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
MQ-3 Alcohol Sensor
- A sensor for detecting alcohol gas concentrations in the air
- It has four pins: VCC, GND, A0 (analog output), and D0 (digital output).
LED: Two Pin (red)
- A red LED used for indication purposes
- It has two pins: anode and cathode.
LED: Two Pin (green)
- A green LED used for indication purposes
- It has two pins: anode and cathode.
LED: Two Pin (yellow)
- A yellow LED used for indication purposes
- It has two pins: anode and cathode.
Resistor (220 Ohms)
- A resistor with a resistance of 220 Ohms
- It has two pins: pin1 and pin2.
Buzzer
- An electronic buzzer for audible alerts
- It has two pins: PIN (signal input) and GND.
Wiring Details
Arduino UNO
- GND connected to the common ground net
- 5V connected to the VCC of the MQ-3 sensor
- A0 connected to the A0 of the MQ-3 sensor
- D8 connected to the PIN of the buzzer
- D7 connected to pin2 of a 220 Ohm resistor (red LED)
- D4 connected to pin2 of a 220 Ohm resistor (green LED)
- D2 connected to pin2 of a 220 Ohm resistor (yellow LED)
MQ-3 Alcohol Sensor
- VCC connected to 5V of the Arduino UNO
- GND connected to the common ground net
- A0 connected to A0 of the Arduino UNO
LED: Two Pin (red)
- Cathode connected to the common ground net
- Anode connected to pin1 of a 220 Ohm resistor
LED: Two Pin (green)
- Cathode connected to the common ground net
- Anode connected to pin1 of a 220 Ohm resistor
LED: Two Pin (yellow)
- Cathode connected to the common ground net
- Anode connected to pin1 of a 220 Ohm resistor
Resistor (220 Ohms)
- Pin1 connected to the anode of the corresponding LED
- Pin2 connected to a digital pin on the Arduino UNO (D7 for red, D4 for green, D2 for yellow)
Buzzer
- PIN connected to D8 on the Arduino UNO
- GND connected to the common ground net
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Additional Notes (documentation.txt)
No additional code documentation was provided for the Arduino UNO.