A simple Arduino sketch with an animation to test the TM1638 with a common anode custom display with 8 digits and 8 little bars
The sketch does not make use of dalay()
, this is a good practice to write non blocking code
@Katodo kindly sent me some seven-segment displays. I want to thanks him and also thanks to @cyb3rn0id that made this possible.
They have two lines of four digits with different size and colors and also eight indicators bars
- First line - bigger and green
- Second line - smaller and red So in total there are nine digits to drive.
They are common anode display with two rows of nine pins with standard horizontal spacing but non standard vertical spacing, the 7th pin on the first row is not connected.
You can find the pinout on my instagram post
It supports up to ten digits with eight segments in common anode mode and has also a key scan feature that permits to drive a keypad up to 24 keys, is housed in a SOP28 package so has to be soldered on an adapter to be used on a protoboard
I found it while reading Elettronica In n.253, an Italian magazine about electronics published by @futuragroupsrl
I assembled the display and the TM1638 on a breadboard with an Arduino Nano.
Take a look at the post on my instagram, there is a video of the simple animation.