top of page

MAX 7219 Boards

-  Max7219 & 7 Segment Displays

Wiring 7-segment displays attached to MAX7219 boards can sometimes be a little taxing, and this guide has been created to help you on your way. 7 segment displays play a very important part in the sim and make various panels come to life.

 

These simple boards fascinated me at the beginning of my journey into the sim-building world. It took a little while to get my head around how you could have so many led segments and different boards light up using just five pins.

7 Segment Displays

The first thing you need to know about 7 Segment displays fitted to the MAX7219 Boards from eBay or other providers are:

 

  •  The operating voltage is 5VDC.

  •  The connection type is Common Cathode!

This is important if you want to connect the different sizes of the 7 segment displays or adjust the number of digits driven by the board. Another favourite is to change the colour of segments attached to the MAX7219 boards.

max7219 green pcb.png
General

7 Segment colour

During my prototyping and my build of version 1 SIM, I was not bothered about the colour of the LED segments, as this was just a prototype to see if i could get it to work. It was more a matter of getting it done cheaply and effectively.

 

Red is the most common colour and readily available. It also appears to be the cheapest. Red usually comes with the Max7219 Boards. As time progressed, I discovered other colours. Blue, Yellow/Amber & white, depending on your preference. I now have a blue MCP, but also have the option of yellow as I bought multiple colours, recently.

Daisy Chain Reliabilty

Predominately, there are three different types available on eBay. Their PCBs are colour coded to help identify the type:

A GREEN PCB normally has detachable displays and comes with attaching hardware. This is great for easy removal, so you can change the size or colour as required.

 

This also allows you to place the two halves (4-digit displays) anywhere you like. These are my preferred type.

The BLUE PCBs are great for a narrow space on top and bottom. But the displays will need to be removed with a heat gun.

The RED PCBs are great for applications where space at the ends is a priority. They have the shortest width. Again, you will require a heat gun if you want to separate the displays.

73 types.jpg

Different Types of MAX7219 Boards

From my personal experience and much testing, I would only try to run one or two MAX7219 boards from a single Arduino. I have found that connecting any more boards than this is too much for the Arduino mega on the current draw, and strange things started to happen to the displays. The whole display would switch off or start to indicate gibberish. This was all fixed by wiring the MAZ7219 boards to an external 5v power source.

 

Remember! When using an external 5VDC power supplyYou always need to connect the ground from the external power supply to the Arduino to complete the circuit!

7 Segment Display - Daisy Chain Realiabilty

After several weeks of testing every combination possible, I came to the conclusion that the more modules you daisy chain together, the less reliable they become. This is regardless, if you are powering from the Ardunio direct or external power source.

 

Here are my current recommendations for Daisy Chaining 7 Segment displays:

7219 Daisy Chain Reliability Chart.PNG
Which Max7219 Board?

Purchasing Max7219 Boards

When buying from eBay I tried several variants from eBay. This is where I learned the quality really does depend on who you buy from. Make no mistake, I went cheap from china and it took several attempts to find the right one. The biggest problem I found, was that they worked fine individually, but some just refused to daisy chain. Push on the PCB and it would work fine. Release the pressure and utter disaster. Some just decided they would rather heat up and burn out.

Once I found the right supplier of MAX7219, I bought in bulk, 20 in fact, at an incredibly cheap price and free shipping. Your going to need plenty of these when you full on, From MCP to radios and other panels. It also means you have spare for when you find an unserviceable one.

Here’s some tips on buying the right MAX7219:-

 

•Ensure it has 5 pins at both ends to allow daisy chaining.

 

•Look for the units that have the display units with sockets rather than soldered (usually the PCB is coloured green). This will allow you to split the displays and place them where ever you want by using additional wiring.

•Its great when you also find the ones that come with the PCB mounting screws and stand offs included.

Purchasing Displays

7 Segment Wiring - Using Ardunio Power

There are generally 5 input pins and 5 output pins on each board. The 5v VCC must be connected in parallel to each board and not daisy chained through the board itself, like the other pins. This VCC line has a diode fitted and will reduce the voltage through each board until it stopps working.

