Hi,
Brothers I am beginner user of Arduino programmer and I am trying to implement 3 LED dot matrix 5x7 with using shift register 74hc595.I displayed a character on only one led dot matrix and I am trying to display other character on 2nd dot matrix but its not doing. Also i am using 3 shift registers for columns controlling and 3 also for rows.. please help me.
Here is my code showing one character on only one dot matrix...
//Pin connected to ST_CP of 74HC595
int latchPin_col = 8;
//Pin connected to SH_CP of 74HC595
int clockPin_col = 12;
////Pin connected to DS of 74HC595
int dataPin_col = 11;
int latchPin_row = 5;
//Pin connected to SH_CP of 74HC595
int clockPin_row = 7;
////Pin connected to DS of 74HC595
int dataPin_row = 6;
void setup() {
//set pins to output because they are addressed in the main loop
pinMode(latchPin_col, OUTPUT);
pinMode(clockPin_col, OUTPUT);
pinMode(dataPin_col, OUTPUT);
pinMode(latchPin_row, OUTPUT);
pinMode(clockPin_row, OUTPUT);
pinMode(dataPin_row, OUTPUT);
}
void loop() {
int col[5]={1,2,4,8,16};
int row[7]={3,109,110,109,3};
//count up routine
for (int j = 0; j <=4; j++) {
//ground latchPin and hold low for as long as you are transmitting
digitalWrite(latchPin_col, LOW);
shiftOut(dataPin_col, clockPin_col, MSBFIRST, col[j]);
digitalWrite(latchPin_row, LOW);
shiftOut(dataPin_row, clockPin_row, MSBFIRST, row[j]);
digitalWrite(latchPin_col, HIGH);
digitalWrite(latchPin_row, HIGH);
//return the latch pin high to signal chip that it
//no longer needs to listen for information
//delay(500);
}
What should I do for displaying other character on 2nd dot matrix?