Hi
i buy a max7219 and when i connected power supply to it , the negative pin is in segX pins and the positive pins is in digX pins , thus i have reverse board and i don't know how can control it ! or if i connect parts together right or wrong !?
when i use LedControl library for driving in it using my esp8266 board and 5v external power supply there is nothing show from my code and leds are always on !
I use 4 * 1.8 inch common cathode 7 segment .
I connected boards like this together :
esp---------max7219---------7segment
D1-------------Din(1)
D2-------------CS(load)(12)
D5-------------CLK(13)
-----------------V+(19)----------------------------------5V
-----------------ISET(18)-------------------------------10Kohm resistor ----5V
-----------------segX-----------------X
-----------------dig0-----------------GND
According to the MAX7219 datasheet, the minimum logic high input voltage (Vih) is 3.5V. The best you're going to get out of a 3.3V powered ESP8266 is 3.3V. That could be part of the problem.
If the LEDs are on when the digit pins are at a higher voltage than the segment pins then you must have a common anode display.
The MAX7219 needs common cathode displays.
Can you give us the part number of your displays, or a link to their datasheet?
This is to do the level conversion for the SPI interface, you will still need an appropriate display. You simply wire the two inputs together and connect to the processor, the output goes to the MAX.
i tested my 7 segment, when i connect pins 2,3,4,6,7,8,9,10 to V+ and 1,5 to GND the leds turned on, i'm totally sure that my 7 segments are common cathodes .
i found this datasheet and in both cc and ca is exist :
If the segments each have three diodes in series, as the illustration shows, I think you are going to have trouble driving these from 5 volts. This means a solution other than an MAX7219. If you can drive these satisfactorily at 5 volts then the illustration is probably wrong.