|16-12-2013 (1425 lectures)||Categoria: Articles|
Tiger 320 Series meters provide the users with static display text messaging. Display text can be easliy edited to suit your application. Scrolling display text messaging requires a simple compiler generated macro.
14-segment alphanumeric display options provide greater legibility than 7-segment options. For example, a setpoint could be edited to read for "tank level low" as:
DI-50, DI-60, DI-503, DI-50AN6, DI-50B51, GI-50, GI-50B51, FI-B101D50
DI-60A, DI-60AT5C, DI-602A, DI-602AT5C
Posted on 11 March 2012.
The purpose of this article is to demonstrate the use of some interesting LED display modules I discovered on the dealextreme website, for example:
They contain eight 7-segment red LED digits, eight red/green LEDs and also eight buttons for user input. You can get red or green display models. The units can also be daisy-chained, allowing up to five at once, and a short cable is included with each module, as well as some short spacers and bolts, such as:
The spaces are just long enough to raise the PCB above a surface, however to mount the boards anywhere useful you would need longer ones. You may also want to remove the IDC sockets if you want to mount the module close to the surface of a panel. This would be a simple desoldering task as they are through-hole sockets:
The board is controlled by a TM1638 IC:
This part seems to be a domestic Chinese product from â€śTitan Micro Electronicsâ€ś. After a quick search the TM1638 isnâ€™t available from Digikey, Mouser or the element14 groupâ€¦ so if anyone has a lead on a low-volume, reliable supplier for these â€“ please leave a comment below. However here is a link to the data sheet â€“ thanks Marc!.
Now to make things happenâ€¦
Hardware â€“ Connection to an Arduino-compatible board (or other MCU) is quite simple. The pinouts are shown on the rear of the PCB, and match the fitting on the ribbon cable. If you look at the end of the cable as such:
The top-right hole is pin one, with the top-left being pin two, the bottom-right pin nine and bottom-left pin ten. Therefore the pinouts are:
For Arduino use, pins 1~4 are the minimum necessary to use one module. Each additional module will require another digital pin connected to STB2, STB3, etc. More on this later.Â Please note that each module set to full brightness with every LED on consumes 127mA, so it would be wise to use external power with more than one module and other connections with Arduino boards. After spending some time with the module, I made a quick shield with an IDC header to make connection somewhat easier:
Software â€“ Â download and install the T1638 library from here. Thanks and kudos toÂ rjbatista at gmail dot com for the library.Â Initialising modules in the sketch is simple. Include the library with: