Arduino Alcohol Breathalyzer
The Arduino Alcohol Breathalyzer is a project designed to create a simple breathalyzer system using an alcohol sensor and an Arduino board. This device can provide an estimate of blood alcohol content (BAC) based on the user’s breath. The project aims to raise awareness about responsible alcohol consumption and serves as an educational tool for understanding the principles of alcohol sensing technology.
Component List:
Name | Quantity | Component |
---|---|---|
U1 | 1 | Arduino Uno R3 |
U2 | 1 | LCD 16 x 2 |
R1 | 1 | 220 Ω Resistor |
Rpot1 | 1 | 250 kΩ Potentiometer |
GAS1 | 1 | Gas Sensor |
R2 | 1 | 4.7 kΩ Resistor |
Meter2 | 1 | Voltage Multimeter |
The MQ-3 alcohol sensor / Gas Sensor detects the concentration of alcohol in the user’s breath. The Arduino processes this data and displays the estimated BAC on the LCD. Visual indicators, such as LEDs, provide immediate feedback, and a buzzer may sound an alert if the BAC exceeds a predefined limit. The potentiometer allows users to set a custom threshold for the alert system, emphasizing the importance of responsible drinking.
Arduino Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int analogPin = A0;
int val = 0;
void setup() {
lcd.begin(16, 2);
lcd.print("On Calibration !");
delay(1000);
Serial.begin(9600);
lcd.display();
}
void loop() {
lcd.setCursor(0, 1);
delay(100);
val = analogRead(analogPin);
Serial.println(val);
lcd.clear();
if (val > 0 && val <= 306) { lcd.print(" Sober !"); } else if (val > 307 && val <= 420) { lcd.print(" Just A Shot !"); } else if (val > 421 && val <= 520) { lcd.print(" Drunk !"); } else if (val > 521 && val <= 724) {
lcd.print(" Hangover !");
}
}
This Arduino Alcohol Breathalyzer project combines sensor technology, microcontroller programming, and visual feedback to create an engaging and informative tool for understanding the impact of alcohol on breathalyzer readings.