Skip to content

vishva12124/Pico-LED

Repository files navigation

FRC 7902 WS2812 Controller Project


This program allows the RIO to control two WS2812 LED strips simultaneously using a Raspberry Pi Pico.

A command is sent in this order (do not have any spaces in the input):

0,1,2,3,4,5

0: Strip to Control (from 0 - 2)

1: Brightness (from 0 - 255)

2: Mode (from 1 - 6)

3: R (Red value)

4: G (Green value)

5: B (Blue value)

Modes:

1: Static Lights

2: Strobing Lights

3: RGB Colourwave

4: Pulsing Lights

5: Pattern Lights (I don't know what to properly call this one)


System Information


Microcontroller:

  • Raspberry Pi Pico (RP2040)

Language:

  • C

**External Libraries: **

  • pico-sdk
  • pico-extras

Hardware APIs Used:

  • UART
  • PIO
  • IRQ
  • Multicore
  • Watchdog timer (to be implemented)
  • ADC (to be implemented)

UART RX Pin

  • GPIO 1

Strip 1 TX Pin:

  • GPIO 2

Strip 2 TX Pin:

  • GPIO 5

Baud rate:

  • 1000

Thank you Davis and Arjun for all your help :)

About

Use a Raspberry Pi Pico to control LED strips with the FRC RoboRIO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors