[PIC] I am using 36x8 led matrix display .brightness of led is low how increase brightness

Status
Not open for further replies.

vijaynallasivam

Junior Member level 1
Joined
Nov 16, 2015
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
150
Code:
char array[36],p,j,s,i,still;
void clock(){RB7=0;RB6=1;RB6=0;}
void data(){RB7=1;RB6=1;RB7=0;}


void scroll(char a,char b,char c,char d,char e,char f,char g)            //display function //
{  
    short int count=7;
    while(count>0)
    {     
        
        array[0]=~a;
        a=b;b=c;c=d;d=e;e=f;f=g;g=255;        
         data();
      
            for(i=0;i<36;i++)
            {
                p=1;
                for(j=0;j<35;j++)
                {                      
                    PORTD=~(array[i]&(p));delay_us(55);p<<=1;
                    
                }                
                 clock();           
                 }
                        
        for(i=35;i>0;i--)
        {
            array[i]=array[i-1];
            
        }
        count--;   
    }  
}
THIS IS MY MAIN LOOP AND I USE(PORTD=~array;delay_us(55);p<<=1INSIDE OF THIS CODE USE MEAN BRIGHTNESS IS HIGH BUT LETTER MOVING VERY FAST .ONE LETTER AFTER ONE LETTER OVER WRITING I AM VER CONFUSED .WHAT I DO PLEASE HELP ME....SHIFT REGISTOR IC WAS 74HC164 .PIC 16F877A HITECH C COMPILER.
 

you can use the good driver like ULN2803 with PIC16F876A and 74HCT164 I used it and it works very fine.
 

Can you separate the loops for scanning the matrix display and for moving the characters.
For example, you can create a loop that writes to the entire matrix every mSec (say) but only shift the characters every 100 times ( of whatever) through that loop.
I assume that the brightness form the matrix is a direct function of how long you keep the LED for each column powered.
Susan
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…