The digital outputs 1 – 4 of my Arduino UNO represent the binary value of a decimal number in the range form 0 to 15 (called a "Binary Coded Decimal (BCD)"). e.g. if digital outputs 1 and 4 are HIGH and the second and third are LOW, that would represent the binary value "1001", which in turn represents the decimal value "9".
Now, i want to visualize this decimal value in some way.
My first thought was to build a logical network with four inputs (the values coming out of the four digital outputs of the UNO) and 16 outputs, connected to LEDs. Depending on the coded decimal value, the corresponding output is HIGH / "1" / x Volt and the other ones are LOW / "0" / 0 Volt. e.g. if the four digital outputs of the UNO represent the binary value "1001", so the decimal value „9“, then the 9th output of the network should be HIGH, and its connected LED on and the other outputs should be LOW and their connected LEDs off. The network would be build by AND-, OR and NOT-gates, which in turn would be build with transistors. Now, however, I realized that this approach would be really complicated.
Does anyone have a better idea? I think about an electric component, which implements exactly the functionality of the logical network, described above. Or a two digit LED display, which implements the same functionality, but additionally displays the encoded decimal value.
Please consider, that I only have basic knowledge, skills, and experience in electronic. And further consider, that whatever solution you are offering my, it must be able to implement it with just four digital outputs of the UNO. The other ones are needed for further tasks.
Thanks in advance for any replies!