Breathalyzer circuit tutorial for beginners

Breathalyzer circuit tutorial for beginners

Overview

This project measures the amount of alcohol consumed by any person. Using the gas sensor the LED will show the alert or normal to the breath basically it analyzes the human breath and tells the amount of alcohol consumption.

In this breathalyzer, the gas sensor calculates the amount of alcohol and will print the results on LCD and if the amount of alcohol is greater than normal the red LED will glow.

Hardware required 

  1. Arduino Uno R3
  2. LED
  3. Resistor
  4. Jumper Wires
  5. Gas Sensor
  6. Buzzer
  7. LCD
  8. Potentiometer

Schematic Diagram

Arduino Code : 

#include <LiquidCrystal.h>

LiquidCrystal lcd(12 ,11 ,5 ,4 ,3 ,2);

int ledPin = 10;

int sensorPin = A0;

int value;

void setup()

{

  Serial.begin(9600);

  lcd.begin(16,2);

  pinMode(ledPin,OUTPUT);

}

void loop()

{

  int value = analogRead(sensorPin);

  value = analogRead(A0);

  lcd.print("Alcohol Level :");

  lcd.print(value-50);

  Serial.print(value);

  if (value-50 > 400)

  {

    digitalWrite(ledPin,HIGH);

    lcd.setCursor(0,2);

    lcd.print("Alert....!!!!");

  }

  else {

    digitalWrite(ledPin,HIGH);

    lcd.setCursor(0, 2);

    lcd.print("...Normal...");

  }

delay(500);

lcd.clear();

}

Precautions

  1. Connections should be done properly.
  2. Arduino is case Sensitive so code accordingly.
  3. Give different and appropriate colors to the wires.
  4. Use resistors for sensors and LED.

Leave a Reply

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.

STEM Labs

STEM LAB for Schools

Looking for a cutting-edge makerspace that goes beyond traditional education? Partner with Makers’ Muse to unlock innovation and transformative learning for your students.

Coding Toys

STEM LAB for Schools

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Do you have questions regarding our STEM program?

Send Us A Message