

However, the two pins mentioned earlier which act as bit flags need to connect through 330 ohm resistors. The majority of these pins connect directly to the Arduino itself. On the top side, from left to right: 10, 9, 8, 7, 6.On the bottom side, from left to right: 1, 2, 3, 4, 5.

When looking at the component from this perspective (that being so that the decimal points are at the bottom) the pins are in the following order: Start by plugging the LED display module into your breadboard, this is going to have to spread over two boards so that you have room to connect all the pins, as can be seen in the picture below. Now that we have an understanding of how the component works, we can begin wiring it up to the Arduino!
1 led display arduino uno pinout code#
Important Note: If your component has illustrations that are different to this it’s important to note which two pins are the bit flags and which map to which segment, as you’ll have to make alterations to the code later to comply with them. In case the diagram is not clear as to which pins map to which segments, they are as follows:

Most of these displays ship with a diagram similar to that which can be found below.Īs you can see, the diagram indicates which pins are our digit bit flags (pin 8 for digit 1 and pin 7 for digit 2), and it shows us which pins map to which segment of the digits. 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 ().
