Go Down

Topic: 8x64 MAX7219 LED Matrix wrong orientation (Read 27577 times) previous topic - next topic

wvijay

Hello All

This is my First post in the forum.

I seem to have a similar problem with the MAX 7219 as well. In my case the Col0 / Row0 start from top right corner ... :o.

Not only that all text I  send to the MAX is mirrored and start from the right. I have used LedControl.h library. Is there any other library available that i can use which will resolve the issue.

I have attached the sketch of the row/col scanning and i have to start the for_loop from 7 to 0, when i expected it to 0 to 7.

The display board just says MH for the product name.

Will appreciate any help. Thx in advance

Regards
Vijay

marco_c

Quote
Video reference attached
Not

Please read post #2 and he rest of the thread, as this question is already answered.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

wvijay


aeol2000

You have not selected the correct matrix type for the MD_MAx72xx library. Please read the documentation related to this topic in the html files that come with the library.
Thanks,
and sorry i dont understand wath i have to do in what file. I only see one MD_MAX72xx library. Where i have to select? (i see i have Maxim 7219cwg 1518

marco_c

You need to edit the MD_MAX72xx.h file and change the matrix type #define. There is a lot of documentation on the different types of matrix modules and how to do this in the docs folder, or you can look online in the code repository, where you got the library.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

aeol2000

I try chaging to fc16 and others but it doesnt work or i  dont know exactly what i have to do.

marco_c

Quote
I try changing to fc16 and others but it doesn't work
Please be more specific.

You need to edit the header file to make sure ONLY ONE of the types of hardware is selected - your type. Then try one of the example programs and check that it runs properly. Make sure that the IN side for data is on the right when you look at the display.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

aeol2000

Yes i edit de MD_MAX72xx.h and try to change #define   USE_GENERIC_HW   0 to 1, either USE_ICSTATION_HW, USE_FC16_HW, USE_OTHER_HW, but i have no result, all the cells turn on.


marco_c

#23
Jan 12, 2017, 11:31 am Last Edit: Jan 12, 2017, 12:36 pm by marco_c
If all the cells are turning on then it is possible that the led matrix is plugged in the wrong way. Try rotating by 180 degrees.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

aeol2000

You said i have to turn the four cells 8*8 180 degrees from the platform? i`ll try
thanks

aeol2000

now i have lines on and other off and others with less intensity

marco_c

ok, so possibly not the problem. I think you are having a hardware problem somewhere but try this:

1. Does it work with another LED matrix library (say LedControl)? Just try one of their example programs, and try rotating the matrix as well (try one direction then the other if the first does not work). You can just use one matrix in the first position to make things faster. Just as long as you see something you expect it means that it works.

2. Have you checked the wires you are using to the IN side of the display? Check for electrical continuity and good connections. Have you connected them to the correct pins?
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

aeol2000

With max7219.h is the only i get the imagen of post 13, vertical string, i try other options changes but i`m lost. i dont know with example use and get the good config.

wvijay

Hello All,

Thank you marco_c for your help setting up the MAX 7219. I ran thru the MD_max72xx lib and enabling the "generic HW" solved the issue.

Video: https://youtu.be/teqMQim5Zn0 for your reference.

I had earlier made a LCD clock to display date/time/temp etc and have no clue where to incorporate the same in MAX7219 (attached the sketch of my LCD Clock ). Since I am storing all data of the RTC to variables, and then converting them to string to display on LCD, which was easy.


Now, I am hoping to add an RTC and DTH11 temp sensorand  I need to incorporate the same data the MAX 7219 to scroll and i am lost where i need to put the code in. How do I convert a sting stored in variables into SCROLLTEXT subroutine. All i did (for the video ) was to change scrollText text string.

Will appreciate any help on this front.

Regards

alleebell

wvijay, I am doing the exact same project you are trying to do. I did the LCD version couple weeks ago with a 20x4 module. My RTC is DS3231. It is simple to do. I tested the DS3231 as a standalone component and observe the time and date via the serial console before I send the time and date info to the LED module. My LED module is the MAX 7219. Fun!

Go Up