Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
-
- Posts: 3
- Joined: Fri Apr 22, 2016 5:49 am
Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
I want 1 dmd show my text and 1 dmd show time , all are controlled by 1 arduino , how i should do ? i don't know how to control pixel in multiple dmd
Re: Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
Hi,
This is simple enough to do. You can daisy-chain the two DMD together and control them from the one Uno or similar. It's up to you what you display, and where. While connected by a ribbon cable, they don't need to be butted to each other to appear as one single display.
Hope that makes sense,
Geoff
This is simple enough to do. You can daisy-chain the two DMD together and control them from the one Uno or similar. It's up to you what you display, and where. While connected by a ribbon cable, they don't need to be butted to each other to appear as one single display.
Hope that makes sense,
Geoff
-
- Posts: 3
- Joined: Fri Apr 22, 2016 5:49 am
Re: Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
Thanks for your help ! can u share some code about this , i'm amauter so i need clearly
ex : display 2 different text with 2 dmd

ex : display 2 different text with 2 dmd
Re: Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
Hi,
I don't have anything specifically, but here's how. In the simple example here, two values are displayed. One on each display. One increments from 0 and the other decrements from 999. They could say anything you like. It's true the Arduino is controlling it as one display, but so long as your text is at the right place there's no reason for them to be located adjacent to each other (aside from the ribbon cable length you use).Hope this helps, Geoff
I don't have anything specifically, but here's how. In the simple example here, two values are displayed. One on each display. One increments from 0 and the other decrements from 999. They could say anything you like. It's true the Arduino is controlling it as one display, but so long as your text is at the right place there's no reason for them to be located adjacent to each other (aside from the ribbon cable length you use).
Code: Select all
#include <SPI.h>
#include <DMD2.h>
#include <fonts/SystemFont5x7.h>
SoftDMD dmd(2,1); // dmd actually controls both displays
// values we'll display
int n1 = 999;
int n2 = 0;
void setup() {
dmd.setBrightness(255);
dmd.selectFont(SystemFont5x7); // a small font
dmd.begin();
}
void loop() {
// the first DMD panel extends from LED row 0 to row 15, the second from row 15 to row 31
dmd.drawString(0,0,String(n1--)); // this text will appear on the first DMD panel on row 0
if(n1<0) n1== 999;
dmd.drawString(0,16,String(n2++)); // this text will appear on the second DMD panel, starting at row 16
if(n2>999) n2=0;
delay(500);
dmd.clearScreen(); // blank out both panels
} // rinse, repeat
-
- Posts: 3
- Joined: Fri Apr 22, 2016 5:49 am
Re: Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
hi , thank u very much
it done
best wish for u :3


Re: Any ideal about controlling 2 individual dmd with 2 activity by 1 arduino ?
Just saw a typo. This should of course be I just copied a DMD2 example and edited it without testing, so that may not be the only error you find.
Geoff
Code: Select all
if(n1<0) n1== 999;
Code: Select all
if(n1<0) n1= 999;
Geoff