LED dot matrix scrolling message w/ soure code

Thread Starter

takao21203

Joined Apr 28, 2012
3,702
Hope it is useful and interesting, I show the complete source code. Making the scroll working only takes minor modifications.

http://aranna.altervista.org/dragon...ing_wp_cron=1393206824.8743610382080078125000

There is no schematic required, since I have, during years of work, designed a method to describe the components and the IO layout with tables.

It is pretty much almost hardware independent. You can use conditional define for different controllers!

The LED matrix size can be changed easily.

One thing is, somehow I have one common anode and one common cathode mixed! The components have the same number- it's a bug!

So I use a different table for the second module (there are two).

You could also use digital MOSFETs for the anodes (PNP), and then you can remove a few IO lines. But it works without any extra components, at 5 volts.

8MHz oscillator. It;s easy to change from PIC16f884 to any microconntroller. The hardware port names are put into a table- simply change to the names used by your controller: Arduino, Raspberry PI, STM8, etc.

There is no schematic, since I can coonnect LED matrix module to any random pins. The scheme is written into a table. Instead of dealing with a schematic, I deal with a software table.

I use about 1/3 of the 4K FLASH, and 1/2 of the 256 bytes RAM.

There are no external components at all (the buttons not yet connected). It is powered from the PICKIT3 at 5 volts.

If you want to try the source, you will have some work to copy/paste, and i'd ask to retain the copyright notice. Zipped file on request. I will update the page soon with a video, and updated code to animate the scroll, and maybe to edit message with the buttons.
 

Attachments

Top