l_DSC_0065.JPG
This is a tiny device to display animations and short messages. It consists of three components only and is really easy to build. And fun to watch.

If you don't feel like gathering all stuff yourself, you can buy a kit with all needed parts and a pre-programmed microcontroller at the Tinker Store.



 
Remove these adsRemove these ads by Signing Up

Step 1: Parts and Tools

Only four parts needed:

  • ATTINY2313V-10PU, microcontroller, 2 k flash RAM, Digikey
  • LEDMS88R, 8 * 8 LED matrix, Futurlec
  • Battery holder with switch for two AA batteries, Digikey
  • 2 AA batteries or rechargeables

The ATtiny2313V is a microcontroller, that runs from 5.5 down to 1.8 Volt. So its easy to power it from two AA cells.
And as you see, there are no resistors. Normally you would need a resistor to limit the current through the LEDs. We are a bit adventurous here and attach the LED matrix the Evil-Mad-Scientist-way directly to the controller. The controller enables only one row at a time and cycles thru all rows that fast, that a steady image emerges.
With two AA batteries the display ran over two weeks non-stop. Battery life depends a bit on how much pixels are lit at the same time.

To build it, you need:

  • Soldering iron and solder
  • Pliers
  • Wire stripper or knife
  • Alligator clips
  • Third hand (optional)

If you want to program your own animations and messages, you will need an AVR programmer as well.
1-40 of 91Next »
tomas123 says: Nov 18, 2010. 12:57 PM
Hello Alex - thanks for this great idea
I rewrote your program to get significant more space for dozens of patterns.
Further I changed to a better readable (larger) 5x7 font.

I also reworked the nice pattern generator as excel sheet from http://www.instructables.com/id/LED-Scolling-Dot-Matrix-Font-Graphics-Generator-/
Now you can copy the code from excel sheet directly in your program.

My ATTINY2313 without V goes down until 1,8V @ 4Mhz.

PS: Your nice LEDMS88R with rectable LED are hard to purchase in Germany ;-)
I used a cheap 8x8 32mm LED Matrix with the same pin layout (!)
Google for: 12088AMR
he send from Poland to all Europe

Tomas
64.zip55 KB
8bitscircuits in reply to tomas123Feb 15, 2012. 10:48 AM
how to generate the makefile, I'm a newbie: P thanks
dustlessimage says: Dec 22, 2011. 5:01 AM
I am a beginner, but I can not properly display characters.I noticed that:
* NFM-12883 common anode |
* A0B5B4D4B2D3D1D0 +-----+
* PD5 o o o o o o o o | |
* PA1 o o o o o o o o _+_ |
* PB0 o o o o o o o o \ / |
* PD2 o o o o o o o o _V_ |
* PB7 o o o o o o o o | |
* PB1 o o o o o o o o ---+-----C---
* PB6 o o o o o o o o |
* PB3 o o o o o o o o
*
But My LED matrix is ( See the pic)
Please teach me, how to modify it ??? Thanks you very much.
Q.jpg
maomakmaa says: Mar 16, 2011. 9:21 AM
Hey , thanks for your nice work ! :-)

I bought your Kit and a cheap USB ISP and worked the first time with Microcontrollers.Awesome !

