Step 14: Program It

Download the attached zip file. Unzip it and move the PS2Keyboard and MatrixDisplay folders to your Arduino libraries directory. This code is compatible with the Arduino IDE 1.0 so if you have an older version please update it before programming the sign. Open up the code in the Arduino IDE, connect your computer to the Ardweeny with the FTDI programming adapter, and upload the sketch. If all is well, a moment later the display will light up with the default text. Unplug the programmer, load some batteries into the battery packs (if you're going to be using battery power), and screw on the back cover. You're all set!

The code for the Ardweeny is based on two open source Arduino libraries: PS2Keyboard (http://www.arduino.cc/playground/Main/PS2KeyboardExt2), and MatrixDisplay, which started out as a thread on the Arduino forum and is now hosted at http://milesburton.com/HT1632_Arduino_%22Matrix_Display%22_Library_for_the_Sure_2416_and_0832.  The code uses an interrupt routine to read the raw scan codes coming in from the keyboard and buffer them, then looks up the appropriate character in an array of font glyphs before sending pixel-specific commands to the display panels.
<p>s&iacute;, &iquest;cu&aacute;l es el error?</p>
HOLA GRACIAS POR RESPONDER ESTE ES EL ERROR <br><br>In file included from PS2You.ino:29:0:<br>C:\Program Files\Arduino\libraries\MatrixDisplay/font.h:4:35: error: variable 'myfont' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br> unsigned char PROGMEM myfont[92][5] = {<br> ^<br>In file included from PS2You.ino:30:0:<br>C:\Program Files\Arduino\libraries\PS2Keyboard/PS2Keyboard.h:61:17: error: conflicting declaration 'typedef uint8_t boolean'<br> typedef uint8_t boolean;<br> ^<br>In file included from C:\Program Files\Arduino\libraries\MatrixDisplay/MatrixDisplay.h:29:0,<br> from PS2You.ino:27:<br>C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'<br> typedef bool boolean;<br> ^<br>Error de compilaci&oacute;n<br>
<p>So line 4 of MatrixDisplay/font.h needs to be changed from:<br><br><br><br>unsigned char PROGMEM myfont[92][5] = {<br><br><br><br>to:<br><br><br><br>unsigned const char PROGMEM myfont[92][5] = {<br><br><br><br>The second error is in the Arduino.h core arduino library file, so <br>definitely a result of an IDE/compiler update. It looks like they changed how the boolean type is defined in arduino.h <br>as of January last year <br>(<a href="https://github.com/arduino/Arduino/commit/20ac20f6295b5bd923144ab6844564f13ddc8ca8" rel="nofollow">https://github.com/arduino/Arduino/commit/20ac20f6295b5bd923144ab6844564f13ddc8ca8</a>) Which breaks many libraries.<br><br><br><br>Try removing line 33 from <br>\PS2Keyboard\PS2Keyboard.h, which is:<br><br><br><br>typedef uint8_t boolean;<br><br><br><br>Another more certain solution would be to use an older (pre Jan 2015) <br>version of the Arduino IDE.</p><p>I hope this helps and let me know if the problem persists</p>
<div><pre>Hablas ingl&eacute;s?</pre></div>
<div><pre>Hablas ingl&eacute;s?</pre></div>
<p>Does this support keyboards for other languages, such as German?</p>
<p>Cool thing. http://hannoufmediagroup.com/ But is it possible to do it by my self ?</p>
<p>Hi , when i compile the code , this error shown </p><p>( In file included from PS2You.ino:29:0:</p><p>C:\Users\MAN\Documents\Arduino\libraries\MatrixDisplay/font.h:4:35: error: variable 'myfont' must be const in order to be put into read-only section by means of '__attribute__((progmem))'</p><p> unsigned char PROGMEM myfont[92][5] = {</p><p> ^</p><p>Error compiling. ) !<br><br>what the reason of the error ?</p>
<p>I'll check on this</p>
<p>Any update? I'm currently having this issue!</p>
<p>Yes, I believe it's because of an incompatibility with the new Arduino IDE. We'll try to update the code to fix this.</p>
<p>I had the exact same issue :P </p>
<p>I know subject is nearly 2 years old - however is still so cool ;-)</p><p>I wonder if will be OK to use USB instead of PS2. I do not have PS2 keyboard USB keyboards are more popular now then PS2. I found this instructable http://www.instructables.com/id/USB-to-PS2-convertor/step1/The-Project/ and wonder if this will work? or will lead to damaging the arduino or/and LED panles. </p>
<p>Hey there, thanks for the interest! I don't know if that will work or not. I will look into it. </p>
<p>Earthling </p><p>Keep on making more projects this is cool. </p><p>Did you find out if the USB to PS2 refit to USB Keyboards would go into this device as you worked it out ... Nice project .... As soon as you let me know it's able to work with a USB keyboard I'll be able to make this ...... Thank you very much for your time and patience please &amp; thank you. </p>
<p>Really enjoyed this. Have you or do you know of any way to retrofit the cpu of an old ticker display (I have a very old Sunrise Systems EMX-2000/3 from 1996 which has a DB25 serial connector) with an arduino/raspberry pi unit instead? </p>
Hmm, I don't know about that. Thanks for the interest!<br>
<p>Hello, I wonder if this would work with an Arduino Uno, rather than the Ardweeny, and if with the UNO i would still need the FTDI breakout.</p>
<p>I believe it would, and no, you shouldn't need the FTDI if you're using an Uno.</p>
<p>Anyone had any luck using a RaspberryPi to drive this?</p>
How much would it cost to make a scrolling 1 x 3 foot sign then convert it to solar please?
Profort: Good question -- I really don't know. I haven't investigated the pricing on panels that size, but I'm sure they exist. Let me know how it turns out.
hello, great project.... <br>do you think that my LEDs do not work, for this is the second time I have attempted to do this project and everything is in the right places and I am getting power in the ardweeny. The only thing that is not working is my LEDs they have yet to turn on. Thank you, <br>Anabelle
Hi Anabelle, <br>I am having the same problem as you. Did you ever get yours working? What did you do?
What's the total cost? <br>
That depends on how much of the supplies you have or can scrounge. If you have to buy all the stuff I'd say somewhere around 60 bucks. I hope this helps!
What voltage does this use if I am using DC mains rather than battey
Around 9 - 12v
I have a problem getting my keyboard to work. It doesn't send what I write to the display and the welcome screen just stays and says Hello, Welcome and start typing. Any suggestions?
Hi Earhling!, nice job there very impressive. I only have one Sure 3208 display at this stage and was wondering if the ps2 keyboard input would work with only one display (with any necessary software modifications) as opposed to the three used in this project. I would just like to make sure I can get it up and running before I commit to spending A$32 for two more displays. Thanks Pedro.
I have it all working perfect! Thanks for this great Instructable. <br> <br>By the way, does your brother have code for a version of this that will accept SMS messages from a GSM/GPRS modem? That would be a Great followup project.
You've seen a message board where the text moves from right to left, and repeats, scrolling may not be the correct term. Its usually a longer message than the display is wide. Similar to this: http://www.youtube.com/watch?v=10zQRe3FpHw
Ah yes, I see what you mean. Scrolling is the right word and in fact the PS/2/You display does exactly that by default.
Terrific project Earthling! <br> <br>Do you have a scrolling version?
Thanks! <br> <br>What do you mean by a scrolling version?
awesome !!! <br>can u help me, how if i use standard led dot matrix 8x8 with 74hc595 shift register?? <br>can u send me the schematics and code to my email parjok21@gmailcom ? <br>thanks <br> <br>*sorry i'm an amateur in english
Very nice instructable!! Im building this for a friend of mine, but i want to know if its possible to use these led matrix boards: <br> <br>http://www.sureelectronics.net/gallery.php?id=1137&amp;img=6076 <br> <br>Greetz from the Netherlands :) <br> <br>Mark
Hi Markie, <br>Sorry for the slow response. I asked my brother who did the code for this project and he said those boards probably wouldn't work without modification to the code. Are you having trouble finding the other ones? Good luck, E
Hi! i build this led message board and it works fine! <br>Thanks for that! <br>But i'd like to use it as a time/temp meter. <br>Do you maby have a code that displays that? <br>Thanks!
Hi! I just followed your instructable and very detailed very nice but I have a problem! when trying to upload the code it gives me this error &quot;MatrixDisplay does not name a type&quot;, I already built it and I'm reallynew to arduinos, please help me!
Thank you very much, I liked it. Today I have come diaplay from sure and start to ride today. <br> <br>Thanks, I'll tell you
How would this work in a bright light environment. We are thinking of incorporating this into a swimming pool environment (as a display for what races are getting ready) and wonder how this would show during daylight hours? <br> <br>Great project! <br> <br>
Thanks, I haven't tried it much outside but my guess is that it wouldn't be that great in a bright environment.
nice job, but is there a way to build the microcontroller that will work perfectly like the one? <br>i'm really impressed i must confess. good work once again <br> <br>please email me at maclee4real@yahoo.co.uk if there is a way to build a microcontroller <br>thanks
Here comes anoter one: ;) <br>Can one somehow integrate this with an ethernet-shield and send messages over internet to it? Fex via Txitter etc.? <br> <br>That shouldnt be to difficult, should it?
Hi maceide, <br>Thanks for your interest in the project and all the questions! <br> <br>First one first: it should be fairly easy to modify the code so that it stores the messages until the next time the system is turned on. This would be nice, and is something we have talked about doing. I can let you know if we get it into the main code. <br> <br>As for the other two questions, they also should be do-able. I'll ask my brother who did most of the code for me about them and we'll see what we can do. It would be good to do an update for the system and these would be fun things to include. <br> <br>Cheers and thanks -- glad you are having fun with the project.
Also I was wondering: <br>Is it possible to somehow make it display scandinavian characters? Like these ones: http://www.fiskeklubben.org/charcters/how-to.html <br>Mabye by replacing the bytes from those input on the keyboard with those letters? <br> <br>Thanks alot!
Hi, <br>Thanks alot for a great tutorial!!! :) <br>I have my version up and running now, and I enjoy it. <br>I was wondering about one little thing: <br>Is it possible to somehow make it not reset when one removes power to the Ardweeny? <br> <br>Best regards <br>-maceide
Hello, I come from Hong Kong. I'm impressed by this great project and tried to build this with a single matrix board and Arduino Duemilanove board but failed. <br> <br>Cap lock light of KB can be ON/OFF, but no display on matrix. Would you please teach me how to build up? Is it required to amend the program? Thanks a lot!

About This Instructable




More by Earthling!:PS/2/You: Go-anywhere, LED digital message boardHand crank USB charger / LED headlampGet free cellphones
Add instructable to: