Skip to content

WS2812 LED strip color and brightness control with two RC PWM channels

License

Notifications You must be signed in to change notification settings

ysoldak/pwm-ws2812

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwm-ws2812

WS2812 LED strip color and brightness control with two RC PWM channels

Brightness goes from 0 (off) to 255 (full power).
Hue goes from Green, via Red to Blue.

Wiring

  • Microcontroller gets 5V power from RC receiver (red and black wires);
  • RC channel 1 controls total brightness (gray wire);
  • RC channel 2 controls hue / color mix (blue wire);
  • WS2812 LED strip's signal wire connected to the microcontroller (yellow wire);
  • WS2812 LED strip's 5V and GND shall be same as of microcontroller's, not necessarily connected as on the picture though.

Given wiring diagram is for Waveshare RP2040 Zero, other boards are also supported.
Find pin numbers in respective src/pins_*.go files.

Flashing

Waveshare RP2040 Zero:

  • Press and hold BOOT button;
  • Plug in your board to your computer, release the button;
  • RPI-RP2 mass storage device shall appear;
  • Copy-paste pwm-ws2812_xxx.uf2 file to this drive;
  • Board reboots with new firmware installed, enjoy!

About

WS2812 LED strip color and brightness control with two RC PWM channels

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published