But I still don`t understand how to make my own pictures and change the scroll or repeat animation...:how to change pixels? the signs on the right to hex!?!?!
0x18, // ___XX___
0x3C, // __XXXX__
0x7E, // _XXXXXX_

i wanna start with the first animation,not scrolled,then change the picture/animation....a hint would be nice :-)
bless,maomakmaa
theAVRdude says: Feb 17, 2011. 4:10 PM
Ok, thanks for all the treads and comments. I have so much fun with this, my brains need more eeprom!!
I flashed a couple of 2313 and succesfully burnt the right fuses but now I am interested in making some PCBs cause I dont like soldering chips directly to the matrix.
what is the next step? A circuit diagram would be awesome at this point.

Again( I'm such a geekou) thanks for some help in my process
darkria 45 says: Nov 24, 2010. 12:39 PM
would it effect anything if i use a socket?
alex_weber (author) in reply to darkria 45Nov 24, 2010. 11:15 PM
No, that would work.
darkria 45 in reply to darkria 45Nov 24, 2010. 11:02 PM
im afraid i might burn out the chip
tomas123 says: Nov 22, 2010. 12:10 PM
followup:
This is a christmas card with ATTINY2313 and 8x8 Matrix LED
here a video from 64pixels with all patterns
http://www.youtube.com/watch?v=sncy6wHNnMc
source code below
----------------------------------------
AVR Memory Usage
----------------
Device: attiny2313

Program: 2034 bytes (99.3% Full)
(.text + .data + .bootloader)

Data: 18 bytes (14.1% Full)
(.data + .bss + .noinit)
alex_weber (author) in reply to tomas123Nov 22, 2010. 2:49 PM
Wow, that's great, really nice animations. Thanks for sharing!
zack247 says: Nov 10, 2010. 9:50 PM
what are pins 1 and 11 usually used for?
alex_weber (author) in reply to zack247Nov 10, 2010. 11:00 PM
Pin 1 is used to reset the chip. Pin 11 can be used as input or output.
zack247 in reply to alex_weberNov 11, 2010. 10:42 AM
ok. thanks.
pumpkinpiiekat says: Oct 23, 2009. 1:14 PM
where do you get the stuff to program it?
darkria 45 in reply to pumpkinpiiekatJul 12, 2010. 12:50 PM
i got mine from adafuit industries.i think mine is a kit, it hasnt come in yet but its only 11.49 if u use first class mail for shipping
awosme says: Jun 19, 2010. 6:23 PM
Is there any way that you could run the 64 pixels on an arduino?
alex_weber (author) in reply to awosmeJun 20, 2010. 1:24 AM
Not as is. Search for "arduino matrix" to see some examples how to use an LED matrix. Then migrate the code for animation and messages. Cheers, Alex
pmcall221 says: Apr 13, 2010. 9:16 PM
I downloaded your c file and followed your comments in the c file to change the messages.  However, when the new hex file is written to the microcontroller it still contains the messages of the original c file.  Are there additional steps I am missing?
purpulhaze in reply to pmcall221May 14, 2010. 3:31 PM
AVR Studio is the easiest way. After making changes to the c file save then rebuild all. Then flash with the new hex file.
alex_weber (author) in reply to pmcall221Apr 13, 2010. 11:32 PM
I assume, you compiled the c file ...
pmcall221 in reply to alex_weberApr 14, 2010. 10:53 AM
i did. i used programmers notepad.  Does the .lss file also need to be edited?
pmcall221 in reply to pmcall221Apr 14, 2010. 12:00 PM
I figured out the problem. Just a little makefile snaffu.  It's my first time with WinAVR.

Can editing the animations be done in a similar matter?
Also the text scrolls right to left and animations move left to right.  Is it possible to have animations move from top to bottom or vice versa?
alex_weber (author) in reply to pmcall221Apr 14, 2010. 11:31 PM
Great!
Yes, you can have animations going from top to bottom. Take a look at the scroll_animation method. You have to replace the x with y direction.
godofal says: Mar 28, 2010. 11:06 AM
mine still doesnt work, but i just decided to look at the code, and can anyone clear this up for me?
i really thought LOLWTF?!

this was in the code from line 32~43

const prog_char PROGMEM message_00[] PROGMEM = "   WTF!?! ";
const prog_char PROGMEM message_01[] PROGMEM = "   I AM NO BOMB! ";
const prog_char PROGMEM message_02[] PROGMEM = "   5   4   3   2   1  ...  BOOM! ";
const prog_char PROGMEM message_03[] PROGMEM = "   I'M SORRY DAVE, I'M AFRAID I CAN'T DO THAT.  ";
const prog_char PROGMEM message_04[] PROGMEM = "   NOW BYE ME A SOLDERING STATION ";
const prog_char PROGMEM message_05[] PROGMEM = "   MAKE STUFF ";
const prog_char PROGMEM message_06[] PROGMEM = "   IF YOU CAN'T OPEN IT, YOU DON'T OWN IT ";
const prog_char PROGMEM message_07[] PROGMEM = "   1337 3L3X7RON!C5 !1!! ";
const prog_char PROGMEM message_08[] PROGMEM = "   MY KUNG FU IS BETTER THAN YOURS ";
const prog_char PROGMEM message_09[] PROGMEM = "   SUDO MAKE ME A SANDWICH ";
const prog_char PROGMEM message_10[] PROGMEM = "   ZOMBIES AHEAD ";
const prog_char PROGMEM message_11[] PROGMEM = "   HTTP://TINKERLOG.COM ";


what does this add to the code? i just cant think of anything...

btw, no wonder nearly no version can make this program small enough to fit inside the attiny2313...
alex_weber (author) in reply to godofalMar 28, 2010. 2:24 PM
These are the different messages that get printed on the display.

If the compiled hex file is too big for the tiny2313, try the other compiler version as noted on step 3.

Cheers,
Alex
godofal in reply to alex_weberMar 29, 2010. 10:13 AM
its not to big, but i've heard about people getting that...

but you mean that those message's get displayed?
alex_weber (author) in reply to godofalMar 29, 2010. 11:25 AM
Yes, they are displayed.
godfish says: Mar 20, 2010. 1:55 PM
Hmmm when I build the C file I get 4 warnings and no errors, and I just can't get this to work right. I programed the chip with the code anyway and all I get is lots of leds lighting and going off at once.

What could be the prob? I'm using AVR Studio 4 for a compiler.

I also tryed to just use the step 2 hex file to the chip and same. just lots of random flashes, I got the 64 LED matrix from furloc in your link, is there anything I need to do with the code?..
alex_weber (author) in reply to godfishMar 20, 2010. 4:47 PM
Please check if the pinout of the matrix is the same. Also check if you have the right orientation of the matrix.
And maybe you can try WinAVR compiler.
godfish says: Mar 10, 2010. 12:25 PM
 can anyone post a link for the .hex file, when I try and build the .hex from the .c file I get 5 errors and I'm not good at C yet to know how to fix the errors.

PLEASE....
alex_weber (author) in reply to godfishMar 13, 2010. 2:12 AM
Here you go, I added the hex file to step 2.
Cheers,
Alex
godofal says: Jan 16, 2010. 9:50 AM
im making one with protoboard, since my dot matrix is different (size, other lay-out)
and ive decided to add a standard 6pin header for reprogramming ease.
just 2 quick questions:

when programming, can i use the 5V coming from a USB port. i dont think so, becouse itl burn out the matrix (i think)
so, instead can i just turn it on and program it? (with the 3V from 2 1.5V batteries)

and, ive looked at the datasheets, and it looks like i have a common cathode, but im not sure (always get confused about what cathode/anode is XD)
so, heres the pdf can someone tell me if it is indeed common cathode, and if so, how should i alter the code?
btw, i have reversed the attiny (so where pin1 normally would be is now pin11) to fix this problem (i believe it would anyway) but im not sure if that would work...
alex_weber (author) in reply to godofalJan 17, 2010. 1:02 AM
Yes, you would probably burn the matrix. You could hook it up with current limiting resistors on a breadboard for programming.
The matrix looks like a common anode one.
Cheers,
Alex
godofal in reply to alex_weberJan 17, 2010. 3:40 AM
and if im going to use batteries for programming? then there wouldnt be enough power to burn it right?
and if i needed the resistors in combo with the 5V, how much would those resistors be needed to be?

so, for the common anode part, i dont need to change anything? and the flipping i did with the chip works?
alex_weber (author) in reply to godofalJan 17, 2010. 5:46 AM
If you want to use batteries, be sure that you don't connect VCC of the programmer to (+) of the batteries.
If you power the circuit with 5V, 220 Ohm should be ok.
There are parts in the code that deal with common anode or common cathode. Just comment and uncomment the relevant part. You don't need to flip the controller.
godofal in reply to alex_weberJan 17, 2010. 6:24 AM
and if i already flipped the controller?

and for the programmer part, im using one that connects to my printer port, but i added an USB cable for 5V, but i dont need to plug that in ;)
il just add a 220ohm resistor just in case (that goes in front off the VCC pin to the programmer port right?)
godofal in reply to godofalJan 17, 2010. 8:30 AM
im gonna flip it back and program it, takes less time :D
alex_weber (author) in reply to godofalJan 17, 2010. 9:42 AM
the 220 Ohm resistor is a current limiting resistor for the matrix, not for the programmer. I haven't used the parallel port as programmer, so can not help you there.
godofal in reply to alex_weberJan 18, 2010. 12:38 AM
gonna program it now wish me luck :)
godofal in reply to godofalJan 18, 2010. 1:57 AM
programmer's notepad is complaining about "make.exe: *** No rule to make target `program'.  Stop."
is there a .hex file by any chance?
1-40 of 91Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!