4 Digits 7 Segment Display ENG
4 Digits 7 Segment Display ENG
Have fun!
The seven segment display contains seven individually addressable LEDs
packed in one package, labeled from A to G. In the 7 segment 4 digit
display there are four seven segment displays, thus we are able to show 4
digits with this module. Thеsе kind of modules usually require 12 digital pins
in order to control it, but the module we write about in this eBook has just
four. This is because of the driver chip, called "TM1637". The driver chip is a
special circuit for driving and controlling LED displays. To communicate with
the driver chip we use some form of two wire interface. It is not I2C interface
because the driver chip does not use addressing like in I2C interface. We
use 4 wires to connect the module with a microcontroller: any two digital
pins for communication, power and ground wires.
Specifications:
In order to use the module with the Uno, it is best if we download a library
for it. Open the Arduino IDE and go to Tools > Manage Libraries, and a new
window will open. Type "TM1637" in the search box and install a library
"TM1637" made by "Avishay Orpaz" like on image below:
After macros, we create one constant array and two variable arrays.
Constant array is called SEG_DONE and it is used to store four elements.
Every element contains macros for the segment that is turned ON, on the
seven segment digit of the module. Therefore, to display the letter “d” we
need to turn ON these segments (or to store these macros in one element
of the array): SEG_B, SEG_C, SEG_D, SEG_E and SEG_G.
We use this constant array to display word “dOnE”.
The other arrays are called data[] and blank[]. Both arrays contain four
elements, one element for each seven segment display onboard the
module. Blank[] is used to turn OFF all the segments on the module.
Data[] is used to display specific characters on the module. Later in the
text we will show examples of this array usage.
The turn_dots() function is used to turn two LEDs between second and
third segment of seven segment the module.
The brightness_test() function is used to show all brightness levels
that can be used for this module.
If you are looking for the high quality products for Arduino and
Raspberry Pi, AZ-Delivery Vertriebs GmbH is the right company to get
them from. You will be provided with numerous application examples,
full installation guides, eBooks, libraries and assistance from our
technical experts.
https://az-delivery.de
Have Fun!
Impressum
https://az-delivery.de/pages/about-us