RGB LED Display - tangentaudio/opencv_tank_gauge GitHub Wiki

Purpose

The 3D printed enclosure entirely covers the float gauge, making it impossible to read the level of the tank directly. To replace this function, a series of RGB NeoPixel style LEDs are used on the front of the gauge to provide level indication. Additionally, the LEDs display basic status, and also will flash to call attention to low tank levels.

LED States

image

  • Initialization: a brief flash with all LEDs blue indicates the system has started up
  • Level 0% to <30%: flashing red bar graph
  • Level 30% to <70%: yellow bar graph
  • Level 70% to 100%: green bar graph

New Level Reading

When a new level reading has been produced by the computer vision process, the topmost LED will flash blue briefly, with the new level reading displayed below.

image

System Shutdown/Reboot

When you invoke a system shutdown or reboot through the tuning web page or via the REST API, the display will indicate shutdown with the lowest LED lit white.

image