Page 1 of 1

DMD2 Flashing Problem

Posted: Thu Aug 27, 2015 4:17 pm
by kocaeliy
I have a data coming from industrial device as int or float. Total digit are max 5. I can see the all datas on my P10 Led panel. When the datas 1 digit I have no problem. If the digits coming 2 or more, old digits which I can see on P10 flashing in very short time like 50ms. Also at same condition some od LEDs doens't off. In this case I am using DMD2 library. I couln't solve with "DELAY", because the datas coming continuously.

How can I fix this problem?

Can you help me about the transform DMD2 code below to DMD?

Code: Select all

 
 float Deneme;
  Deneme=c.conter(0);
  dmd.drawString(2,1,String(Deneme));
Thanks in advance.

Re: DMD2 Flashing Problem

Posted: Thu Aug 27, 2015 11:07 pm
by andrew
Most likely the data is coming in too quckly for the system to display, your sketch will need a short period of time between displaying data to clear the display before showing the new data. You may want to consider using a single-board computer that is faster and has a video output such as a Raspberry Pi - and display the data using an LCD TV-style display.

Re: DMD2 Flashing Problem

Posted: Mon Sep 28, 2015 12:14 pm
by kocaeliy
https://www.youtube.com/watch?v=_rv6sQV ... e=youtu.be

Code: Select all

#include <SPI.h>
#include <DMD2.h>
#include <fonts/Arial_Black_16.h>
#include <fonts/Droid_Sans_16.h>

int counter = 1;
float counter1 = 1;
float counter2;
int sayi,sayi1;
SoftDMD dmd(1,1);  // DMD controls the entire display
DMD_TextBox box(dmd, 0, 0);
// the setup routine runs once when you press reset:
void setup() {
  Serial.begin(9600);
  dmd.setBrightness(255);
  dmd.selectFont(Arial_Black_16);
  dmd.begin();
}

// the loop routine runs over and over again forever:
void loop() {
  
  if (counter1>1) 
  {
  counter=counter+1.12;
  counter1=0;
  }
  
   // box.print(counter);

   dmd.drawString(sayi,1,String(counter));
   //dmd.drawString(sayi1,1,String(counter)); 
  counter1++;
  
  delay(500);  
  
}