MAX 7219 and MAX 7221 quite commonly used display driver IC for LEDs. Actually the same IC was in the 8×8 LED Matrix display. Right now, we know about 7 segment LED display as electronic component and multiplexing (increasing the number of digital pins in Arduino). Here is how to create Arduino MAX 7219 CNG basic circuit to control LED, 7 Segment displays in own custom ways rather than using modules. Arduino has official support for this chip :
1 | http://playground.arduino.cc/Main/LEDMatrix |
This guide is very important for the beginners as you are going to learn to use MAX 7219 CNG as component and enjoying the freedom to be creative. Instead of limited size of TM1637 clock, or miniature traffic light with TM1637, you can create a custom size clock or something like that. Additionally you are learning where from CLK, DIO, GND, +5V pins of modules actually originated. TM1637 vs MAX7219 is a complex topic but in easy language – TM1637 through hole component not so easily available and usage is limited.
Arduino MAX 7219 CNG Basic Circuit
MAX 7219 CNG and MAX 7221 both are costly chips, that is the basic problem. One MAX 72xx can control maximum of 64 LEDs. In most basic form, you need to create a kind of 4 digit LED 7 Segment display from 7 Segment display component (or buy a ready to use such which has no chip, the hardware interface is two rows of six through-hole pins) and this will be the circuit diagram :
---
The code will be like this to test :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include "LedControl.h" LedControl lc = LedControl(4,5,6,4); int count = 1000; void setup() { lc.shutdown(0,false); lc.setIntensity(0,5); lc.clearDisplay(0); } void loop() { String t = String(count++); lc.setDigit(0,0,(int)(t[0]-'0'),true); lc.setDigit(0,1,(int)(t[1]-'0'),false); lc.setDigit(0,2,(int)(t[2]-'0'),false); lc.setDigit(0,3,(int)(t[3]-'0'),false); delay(100); lc.shutdown(0,true); lc.shutdown(0,false); } |
However, for real good, stable circuit, you need to add two capacitors – one 10 uF electrolytic capacitor and a 100 nF ceramic capacitor in the circuit and create a 8×8 matrix with component LEDs. Circuit, in that case will be like this :
It is very important to study MAX 7219 CNG from various web resources for advanced works.
Tagged With max7219 arduino 7 сегментный индикатор , max7219 подключение к arduino , max7219cng 7 segment , реобас для пк на ардуино , arduino 7219 and 7 segment , часы на ардуино своими руками светодиодные и микросхемах max , 7219 vs 7221 , 7 segment max7219 arduino , 7 segment display driver ic circuit , 7 segment anzeige arduino max 7219