Go Down

Topic: TM1640 based, 16 digit display (dealextreme) (Read 9297 times) previous topic - next topic

CrossRoads

Cool, thanks.
Now I just need to remember what that part was good for!
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Panici

Author of TM1638 library has expanded to support the TM1640.

http://code.google.com/p/tm1638-library/

I'll test tomorrow and let you guys know.
Electrical Engineering Student

GaryP

I ordered mine from DX while ago, but only this part was missing from the package? Damn!

Good to know about the TM1638 library, that it supports TM1640 too. Their combination as a display might work, even that they are completely different colors. Yellow was the one I was missing so far...

Cheers,
Kari
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Panici

The module I received was red as well.

Anyways, it's working great with the updated TM1638 library.
http://code.google.com/p/tm1638-library/

Here's it running off of an ATtiny85 :)
www.youtube.com/watch?v=D4NZ0nGKdFo
Electrical Engineering Student

nahiko

Could someone please, explain me how a single IC with 24 pins, can address 16 7-segments displays?
You need to individually address 128 LEDs, how do you do it with just 24 pins?

Do each display have another IC or what?

I do not know much about electronics, but I think I know enough to understand this...

I have been lately using the WS2801 driver to make something like an ambilight system for my PC screen using processing, an Arduino, SPI, WS2801, and RGB leds, I have 25 independant RGB LEDs to achieve a nice ambilight clone, but this... how does it work!?!?! I did read the TM1640 sheet, but I still do not get it.

PLEASE!!! some one explain me!!

Thanks in advance!!

CrossRoads

Well, the Tm164 is actually 28 pins.
All the A segments are connected on parallel, all the Bs, all the Cs, Ds, Es, Fs, all the Decimal Points. So that's 8 pins.
Then each group of segments  gets a common cathode (or anode?). 16 more.
Power, Ground, and the two I2C lines.  4 more.
28 pins.
Each digit is turned on one at a time for ~500uS, so every 8 mS all 16 digits get turned on one time.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

nahiko

:smiley-fat: Ouch!! How could I be so stupid!!  :~

You are right it is more than possible.

I did not mean it was impossible because of the 24 vs 28 pins, just because I was thinking that each display would need another IC to multiplex or something like that but I see they don't, I guess that using common cathode displays, all GRID1-GRID16 pins but one of the TM164 keep high for 500usec, then another, then another...

Thanks for explaining!!

If this TM1640 had PWM, it would be just perfect  :P I could drive with just one 28 pin IC like 43 RGB LEDs... really cheap solution for ambilight like projects (I am still looking for something cheaper than what I did so everyone can have an easy and cheap one)

Cheers!!

Panici

Made an instructable for this:

http://www.instructables.com/id/Self-contained-16-Digit-display-Arduino-Attiny/

Electrical Engineering Student

karonth

Great work!
Since I have a couple attiny45, I'd like to know what is the size of the test sketch? Would it fit the smaller (4kb) memory?
On dealextreme the dimensions of the display aren't listed. Have you measured it?

Thank you in advance.

Boyan

#24
Jun 30, 2012, 11:09 pm Last Edit: Jun 30, 2012, 11:21 pm by Boyan Reason: 1
The author of TM1638/TM1640 library has done great work and it is super easy to drive the board. I got mine in March and they are working beutiully!

http://code.google.com/p/tm1638-library/




A good example of excellent work in the open source world. Otherwise driving the board is not terribly difficult but the library makes it baseically a usable building block for someething bigger. Not having to figure out the Chinglish PDF and commands is great help! Thanks Ricardo.


Hi there, I'm new with the Arduino. I want to display via this TH1640, but when I compile the example, the compiler says:
C:\Program Files\arduino-0018\libraries\TM1638\/TM16XX.h:58: error: 'String' has not been declared

What do I do wrong? Same happens with other Versions of the same lib.

Can please somebody help me? I haven't programmed for a longer time so I'm not sure what happens here.



Anyone know about the TM1640 chip? I've ordered one, and i'm going to try and figure it out.
http://www.dealextreme.com/p/jy-mcu-16x-digital-tube-yellow-led-module-104311

Here is all the reference info I could find:


Schematic: http://ljy99731.13.dns222.net/download/LM1640_sch.pdf
Datasheet: http://ljy99731.13.dns222.net/download/tm1640.pdf


Is it similar to the TM1638, for which an arduino library has already been built?
http://code.google.com/p/tm1638-library/

I've contacted the author of the arduino TM1638 library, and he's also got one of these units on order, to try and figure out.

Go Up