Skip to content

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
      1. Red (100%) + Green (100%) + Blue (0%) = Yellow
      2. 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)

ColorsREDGREENBLUE
Red25500
Green02550
Blue00255
Yellow2552550
Magenta2550255
Cyan0255255
White255255255
Blank000

📝 Note: Brightness of the RGB LED can be increased or decreased by changing the value of PWM (0 - 255).