All the versions of this article: [English] [français]
Le 20/7/2010, 15:07 Arduino driver for Sure0832 led panel
When I went to Berlin, Germany in January 2010, I was glad to discover the Arduino electronic board, and the Lol Shield from Jimmie P Rodgers.
We even made, with Coucouf, a Tetris, a Pong and a Space Invader based on the same board Arduino+LolShield
In May 2010, after I bought a bunch of 8x32 led panels from Sure, I wrote a driver to write texts on those panels, and here is the result ...
So, in may 2010, I bought 7 Sure0832 Led panels (they are red leds, but it also exist with green or orange leds). This panel can be electronically driven by 3 pins, plus the power (5V).
a Sure0832 led panel, front
So, I developed a library to drive this led panel and show nice variable-width characters (even european languages accents !), and link those panels together. I eventually managed to build a big wood plank with 7 led panels put end to end !
The Octopuce Led panel !
The electronic bloc with Arduino shown to appear like a home-crafted stuff !
Of course, arduino is a little bit slow (its CPU power is not enough to be quick and fluent) to drive all those led panels, but the result is not that bad ...
The funny geeky part : when I developed the library for 1 panel, it worked perfectly. When I tried with 2 or more, the program crashed every time. I didn’t have enough RAM to do this!
After reading thoroughly my code to fix this, I finally found the problem: the array containing the characters glyphs was declared that way:
uint8_t font1. But this was no variable data, it’s obviously constant data! I should have declared this array that way:
const uint8_t font1 so that it don’t get copied into RAM when the program starts!
(remember that arduino have 32KB of flash memory, but only 2KB of RAM!!)
To conclude, you can download the code below, which is the library I developed thanks to many other guys on the Internet who made parts of the job. All what I publish is given under a GPL v2 or later license.
Welcome on Benjamin Sonntag's blog, web entrepreneur, Linux expert and free-software-savvy half-geek.
Here you will find geek tuff, tricks and tips and friendly ads, personal histories and a bunch of politics ...
On the same topic ...
In the Octopuce boat ...
- 15 February – Accélérer votre réponse SSL/TLS avec l’OCSP Stapling
- 9 February – Débugger PHP en CLI avec Xdebug & Vim
- 14 September 2015 – Analyser une attaque avec les logs d’Apache2
- 30 April 2015 – Conditions générales de vente
- 7 April 2015 – Testing Augeas lenses with augparse on Debian GNU/Linux
La Quadrature du Net
- 21 July – État d'urgence : surenchère dans la surveillance de masse
- 18 July – La Quadrature du Net répond à la consultation européenne sur la neutralité du Net
- 18 July – Encore une fois ?
- 13 July – [NextINpact] À l’Assemblée, débats en vue autour de l’action de groupe en matière de données personnelles
- 13 July – Axelle Lemaire à l'heure du bilan (catastrophique) du gouvernement sur le numérique
Old stuff ...
- 20 janvier 2015 – Comment accélérer ou ralentir une vidéo sur VLC ?
- 26 août 2014 – RSS, Juillet-Aout 2014
- 31 octobre 2013 – Du scan des livres, du partage de la connaissance
- 11 juin 2015 – Signature antivirus & Clamav
- 22 février 2014 – Compilation d’un paquet debian à partir des sources