LED Panel: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
(Created page with "{{project |name = LED Panel |status = experimental |image = |description = Displays a ticker on the LED Panel in the space |author = User:siedi|Matth...")
 
No edit summary
Line 11: Line 11:
|license    =  
|license    =  
|download    =  
|download    =  
}}The LED Panel actually consists 2 32x128 LED panels with a HUB75 connected to a Raspberry Pi 1. The panels are provided by [[User:jorgen|Jorgen]], the pi by [[User:siedi|Matthias]] The custom software can retrieve messages via MQTT (what else) and display them in two rows. The first row is the "larger" one, the second row the smaller one. The content and format of the text can be heavily customized via MQTT (see below).
}}
The LED Panel actually consists 2 32x128 LED matrixes with a HUB75 connected to a Raspberry Pi 1. The panels are provided by [[User:jorgen|Jorgen]], the pi by [[User:siedi|Matthias]] The custom software can retrieve messages via MQTT (what else) and display them in two rows. The first row is the "larger" one, the second row the smaller one. The content and format of the text can be heavily customized via MQTT (see below).


== Software ==
== Software ==
Line 20: Line 21:
* The LED software is automatically launched on startup via the crontab of the pi user and running in the background.  
* The LED software is automatically launched on startup via the crontab of the pi user and running in the background.  


== Command line ==
== Command line parameters ==


== MQTT topics & commands ==
== MQTT topics & commands ==

Revision as of 17:32, 25 January 2016

 
LED Panel

Release status: experimental [box doku]

Description Displays a ticker on the LED Panel in the space
Author(s)  Matthias

The LED Panel actually consists 2 32x128 LED matrixes with a HUB75 connected to a Raspberry Pi 1. The panels are provided by Jorgen, the pi by Matthias The custom software can retrieve messages via MQTT (what else) and display them in two rows. The first row is the "larger" one, the second row the smaller one. The content and format of the text can be heavily customized via MQTT (see below).

Software

  • Based on the RPI-RGB-LED-Matrix project from hzeller [1].
  • Uses the C++ MQTT Paho library (needs to be compiled and installed to /usr/local/lib & /usr/local/include accordingly)
  • The Code is located here (add repository once uploaded and cleaned up).
  • The LED software is automatically launched on startup via the crontab of the pi user and running in the background.

Command line parameters

MQTT topics & commands

The topic structure is <prefix>/<command>/<parameter>, e.g. mumalab/room/ledpanel/set/once1

  • prefix: as give by the command line
  • command: "set" to set a value. There are currently no other commands implemented (like get)
  • parameter: see table below
  • payload: the value to set
topic parameter description value example
text1 Sets the text of the ticker in the first, upper line. Welcome to the MuMaLab!
text2 Sets the text of the ticker in the second, lower line. We love LEDs!
once1 Interrupts the current ticker in the first line and displays this ticker once. Afterwards displays the old text1 ticker. ALARM!!!
once2 Interrupts the current ticker in the second line and displays this ticker once. Afterwards displays the old text2 ticker. Let's go!
color1 The RGB value of the first line, as a string, comma separated. 255,0,128
color2 The RGB value of the second line, as a string, comma separated. 255,0,128
font1 Name of the font file as on the server for the first text line. 9x18.bdf
font2 Name of the font file as on the server for the second text line. 5x8.bdf

...