Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, multiple pushbuttons, a rotary encoder, and a 0.96" OLED display. The Arduino UNO serves as the central controller, interfacing with the pushbuttons, rotary encoder, and OLED display to create an interactive system.
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
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Rotary Encoder
- Description: A rotary encoder with pushbutton functionality.
- Pins: GND, +, SW, DT, CLK
0.96" OLED
- Description: A small OLED display module.
- Pins: GND, VDD, SCK, SDA
Wiring Details
Arduino UNO
- 5V: Connected to VDD of the 0.96" OLED and + of the Rotary Encoder.
- GND: Connected to Pin 3 (out) of all Pushbuttons, GND of the 0.96" OLED, and GND of the Rotary Encoder.
- A4: Connected to SCK of the 0.96" OLED.
- A5: Connected to SDA of the 0.96" OLED.
- D8: Connected to Pin 1 (in) of one Pushbutton.
- D7: Connected to Pin 1 (in) of another Pushbutton.
- D6: Connected to Pin 1 (in) of another Pushbutton.
- D5: Connected to Pin 1 (in) of another Pushbutton.
- D4: Connected to CLK of the Rotary Encoder.
- D3: Connected to SW of the Rotary Encoder.
- D2: Connected to DT of the Rotary Encoder.
Pushbutton 1
- Pin 3 (out): Connected to GND of the Arduino UNO.
- Pin 1 (in): Connected to D8 of the Arduino UNO.
Pushbutton 2
- Pin 3 (out): Connected to GND of the Arduino UNO.
- Pin 1 (in): Connected to D7 of the Arduino UNO.
Pushbutton 3
- Pin 3 (out): Connected to GND of the Arduino UNO.
- Pin 1 (in): Connected to D6 of the Arduino UNO.
Pushbutton 4
- Pin 3 (out): Connected to GND of the Arduino UNO.
- Pin 1 (in): Connected to D5 of the Arduino UNO.
Rotary Encoder
- GND: Connected to GND of the Arduino UNO.
- +: Connected to 5V of the Arduino UNO.
- SW: Connected to D3 of the Arduino UNO.
- DT: Connected to D2 of the Arduino UNO.
- CLK: Connected to D4 of the Arduino UNO.
0.96" OLED
- GND: Connected to GND of the Arduino UNO.
- VDD: Connected to 5V of the Arduino UNO.
- SCK: Connected to A4 of the Arduino UNO.
- SDA: Connected to A5 of the Arduino UNO.
Documented Code
Arduino UNO Code
void setup() {
}
void loop() {
}
This code is a basic template for the Arduino UNO. The setup()
function is used to initialize any settings or configurations, and the loop()
function contains the main code that runs repeatedly. You can add your specific logic and functionality within these functions to control the pushbuttons, rotary encoder, and OLED display.