Battery-Powered Gas Sensor with Buzzer Alert using MQ-2 and LM7805
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to power and control a gas sensor (MQ-2) and a buzzer using a 9V battery, a voltage regulator (LM7805), and an NPN transistor. The circuit is designed to detect gas levels and trigger an alarm through the buzzer when certain conditions are met.
Component List
9V Battery
- Description: Provides the primary power source for the circuit.
- Pins: +, -
LM7805
- Description: A voltage regulator that steps down the 9V input to a stable 5V output.
- Pins: IN PIN, OUT PIN, GND
MQ-2
- Description: A gas sensor that detects various gases including LPG, smoke, alcohol, propane, hydrogen, methane, and carbon monoxide.
- Pins: GND, VCC, ANALOG, Digital
NPN Transistor (CBE)
- Description: A transistor used to amplify or switch electronic signals.
- Pins: collector, base, emitter
Buzzer
- Description: An audio signaling device that emits a sound when activated.
- Pins: PIN, GND
Wiring Details
9V Battery
- + is connected to IN PIN of the LM7805.
- - is connected to:
- GND of the LM7805
- GND of the MQ-2
- GND of the buzzer
LM7805
- IN PIN is connected to + of the 9V Battery.
- OUT PIN is connected to:
- collector of the NPN Transistor
- VCC of the MQ-2
- GND is connected to:
- - of the 9V Battery
- GND of the MQ-2
- GND of the buzzer
MQ-2
- GND is connected to:
- GND of the LM7805
- - of the 9V Battery
- GND of the buzzer
- VCC is connected to OUT PIN of the LM7805.
- ANALOG is connected to base of the NPN Transistor.
NPN Transistor (CBE)
- collector is connected to OUT PIN of the LM7805.
- base is connected to ANALOG of the MQ-2.
- emitter is connected to PIN of the buzzer.
Buzzer
- PIN is connected to emitter of the NPN Transistor.
- GND is connected to:
- GND of the LM7805
- - of the 9V Battery
- GND of the MQ-2
Code
There is no embedded code provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and code documentation. The circuit is designed to detect gas levels using the MQ-2 sensor and trigger an alarm through the buzzer when necessary.