Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Displays & LEDs
  4. ›MAX7219 LED Dot Matrix
Step 13 of 17 in Displays and lightsPart of a learning path.
Next

How-to · Beginner · 3 min read

MAX7219 LED Dot Matrix

Wiring, Chaining and Scrolling Text

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWiring to Arduino and ESP32Scrolling text with MD_ParolaText upside down or mirrored? Set the hardware typePower and brightnessMAX7219 for 7-segment displaysTry itCommon mistakesFAQsParts and next steps
Short answer

The MAX7219 drives an 8x8 LED matrix (or eight 7-segment digits) using only three data pins, DIN, CS and CLK, and modules chain together by wiring each module's output to the next one's input. Power them from 5 V, use the MD_Parola library to scroll text, and set the hardware type to FC16_HW for the common blue four-in-one modules. Budget up to about 1 A at full brightness for a four-module display.

Key specs at a glance

Drives
64 LEDs: one 8x8 matrix or 8 seven-segment digits
Interface
3-wire serial: DIN, CS (LOAD), CLK
Supply
4 to 5.5 V
Brightness
16 levels in software, plus RSET resistor
Chaining
DOUT to next DIN; four-in-one modules are pre-chained
Libraries
MD_Parola + MD_MAX72XX, LedControl
01

Wiring to Arduino and ESP32

Module pinArduino UnoESP32Notes
VCC5V5V (VIN)Use a separate 5 V supply for long chains
GNDGNDGNDCommon ground
DIND11 (MOSI)GPIO 23 (MOSI)Hardware SPI is fastest
CSD10GPIO 5Any digital pin
CLKD13 (SCK)GPIO 18 (SCK)
VCC
Arduino Uno:
5V
ESP32:
5V (VIN)
Notes:
Use a separate 5 V supply for long chains
GND
Arduino Uno:
GND
ESP32:
GND
Notes:
Common ground
DIN
Arduino Uno:
D11 (MOSI)
ESP32:
GPIO 23 (MOSI)
Notes:
Hardware SPI is fastest
CS
Arduino Uno:
D10
ESP32:
GPIO 5
Notes:
Any digital pin
CLK
Arduino Uno:
D13 (SCK)
ESP32:
GPIO 18 (SCK)
02

Scrolling text with MD_Parola

Install MD_Parola and MD_MAX72XX from the Library Manager.

Scroll a message on a 4-module display · Arduino C++Verify & upload in Electrolark
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>

#define HARDWARE_TYPE MD_MAX72XX::FC16_HW   // blue 4-in-1 modules
#define MAX_DEVICES 4
#define CS_PIN 10

MD_Parola display(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);

void setup() {
  display.begin();
  display.setIntensity(3);   // 0 to 15: keep it low to save power
  display.displayText("Hello from Geekobot", PA_CENTER, 60, 0,
                      PA_SCROLL_LEFT, PA_SCROLL_LEFT);
}

void loop() {
  if (display.displayAnimate()) display.displayReset();
}
03

Text upside down or mirrored? Set the hardware type

Module makers wire the matrix to the MAX7219 in different orientations, so MD_MAX72XX needs to know which one you have. Try these in order: FC16_HW (most blue four-in-one modules sold today), GENERIC_HW (single red modules with the chip under the matrix), PAROLA_HW and ICSTATION_HW. If letters are mirrored, rotated or scrambled, the hardware type is wrong. With LedControl, you handle orientation yourself in code.

04

Power and brightness

Each lit LED draws current, and four modules have 256 LEDs. At full brightness with everything on, a four-module display can draw close to 1 A; scrolling text typically lights only 20 to 30% of LEDs. Keep intensity at 2 to 5 indoors, power chains of more than four modules from a separate 5 V supply, and add a 100 µF capacitor at the input. Feed power at both ends of long chains.

ESP32 and Pico: the MAX7219 officially needs a logic HIGH of 3.5 V when powered at 5 V. A 3.3 V board often works anyway, but for a reliable display add a level shifter such as a 74HCT125, or power the modules at about 4.5 V. See logic level shifting.

05

MAX7219 for 7-segment displays

