Multiplayer Christmas Lights!

I’ve always wanted to make something with arduino and the challenge is normally finding a project I’m interested in. I always thought christmas lights would be a good use for it, since they’re literally just led’s. However I wanted to do something custom rather than something that had been done over and over. I also wanted to make something the kids could have fun playing with. What I ended up making was a multiplayer webapp game that changes the color of the lights.

Hardware

I used an Arduino Nano with an ESP8266 01 module to connect to Wi-fi along with a couple strands of 5v WS8211 individually addressable led’s.

Web

The game is just a node app using socket.io that allows people to hop on and join a game, assigning them a color. Then it simply keeps track of the users taps and calculates it’s percentage relative to the total and then draws the lights their color based on their percentage of taps. When the game is done the lights glitter the winner’s color and then stays that color until the next game.

It’s a really simple game, but it was fun learning and putting it together to play with friends and neighbors for a little bit.

You can find the code for the webapp at https://github.com/cjgammon/led-game-server