Arduino UNO-Based Gas Detection and Control System with Buzzer and Servo
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various components including a buzzer, a servo motor, an MQ-2 gas sensor, a fan, a MOSFET, and a resistor. The circuit is designed to control the fan and buzzer based on the readings from the MQ-2 sensor, and to control the servo motor.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Buzzer
- Description: An electronic device that emits sound.
- Pins: PIN, GND
Servo
- Description: A motor that can be controlled to move to a specific position.
- Pins: gnd, vcc, pulse
MQ-2
- Description: A gas sensor that detects LPG, i-butane, propane, methane, alcohol, Hydrogen, and smoke.
- Pins: GND, VCC, ANALOG, Digital
Fan
- Description: A small DC fan.
- Pins: GND, 5V
Mosfet
- Description: A type of transistor used for switching and amplifying electronic signals.
- Pins: Gate, Drain, Source
Resistor
- Description: A passive electrical component that implements electrical resistance.
- Pins: pin1, pin2
- Properties: Resistance: 200 Ohms
Wiring Details
Arduino UNO
- 5V: Connected to VCC of MQ-2, 5V of Fan, and vcc of Servo.
- GND: Connected to GND of MQ-2, gnd of Servo, GND of buzzer, and Source of Mosfet.
- D10: Connected to pin1 of Resistor.
- A0: Connected to ANALOG of MQ-2.
- D9: Connected to pulse of Servo.
- D8: Connected to PIN of buzzer.
Buzzer
- PIN: Connected to D8 of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
Servo
- gnd: Connected to GND of Arduino UNO.
- vcc: Connected to 5V of Arduino UNO.
- pulse: Connected to D9 of Arduino UNO.
MQ-2
- GND: Connected to GND of Arduino UNO.
- VCC: Connected to 5V of Arduino UNO.
- ANALOG: Connected to A0 of Arduino UNO.
Fan
- GND: Connected to Drain of Mosfet.
- 5V: Connected to 5V of Arduino UNO.
Mosfet
- Gate: Connected to pin2 of Resistor.
- Drain: Connected to GND of Fan.
- Source: Connected to GND of Arduino UNO.
Resistor
- pin1: Connected to D10 of Arduino UNO.
- pin2: Connected to Gate of Mosfet.
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:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.