Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an I2C LCD display, and a rotary encoder. The Arduino UNO serves as the central controller, interfacing with the LCD display via the I2C protocol and reading inputs from the rotary encoder.
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
I2C LCD Display (lcdi2c)
- Description: An LCD display module that communicates via the I2C protocol.
- Pins: GND, VCC, SDA, SCL
Rotary Encoder
- Description: A device that converts the angular position or motion of a shaft to an analog or digital code.
- Pins: clk, dt, sw, gnd, +
Wiring Details
Arduino UNO
- 5V: Connected to the VCC pin of the I2C LCD Display and the + pin of the Rotary Encoder.
- GND: Connected to the GND pin of the I2C LCD Display and the gnd pin of the Rotary Encoder.
- A4: Connected to the SDA pin of the I2C LCD Display.
- A5: Connected to the SCL pin of the I2C LCD Display.
- D4: Connected to the sw pin of the Rotary Encoder.
- D3: Connected to the dt pin of the Rotary Encoder.
- D2: Connected to the clk pin of the Rotary Encoder.
I2C LCD Display (lcdi2c)
- VCC: Connected to the 5V pin of the Arduino UNO.
- GND: Connected to the GND pin of the Arduino UNO.
- SDA: Connected to the A4 pin of the Arduino UNO.
- SCL: Connected to the A5 pin of the Arduino UNO.
Rotary Encoder
- +: Connected to the 5V pin of the Arduino UNO.
- gnd: Connected to the GND pin of the Arduino UNO.
- sw: Connected to the D4 pin of the Arduino UNO.
- dt: Connected to the D3 pin of the Arduino UNO.
- clk: Connected to the D2 pin of the 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 list, wiring details, and the code used in the Arduino UNO.