The same chip drives eight 7-segment digits and has a built-in BCD decoder. Use the LedControl library: lc.setDigit(0, position, value, decimalPoint). The common eight-digit red module is a good choice when you need more digits than a TM1637 provides.

06

Try it: LED strip power calculator

Change the values and the diagram and results update as you type.

07

Common mistakes to avoid

  • !Leaving the hardware type at the default and getting mirrored text.
  • !Running a long chain at full brightness from the Arduino's USB 5 V.
  • !Wiring DOUT of the last module back to the Arduino instead of DIN of the first.
  • !Driving the module at 3.3 V logic without testing and getting random pixels.
  • !Forgetting to set MAX_DEVICES to the number of modules.
08

Frequently asked questions

How many MAX7219 modules can I chain?

There is no hard limit in the chip; libraries handle dozens. In practice, power and refresh speed limit long chains. Feed power every four to eight modules.

Why is my MAX7219 text backwards?

The library's hardware type does not match your module. Try FC16_HW first, then GENERIC_HW, PAROLA_HW or ICSTATION_HW.

Can I use MAX7219 with ESP32?

Yes, with the same libraries. Power the module from 5 V. For reliable data at 3.3 V logic, use a level shifter or lower the module's supply slightly.

How much current does a MAX7219 matrix draw?

It depends on brightness and how many LEDs are lit. One module at full brightness with all LEDs on can draw over 200 mA; scrolling text at low intensity needs far less.

Which library is best for MAX7219?

MD_Parola with MD_MAX72XX for scrolling text and effects; LedControl for simple pixels and 7-segment digits.

Parts for this guide

  • MAX7219 LED Display Module
    ₹78View
  • TM1638 LED & Key Module (8 Digits, 8 LEDs, 8 Keys)
    ₹270View
  • DC Power Adapter (5.5x2.1mm)
    ₹188View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop 7-Segment & Dot Matrix

Calculators

LED strip power calculator

Terms in this guide

MultiplexingDriving several displays or LEDs from a few pins by switching between them faster than the eye can see.SPISerial Peripheral Interface: a fast bus with clock, data in, data out and a chip-select line per device.Logic levelThe voltage that represents a digital high: 5 V on classic Arduinos, 3.3 V on ESP32, Pico and Raspberry Pi.Common cathodeA 7-segment or RGB LED where all cathodes share one pin connected to ground, and each segment is lit by driving its anode HIGH.

Projects that use it

Put this into practice: 7 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourElectronic dice on an LED matrixView projectIntermediate · 2 hoursSnake game on an 8×8 LED matrixView projectBeginner · 1 hourEmoji feelings board for the classroomView project
Browse all 7 projects

Keep learning

How-toBeginner7-Segment DisplaysA 7-segment display is seven LEDs (plus a decimal point) arranged as a figure 8.3 min read · Displays & LEDsConcept explainerIntermediateSPI ExplainedSPI (Serial Peripheral Interface) is a fast four-wire bus: SCK carries the clock, MOSI carries data from the controller, MISO carries data back, and a separate chip-select (CS) line per device chooses who is listening.3 min read · Electronics FundamentalsHow-toIntermediateWS2812B Addressable LEDs (NeoPixel)WS2812B LEDs (often called NeoPixels) contain a red, green and blue LED plus a tiny controller, so each LED on a strip can be set to any colour from one data pin.3 min read · Displays & LEDsHow-toIntermediate3.3 V vs 5 V LogicYou need level shifting when a 5 V device sends signals to a 3.3 V board such as an ESP32 or Raspberry Pi Pico, because 5 V on their pins can damage them.4 min read · Prototyping & Wiring

Sources

  • Analog Devices (Maxim) MAX7219/MAX7221 datasheet
  • MD_Parola and MD_MAX72XX library documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWiring to Arduino and ESP32Scrolling text with MD_ParolaText upside down or mirrored? Set the hardware typePower and brightnessMAX7219 for 7-segment displaysTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹585

MAX7219 LED Display Module · TM1638 LED & Key Module (8 Digits, 8 LEDs, 8 Keys) · DC Power Adapter (5.5x2.1mm) · Dupont Jumper Wires (40 pcs)

Run itChange the inputs and watch the output
H

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question