A few fun pieces of software to use with our MAX7219 LED Matrix Display. Our display is available here for sale: https://inductivetwig.com/products/led-matrix-display
- Arduino Uno: https://inductivetwig.com/products/arduino-uno-r3-with-atmega328p
- Our LED Matrix display product: https://inductivetwig.com/products/led-matrix-display
- Some jumper wire: https://inductivetwig.com/products/10cm-jumper-wire-120-pcs
- A power supply (to run independently): https://inductivetwig.com/products/ac-power-adapter
- LED Matrix Driver: https://github.com/bartoszbielawski/LEDMatrixDriver
- (If using python script): feedparser and pyserial -- available on pip
To hook up to an Arduino Uno, just use the following pins. Be sure to connect up to the "IN" port, labeled on the back.
- Connect Pin 9 on Arduino to CS (Chip Select)
- Connect Pin 11 (MOSI) on Arduino to DIN (Data In)
- Connect Pin 13 (SCK) on Arduino to CLK (Clock)
- Connect 5V (Power) on Arduino to VCC
- Connect GND (Ground) on Arduino to GND
- Program ScrollySign sketch to your Arduino
- Verify that you see the "Waiting for Message" with two cat icons on either side
- Open up the terminal
- Set line termination to "none"
- TURN ON YOUR CAPS LOCK KEY! The sketch only supports capitalized letters
- Type in some text and hit enter
When the sign is done scrolling the current text, it will move on to the next. It also sends a # to indicate when the message completes, so you can time new messages to follow.
- Install the Arduino sofwtware as indicated above, taking note what serial port your Arduino Uno is showing up as
- We assume you have installed Python, if not, please do so. Its pre-installed on mac and can be accessed via "Terminal"
- Use pip (the Python package manager) to install the pyserial library. IE: pip install pyserial
- Use pip (the PYthon package manager) to install the feedparser library. IE: pip install feedparser
- Edit scrollynews.py and change serialport = "" to your serial port of choice. Ours showed up as /dev/tty.usbmodem145301
- Type: python scrollynews.py
The script will reach out to a news RSS feed and show the top stories of each title.
Modify scrollynews.py above, and change rss_feed = "" to any other feed. If the feed supports titles, you will see the news scroll by.
You can modify our script to send text over the serial port to make your own signs. Show sweets, mentions, weather, time, or connect it to a web form!
Our script waits for the "#" to appear (signals start of a new message) to load into the buffer a new message to follow. Take note that we do limit the serial transmission speed a little bit, as the Arduino Uno's CPU is quite heavily used. We found that without a serial delay, messages longer than 64 characters can become truncated or corrupted.
Due to the way the fonts are configured, only upper case text is supported. You must send upper case letters for it to work. We replaced the * symbol with a Cat. If you want to create custom characters, check out this link here and replace the hex line for the character of interest: https://gurgleapps.com/tools/matrix