A top add-on for Stackr. Five addressable LEDs sit in a printed bar, and each one can be set to its own color.
Creating a light bar add-on featuring addressable WS2812 LEDs to transform the Stackr platform into an emergency or service vehicle (such as police cars, ambulances, or construction machinery) allowed me to learn how to interface the Arduino Nano ESP32 with the addressable LEDs.
| ISSUE | SOLUTION |
|---|---|
| The diffuser was not distributing the light in a uniform way | Increase the infill of the 3D printing for the diffuser and changed the pattern to be a 3 dimensional one to produce more reflections/refractions. |
Stackr with the light bar switched on, sitting beside the digger.
The five LEDs glow through the cover while the bar stays mounted across the top of Stackr.
5 addressable LED, WS2812 / Neopixels, are used on a strip to provide the light for the bar. Incorporated in a 3D printed frame a diffuser was used to distribute the light in all directions from each LED.
The control of the LED strip is done using NZR protocol.
The bar was integrated with the mobile app driving the Stackr in such a way that whenever the Stackr is turning the bar is used to signal change in direction. Also different modes (police, ambulance, construction, etc.) can be controlled from the mobile app.
Stackr is used as the main platform to install the light bar as an add-on. All the software is run on the Stackr's MCU.
The bar on Stackr, the LED strip, the printed parts, and the CAD model.
FreeCAD model of the black side frames and the bar with five colored LED blocks under a clear cover.
Two black side frames, a spacer, and the bar housing with its frosted cover.
Five-LED addressable strip beside the black housing it drops into.
Frosted bar screwed between the black side frames, with the cable exiting the back.
Light bar bolted over the white Stackr, with the cable looped to the deck.
Bar lit green, red, and blue on Stackr, with the Nano glowing on the deck.
14 photographs and drawings from this build.
| PARAMETER | SPECIFICATION / VALUE |
|---|---|
| Addressable LED | 5 x WS2812 |
| CAD Software | FreeCAD |
| Manufacturing | 3D Printing |
| Controller | Mobile App |
| Communication | NZR serial communication |