Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, multiple resistors, red LEDs, and a rotary encoder. The circuit is designed to interface the Arduino with the LEDs and the rotary encoder, allowing for control and interaction through the microcontroller.
Component List
Resistor
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
- Resistance: 330 Ohms (3 instances)
- Resistance: 200 Ohms (1 instance)
LED: Two Pin (red)
- Description: A light-emitting diode that emits red light.
- Pins: cathode, anode
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
Rotary Encoder
- Description: A rotary encoder is an electro-mechanical device that converts the angular position or motion of a shaft or axle to an analog or digital code.
- Pins: clk, dt, sw, gnd, +
Wiring Details
Resistor (330 Ohms)
Instance 1:
- pin1: Connected to Arduino UNO pin D6
- pin2: Connected to anode of LED (instance 1)
Instance 2:
- pin1: Connected to Arduino UNO pin D7
- pin2: Connected to anode of LED (instance 2)
Instance 3:
- pin1: Connected to Arduino UNO pin D8
- pin2: Connected to anode of LED (instance 3)
Resistor (200 Ohms)
- Instance 1:
- pin1: Connected to Arduino UNO pin D9
- pin2: Connected to anode of LED (instance 4)
LED: Two Pin (red)
Instance 1:
- cathode: Connected to GND (common ground)
- anode: Connected to pin2 of Resistor (330 Ohms, instance 1)
Instance 2:
- cathode: Connected to GND (common ground)
- anode: Connected to pin2 of Resistor (330 Ohms, instance 2)
Instance 3:
- cathode: Connected to GND (common ground)
- anode: Connected to pin2 of Resistor (330 Ohms, instance 3)
Instance 4:
- cathode: Connected to GND (common ground)
- anode: Connected to pin2 of Resistor (200 Ohms, instance 1)
Arduino UNO
- GND: Connected to cathodes of all LEDs and gnd of Rotary Encoder
- D6: Connected to pin1 of Resistor (330 Ohms, instance 1)
- D7: Connected to pin1 of Resistor (330 Ohms, instance 2)
- D8: Connected to pin1 of Resistor (330 Ohms, instance 3)
- D9: Connected to pin1 of Resistor (200 Ohms, instance 1)
- 5V: Connected to + of Rotary Encoder
- D4: Connected to clk of Rotary Encoder
- D3: Connected to dt of Rotary Encoder
- D2: Connected to sw of Rotary Encoder
Rotary Encoder
- gnd: Connected to GND (common ground)
- +: Connected to 5V of Arduino UNO
- clk: Connected to D4 of Arduino UNO
- dt: Connected to D3 of Arduino UNO
- sw: Connected to D2 of Arduino UNO
Documented Code
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:
}
Additional Documentation (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 microcontroller.
