gintonik
Posts: 13
Joined: Fri Apr 22, 2016 4:09 pm

LED Matrix 32x8

Sat Sep 08, 2018 7:32 am

Hi,

i want to create a newsticker with a row of 8x8 LED-Matrix.
The first step was installing max7219. Executing the demo give the result, that a single 8x8 matrix works fine.
Then i found an article that for using more then one 8x8-Matrix an other module have to installed. So i just installed the "multilineMAX7219". I opened the config an add my Matrix-Setup to the file. After that i start a matrix_test.py but nothing happened.

In the single mode every Matrix works fine but not in a row. I´d like to use 2 Rows with 4 Matrix finally. But the half size with just one rows doesnt works.

Used Hardware: Pi B Rev2.0, Raspian-Stretch (June 2018), 8x8 Matrix (four in a row)
https://www.amazon.de/gp/product/B01BUT ... UTF8&psc=1

SPI and using GPIO over SSH are activated.

I dont wanna make specials with the matrix, just showing some letters as a ticker. That cant be so difficult or not?
Receiving Data about rss-feed is the next step. So i need a way to use a shell command for executing an individual text.

Is there someone who can help me started a functional matrix?

User avatar
DougieLawson
Posts: 34114
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: LED Matrix 32x8

Sat Sep 08, 2018 7:42 am

Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

gintonik
Posts: 13
Joined: Fri Apr 22, 2016 4:09 pm

Re: LED Matrix 32x8

Sat Sep 08, 2018 1:29 pm

Hi,

thanks for your quickly answer. But one Problem stays:

All Matrix shows the same content at once! The only thing i can change ist the direction and the angle but thats it.

Code: Select all

sudo python examples/matrix_demo.py --cascaded 4 --block-orientation 0 --rotate 0
Thats what i entered at the CLI. Ant how is ti possible to show a personally message?

User avatar
DougieLawson
Posts: 34114
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: LED Matrix 32x8

Sat Sep 08, 2018 2:12 pm

The idea of that sample matrix_demo.py program is you delete the bits from it that you don't need and hack the "msg='stuff to say'" code to display your own messages.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

gintonik
Posts: 13
Joined: Fri Apr 22, 2016 4:09 pm

Re: LED Matrix 32x8

Sat Sep 08, 2018 4:20 pm

Hi,

thats the way i like to do. But i cant get more then a single matrix for output or just 4 times the same.
I think that the setup are beein written in the header of the script but where are the rows/collums for setting up my configuration?

Code: Select all


$ python examples/matrix_demo.py -h
usage: matrix_demo.py [-h] [--cascaded CASCADED]
                      [--block-orientation {0,90,-90}] [--rotate {0,1,2,3}]

matrix_demo arguments

optional arguments:
-h, --help            show this help message and exit
--cascaded CASCADED, -n CASCADED
                      Number of cascaded MAX7219 LED matrices (default: 1)
--block-orientation {0, 90, -90}
                      Corrects block orientation when wired vertically
                      (default: 0)
--rotate {0,1,2,3}    Rotate display 0=0°, 1=90°, 2=180°, 3=270° (default:
                      0)
what is the right CLI Argument to open the Script with 4 8x8 Matrix?

User avatar
DougieLawson
Posts: 34114
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: LED Matrix 32x8

Sat Sep 08, 2018 5:26 pm

Go and read the open (and closed) issues here: https://github.com/rm-hull/luma.led_matrix/issues
If that doesn't resolve it ask the code author for help by opening a new issue.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

dunhackin68
Posts: 1
Joined: Sat Oct 06, 2018 8:36 pm

Re: LED Matrix 32x8

Sat Oct 06, 2018 8:47 pm

I came across this post whilst trying to get a 4-block (4x1) display working. Initially I had the same problem, i.e. only displaying on a single matrix block whilst running the luma.led matrix_demo.py. After a bit of experimenting, this worked:

Code: Select all

python examples/matrix_demo.py -n 4 --block-orientation 90
Thought I'd post this in case anybody else does the same.

Return to “Interfacing (DSI, CSI, I2C, etc.)”