Skip to content

How Does the LED Sign Work?

Evan Ugarte edited this page Apr 8, 2022 · 8 revisions

The infrastructure to print pages from the SCE website works well to control other peripherals. Writing to the LED sign is slightly simpler than printing and only involves Core-v4, AWS SQS and a Quasar. Below is a high level diagram of the sign messaging system.

LED Sign Diagram

To demonstrate the functionality of the LED sign, let's start at Core-v4's webpage to update the sign.

Let's fill out the led sign page with the below content: example request

Pushing Messages to SQS

After the user submits data to update the sign, Core-v4's backend pushes a message to a Queue in Amazon's Simple Queue Service (SQS). Below is an example message pushed to the queue:

{
    "scrollSpeed": 25,
    "backgroundColor": "#0000FF",
    "textColor": "#00FF00",
    "borderColor": "#FF0000",
    "text": "Welcome to SCE!",
}
  • Note: the range of the scrollSpeed field is 0-50

The Physical LED Sign

On the sign, the received message translates to the command:

./sce_sign.exe \
 --set-speed <speed> px/vsync \
 --set-background-color <background color>
 --set-font-color <font color> \
 --set-border-color <border color> \
 --set-font-filename ./10x20.bdf \
 --set-brightness 66% \
 --set-text <text here>

the sign would show the message with the below colors:

Clone this wiki locally