The MAX7219 LED Driver a serially interfaced common cathode LED driver that can drive up to 8 digits of 7-seg LEDs or 64 individual LEDs.
PACKAGE INCLUDES:
MAX7219 LED Driver
KEY FEATURES OF MAX7219 LED DRIVER:
3-wire SPI serial interface
Drives up to 8 digits of 7-segment common cathode displays
Drives up to 64 individual LEDs in up to an 8 x 8 matrix
5V compatible
The MAX7219 is designed to drive common-cathode LEDs and is perhaps the most popular of the LED drivers for driving 7-segment, bar-graph and LED matrix type displays with uCs.
The driver provides flexible individual LED segment control as well as basic functions such as turning the display ON/OFF and adjusting the LED brightness. The part is very straightforward to use and only requires one external resistor (RSet) to set the upper current limit for driving the LEDs. Because the chip can switch fairly significant current that will vary depending on the content of the displays, it is recommended that a 0.1uF and 10uF bypass capacitors be placed between power and ground close to the chip to minimize power supply ripple.
The MCU interface is via a 3-wire SPI serial interface. Most MCU have libraries available for this chip that makes it very easy to use. Since the chip handles all the dirty work of driving the LEDs once the MCU tells it what to display, it minimizes the overhead burden placed on the MCU so it can be off doing other things.
The outputs are arranged as 8 x 8 set of rows and columns which allows it to drive up to 8 digits of 7-segment displays, bar graph displays or 64 individual LEDs. Brightness can be controlled via an external resistor or software.
Multiple chips can be daisy-chained together to form larger displays.
When driving higher voltage or current displays than the chip can handle directly, these are often bundled with driver chips such as the ULN2803 as shown in the partial schematic where it is being used to drive large 7-Segment displays that require more than 5V to drive them.
The part is 5V logic compatible. To use with a 3.3V microprocessor will require level translation of the serial interface using something like our logic translation module.
These parts are the DIP version so they are breadboard friendly.
OUR EVALUATION RESULTS:
These are useful ICs and provide an easy way to get alphanumeric or dot matrix displays up and running. These ICs are made in China and are what are used in any of the China made modules that use DIP style MAX7219 ICs.
The program shows an example of using the MAX7219 to drive 8 7-segment displays like the ones we have available below. The wiring schematic is shown to the right. You can click to enlarge.
The program uses the “LedControl.h” library to implement basic functionality of the chip to make it easy to use.
The display is wired to digital pins 5, 6 and 7 but these can be reassigned to any 3 digital pins.
MAX7219 8-Digit 7-Segment Display Module Example Program
/*MAX7219 8-digit 7-segment LED testBasic code for configuring the device and outputting info to the display. Writes 'Arduino' on displayand then counts up on the display until "99999999" is reached.Uses the "LedControl" Library which must be included*/#include"LedControl.h"/*Define pins for LedControl. These can be assigned to any digital output pins on a microcontroller.pin 5 is connected to the DataIn pin 7 is connected to the CLK Pin 6 is connected to LOAD / CSThe 1 on the end is because we have only a single MAX72XX.*/LedControllc=LedControl(5,7,6,1);unsignedlongdelaytime=500;// delay between character updateslongnum=0;// Variable to hold counter number//===============================================================================// Functions//===============================================================================// This routine displays a up-counter. This utilizes a clever technique using recursion by// Michael Teeuw http://michaelteeuw.nl/post/158404930702/the-recursive-ledcontrol-countervoidshowNumber(longnumber,bytepos=0){bytedigit=number%10;lc.setDigit(0,pos,digit,false);longremainingDigits=number/10;if(remainingDigits>0){showNumber(remainingDigits,pos+1);}}// This routine displays the characters for the word "Arduino"voidwriteArduinoOn7Segment(){lc.setChar(0,7,'a',false);delay(delaytime);lc.setRow(0,6,0x05);delay(delaytime);lc.setChar(0,5,'d',false);delay(delaytime);lc.setRow(0,4,0x1c);delay(delaytime);lc.setRow(0,3,B00010000);delay(delaytime);lc.setRow(0,2,0x15);delay(delaytime);lc.setRow(0,1,0x1D);delay(delaytime);delay(3000);lc.clearDisplay(0);delay(delaytime);}//===============================================================================// Initialization//===============================================================================voidsetup(){lc.shutdown(0,false);// Wakeup displaylc.setIntensity(0,8);// Set brightness to a medium levellc.clearDisplay(0);// Clear the displaywriteArduinoOn7Segment();}//===============================================================================// Main//===============================================================================voidloop(){showNumber(num);num++;if(num>99999999)num=0;// Filled the display so start the count over}
Reliable JST connector cables with secure locking design, UL-certified wires, and high-quality crimping. Supports up to 3A current with compact 2.5mm pitch. Ensures stable power and signal transmission for PCB, LED, robotics, and industrial use. Custom lengths, colors, and pin counts available.
cables are made with high-purity copper wires and solid copper terminals, ensuring excellent conductivity, low resistance, and long-term reliability in power and signal transmission. Ideal for high-performance electronic applications.
Are any purchases final sale?
We are unable to accept returns on certain items. These will be carefully marked before purchase.
When will I get my order?
We will work quickly to ship your order as soon as possible. Once your order has shipped, you will receive an email with further information. Delivery times vary depending on your location.
Where are your products manufactured?
Our products are manufactured both locally and globally. We carefully select our manufacturing partners to ensure our products are high quality and a fair value.
How much does shipping cost?
Shipping is calculated based on your location and the items in your order. You will always know the shipping price before you purchase.