Arduino UNO Based Alcohol Sensor with Buzzer and LED Indicator
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface an MQ-3 alcohol sensor with an Arduino UNO microcontroller. The circuit includes a buzzer and an LED as output indicators. The Arduino UNO is used to read the digital output from the MQ-3 sensor and activate the buzzer and LED based on the sensor's readings. The power for the MQ-3 sensor is supplied by the Arduino's 5V output, and all components share a common ground.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Purpose: Acts as the central processing unit for the circuit, reading sensor data and controlling outputs.
MQ-3 Breakout
- Description: An alcohol gas sensor module.
- Purpose: Detects the presence of alcohol in the air.
Buzzer
- Description: An electromechanical component that produces sound.
- Purpose: Provides an audible alert when alcohol is detected.
LED: Two Pin (red)
- Description: A basic red light-emitting diode.
- Purpose: Serves as a visual indicator when alcohol is detected.
Wiring Details
Arduino UNO
- 5V connected to MQ-3 Breakout VCC
- GND connected to:
- MQ-3 Breakout GND
- Buzzer GND
- LED cathode
- D11 connected to MQ-3 Breakout DO
- D12 connected to Buzzer PIN
- D13 connected to LED anode
MQ-3 Breakout
- VCC connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
- DO connected to Arduino UNO D11
- AO (Not connected)
Buzzer
- PIN connected to Arduino UNO D12
- GND connected to Arduino UNO GND
LED: Two Pin (red)
- Anode connected to Arduino UNO D13
- Cathode connected to Arduino UNO GND
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:
}
Note: The provided code is a template and does not contain any functional logic. It needs to be populated with the necessary instructions to read the sensor data, process it, and control the buzzer and LED accordingly.