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.
Tags
[Logiciels Libres] - [Copinages] -
Who's there?
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 ...
- le 12 May 2010Nice style for forced form fields
- le 20 JanuaryDNS & AlternC - How does it work?
Chez Aline et ses Animfolies'
- 4 February – Encore 2 pages…
- 29 January – Ma page préférée
- 28 January – Encore 2 nouvelles pages …
- 26 January – 2 nouvelles pages
- 22 January – ABCdaire
In the Octopuce boat ...
- 17 November 2011 – Octopuce SARL recherche un développeur PHP/MySQL
- 23 October 2011 – Octopuce à Metz (Libre et Entreprises)
- 23 October 2011 – Octopuce à Metz (Libre et Entreprises)
- 19 January 2011 – Comment utiliser les hooks de GIT pour mettre à jour automatiquement un site de développement
- 18 January 2011 – Hébergement de dépôts GIT sur un serveur via Gitosis
La Quadrature du Net
- 2 February – ACTA : Le Commissaire De Gucht ment au Parlement européen
- 30 January – Démontage des mensonges de la Commission européenne sur ACTA
- 26 January – ACTA signé par l'UE. Ensemble, nous devons le vaincre !
- 23 January – Après SOPA et PIPA aux États-Unis, ACTA arrive au Parlement européen
- 20 January – MegaUpload : l'industrie du copyright en guerre contre les créatures qu'elle a enfantées
Old stuff ...
- 6 January 2010 – All games for Arduino & Lol-Shield : Pong, Shoot them up, Tetris
- 18 décembre 2009 – J’ai un iPhone jailbreaké, j’en fais quoi maintenant ?
- 20 July 2010 – Arduino driver for Sure0832 led panel
- 7 décembre 2009 – Ubuntu Party, La Quadrature montre qu’une démocratie appliquée est possible !
- 15 mai 2009 – La 32e Foire Saint Germain : La Plongée Culturelle !






