gamelights

gamelights

An RGB LED strip WiFi controller, complete with code and PCB designs.

Name Last Update
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
build.sh.example Loading commit data...
platformio.ini Loading commit data...

Gamelights

build
status

Gamelights is a WiFi-enabled RGB LED strip controller. It's meant to drive my 12V 5050 LEDs, but can work with any voltage LEDs, as long as their connectors are Vcc, R, G, B (like mine).

This controller can currently be controlled through MQTT and UDP (with autodiscovery). Pull requests are welcome.

The PCB

You can buy the full, paneled PCB from DirtyPCBs. You will need:

  • An ESP8266 12E or 12F.
  • 6 10k 0804 SMD resistors.
  • 1 1μF 0804 SMD capacitor.
  • A barrel connector.
  • LED strip connectors, the ones with the cables and stuff.
  • 3 3401 N-MOSFETS.
  • 1 SPX3819 3.3V LDO.
  • One of those little voltage converter thingy boards, to get your 12V down to 5V.

Solder all that on the PCB, and you have your very own WiFi-enabled LED controller!

Building the code

To build the code, just install PlatformIO and type:

platformio run -t upload

Or, to populate all your secret variables without committing them, use the build.sh.example script I have included. Just rename it to build.sh, put your secret keys in and run it.

Helper scripts

The repository also includes some helper scripts:

  • send.py: This is both a command-line script and a module. You can use it to send your own colors to the controller (see the command line for details on how to use it).
  • capture.py: This script is an experiment that will read the screen for Super Hexagon and mirror the colors in the game to the gamelights controllers.

Other stuff

Since many of my friends have gone apeshit over having lights pulse and follow and do crazy stuff with their games, I may make a product out of this and sell a complete solution. Let me know if you want me to Kickstart this.

Also, please leave issues and other feedback on this project's Gitlab tracker.

Stavros

P.S. This is what you do with this.