Scrolling text in the dot matrix is used as the IC 74HC595 shift register to set the column (column drivers). PortB on set as an output that is connected to the 74HC595. PortB.0 as the data released, PortB.2 PortB.1 as clock and data set as a latch or the reverse of the data released on PortB.1 clock. Data from PortB.0 will be issued a parallel but alternate (shift register) to 74HC595 pin numbering eight output pins that can turn the eight pieces on the dot matrix columns alternately. tricks to turn the column is set to delay a very fast so it looks like it lit dot matrix columns in tandem, alternately removed when the data but the data is changing very rapidly due to delay preset. Arranged in dot matrix characters on a line driver. Data on driver line array and the data stored mengguanakan issued through the Porta atmega8535.PortA set as a line driver which issued the logic 0 “low”. Porta is connected to the amplifier circuit (transistor 2N3906) that converts a logic 0 to logic “high” due to the dot matrix of column drivers set to 0 “low” to be lit dot matrix.Therefore, the output data line drivers use the sign “~” in order for the data that comes out is the opposite of data from existing data on the array (Porta = ~ fonts [c];).
Here is an example to switch on the dot matrix coding the data directly taken from the array, if the existing data on the array changed the dot matrix display that will also change.
———————————————————————————————–
#include <mega8535.h>
#include <delay.h>
#include <stdio.h>
#include <string.h>
//#include “font5x8.h”
void main(void)
{
int i=0;
int j=0;
int n;
int z;
int y;
int c;
//char fonts[5]={0x7E, 0×11, 0×11, 0×11, 0x7E};
char fonts[] = {
0x7F, 0×49, 0×49, 0×49, 0×41,0×00,// E
0×46, 0×49, 0×49, 0×49, 0×31,0×00,// S
0x7F, 0×09, 0×19, 0×29, 0×46,0×00,// R
0x3E, 0×41, 0×41, 0×51, 0×32,0×00,// G
0×00, 0×00, 0×00, 0×00, 0×00,0×00,// spase
0×00, 0×41, 0x7F, 0×41, 0×00,0×00,// I
0×46, 0×49, 0×49, 0×49, 0×31,0×00,// S
0×00, 0×00, 0×00, 0×00, 0×00,0×00,// spase
0x3E, 0×41, 0×41, 0×41, 0×22,0×00,// C
0x3E, 0×41, 0×41, 0×41, 0x3E,0×00,// O
0x3E, 0×41, 0×41, 0×41, 0x3E,0×00,// O
0x7F, 0×40, 0×40, 0×40, 0×40,0×00,// L
0×00, 0×30, 0×30, 0×00, 0×00, 0×00,// .
0×00, 0×30, 0×30, 0×00, 0×00, 0×00// .
};
DDRB=0xFF;
DDRA=0xFF;
PORTA=0xFF;
PORTB=0xFF;
// USART 9600
UCSRA=0×00;
UCSRB=0xD8;
UCSRC=0×86;
UBRRH=0×00;
UBRRL=0×47;
while(1)
{
for(n=0; n<167; n++)
{
y=n*1;
z=0;
while(z<2) //speed
{
z=z+1; //scroll
for(i=0;i<81;i++)
{
c=i+y;
c=c-81;
// printf(“i:%d”,i);
// printf(” y:%d”,y);
// printf(” c1:%d”,c);
if(c<0)
{
PORTA=0xff;
}
if(c>83)
{
c=c-84;
PORTA=0xff;
}
else
{
PORTA=~fonts[c];
}
// printf(” c2:%d”,c);
// printf(“nr”);
// KOLOM,nyala jika 0
if(i==0)
PORTB.0=0;
else
PORTB.0=1;
// Generate clock
PORTB.1=0; //Clock
PORTB.2=1; //Clock
PORTB.1=1; //Clock
PORTB.2=0; //Clock
delay_us(200);
} //end looping for shift register
};
if(n==166)
{
n=0;
}
} //end for
}; //end while
} // end void main
Keyword :
dot matrix ,products ,scrolling ,scrolling text ,scrolling message ,led matrix ,microcontrollers ,matrix ,led dot matrix ,led display ,led belt buckle ,how to ,text scroll ,suppliers ,stores ,youtube ,shenzhen ,scrolling display ,rgb led ,project ,printing ,printer ,matrix display ,mainland ,led displays ,indoor led ,exporters ,evolution ,e-motive ,dot-matrix ,dot matrix printer ,dot matrix display ,digital signage ,customizable ,computer ,combines ,characters ,buckle ,belt buckle ,attiny ,arduino.

