Sunday, November 5, 2023

Scrolling text on Dot-Matrix Using PIC controller & MikroC Pro



Scrolling text on Dot-Matrix Using PIC controller & MikroC Pro

Scrolling text on Dot-Matrix Using PIC controller & MikroC Pro

 Dot Matrix is the combination of LEDs in Matrix form in different sizes. Dot Matrix LED display use to display any type of text on it, but on 7 segment we can display digits only. We can see the Dot Matrix Display in marketing for advertising and in other different application to display some text.

Related Topic: 

So here we are sharing the scrolling text on dot matrix. MikroC Pro for PIC is use for coding and compilation and Proteus 8.15 is use for simulation for circuit testing.

Dot-Matrix concept:

Dot Matrix PINOUT

Working of dot matrix:

Here we are using common cathode dot matrix, it means the Anodes of the LEDs are common with columns and cathode with rows as you can see in above 1st diagram.

If we want to ON top left dot, then we will do column 1 high and row 1 low. Here if we will scan columns and row 1 low all others row at high then top row of the matrix will glow one by one from left to right. Wise versa if we scan rows and select to high one column then selected column dots glow one by one.

Interesting this is that if we increase the scanning speed and cross the human eye flickering sensitivity then we see a line of row or column.

Circuit diagram:

Circuit designed in Proteus8.15

Scrolling text on Dot-Matrix Using PIC controller & MikroC Pro

MikroC Pro for PIC Coding:

/// Dot Matrix 5x7 using PIC ///
/// by Elektronics Garage    ///
/// Date: 4 Nov 2023         ///

//Dot_Matrix size
unsigned int columns = 10;
unsigned int rows = 7;
unsigned int loop=0;
unsigned int col=0;
unsigned int row=0;
int int i,j;
unsigned int col_num[] = {0x01,0x02,0x04,0x08,0x10,0x01, 0x02, 0x04, 0x08, 0x10};
unsigned int row_A[] = {0x01, 0x76, 0x76, 0x76,0x01,0xFF,0xFF,0xFF,0xFF,0xFF};
unsigned int row_B[] = {0x00, 0x36, 0x36, 0x36,0x49,0xFF,0xFF,0xFF,0xFF,0xFF};

void main() {
TRISB=0x00;
TRISD=0x00;
PORTB=0x00;
PORTD=0x00;

col=columns-1; 

while(1) {

for (j=0;j<300 delay_us="" else="" for="" i="" if="" j="" loop="" portb="col_num[col-i];" portd="row_A[row];" row="loop;">col-1){loop=0;}
}
}

No comments:
Write comments

I am very thankful for your precious time

Important Artical

Popular Articals

Total Page views in This Month

© 2019-20 Electronics Garage. Designed by Uzma 0101 & Distributed by elektronicsgarage1.blogspot.com