Control WS2812 LEDs from a STM32F4 Discovery board. The Commands are set from an boblight instance.
- PC / Raspberry to run boblight e.g. in combination with Kodi
- WS2812 LEDs
- STM32F4 Discovery board
- Hardware interface
- PB0 is connected with the data input of the first WS2812
- GND is also connected with the WS2812
- 5V power supply, can be the same as for the WS2812
- USB-Connecten for the USB serial
- LED interface
- Green LED blinking : Board running
- Red LED : nothing new on the USB-UART
- Blue LED : WS2812 LEDs updated with new information
- Hardware interface
- Boblight
- This Project
- Configuration, see below
The boblight.conf used to communicate with the STM should look like the following:
[global]
#interface 10.0.0.2
#port 19333
[device]
name ambilight1
output /dev/ttyACM0
channels 30
type momo
prefix 41 64 61 00 28 7D
interval 20000
rate 115200
#debug on
#allowsync yes
[color]
name red
rgb FF0000
gamma 2.1
adjust 0.12
blacklevel 0.01
[color]
name green
rgb 00FF00
gamma 2.1
adjust 0.12
blacklevel 0.01
[color]
name blue
rgb 0000FF
gamma 2.1
adjust 0.12
blacklevel 0.01
[light]
name main
color red ambilight1 1
color green ambilight1 2
color blue ambilight1 3
hscan 0 100
vscan 0 100