Hi there,
I have started this project, and I thin i have a problem with the programing part.
So belove you can check out my code. The problem is when I put a little delay(e.g. 1 to 10) the LEDs brightness is low, and they start to blink at one point. Also if the value is high like in this code, the brightness is ok, but of course i don't have the continuos "flow" to get for example the letter A. My goal is to display a letter with no blinking and good brightness.
(The pins are correctly mounted, i checked several times, also i have a basic setup 8x8 Led matrix, with comon catodhe setup, each anode coloumn beeing protected by a 220 ohm resistor)
/*
8x8 Led Matrix using Arduino
*/
int i=0, j=0;
int l_col=8;
int l_row=8;
int col[8] = {13,12,11,10,9,8,7,6};
int row[8] = {19,18,17,16,5,4,3,2};
int pattern[8][8] = {
{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
};
void setup() {
for(i=0; i<l_col; i++)
{
pinMode(col[i], OUTPUT);
digitalWrite(col[i], LOW);
}
for(i=0; i<l_row; i++)
{
pinMode(row[i], OUTPUT);
digitalWrite(row[i], HIGH);
}
}
void draw(){
for(i=0; i<l_row; i++)
for(j=0; j<l_col; j++)
{
if(pattern[i][j])
{
digitalWrite(col[j], HIGH);
digitalWrite(row[i], LOW);
delay(500);
digitalWrite(col[j], LOW);
digitalWrite(row[i], HIGH);
}
}
}
void loop() {
draw();
}