Arduino UNO Controlled LED Array with Potentiometer Brightness Adjustment
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a potentiometer, multiple red LEDs, resistors, and a 7.4V power supply. The Arduino UNO is used to control the LEDs, which are connected through resistors to ensure proper current limiting. The potentiometer is used to provide an analog input to the Arduino.
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
LED: Two Pin (red)
- Description: A standard red LED with two pins: cathode and anode.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 330 Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 330 Ohms
Potentiometer
- Description: A variable resistor with three pins: GND, Output, VCC.
- Pins: GND, Output, VCC
7.4V Power Supply
- Description: A power supply providing 7.4V.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V connected to VCC of the Potentiometer.
- GND connected to - of the 7.4V Power Supply.
- GND connected to GND of the Potentiometer.
- Vin connected to + of the 7.4V Power Supply.
- A0 connected to Output of the Potentiometer.
- GND connected to the cathode of all LEDs.
- D11 connected to pin1 of a Resistor.
- D10 connected to pin1 of a Resistor.
- D9 connected to pin1 of a Resistor.
- D8 connected to pin1 of a Resistor.
- D7 connected to pin1 of a Resistor.
- D6 connected to pin1 of a Resistor.
- D5 connected to pin1 of a Resistor.
- D4 connected to pin1 of a Resistor.
- D3 connected to pin1 of a Resistor.
- D2 connected to pin1 of a Resistor.
LED: Two Pin (red)
- cathode connected to GND of the Arduino UNO.
- anode of each LED connected to pin2 of a corresponding Resistor.
Resistor
- pin1 connected to a digital pin (D11, D10, D9, D8, D7, D6, D5, D4, D3, D2) of the Arduino UNO.
- pin2 connected to the anode of a corresponding LED.
Potentiometer
- VCC connected to 5V of the Arduino UNO.
- GND connected to GND of the Arduino UNO.
- Output connected to A0 of the Arduino UNO.
7.4V Power Supply
- + connected to Vin of the Arduino UNO.
- - connected to GND of the 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)