Some old AVR projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
avr-projects/rgb-led-strip/arduino-ws-anim-rainbow
Ondřej Hruška e78d91a900 Improved lib, color system, pin system. 10 years ago
..
Makefile Improved lib, color system, pin system. 10 years ago
README.md x-undo 10 years ago
lib Improved lib, color system, pin system. 10 years ago
main.c Improved lib, color system, pin system. 10 years ago

README.md

WS2812B RGB LED strip driving code

This code is meant for 16MHz Arduino, but should work on any 16MHz AVR. It is in plain C, not the Arduino language.

All you need is ws_driver.c and ws_driver.h, and config.c where you define the port / pin information.

Connection

Digital pin 8 on Arduino (PB0) is connected via a 200-500 R to WS2812B data input. In parallel to the LED strip is a 500-1000 uF capacitor that takes care of smoothening the power supply. Without the cap, the LEDs will flicker.

It is recommended to use stronger power supply for the LED strip, a 30-led one takes around to 1A when fully powered.