meta data for this page
LamaPLC: Arduino 7-segment display
In the case of the 7-segment display - as the name suggests - 7 LED units must be basically controlled for the display, per segment (per character). As the figure below shows, this certainly takes up a lot of outputs, and it is always worth saving with outputs for Adruino systems, so this implementation is not very common:
Instead, it is worthwhile to include 7-segment control ICs (for example, the 74HC164), which provide direct control and display the information transferred by communication (the same effect is valid for LCD displays).
In addition, the above ICs can be cascaded, i.e. multiple displays can be controlled with one communication connection.
LC Technology 74HC164 LED display
This module is ideally suited to adding a 2 line 4 digit red 7 division display to your project. This module allows you to display your information in a bold and bright way, writing all kinds of numbers and words using numbers from 0-9, A-F, “-” and “.” .
The module is designed to be used alone or in combination with other modules for larger displays. This module has red LEDs that are powered by a serial connection to a microcontroller.
Special characters are created by taking a 2 digit hex value and then using an AND function with 0 x 80. With the newly created hex value drive the CP pin LOW, send the data to the DAT pin and then set CP HIGH. This obviously needs to be done quickly to pass the visibility (appears constant) step.
The Arduino library for the application can be found here: https://github.com/mikaelsundin/lc_technology_lcd2x4