Rave Choker / Outshine
A NeoPixel driver project, a companion Android app, and a stylish LED choker.
The choker, displaying a simple back-and-forth animation.
This project consists of three parts:
Outshine itself was based on some work I did for NU Rover, Northeastern University's team which competes in the Mars Society's University Rover Challenge. On the rover, LEDs are controlled by an ATmega328PB separate from the primary STM32 microcontroller. As such, to implement the NeoPixel handling, I essentially had free reign over this chip.
Functionally, the rover is required to display different colors to indicate its control mode (teleoperated or autonomous) and status about its autonomous navigation. It does not need to show animations, but I included them anyway because I figured they could be useful for displaying more detailed status information.
I got a ticket to a Rezz show, and I wanted to incorporate some flashy LEDs in my outfit somehow. Rezz is known for her LED glasses which display a spiral pattern. I wanted to create something similarly colorful and animated, but not a direct reimplementation of the glasses.
The process started with me standing in front of a mirror and holding a lit LED strip up to different parts of my body. Eventually, I settled on a choker, because I liked the look of it the best.
Originally, I had intended for the choker to be controlled via Wi-Fi by broadcasting its own network and exposing a server with a web UI. I had some familiarity with this architecture, as it's similar to how I built the wall matrix project.
At the time, I had recently bought a limited-edition pink RP2040 Feather board from Adafruit, and I really wanted to use it for a project. This board doesn't have Wi-Fi or Bluetooth, so I figured I would add an additional Pi Zero to handle the networking.
With the added bulk of another board in mind, I decided to explore putting the boards and battery off of my neck and into a hat.
This worked to some extent, but the stretchiness of the hat didn't pair well with the fragile ribbon of the LED strip. In the end, I ditched the idea as I thought it seemed too fragile for extended use.
Going back to the drawing board, I decided to try leaving the Feather board on my neck and directly attaching it to my phone over USB. The phone would interface with the board over serial and provide power to it (removing the need for a dedicated battery).
I tried to use the WebSerial API for this, but was hit with a really stupid issue involving Chrome on Android:
As such, I switched to a native app. I built it in React Native, because I already had some familiarity with React.
The Outshine firmware takes in commands over I2C or UART. Commands are four bytes long.
[1 byte] Red channel[1 byte] Green channel[1 byte] Blue channel[1 byte] Animation command
I2C support was added for Rover, UART support was added for debugging the Rover but was later used for the rave choker.
The driver relies on one of two libraries, depending on the architecture:
The code is essentially a massive
case for the different animations. However, it keeps the state (LED index, frame index, etc) globally so that animations can transition smoothly into each other whenever possible.
The app is built in React Native, using react-native-serialport to handle the USB serial communication. I'm just using off-the-shelf components for the color wheel, buttons, and brightness slider. I didn't even bother to build a production version; I just keep the development
.apk on my phone.
The rave choker itself consists of a strand of NeoPixels connected to an Adafruit Pink RP2040 Feather. I'm using a "banana connector" as a clasp. It's wired to ground on both sides, so it's not electrically functional.
The body of the choker is housed in a 3D-printed case, made from two parts that screw together using threaded inserts. The case has an open top to show off the pink RP2040, because I think it looks cool.
It worked well at the Rezz show! In fact, a cute transfem noticed it, and we ended up talking and dancing together for most of the night :)
I had initially been worried about the battery life being an issue, but as long as the LEDs aren't solidly on full-white, it doesn't seem to be a huge problem.
I was also a bit worried about the "crowd-safety" of it--what if someone yanks on the cord?--but it came unplugged easily without yanking on my neck.
I also wore the choker to GAY BASH'D, a combination DJ set and drag show. I made a few revisions to the setup prior to this event, adding a brightness slider to OutshineApp and the 3D-printed case to the choker itself.
Overall, I think I really achieved the goal I started with. The choker is something flashy, stylish, and uniquely "me," and it stands out in the perfect way among a crowd at an EDM show. Also, the Outshine project will undoubtedly prove a useful starting point for future experimentation with NeoPixels.
Ending up with a tethered solution wasn't ideal (for instance, it made going through security a bit of a hassle), and a Bluetooth board would have been a more pragmatic choice. However, having the tether wasn't as annoying as I worried it would be.
It's also a bit cumbersome to change the animation, requiring me to unlock my phone and open the app. I only really wanted to change it every few songs, but it was still frustrating to have to stop raving to fiddle with a smartphone app. Physical controls would help remedy this, at the cost of more complexity. At the end of the day, I think the tradeoffs I made paid off.