The answer to that is by using two pins which act as bit flags to indicate which digit’s segments to light up.įor the component I am using, the digit flags are accessed via pins 8 and 7, however these pins seem to vary between different manufacturers, so be sure to check any instructions that came with yours. The first thing you’re probably wondering is: “how do we use a total of 16 different segments if we only have ten pins on the component?”. Before doing so I’m going to explain how this particular component actually works, so that you have a better understanding of why we’re doing what we are.Įach digit on the LED display is made up of seven segments, and one extra segment for the decimal point, as can be seen in the illustration below. The first thing we’re going to have to do is obviously wire up the component to the Arduino. However, from the research I’ve done, it seems most manufacturers of these components use the same basic approach, and thus this code and guide should be transferable to other dual digit 7-segment displays. The manufacturer seems to be a company called Wahkitsing, who sell the same part On This Website. The LED display I am using for this guide (a 5261BS) came with an Arduino starter kit as previously mentioned, which I purchased from 4tronix UK (). ![]()
0 Comments
Leave a Reply. |