Controlling WS2812 LEDs via golang and an Arduino UNO
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
arduino/led_stream
led_stream
resources
.gitignore
README.md
build.sh
main.go
router.go

README.md

go-led-stream

This is VERY rough.

The inspiration for this project came from a $40 LED strand from Amazon.

The basic architure is laid out below:


Arduino

  • Loops looking for serial data in
  • When finding a packet starting with 0xDEADBEEF read in a packet, check it, and load the data
  • Run a custom interpreter with that provided data acting as bytecode
  • Use that bytecode to determine how to mutate the LED strand
  • Send frames to the strand

Go

  • Serve a webpage to allow editing of configuration
  • Act as the controller for the Arduino
  • Build bytecode to run different patters
  • Wrap that bytecode in a packet and send it over