Scrolling Text LED matrix P10 (1R) with Arduino uno

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
Angelvinny
Posts: 2
Joined: Sun Sep 06, 2015 11:51 pm

Scrolling Text LED matrix P10 (1R) with Arduino uno

Post by Angelvinny » Mon Sep 07, 2015 12:31 am

Greetings friends,

I wish this forum esmpezar expecting some help.

My problem is that I can not generate nor move text in the matrix array tengola P10 (1R) V701C, just some LEDs light, I'm using Arduino Uno, I followed all the steps example, connection and can not get to work as I want,

My code is:

#include <Arial14.h>
#include <Arial_black_16.h>
#include <Arial_Black_16_ISO_8859_1.h>
#include <DMD.h>
#include <SystemFont5x7.h>
#include <SPI.h>
#include "TimerOne.h"
#include <SoftwareSerial.h>
/* you can remove the fonts if unused */
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
DMD dmd( DISPLAYS_ACROSS , DISPLAYS_DOWN );

void ScanDMD() {
dmd.scanDisplayBySPI();
}

void setup() {
Serial.begin(9600);
Timer1.initialize( 2000 );
Timer1.attachInterrupt( ScanDMD );
dmd.clearScreen( true );
}

String textToScroll="Hello, this will be displayed on the DMD";

void drawText( String dispString ) {
dmd.clearScreen( true );
dmd.selectFont( Arial_Black_16 );
char newString[256];
int sLength = dispString.length();
dispString.toCharArray( newString, sLength+1 );
dmd.drawMarquee( newString , sLength , ( 32*DISPLAYS_ACROSS )-1 ,0);
long start=millis();
long timer=start;
long timer2=start;
boolean ret=false;
while( !ret ) {
if ( ( timer+20 ) < millis() ) {
ret=dmd.stepMarquee( -1 , 0 );
timer=millis();
}
}
}

void loop() {
Serial.println(textToScroll);
drawText(textToScroll);
}
Also how you connect the array with the Arduino pins:

Image

This is my result:

Image

The library I use this at this link: https://github.com/freetronics/DMD

I do not understand what the problem is if I followed the right steps, someone who can help me out of this predicament

Thank you...
:? :roll:

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Scrolling Text LED matrix P10 (1R) with Arduino uno

Post by andrew » Mon Sep 07, 2015 7:32 am

Double-check your wiring - if it still doesn't work you may have a faulty screen, in this case email support@freetronics.com if it is from us or contact your display supplier for further guidance.

Angelvinny
Posts: 2
Joined: Sun Sep 06, 2015 11:51 pm

Re: Scrolling Text LED matrix P10 (1R) with Arduino uno

Post by Angelvinny » Mon Sep 07, 2015 3:37 pm

Cheers, thank you johnb

In addition to what I indicated someone can tell me whether any additional connection is missing, or it should work already, please review it carefully to see if everything is fine.

I want to be sure that my parent is not working, if anyone knows of something extra, hope their contribution.


:?: :D

HoangLoi
Posts: 1
Joined: Sun Jun 04, 2017 11:14 am

Re: Scrolling Text LED matrix P10 (1R) with Arduino uno

Post by HoangLoi » Sun Jun 04, 2017 11:20 am

Hello everyone, I want to connect two Led matrix p10 together, can this code print larger text to 2 led matrix? if posible how do change this code? thanks you.

Post Reply