loading

Hi all,

In this Instructable, I'll show you how to create a simple scrolling text, using led matrix modules. These modules are cheap and easy to use. And, to make this project more fun, a bluetooth feature was added : you will be able to send a message to the system using a mobile phone !

I'll show you how to wire the system with an arduino card, how the program works, and how to use the device with a smart-phone. If you don't want to use the bluetooth feature, just check the last step to see how to do the same with the arduino serial port.

Follow these simple steps to get a nice gadget !!

Any comments for help, tips, and ideas are welcome !

10k views ! Many thanks !!

Step 1: Stuff Needed

Ok, to create this, you will need :

  • an arduino card, with 3v3 logic levels : here, an arduino Nano. You can also use an UNO, but you will have to add a level converter.
  • a HC06 bluetooth serial module. Search for "arduino bluetooth serial module" on the web. You will be able to find it easily.
  • one or more led matrix modules. You can find them on the web, check "MAX7219 led matrix modules". You can find them ready to sue, or as a kit "ready for soldering".
  • breadboard wire, and a breadboard.
  • Usb cable for the arduino card.
  • (optional) rubbers
  • (optional) power supply for the arduino card.

Step 2: Note on the Matrix Modules

Again, these modules are cheap, and easy to find. The great thing about these is that you can wire them in series (8 max), all the boring hardware aspects are handled by the library and the MAX7219 chip.

The problem is that you can't directly put them side by side, because of the connectors. You can put them side by side vertically, but the wiring is complicated. (The wires are under the modules...)

The solution is to put them head to tail, like the final picture. You will say "it will not work, as the rows and columns are toggled". Yes, but don't worry, my program handles this, and flip the pixels every two modules, to get a perfect rendering !

My tip : use small rubbers to keep them in contact. Of course, for a nice finishing, you can fix them on a piece of wood, or similar.

Step 3: How It Works

Ok, the program is quite simple :

  • the arduino starts. A sample message is displayed on the led matrices.
  • if nothing happens on the bluetooth module, the stored message stays on the screens.
  • meanwhile, the arduino program check the serial port (where the bluetooth module is connected). If nothing is on the buffer, the same message keeps "turning".
  • if some data is available on the virtual serial port, the message is downloaded, and replaces the previous message.

The bluetooth modules acts as a serial client. All the boring connecting/security aspects are handled by the module. In fact, the bluetooth module is connected by two TX/RX signals, and acts as a serial port, just like a computer. A bluetooth client terminal on the phone handles the connection, and allow the user to send and receive text.

Step 4: Wiring the Led Matrices

Ok, the wiring is simple :

