Bukit Mertajam, Penang

Displaying on MAX7219 Dot Matrix Using Raspberry Pi

Introduction

If you want to have a bigger number or string display, you can consider to use 4 In 1 MAX7219 Dot Matrix Display Module. In this tutorial, we will show you how to interface MAX7219 Dot Matrix with Raspberry Pi based on Luma.LED_Matrix library. Credit to Richard Hull.

Video

This video shows how to display on 4 in 1 MAX7219 Dot Matrix Display module using Raspberry Pi based on Luma.LED_matrix library.

Hardware Preparation

Wiring Connections

4 In 1 MAX7219 Dot Matrix Display ModuleMaker pHAT
VCC5V
GNDGND
DINMOSI
CSCE0
CLKSCK

Software Preparation

First, you need to enable SPI module in Raspberry Pi. Then instal Luma.LED_Matrix library (credit to Richard Hull). Write following command on Terminal.

sudo apt-get install build-essential

sudo apt-get install python-dev python-pip

sudo apt-get install libfreetype6-dev libjpeg-dev

git clone http://github.com/rm-hull/luma.led_matrix.git

sudo -H pip install –upgrade luma.led_matrix

Sample Code

This is the python sample code to do a basic display on MAX7219 Dot Matrix.

Thank you

References

  1. Luma.LED_Matrix, credit to Richard Hull.

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

Leave a comment