Pandabyte RGB LED Strip Module: Programming Guide
by pandabyte in Circuits > Arduino
23 Views, 0 Favorites, 0 Comments
Pandabyte RGB LED Strip Module: Programming Guide
Pandabyte RGB LED Strip Module is an addressable LED module used for learning programmable RGB lighting effects with microcontrollers such as Arduino compatible boards, ESP32, or Raspberry Pi Pico.
The module contains:
- 10 × WS2812B addressable RGB LEDs
- 1 × Push Button Switch
Each WS2812B LED can be individually controlled to generate colorful lighting animations and effects.
The onboard push button can be used for interactive control applications.
A key feature of this module is that it supports two connection methods:
- Traditional 4-pin header for standard jumper-wire connections
- OR
- 4-pin Grove connector for quick plug-and-play prototyping
The push button is designed to work in:
- INPUT_PULLUP mode
This means:
- Button released → HIGH
- Button pressed → LOW
In this guide, you will learn:
- Module pin configuration
- WS2812B LED strip control
- RGB color effects
- Push button input handling
- Circuit connections and Arduino programming examples
Supplies
Hardware:
- PandaByte RGB LED Strip Module
- Development Board (We will use PandaByte xC3m ESP32C3 Dev board)
- Grove Shield/Expansion Board
- Cables: Dupont, USB, and Grove
Software:
- Arduino IDE
- FastLED Library
- https://github.com/FastLED/FastLED
Circuit Connections
Perform the connection based on the table.
Install the Library
- Open Arduino IDE
- Go to:
- Sketch → Include Library → Manage Libraries
- Search for:
- FastLED
- Install the library
Programming
Program 1: RGB Color Changing Effect
Change the entire LED strip color continuously.
Program 2: LED Strip ON/OFF Control.
Using Push Button Use the push button to toggle the LED strip ON and OFF.
Output
Program 1: RGB Color Changing Effect
- The entire LED strip will continuously change colors including:
- RED
- GREEN
- BLUE
- YELLOW
- PURPLE
- WHITE
Program 2: LED Strip ON/OFF Control Using Push Button
- Pressing the button will:
- turn ON the LED strip
- turn OFF the LED strip
Important Info
The module uses:
- 10 × WS2812B addressable RGB LEDs
- 1 × Push Button
WS2812B LEDs use a single-wire digital communication protocol.
Each LED can be individually controlled.
The RGB signal pin must be connected to a digital GPIO pin.
The switch pin should be configured using:
- INPUT_PULLUP
WS2812B LEDs typically require a stable 3.3V/5V power supply.