Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an MQ-8 gas sensor, and a 128x64 OLED display. The Arduino UNO serves as the central controller, reading data from the MQ-8 gas sensor and displaying information on the OLED display. The components are interconnected to facilitate power distribution and data communication.
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
- Purpose: Central controller for the circuit.
MQ-8 Gas Sensor
- Description: A sensor used to detect hydrogen gas.
- Pins: VCC, GND, AO, DO
- Purpose: To detect the presence of hydrogen gas and provide an analog output.
128x64 OLED Display (I2C IIC SPI Serial)
- Description: A display module used to show information.
- Pins: GND, SDA, SCL, VCC
- Purpose: To display data received from the Arduino UNO.
Wiring Details
Arduino UNO
- 5V: Connected to VCC of MQ-8 and VCC of OLED Display.
- GND: Connected to GND of MQ-8 and GND of OLED Display.
- A0: Connected to AO of MQ-8.
- A4: Connected to SDA of OLED Display.
- A5: Connected to SCL of OLED Display.
MQ-8 Gas Sensor
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- AO: Connected to A0 of Arduino UNO.
- DO: Not connected.
128x64 OLED Display (I2C IIC SPI Serial)
- GND: Connected to GND of Arduino UNO.
- SDA: Connected to A4 of Arduino UNO.
- SCL: Connected to A5 of Arduino UNO.
- VCC: Connected to 5V of Arduino UNO.
Code Documentation
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:
}
documentation.txt
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component descriptions, wiring details, and the code used in the Arduino UNO.
