Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled Alcohol Detection System with GPS Tracking and Motor Management

Image of Arduino UNO Controlled Alcohol Detection System with GPS Tracking and Motor Management

Circuit Documentation

Summary

This circuit integrates various components including an Arduino UNO, an MQ-3 alcohol sensor breakout, a buzzer, a red LED with a resistor, three L298N DC motor drivers, a DC motor, a 12V battery, a rocker switch, and a Neo 6M GPS Module. The Arduino UNO serves as the central microcontroller unit, interfacing with the GPS module for location data, controlling the motor driver for motor operations, reading analog values from the MQ-3 sensor, and managing the LED and buzzer for indication purposes. The circuit is powered by a 12V battery, with voltage regulation provided by the Arduino and motor drivers.

Component List

Arduino UNO

  • Microcontroller board based on the ATmega328P
  • Provides digital and analog I/O pins
  • Includes power supply pins and a reset button

MQ-3 Breakout

  • Alcohol sensor module
  • Outputs both analog and digital signals

Buzzer

  • Simple audio signaling device

LED: Two Pin (red)

  • Basic red LED for indication

Resistor (180 Ohms)

  • Limits current to the LED

L298N DC Motor Driver (x3)

  • H-Bridge motor driver
  • Capable of driving a pair of DC motors

DC Motor

  • Basic DC motor for motion applications

12V Battery

  • Provides power to the circuit

Rocker Switch

  • Mechanical switch to control power flow

Neo 6M GPS Module

  • GPS receiver module for location tracking

Wiring Details

Arduino UNO

  • 5V connected to MQ-3 VCC and Neo 6M GPS Module VCC
  • GND connected to MQ-3 GND, buzzer GND, LED cathode (through resistor), and Neo 6M GPS Module GND
  • A0 connected to MQ-3 AO
  • D12 connected to L298N DC motor driver ENA
  • D11 connected to L298N DC motor driver IN2
  • D10 connected to L298N DC motor driver IN1
  • D9 connected to one side of the resistor
  • D8 connected to buzzer PIN
  • D3 connected to Neo 6M GPS Module TX
  • D2 connected to Neo 6M GPS Module RX

MQ-3 Breakout

  • VCC connected to Arduino UNO 5V
  • GND connected to Arduino UNO GND
  • AO connected to Arduino UNO A0

Buzzer

  • PIN connected to Arduino UNO GND
  • GND connected to Arduino UNO D8

LED: Two Pin (red)

  • cathode connected to Arduino UNO GND (through resistor)
  • anode connected to one side of the resistor

Resistor (180 Ohms)

  • pin1 connected to Arduino UNO D9
  • pin2 connected to LED anode

L298N DC Motor Driver

  • ENA connected to Arduino UNO D12
  • IN2 connected to Arduino UNO D11
  • IN1 connected to Arduino UNO D10
  • OUT1 and OUT2 connected to DC Motor pins
  • GND connected to 12V Battery -
  • 5V connected to rocker switch output
  • 12V connected to 12V Battery + (through rocker switch)

DC Motor

  • pin 1 connected to L298N DC motor driver OUT2
  • pin 2 connected to L298N DC motor driver OUT1

12V Battery

  • - connected to L298N DC motor driver GND
  • + connected to L298N DC motor driver 12V (through rocker switch)

Rocker Switch

  • output connected to L298N DC motor driver 5V
  • input connected to 12V Battery +

Neo 6M GPS Module

  • GND connected to Arduino UNO GND
  • TX connected to Arduino UNO D3
  • RX connected to Arduino UNO D2
  • VCC connected to Arduino UNO 5V

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 code. It is expected that the user will add the necessary code to interact with the connected components.