Pages: 1 [2]   Go Down
Author Topic: TM1640 based, 16 digit display (dealextreme)  (Read 8066 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26572
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool, thanks.
Now I just need to remember what that part was good for!
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Ontario, Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 175
That's me in the avatar. :D
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Electrical Engineering Student

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


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

Ontario, Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 175
That's me in the avatar. :D
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
Logged

Electrical Engineering Student

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26572
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-fat Ouch!! How could I be so stupid!!  smiley-confuse

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  smiley-razz 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!!
Logged

Ontario, Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 175
That's me in the avatar. :D
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Made an instructable for this:

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

Logged

Electrical Engineering Student

0
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

San Francisco, California
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

« Last Edit: June 30, 2012, 04:21:41 pm by Boyan » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: 1 [2]   Go Up
Jump to: