Circuit Documentation
Summary
This circuit consists of an Arduino Mega 2560 microcontroller connected to various LEDs of different colors (red, blue, and green). The LEDs are controlled via the PWM pins on the Arduino, allowing for brightness control through pulse-width modulation.
Component List
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, PWM pins, AREF, SDA, SCL.
LED: Two Pin (red)
- Description: A red LED with two pins: anode and cathode.
LED: Two Pin (blue)
- Description: A blue LED with two pins: anode and cathode.
LED: Two Pin (green)
- Description: A green LED with two pins: anode and cathode.
Wiring Details
Arduino Mega 2560
- D3 PWM: Connected to the anode of a blue LED.
- D4 PWM: Connected to the anode of a red LED.
- D5 PWM: Connected to the anode of a green LED.
- D6 PWM: Connected to the anode of a green LED.
- D7 PWM: Connected to the anode of a green LED.
- D8 PWM: Connected to the anode of a blue LED.
- D9 PWM: Connected to the anode of a red LED.
- D10 PWM: Connected to the anode of a green LED.
- D11 PWM: Connected to the anode of a green LED.
- D12 PWM: Connected to the anode of a green LED.
- GND: Connected to the cathodes of all LEDs.
LED: Two Pin (red)
- Anode: Connected to D4 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (blue)
- Anode: Connected to D3 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (green)
- Anode: Connected to D5 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (green)
- Anode: Connected to D6 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (green)
- Anode: Connected to D7 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (blue)
- Anode: Connected to D8 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (red)
- Anode: Connected to D9 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (green)
- Anode: Connected to D10 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (green)
- Anode: Connected to D11 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
LED: Two Pin (green)
- Anode: Connected to D12 PWM on the Arduino.
- Cathode: Connected to GND on the Arduino.
Documented 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