The "input" pins are on the left side of the module, when the MAX7219 chip is on the left.

  • VCC : on the 5v pin of the arduino. Use the breadboard as you will need more 5v pins.
  • GND : Gnd port of the arduino. Again, use the breadboard.
  • DIN : pin 12 of the arduino (It's the "Data In" signal of the SPI link)
  • CS : pin 10 (the "chip select" signal)
  • CLK : pin 11 (the clock signal)

You can put up to 8 modules in series. In my case, I've got 5 of them.

Put the modules head to tail, make sure the input pins of the first module are on the top (check the pictures). Wire them in series, like the pictures. My tip : wire the modules before putting the rubbers, to avoid errors in the wiring.

Use small rubbers to keep the modules together.

Step 5: Wiring the Bluetooth Module

Ok, the bluetooth module is also easy to wire :

  • Vcc : 5v pin of the arduino
  • GND : ground pin
  • Tx : arduino pin 8
  • Rx : arduino pin 9


Watch out, the module only handles 3v3 logical levels on TX and RX pins. Don't connect them on a 5v pin ! Use a level converter instead.

When on, a led on the module should blink. In fact, the led blinks when the module starts, then stays ON when the module is connected with the phone. Great for debugging !

My wiring is quite ugly... due to a lack of wires, I had to do something not very good with the breadboard... sorry...!

Step 6: The Program

Ok, the program is attached on this step.

You will need the "Led Control" libraries to compile the sketch. Informations are here.

You can download the libs here (there is a button "download zip" on the right):

Remember, you have to unzip them in the "libraries" folder of the main arduino folder. Make sure the folder name is "LedControl". Make sure that the .H and .CPP files are directly inside.

  • Connect the arduino nano to the computer.
  • In the arduino IDE, make sure that the correct board is selected (The nano in my case).
  • In the program, change the line 40, and put the number of matrices used. 5, in my case. You can use up to 8 modules.
  • On the line 48, you can adjust the speed of the text. Put a bigger value if you want to reduce the speed.(It's the delay in ms between a "step" on the screens)
  • Compile and upload the program. The modules will blink randomly during the upload process. It's normal !

You should see the welcome message on the led display...

Step 7: On the Phone

Ok, you will have to setup a bluetooth terminal client on your mobile phone.

On the android store, you can find them for free. For this project, I'll use "Bluetooth SPP", but any similar app should work. Just search for "bluetooth serial" or "bluetooth terminal" on the app store.

  • Turn on the bluetooth on the phone.
  • Use the phone utility to find and locate bluetooth emitters.
  • The emitter name is "HC-06". Select Connect. The password is 1234.
  • Launch the Bluetooth SPP app. Hit the menu button on your phone, select Connect. Select the HC06 module.
  • In the operating mode screen, select Real-time mode.
  • The phone will work, then says that the connection is ok.
  • Check the bluetooth module, the led should stay ON (no more blinking)

When running again the app, you can use a "Restore last connection" feature to get the connection with the module. Works great !

The app you use may be different, of course.

Step 8: Send a Message !

  • Ok, so make sure that the phone is correctly connected to the module.
  • Push the reset pin of the arduino.(Optional, but show the initial message)
  • Check the phone, you should see "Hi ! I'm waiting for a message. Type it and press SEND."
  • Type any message you want, then click on Send.
  • The select message should be now on the led display !


Congrats, you make it work !

Step 9: Final Words

Ok, this project is great, because it's based on a very simple modules, and the result is quite useful. You may want to use this as a general-purpose message display... You can finish this project by making an enclosure to hide the wires and make something beautiful...

If you don't want to use the bluetooth, just use the program given here. Use the arduino serial monitor (or other terminal program) to send a message.

I hope my steps are clear... If you need more explanations, just ask !!

Thanks for reading !!

<p>thx Yoruk, imade it but i've modify ur code because i used different Led matrix unit.<br>i use 4in1 LED Dot Matrix.</p><p>but im still confuse to implement PROGMEM library, maybe u can helping me?<br>but i still conf</p>
Guyz Plz help me how to make same project using GSM module instead of Bluetooth
<p>You have to study the differences between the Bluetooth module and the GSM board in order to understand what you need to update in the code, and if you need to update the hardware.</p>
Hello, how to solve the problem of low memory?
<p>You have two options :<br>get a card with more memory (arduino mega...) or you can try to optimize the code. You can for example remove the inverted buffer (to save a LOT of memory) but you will have to invert the data &quot;manually&quot; during the display, but it will be slower....</p>
<p><font><font>Voc&ecirc; poderia remov&ecirc;-lo para mim como eu n&atilde;o entendo a programa&ccedil;&atilde;o e envi&aacute;-lo por e-mail. </font><font>Obrigado!</font></font></p>
<p>I don't get it... Can we keep talk english please ?</p>
<p>meu e-mail .: jlccomunicacaovisual@hotmail.com</p>
<p>Why not accept more than 30 characters?</p>
<p>Because of the memory limitation. You can try to optimize the code (check my other answer !!)</p>
<p>can i use an arduino uno for this project? will the pin connection be the same? </p>
<p>No, you can't directly use a UNO. As explained in step 1, the UNO works with TTL (5v) digital levels, and the bluetooth module works with 3.3v. So with 5V, you can damage the bluetooth module. The solution in this case is to use a level converter, to adapt the digitals levels between the UNO and the bluetooth module.</p>
<p>so according to you , if we use a arduino nano we can directly connect TX and RX pins of bluetooth module to TX and RX pins of arduino nano</p>
<p>Yes, because the digital levels are the same.</p>
<p>zzzzzzzzzzzz from left to right then scrolling the message from right to left.It worked for me perfect,beyond my expectation.The only problem that i encountered was that when i sent more than 30 characters the scrolling started becoming very slow but up to 15 or so characters is ok.I used 4 max7219s which i ordered them from Ebay and it took only 3 weeks to arrive from China.You are so great thank you very much again ,God Bless you.</p>
<p>Thanks for your feedback !</p><p>Yes I know that sometimes the code can be slow, because for some long messages it tooks a lot of memory....</p>
<p>can i use an arduino uno for this project? will the pin connection be the same? </p>
<p>can i use an arduino uno for this project? will the pin connection be the same? </p>
<p>Very well done Instructable. I had no problem following the directions and getting it to work. Thank you.</p>
<p>Thanks for sharing !!! Always a pleasure to get feedback !!</p>
<p>Hi,great tutorial.Can i use HC-05 blue-tooth?Thanks for your time.</p>
<p>Never used it but yes, it should work the same... </p>
<p>What should I change in the code if I want to put them side by side?</p>
Check the end of the code : you have one &quot;if&quot; statement to remove.<br><br>This one :<br><br> if (m % 2 == 0) //check is the module is upside-down or not...
I tried that and it doesnt work. My leds are setup where the connectors are side by side, instead of top and bottom like yours.
<p>Ok I see... In this case you will have to modify an other statement at the end of the code. You can try to change the <br></p><p>lc.setRow(m,i,Buffer_inverse[i+k+8*m]);</p><p><br>by </p><p>lc.setColumn(m,i,Buffer_inverse[i+k+8*m]);</p><p>(not tested !!)</p><p>As your modules are in a different way. You will not write the data on rows, but on the colums instead.</p>
<p>Thanks! I got it to work side by side, but now its reading the LED in reverse</p><p>&lt;--------xt-----------Te-------------&lt;</p><p>&lt;------LED 2------LED1----------&lt;</p><p>nice code!</p>
<p>Ahhh... Hmmm... In this case you should try </p><p>lc.setColumn(<strong>MatrixNumber-m</strong>,i,Buffer_inverse[i+k+8*m]); </p><p> to reverse the order. Maybe add 1 or -1 to make sure you use all the modules.<br>Let me know...</p>
<p>Aha! I got it to work with this code:</p><p>void DrawText( byte stringLength) {</p><p> for(int k = 0; k &lt; stringLength*6; k++) { </p><p> delay(SpeedDelay); </p><p> for (int m = 0; m &lt; MatrixNumber; m++) { </p><p> for (int i = 0; i &lt; 8; i++) {</p><p> lc.setColumn(m,7-i,Buffer_inverse[i+k+8*m]);</p><p> }</p><p>}</p><p>}</p><p>}</p><p>Much thanks!</p>
<p>Sorry my english. My display work like you, but when i changed the code, scroll speed not work. If possible, you can post your complete code here ou send to my email (farah.luizaugusto@gmail.com) ? Thanks</p>
<p>Could you share YOUR code please ? I can take a look.</p><p>Maybe the &quot;k&quot; variable is missing somewhere to translate the text...?</p>
<p>Hi.</p><p>I have problems with memory and scroll speed. </p><p>O sketch usa 6.018 bytes (19%) de espa&ccedil;o de armazenamento para programas. O m&aacute;ximo s&atilde;o 30.720 bytes.<br>Vari&aacute;veis globais usam 1.888 bytes (92%) de mem&oacute;ria din&acirc;mica, deixando 160 bytes para vari&aacute;veis locais. O m&aacute;ximo s&atilde;o 2.048 bytes.<br>Pouca mem&oacute;ria dispon&iacute;vel, problemas de estabilidade podem ocorrer.</p><p>The code is:</p><p><br>// Easy bluetooth controlled scrolling text<br><br><br>// by Yoruk for Instructable<br><br>// 26 02 15 : first code <br>// 03 03 15 : buffer updating<br>// 04 03 15 : faster version, both buffers<br>// 05 03 15 : cleaning and help<br><br><br>/*<br>WIRING :<br> pin 12 - DataIn of the first led matrix module<br> pin 11 - CLK of the first led matrix module<br> pin 10 - CS of the first led matrix module<br> <br> pin 9 : RX pin of the bluetooth module<br> pin 8 : TX pin of the bluetooth module<br> <br> 5V : 5v of the matrix module, 5v of the bluetooth module<br> GND : the two GND signals of the matrix modules and the bluetooth module<br> <br> WARNING : Use a 3v3 arduino card (nano...) or a level converter !!!<br> <br> Wire the matrix modules in serie. See the Instructable steps.<br> <br> */<br><br><br><br>//Librairie for the LEDs matrix<br>#include &quot;LedControl.h&quot;<br><br>// virtual serial lib, used with bluetooth<br>#include &lt;SoftwareSerial.h&gt;<br><br>//How many matrixes we have ?<br>int MatrixNumber =4;<br><br><br>//virtual serial port bluetooth configuration<br>SoftwareSerial BT(8, 9); //pin 8 : virtual RX pin 9 : virtual TX<br><br><br>// the delay between each screen display (ms)<br>int SpeedDelay =1;<br><br><br>//total string lenght. The first message is 25 characters long (including spaces)<br>int LongueurChaine=25;<br><br><br>char incomingByte; //incoming data from the BT link<br><br><br>// the two pixels arrays<br>char Buffer[200]; //contient tout les pixels de TOUTE LA PHRASE<br>char Buffer_inverse[200]; //contient tout les pixels de TOUTE LA PHRASE, mais symetrises pour affichage sur ecran inverses<br><br>// the message array<br>char Phrase[50];<br><br>//here we set up the led matrix<br>LedControl lc=LedControl(12,11,10,MatrixNumber); <br><br><br>// character lib<br>int fontDefinitions[480] = {<br> 0x00,0x00,0x00,0x00,0x00,/*space*/ // is 32 in ASCII<br> 0x00,0xF6,0xF6,0x00,0x00,/*!*/<br> 0x00,0xE0,0x00,0xE0,0x00,/*&quot;*/<br> 0x28,0xFE,0x28,0xFE,0x28,/*#*/<br> 0x00,0x64,0xD6,0x54,0x08,/*$*/<br> 0xC2,0xCC,0x10,0x26,0xC6,/*%*/<br> 0x4C,0xB2,0x92,0x6C,0x0A,/*&amp;*/<br> 0x00,0x00,0xE0,0x00,0x00,/*'*/<br> 0x00,0x38,0x44,0x82,0x00,/*(*/<br> 0x00,0x82,0x44,0x38,0x00,/*)*/<br> 0x88,0x50,0xF8,0x50,0x88,/***/<br> 0x08,0x08,0x3E,0x08,0x08,/*+*/<br> 0x00,0x00,0x05,0x06,0x00,/*,*/<br> 0x08,0x08,0x08,0x08,0x08,/*-*/<br> 0x00,0x00,0x06,0x06,0x00,/*.*/<br> 0x02,0x0C,0x10,0x60,0x80,/*/*/<br> 0x7C,0x8A,0x92,0xA2,0x7C,/*0*/<br> 0x00,0x42,0xFE,0x02,0x00,/*1*/<br> 0x42,0x86,0x8A,0x92,0x62,/*2*/<br> 0x44,0x82,0x92,0x92,0x6C,/*3*/<br> 0x10,0x30,0x50,0xFE,0x10,/*4*/<br> 0xE4,0xA2,0xA2,0xA2,0x9C,/*5*/<br> 0x3C,0x52,0x92,0x92,0x0C,/*6*/<br> 0x80,0x86,0x98,0xE0,0x80,/*7*/<br> 0x6C,0x92,0x92,0x92,0x6C,/*8*/<br> 0x60,0x92,0x92,0x94,0x78,/*9*/<br> 0x00,0x00,0x36,0x36,0x00,/*:*/<br> 0x00,0x00,0x35,0x36,0x00,/*;*/<br> 0x10,0x28,0x44,0x82,0x00,/*&lt;*/<br> 0x28,0x28,0x28,0x28,0x28,/*=*/<br> 0x00,0x82,0x44,0x28,0x10,/*&gt;*/<br> 0x40,0x80,0x8A,0x90,0x60,/*?*/<br> 0x7C,0x82,0xBA,0xBA,0x62,/*@*/<br> 0x3E,0x48,0x88,0x48,0x3E,/*A*/<br> 0xFE,0x92,0x92,0x92,0x6C,/*B*/<br> 0x7C,0x82,0x82,0x82,0x44,/*C*/<br> 0xFE,0x82,0x82,0x82,0x7C,/*D*/<br> 0xFE,0x92,0x92,0x92,0x82,/*E*/<br> 0xFE,0x90,0x90,0x90,0x80,/*F*/<br> 0x7C,0x82,0x82,0x8A,0x4E,/*G*/<br> 0xFE,0x10,0x10,0x10,0xFE,/*H*/<br> 0x82,0x82,0xFE,0x82,0x82,/*I*/<br> 0x84,0x82,0xFC,0x80,0x80,/*J*/<br> 0xFE,0x10,0x28,0x44,0x82,/*K*/<br> 0xFE,0x02,0x02,0x02,0x02,/*L*/<br> 0xFE,0x40,0x20,0x40,0xFE,/*M*/<br> 0xFE,0x60,0x10,0x0C,0xFE,/*N*/<br> 0x7C,0x82,0x82,0x82,0x7C,/*O*/<br> 0xFE,0x90,0x90,0x90,0x60,/*P*/<br> 0x7C,0x82,0x82,0x86,0x7E,/*Q*/<br> 0xFE,0x90,0x98,0x94,0x62,/*R*/<br> 0x64,0x92,0x92,0x92,0x4C,/*S*/<br> 0x80,0x80,0xFE,0x80,0x80,/*T*/<br> 0xFC,0x02,0x02,0x02,0xFC,/*U*/<br> 0xF8,0x04,0x02,0x04,0xF8,/*V*/<br> 0xFC,0x02,0x0C,0x02,0xFC,/*W*/<br> 0xC6,0x28,0x10,0x28,0xC6,/*X*/<br> 0xC0,0x20,0x1E,0x20,0xC0,/*Y*/<br> 0x86,0x8A,0x92,0xA2,0xC2,/*Z*/<br> 0x00,0x00,0xFE,0x82,0x00,/*[*/<br> 0x00,0x00,0x00,0x00,0x00,/*this should be / */<br> 0x80,0x60,0x10,0x0C,0x02,/*]*/<br> 0x20,0x40,0x80,0x40,0x20,/*^*/<br> 0x01,0x01,0x01,0x01,0x01,/*_*/<br> 0x80,0x40,0x20,0x00,0x00,/*`*/<br> 0x04,0x2A,0x2A,0x2A,0x1E,/*a*/<br> 0xFE,0x12,0x22,0x22,0x1C,/*b*/<br> 0x1C,0x22,0x22,0x22,0x14,/*c*/<br> 0x1C,0x22,0x22,0x12,0xFE,/*d*/<br> 0x1C,0x2A,0x2A,0x2A,0x18,/*e*/<br> 0x10,0x7E,0x90,0x80,0x40,/*f*/<br> 0x18,0x25,0x25,0x25,0x1E,/*g*/<br> 0xFE,0x10,0x10,0x10,0x0E,/*h*/<br> 0x00,0x12,0x5E,0x02,0x00,/*i*/<br> 0x02,0x01,0x01,0x11,0x5E,/*j*/<br> 0xFE,0x08,0x08,0x14,0x22,/*k*/<br> 0x00,0x82,0xFE,0x02,0x00,/*l*/<br> 0x3E,0x20,0x1C,0x20,0x1E,/*m*/<br> 0x3E,0x20,0x20,0x20,0x1E,/*n*/<br> 0x1C,0x22,0x22,0x22,0x1C,/*o*/<br> 0x3F,0x24,0x24,0x24,0x18,/*p*/<br> 0x18,0x24,0x24,0x3F,0x01,/*q*/<br> 0x3E,0x10,0x20,0x20,0x10,/*r*/<br> 0x12,0x2A,0x2A,0x2A,0x04,/*s*/<br> 0x00,0x10,0x3C,0x12,0x04,/*t*/<br> 0x3C,0x02,0x02,0x02,0x3E,/*u*/<br> 0x30,0x0C,0x02,0x0C,0x30,/*v*/<br> 0x38,0x06,0x18,0x06,0x38,/*w*/<br> 0x22,0x14,0x08,0x14,0x22,/*x*/<br> 0x38,0x05,0x05,0x05,0x3E,/*y*/<br> 0x22,0x26,0x2A,0x32,0x22,/*z*/<br> 0x00,0x10,0x6C,0x82,0x82,/*{*/<br> 0x00,0x00,0xFF,0x00,0x00,/*|*/<br> 0x04,0x02,0xFF,0x02,0x04,/*|, arrow*/<br> 0x82,0x82,0x6C,0x10,0x00,/*}*/<br> 0x08,0x10,0x18,0x08,0x10/*~*/<br>};<br><br><br><br>void setup() {<br><br> //matrix modules init<br> for(int adresse=0;adresse&lt;MatrixNumber;adresse++) {<br> /*The MAX72XX is in power-saving mode on startup*/<br> lc.shutdown(adresse,false);<br> /* Set the brightness to a medium values */<br> lc.setIntensity(adresse,1);<br> /* and clear the display */<br> lc.clearDisplay(adresse);<br> }<br><br>// BufferBuilding(&quot;Hi ! Sent me a message...&quot;, 25); //first message on the led screen<br><br><br> BufferBuilding(&quot; lfarah&quot;, 9); //first message on the led screen<br><br><br> Serial.begin(9600); //we also set the normal serial link, for debug<br><br> BT.begin(9600); // bluetooth initialisation<br><br> //we sent a message on the phone to tell the user that he can do someting...<br> BT.println(&quot;Hi ! I'm waiting for a message. Type it and press SEND.&quot;); <br><br>}<br><br><br><br>void loop() { <br><br> DrawText( LongueurChaine); //draw the message, in a loop<br><br><br> //or, if we get something on the virtual bluetooth port...<br> if (BT.available() &gt; 0) {<br><br> LongueurChaine = BT.available(); //incoming string lenght<br><br> for (int i = 0; i &lt; LongueurChaine; i++) {<br><br> // read the incoming byte:<br> incomingByte = BT.read();<br><br> Phrase[i] = incomingByte; ///store the character into the string array<br><br> }<br><br> //debug features, to check :<br> Serial.print(&quot;Display: &quot;);<br> Serial.println(Phrase);<br> Serial.print(&quot;Length : &quot;);<br> Serial.println(LongueurChaine);<br><br> //buffers cleaning, to store the new message<br> for(int k = 0; k &lt; 200; k++) {<br> Buffer[k]=0;<br> Buffer_inverse[k]=0;<br><br> }<br><br> //we create the new buffers, so the new message will be drawn when leaving the sub<br> BufferBuilding(Phrase, LongueurChaine);<br> }<br><br>}<br><br><br><br>void BufferBuilding(char * stringToDisplay, byte stringLength)<br>{<br> int i =0;<br><br> //loop on every characters (on the string)<br> for(int k = 0; k &lt; stringLength; k++) {<br> //here we call the characters library <br> int caract= k; <br> Buffer[i+0] = fontDefinitions[((stringToDisplay[caract] - 32) * 5) + 0]; <br> Buffer[i+1] = fontDefinitions[((stringToDisplay[caract] - 32) * 5) + 1]; <br> Buffer[i+2] = fontDefinitions[((stringToDisplay[caract] - 32) * 5) + 2]; <br> Buffer[i+3] = fontDefinitions[((stringToDisplay[caract] - 32) * 5) + 3]; <br> Buffer[i+4] = fontDefinitions[((stringToDisplay[caract] - 32) * 5) + 4]; <br> Buffer[i+5] = B00000000; //one blank column of leds between two characters<br> i=i+6;<br> }<br><br> // here, we create a second buffer, to display the message on the switched matrixes<br> for(int k = 0; k &lt; stringLength*6; k++) {<br> for(int i = 0; i &lt; 8; i++) {<br> bitWrite( Buffer_inverse[k] ,i, bitRead(Buffer[k] ,7-i) ) ;<br> }<br> }<br>}<br><br><br><br>void DrawText( byte stringLength) {<br><br>for(int k = 0; k &lt; stringLength*6; k++) {<br>delay(SpeedDelay);<br>for (int m = 0; m &lt; MatrixNumber; m++) {<br><br>for (int i = 0; i &lt; 8; i++) {<br><br>lc.setColumn(m,7-i,Buffer_inverse[i+k+8*m]);<br><br>}<br><br>}<br><br>}<br><br>}</p>
<p>For the scrolling problem, can you describe what do you see ? No scrolling ? Wrong direction ? </p>
<p>Yoruk, in your original code, the scrolling is the wrong direction in my display.. With a <a href="https://www.instructables.com/member/enjsof" rel="nofollow">enjsof</a> modification, my display scrolling right but no change speed. Speed is very slow same changed SpeedDelay.</p>
<p>So the translation works, but very slow ? How many time there is between two &quot;translations&quot; ? <br>The code seems fine, for now I don't see what can be the problem...</p><p>What Arduino board are you using ?<br></p>
<p>Hi, in this case, scroll speed working for you ?</p>
<p>It should work the same, we just swap lines and columns for the display.</p>
<p>You are welcome !!</p>
<p>can you help me..sir..? </p><p>this part : LedControl lc=LedControl(12,11,10,MatrixNumber); </p>
<p>It seems that a library is missing...</p><p>Check this page :</p><p><a href="http://playground.arduino.cc/Main/LedControl" rel="nofollow">http://playground.arduino.cc/Main/LedControl</a></p><p>download links at the bottom.</p>
<p>Hey! I was wondering what is with this line :</p><p> for(int k = 0; k &lt; stringLength*6; k++)</p><p>in the BufferBuilding method... I mean why is there stringLength*6? Why the 6?</p>
Because each letter is 6 columns &quot;wide&quot; ! (5 in fact, but a blank column is added between two characters).
<p>Thank you</p>
<p>Solved!! After many hours and thanks to our friend Google I<br>was able to use PROGMEM and avoid the lack of memory warning. Just substitute<br>the following lines:</p><p>const int fontDefinitions[480] PROGMEM = {</p><p>and...</p><p>Buffer[i+0] =pgm_read_byte(&amp;(fontDefinitions[((stringToDisplay[caract] - 32) * 5)<br>+ 0]));</p><p>Buffer[i+1] =pgm_read_byte(&amp;(fontDefinitions[((stringToDisplay[caract]<br>- 32) * 5) + 1]));</p><p>Buffer[i+2] =pgm_read_byte(&amp;(fontDefinitions[((stringToDisplay[caract] - 32) * 5)<br>+ 2]));</p><p>Buffer[i+3] =pgm_read_byte(&amp;(fontDefinitions[((stringToDisplay[caract] - 32) * 5)<br>+ 3]));</p><p>Buffer[i+4] =pgm_read_byte(&amp;(fontDefinitions[((stringToDisplay[caract] - 32) * 5)<br>+ 4]));</p><p>Buffer[i+5] =B00000000;//one blank column of<br>leds between two characters</p><p>I hope it helps everyone.</p>
Thanks for sharing !!
<p>where to connect the hc -</p><p>06 </p>
Everything is explained step 5 !<br><br>Just ask if you need more help.
<p>Thanks Yoruk for sharing this project!!</p>
<p>I see what Rafael Silva 1088 means by lack of memory. Program works<br>perfect but after compiling I get the following warning:</p><p>Low memory available, stability problems may occur.</p><p>I might be wrong, but it seems that since &ldquo;fontDefinition&rdquo;<br>array is using too much RAM space, we get this warning. I&rsquo;m a noob so I&rsquo;m not sure how<br>to correct this problem. I have tried to include the ARRAY in FLASH MEMORY by<br>including the PROGMEM attribute:</p><p>const int fontDefinitions[480] PROGMEM = {</p><p>and tried to retrieve a character from the buffer by using:</p><pre>Buffer[i+0] =pgm_read_word_near(fontDefinitions[((stringToDisplay[caract] - 32) * 5) + 0]);</pre><br><p>I was able to eliminate the lack of memory warning but no luck in getting the characters. I only get garbage. Any ideas on how to modify the program with the progmem attribute?</p>
friend in this new updated code that you quote in the comment cove already managed to solve the problem of a lack of memory?

About This Instructable

33,148views

327favorites

License:

Bio: French engineer in robotics. I love Arduino projects / coding / guitar / various electronics. Oh, I like cooking also ! PS : English is not my main language, please ... More »
More by Yoruk:How to create phenakistoscope discs Discover the Phenakistoscope : a vintage animation system How to make a tasty gingerbread 
Add instructable to: