1 Inkubatek [supported by : www.tokotronik.
com]
INTERFACING ARDUINO DG PANEL MATRIX P10
Sistem Kerja Alat :
Arduino mengirimkan data ‘text’ ke modul panel LED Matrix P10. Cara menghubungkan
antara Arduino dengan panel dot matrix P10 dan membuat tulisan (berjalan) dengan modul
LED matrix P10.
Kebutuhan Hardware :
Arduino UNO Board
Modul LED Dot Matrix P10.
Power Supply 5V 10A untuk modul P10
Power Supply 7-9 Vdc
Modul Dot Matrix 32x8
2 Inkubatek [supported by : www.tokotronik.com]
P.Supply 5V 10 A
Schematics
3 Inkubatek [supported by : www.tokotronik.com]
Koneksi Arduino UNO dengan modul LED P10 :
Pin ARDUINO Pin modul LED P10 (DMD)
GND 3,5,7,9,11,13,15
6 2 (A)
7 4 (B)
8 10 (SCLK)
9 1 (PWM)
11 12 (R)
13 8 (CLK)
4 Inkubatek [supported by : www.tokotronik.com]
5 Inkubatek [supported by : www.tokotronik.com]
Source Code/Sketch :
/*************************************
* Program : Project 102. Running Text dengan Dot Matrix P10
* 125 Proyek Arduino Inkubatek
* www.inkubator-teknologi.com
* www.tokotronik.com
* ***********************************/
#include <Arial14.h>
#include <Arial_black_16.h>
#include <Arial_Black_16_ISO_8859_1.h>
6 Inkubatek [supported by : www.tokotronik.com]
#include <DMD.h>
#include <SystemFont5x7.h>
#include <SPI.h>
#include "TimerOne.h"
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
DMD dmd( DISPLAYS_ACROSS , DISPLAYS_DOWN );
void ScanDMD() {
dmd.scanDisplayBySPI();
void setup() {
Timer1.initialize( 2000 );
Timer1.attachInterrupt( ScanDMD );
dmd.clearScreen( true );
String textToScroll="99+ Proyek ARDUINO inkubatek";
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;
7 Inkubatek [supported by : www.tokotronik.com]
long timer2=start;
boolean ret=false;
while( !ret ) {
if ( ( timer+40 ) < millis() ) {
ret=dmd.stepMarquee( -1 , 0 );
timer=millis();
void loop() {
drawText(textToScroll);
Jalannya Alat :
Pada modul LED Dot Matrix P10 akan tampil tulisan berjalan “ 99+ Proyek ARDUINO
inkubatek ”.
8 Inkubatek [supported by : www.tokotronik.com]
Jika akan mengganti tulisan, cukup ganti string yang ada di program :
Untuk mengatus kecepatan ‘running’ nya, ganti nilai berikut :
9 Inkubatek [supported by : www.tokotronik.com]