The ground can be daisy chained but I prefer to wire in parallel like the VCC.

The next 3 input pins (DIN,CS,CLK) can be daisy chained through the board by using the same output pins, as shown below.

737 mobiflight 7 segment.jpg
737 mobiflight 7 segment wiring.jpg
7219 Daisy Chain WD.PNG
External power

Test, Test & Test Again!

Test, Test & Test Again!

Always test your 7 segments in the configuration your going to use before putting them into anything. This includes the length or the cables, the amount you wish to daisy chain. Are you still having problems with strange digits after all this? One final thing to check is the power at the last 7 segment unit. Ensure its at 5V. If not adjust your power supply until it reads 5V. “CAREFULLY!”

Wiring Multiple LED's

MAX7219 - WIRING 3 & 5 DIGIT DISPLAYS

Up to 50 switches can then be added. I have shown only two switches to help keep the diagrams simple. But the principle is the same. You can see how the ground is simply daisy chained. This is to keep the wiring back to the Arduino to a minimal amount. The looms already can get quite big in size with 52 wires.

Daisy Chained Grounds

There are only 3 or 4 grounds on the Arduino Mega to connect all your devices too.

Sometimes its easier to connect all the grounds in daisy chain configuration. Linking devices to one and another using a single ground back the Arduino Mega.

Another way would be to used a break out board with a common ground connected line.

But by daisy chaining grounds, the wiring loom can reduced drastically.

MAX7219 - WIRING 3 & 5 DIGIT DISPLAYS

As stated before, you dont have to stick with 4 & 4 displays. You can have any combination:

3 & 5 Digits

2,2,2,2 (4 sets of 2 digits)

4,2,2 (one four digit and 2, 2 digit displays)

6 Digit Display, etc.

Below is how to wire up a 3 & 5 Digit display to the MAX7219 board to be controlled by the Ardunio and Mobiflight. The first diagram are the pin allocation of the MAX7219 Boards. (D#=Digit Common Cathode Number one to eight, the letters represent the segment letter)

max7219 Pin Layout MobiFlight.jpg
3_DIGIT_7_SEG_2019-Apr-04_02-32-51AM-000
3 DIG.PNG
3 DIGIT, 7 SEGMENT DISPLAY, Picture, Segment diagram and pin layout.
3 DIG WD.PNG
5_digit_blue_2017-Jun-10_07-26-21AM-000_
5 DIG.PNG
5 DIGIT, 7 SEGMENT DISPLAY, Picture, Segment diagram and pin layout.
5 DIG WD.PNG
Converting a 4 & 4 digit display to a 3 & 5 Digit Display WD
3 & 5 digit 7 segment Displays.jpg
7 segment daisy chain.png

COMMON GROUND

Please Note: You must connect the ground cable from the 7 segment boards, the external power supply and the Ardunio board for everything to work.

7 Segment Wiring - Using External Power

7 Seg Wiring to power supply.jpg

Wiring the MAX7219, 7 segments displays boards to an external power supply helps reduce the current draw on the Arduino.

As you can see from the diagrams, the 5v VCC line is connected in parallel to all 3, 7219 PCB's.

The GND line in also connected in parallel and also connected to the Arduino.

The data pins are then daisy chained as normal.

3 & 5 Digit Displays

Letters

A to G 7 DP

You can connect the letters A-G & DP from one side of the max board  by daisy chaining them to the 3 & 5 digit dispalys. You do not need to connect wires from the right to the 3 digit display, and the wires from the left side of board to the 5 digit display. They are common or connected together!

Please note!

YOU CAN NOT DAISY CHAIN  THE D1 TO D8 COMMON CATHODES!

MAX7219 - WIRING OTHER DIGIT DISPLAYS

Wiring Diagram for replacing a 4 digit display to four, single digit displays.

SINGLE DIGIT WD MOBIFLIGHT.jpg
Single Digit Displays

Get In Touch>

Seen an error?
Want something changed?
Need extra help?
bottom of page