Appearance
RGB LEDs
Overview
The AlphaBot V2 is a popular robotics development platform that includes RGB (Red-Green-Blue) LEDs for visual feedback, status indication, and debugging purposes. These LEDs can produce a wide range of colors by mixing different intensities of red, green, and blue light.
Key Features
- Integrated RGB LEDs: Typically includes one or more RGB LEDs.
- PWM (Pulse Width Modulation) Control: Allows precise color mixing by varying brightness levels.
- Programmable: Can be controlled via a microcontroller (e.g., Arduino, Raspberry Pi).
- Common Anode or Cathode Configuration: Depending on the model, the RGB LED may share a common power or ground connection.
Working
- Color Control
- An RGB LED contains three separate LEDs (Red, Green, Blue) in a single package.
- By adjusting the brightness of each LED (using PWM), various colors can be produced.
- Example
- Red (100%) + Green (100%) + Blue (0%) = Yellow
- Red (100%) + Green (0%) + Blue (100%) = Magenta
- Control Method
- The AlphaBot V2's RGB LED is usually connected to PWM-capable GPIO pins on the microcontroller.
- A current-limiting resistor is used for each color channel to prevent damage.
- Microcontroller Interfacing
- If using Arduino, the analogWrite() function controls brightness (0-255).
Colors (Using PWM)
Colors | RED | GREEN | BLUE |
---|---|---|---|
Red | 255 | 0 | 0 |
Green | 0 | 255 | 0 |
Blue | 0 | 0 | 255 |
Yellow | 255 | 255 | 0 |
Magenta | 255 | 0 | 255 |
Cyan | 0 | 255 | 255 |
White | 255 | 255 | 255 |
Blank | 0 | 0 | 0 |
📝 Note: Brightness of the RGB LED can be increased or decreased by changing the value of PWM (0 - 255).