Circuit Documentation
Summary
This circuit involves two Arduino UNO microcontrollers, a Servo motor, an MQ6 gas sensor, and three IR sensors. The circuit is designed to control the Servo motor and read data from the MQ6 gas sensor and IR sensors. The Arduino UNO microcontrollers serve as the central control units for the circuit.
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
Servo
- Description: A motor that can be controlled to rotate to a specific angle.
- Pins: GND, VCC, PWM
IR Sensor
- Description: An infrared sensor used for detecting objects.
- Pins: out, gnd, vcc
MQ6
- Description: A gas sensor used for detecting the presence of gases.
- Pins: VCC, GND, A0, DO
Wiring Details
Arduino UNO (1)
- 5V: Connected to VCC of Servo and VCC of MQ6
- GND: Connected to GND of Servo and GND of MQ6
- A0: Connected to A0 of MQ6
- D10: Connected to PWM of Servo
Servo
- VCC: Connected to 5V of Arduino UNO (1)
- GND: Connected to GND of Arduino UNO (1)
- PWM: Connected to D10 of Arduino UNO (1)
MQ6
- VCC: Connected to 5V of Arduino UNO (1)
- GND: Connected to GND of Arduino UNO (1)
- A0: Connected to A0 of Arduino UNO (1)
IR Sensor (1)
- out: Not connected
- gnd: Not connected
- vcc: Not connected
IR Sensor (2)
- out: Not connected
- gnd: Not connected
- vcc: Not connected
IR Sensor (3)
- out: Not connected
- gnd: Not connected
- vcc: Not connected
Arduino UNO (2)
- All pins: Not connected
Code Documentation
Arduino UNO (1)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (2)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used for the microcontrollers.
