Go Down

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

borzov161

Hallo Marco
examples library "Parola_Test"
147 line
" */#if ENA_SCAN "
a small mistake

"download full set from distribution site or library manager"
I deleted and installed again:
MD_DS1307-master
MD_KeySwitch-master
MD_MAX72XX-master
MD_REncoder-master
MD_MAX72XX-master
MD_Parola-master
what is missing?

marco_c

#1141
Sep 15, 2017, 12:44 am Last Edit: Sep 15, 2017, 12:44 am by marco_c
Code: [Select]
*/#if ENA_SCAN
This was not in my source code, so not sure what is going on.

I have tested all the examples and they compile on my development system - a couple with errors as you point out have been corrected. These have been updated in the code repository. Please get the MD_Parola library again and try it.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

borzov161

Code: [Select]
*/#if ENA_SCAN
This was not in my source code, so not sure what is going on.

I have tested all the examples and they compile on my development system - a couple with errors as you point out have been corrected. These have been updated in the code repository. Please get the MD_Parola library again and try it.
Thank you.now no errors.
start examples "Parola_Double_Height_v1" and "Parola_Double_Height_v2"=== ОК
test on a small screen (1 module FC16).

mherweg

some people asked for the wiring. maybe this photo can help:


8x2 modules

negativ3

Hi Marco,

I have hooked up a 4 x 1 board i bought from ebay but the modules are updating in reverse order i.e. 3, 2, 1, 0 instead of the correct 0, 1, 2, 3.

I am using a nano with the standard connections and the daft punk example with max72xx library.

What am I doing wrong?

Great library by the way, practically plug & play.

Thank you
Andy

negativ3

Got it sorted out...

Code: [Select]
#define USE_FC16_HW 1

Dave27

Hi Marco,

First of all I'm a beginner so sorry if my question is a bit silly.
 
I've just joined the community because I have some problems with my LED display project. I use 8 of the MAX7219 modules. The thing is that I need the text to scroll through the display 3 times if I for example, push a button and than stay off. I did manage to scroll the text continuously but I don't know how to make it happen only a couple of times. If I put "P.displayAnimate" in a for loop, it only scrolls once and than the display is blank.

Thank you indeed

Dave

marco_c

Simply set up a counter that is increased when you do a restart of the animation. Zero the counter when the switch is pressed and don't do an animation reset if it is higher than your limiting count value.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Dave27

Hi Marco,

Thanks for the quick reply. So I have done the following code. At the moment it does not have a push button attached to it.
Why do I have the text scrolling 5 times instead of 3?
Did I set the counter wrong?

#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>

// Define the number of devices we have in the chain and the hardware interface
// NOTE: These pin numbers will probably not work with your hardware and may
// need to be adapted
#define MAX_DEVICES 8
#define CLK_PIN   13
#define DATA_PIN  11
#define CS_PIN    10
int repTime = 0;



// Hardware SPI connection
MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);
// Arbitrary output pins
// MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);

void setup()
{
  Serial.begin(9600);
  P.displaySuspend(true);
  P.begin();
  P.displayScroll("Hello world!", PA_RIGHT,PA_SCROLL_LEFT,50);
 
}

void loop ()
{   

    if(P.displayAnimate()&& repTime <= 3) {
      repTime ++ ;
      P.displayReset();
      Serial.println (repTime);
         
      }
}

Many thanks
Dave

marco_c

You should be getting 4 as the counter goes 0, 1, 2, 3. There might be one more due to displayScroll().

You are better doing it like this as the intention is clearer
Code: [Select]
    if (repTime < 3)
{
  if(P.displayAnimate())
  {
      repTime ++ ;
      P.displayReset();
      Serial.println (repTime);
  }
         
}
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Dave27

I can't thank you enough!

I did get it running triggered by the Serial monitor:

void loop ()
{   
    trigData = Serial.read();
 
    if (repTime < 3){
 
        if(P.displayAnimate()){
        repTime ++ ;
        P.displayReset();
        Serial.println (repTime);
        }
    }   
    if (trigData > 0) {
      repTime = 0;
    }
}

It's easy to convert it to switch now :). Thank you so much!

P.S.: Awesome library by the way!

Dave

eptheca

Hi Marco,

I understand that your library and modules are designed around the MAX72xx chips + 8x8 LED matrix, but was wondering if you think it would be possible to adapt it for my circuit.

For example, can the MAX 72xx be connected to a matrix that uses the same connections for the Rows?
Like, can several LED Matrix modules share connections for the Rows?
Or do they have to be connected to the individual "Columns" and "Rows" for each module?

I have a 7x96 matrix of 32 x  3x7 LED matrix Common Cathode modules (it's and old text sign)
PaulRB is helping me to get it working with the combinations of Shift Registers, LED drivers and Transistors that the circuit has now https://forum.arduino.cc/index.php?topic=500924.0

When I had a look at your library and demos, I thought maybe it could work to connect 12xMAX7219 in stead of the current circuit, and then use your library.

These 3x7 modules have 10mm LEDs, so I guess lest say 7x24 of these would consume a lot of power, maybe more than the 7219s can stand?

I thought maybe I could cut the trace on the PCB and split it up in 4x24 Column zones of 8x3 Columns.



Cheers, Hal

marco_c

Quote
Like, can several LED Matrix modules share connections for the Rows?
I don't think so. I think that the LED scanning from each MAX7219 IC would interfere. There may be a kludge solution that someone may have worked out but I don't know of one.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

eptheca

I don't think so. I think that the LED scanning from each MAX7219 IC would interfere. There may be a kludge solution that someone may have worked out but I don't know of one.
OK. Thank you.

How about the other way.
Is it possible to adapt your library to work with the circuit my matrix have, or is all your effects only suited for the MAX72xx?

Cheers, Hal

marco_c

All the effects are in the Parola library and the hardware control in the MAX72xx library. Only a small part of the hardware library has to do with the chip itself and most of it with managing the memory buffers for the modules. Conceivably the hardware dependent parts could be replaced with something that works for your setup. You only need to make sure it behaves in a similar manner for the class methods invoked.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Go Up