Wednesday, 22 June 2016

raspberry pi news ticker

Ive been trying to do more with the max7219 for a while. Whilst playing with an 8x8 square can get you started a 16x8 gets fun but addictive.

Last week i got a 32x8 board through which is basically 4x 8x8 matrixes still not happy i ordered another that arrived today and soldered the two together so i have 8x 8x8 matrixes and with editing led.matrix() from 4 to 8 it worked.




The wiring was a case of wiring vcc to 3.3v. ground to ground. Din to pi pin 19. Cs to pin 24 and the last one clk to 23.

With the help my last post and rmhull s github code for the 7219 chip i was soon running various code.  Next was to get a news ticker working and after a search i found feedparser a python module which can be installed with apt-get python-feedparser.

Running into a bit of difficulty i turned to twitter with what i had coded so far and help from @rgee0 aka richard gee we got there in getting a news ticker on screen.

Next was to merge the two codes and bingo worked on first attempt


Here is my newsticker in action.




There we go feel free to add and change the code and comment below.

Monday, 13 June 2016

Keyes 16x8 led matrix add on board

I bought one of these keys 16x8 led boards a while back but couldnt get it working. Well a lie i couldnt get both screens working.

So tonight whilst looking for something different I found this board and decided to give it another try. On googling i kept finding arduino set ups which wasnt what i wanted and after using git clone https://github.com/rm-hull/max7219.git i searched for projects which used mr hulls code and came across one which pointed me to another github repo.

So here we go:

First enable SPI in sudo raspi-config (look in advanced menu)

next type:

sudo git clone https://github.com/leon-anavi/raspberrypi-matrix-led-max7219

cd raspberrypi-matrix-led-max7219

sudo python setup.py install

There we go. Some good example codes there and after some playing around i managed to get it to display the time.

.