Stack light for Alertmanager using Raspberry Pi

From CaveLab
This page is currently a draft. Please check back later for additional changes.
Stack light mounted on homelab rack, warning and alert active.

Colors

Color Usage Description
Red Alert Active alerts, flash if new, steady if not
Orange Warning Active warnings, flash if new, steady if not
Green Resolved Flashing light for one cycle if active states reduced by 1 or more
Blue Critical Critical alerts for a few hand picked situations
White Info TBD

Videos

This video is also available on YouTube.

I/O

Raspberry Pi GPIO pinout

Outputs

  • GPIO 24: Red
  • GPIO 4: Orange
  • GPIO 3: Green
  • GPIO 2: Blue
  • GPIO 17: Clear

Source code

Git-alt-brands.svg
Source code is available in a git repository:
https://github.com/thomasjsn/stack-light-alertmanager

Gallery

Schematic diagram

RPi-stack-lights-circuit.png

Parts used

Qty. Part
1 × Darlington-driver, 7 step, ULN2003A, DIL16, In: 2.7K/5V
5 × Darlington-transistor, PNP, 5 A, 60V, TIP125, TO-220
1 × DIL socket, 16-pin, 7.62mm
1 × PCB, perfboard prototyping, 50x70mm, 35cm2
1 × Raspberry Pi 3 Model B, 1.2GHz Quad 64bit, 1GB RAM, BT, WLAN
5 × Resistor, carbon film, 0.25W, 4.7 kΩ, 5%
1 × Stacklight, light signal, Red/Yellow/Green/Blue/White, LED 12V, 10W
10 × Straight pin header, female, Dual row, 2.54mm
1 × Terminal block, pluggable, 5 mm, 6-pin screw female
1 × Terminal block, pluggable, 5 mm, 6-pin vertical male
1 × Terminal blocks, screw, PCB, 3.5mm, 2-pin, straight