Circuit Documentation
Summary
This circuit includes a microcontroller (Arduino UNO), two seven-segment displays (Wokwi Compatible), a pushbutton, a resistor, a red LED, and an AHT10 temperature and humidity sensor. The Arduino UNO controls the seven-segment displays and reads input from the pushbutton. The red LED is connected through a resistor, and the AHT10 sensor interfaces with the Arduino via I2C communication.
Component List
Seven Segment Display (Wokwi Compatible)
- Two instances of a seven-segment display compatible with Wokwi.
- Pins: G, F, COM.2, B, A, E, D, COM.1, C, DP.
Pushbutton
- A simple pushbutton with four pins.
Resistor
- A single resistor with a resistance of 330 Ohms.
Arduino UNO
- A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0 to A5, SCL, SDA, AREF, D0 to D13.
LED: Two Pin (red)
- A basic red LED with an anode and cathode.
AHT10
- A temperature and humidity sensor with I2C communication.
- Pins: SDA, SCL, GND, VIN.
Wiring Details
Seven Segment Display (Wokwi Compatible)
- Segment E connected to Arduino UNO D13.
- Segment G connected to Arduino UNO A1.
- Segment D connected to Arduino UNO D12.
- Segment F connected to Arduino UNO A0.
- Common pins (COM.1 and COM.2) connected to GND, along with other components' GND connections.
- Segment C connected to Arduino UNO D11.
- Segment A connected to Arduino UNO D9.
- Segment B connected to Arduino UNO D10.
Pushbutton
- Pin 4 connected to GND.
- Pin 2 connected to Arduino UNO D0.
Resistor
- Pin 1 connected to Arduino UNO A3.
- Pin 2 connected to the anode of the red LED.
LED: Two Pin (red)
- Cathode connected to GND.
- Anode connected to the resistor.
AHT10
- VIN connected to Arduino UNO 3.3V.
- SCL connected to Arduino UNO SCL.
- SDA connected to Arduino UNO SDA.
- GND connected to GND.
Documented Code
void setup() {
}
void loop() {
}
The provided code is a template with empty setup()
and loop()
functions, which are the entry points for Arduino code. The setup()
function is called once when the program starts and is used to initialize settings. The loop()
function runs repeatedly, allowing the microcontroller to perform operations based on the circuit's design. Additional code is required to control the components in the circuit.