Go Down

Topic: Scrolling LED matrix display - Parola for Arduino (Read 323024 times) previous topic - next topic

oshamed

Thank you for quick replay.
Before any thing I know that the problem at my end.lib works fine.
I am using esp8266 with .5 A USB no external power.
The error swap between matrix.
Here is link for my matrix

https://uge-one.com/four-cascaded-max7219-8x8-led-matrix-serial-display-module-for-arduino.html?search=cascade%20&description=true

My application grapes gold price from server.
And display it on screen.

Thank you

marco_c

Each of those modules can take up to 200 mA so I think your power supply is not big enough. I have an article in my blog on this - link on the left. Once a module drops out it needs to be initialised, as you have found.
 
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

oshamed

#1172
Nov 08, 2017, 09:25 am Last Edit: Nov 08, 2017, 09:41 am by oshamed
Even if I set intensity to 1

How can I donate to this lip?

marco_c

Those modules typically have an Rset resistor of 10k. This makes them very bright. Even with intensity 1 it can draw a lot of current if there are a lot of LEDs on at the time.

Quote
How can I donate to this lip?
No idea what this means.

Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

oshamed

Thank you works now when using external power 1A.
Iam asking do you accept donation...you worked hard for this library .if you accept please send me donation like.



marco_c

Glad to hear it is working. Just give me karma points if you like it.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

henrybernet

#1176
Nov 19, 2017, 02:50 am Last Edit: Nov 19, 2017, 03:06 am by henrybernet
Marco,

I post to piggyback off of DaIceMan's post regarding instability when booting cold and other inexplicable issues during the boot process after calling "begin()".

First off, fantastic library.  It has made a lot of tasks easy and it is clear you have a passion and have put a lot of effort into this.  Don't read any of this as crticisim, I hope to give as much information as possible and please let me know if you need more.  

Background: I've built this project going through several iterations.  First, learning by using a shift register with a single matrix and i've graduated to a 4 module grouping.  (Exact model).  I think Parola is the fourth library I've implemented, as I have continually required more features.  

Full disclosure: I can run all of the examples without issues.  However in my own code, seemingly at random... or cold boot/after the third upload/etc., I cannot get past the setup loop where I execute Begin().  

On the serial monitor, it is clear that the whole thing crashes or hangs after execution.  I'll see my first debug message on the serial monitor and then the whole thing is toast.  When I comment out the Parola lines I can get through it fine.  Sometimes, immediately after I upload the sketch, it will be fine.  Cold boot is probably 1 and almost never.

I have read many comments about RAM issues and I implemented debugging to track RAM usage through the sketch.  I don't think I am running out of memory.  For example, on a successful boot, I have the readings below   Technically:  I really have 4 devices and want 2 zones....I was messing around based on DaIceMan's comments (doesn't make much of a difference).  

RAM USAGE
(MAX_DEVICES = 7, ZONES = 7)
Before Parola Setup freeMemory()=1473
After Parola Setup freeMemory()=986

I am utilizing the MD_MAD72XX version 2.90 and Parola 2.64.

I can do things like displayText() all day long.  It is only once I start implementing zones that I seem to get into problems.  

I'm happy to provide as much detail as possible.  Let me know.


EDIT:  Adding Full Sketch for Reference.  Code commented/uncommented may vary by mileage.  Outside of specific initializations it is the same code I am referencing. 

marco_c

#1177
Nov 19, 2017, 04:17 am Last Edit: Nov 19, 2017, 04:18 am by marco_c
Some things for my information, please:
1. What is your development environment and versions?
2. Where did you get Bounce2 and version, so I can get same.
3. What does the sample code do to help me read the code in context.
4. Does the sample code cause problem on your system? This only has 2 zones/4 modules and you mention 7 zones/7 modules.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

gulin176

help me please. The text in the matrices is rotated 180 degrees. because of this the first matrix becomes the last one, and the last one is the first and so on in order further.

marco_c

Please read the documentation for the md_max72xx library on how to set up the library for your hardware. Doc is in the docs subfolder where the library is installed.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

henrybernet

Some things for my information, please:
1. What is your development environment and versions?
2. Where did you get Bounce2 and version, so I can get same.
3. What does the sample code do to help me read the code in context.
4. Does the sample code cause problem on your system? This only has 2 zones/4 modules and you mention 7 zones/7 modules.
Thanks for the reply Marco.  Responses below. 

1.  Windows 10 Arduino IDE 1.8.5
2.  https://github.com/thomasfredericks/Bounce2
3.  The code keeps track of the score in a game of table tennis.  Each player has two buttons that they press to increment/decrement their score.  The display will show both players score (player one zone one, player two zone two).
4.  The sample code causes issues.  It will run fine while I am working on it, but if I power off for the day it will not work when starting up.  The 7 zone thing was a comment about troubleshooting steps.  Past posts indicated they could increase the number of zones/modules and the problem would go away.  In my case it would not. 

marco_c

OK, I'll look into it. This could take a while.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

gulin176

Hello, tell me, the compilation stops on this error:
C:\Users\HOME\Documents\Arduino\libraries\MD_Parola\src/MD_Parola.h:787:19: warning:   'uint16_t MD_PZone::_scrollDistance' [-Wreorder]

   uint16_t        _scrollDistance;  // the space in columns between the end of one message and the start of the next

                   ^

C:\Users\HOME\Documents\Arduino\libraries\MD_Parola\src\MD_PZone.cpp:30:1: warning:   when initialized here [-Wreorder]

 MD_PZone::MD_PZone(void) : _fsmState(END), _userChars(nullptr), _MX(nullptr), _fontDef(nullptr),

 ^

C:\Users\HOME\Documents\Arduino\libraries\MD_Parola\src\MD_PZone.cpp: In member function 'void MD_PZone::allocateFontBuffer()':

C:\Users\HOME\Documents\Arduino\libraries\MD_Parola\src\MD_PZone.cpp:59:23: error: 'class MD_MAX72XX' has no member named 'getMaxFontWidth'

   uint8_t size = _MX->getMaxFontWidth() + getCharSpacing();

marco_c

#1183
Today at 06:58 am Last Edit: Today at 06:58 am by marco_c
Right now there is a problem with the versioning of the MD_Parola and MD_MAX72xx libraries (MAX72xx github s currently offline due to system problems on my dev computer having corrupted the library as I was uploading the latest to it).

You need to use the previous version of the MD_Parola library with the MD_MAX72xx you currently have. You can get this through the library manager in the IDE.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Go Up