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 b18243f19c x-undo 10 years ago
..
Makefile x-undo 10 years ago
README.md x-undo 10 years ago
arduino_pins.h x-undo 10 years ago
config.h x-undo 10 years ago
main.c x-undo 10 years ago
utils.h x-undo 10 years ago
ws_driver.c x-undo 10 years ago
ws_driver.h x-undo 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.