MAtrix for highschool, Lecture notes of Mathematics

Its an martrix to want mathematics

Typology: Lecture notes

2018/2019

Uploaded on 03/20/2019

asffa
asffa 🇦🇷

1 document

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Republic of the Philippines
BATANGAS STATE UNIVERSITY
College of Engineering, Architecture, & Fine Arts
ECE 416
Microprocessor Systems with Programming
(8x5 LED MARQUE)
Submitted by:
Fampulme, Christine Angelic F.
Landicho, Jeffrey
Pamilara, Dennis Joseph
Submitted to:
John Allan V. De Villa
October 10,2018
8 by 5 LED MARQUE
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download MAtrix for highschool and more Lecture notes Mathematics in PDF only on Docsity!

Republic of the Philippines BATANGAS STATE UNIVERSITY College of Engineering, Architecture, & Fine Arts

ECE 416

Microprocessor Systems with Programming (8x5 LED MARQUE)

Submitted by: Fampulme, Christine Angelic F. Landicho, Jeffrey Pamilara, Dennis Joseph

Submitted to: John Allan V. De Villa

October 10,

8 by 5 LED MARQUE

Objective:

  • To display the initial of first name and surname of group members in MARQUE.

Materials:

  • 40 LEDS
  • Arduino Uno
  • Connecting wires
  • PCB

Procedure:

  1. Construct a schematic diagram for the layout of the LEDs in the PCB.
  2. Place the LEDs in the PCB as shown in the schematic diagram. The anodes are connected of each row together at pins 1,2,3,4,5,6,8,9 and cathodes of each rows together A1,A2,A3,A4,A5. Use the wires to connect the columns and rows.
  3. After the connection, connect the setup to the Arduino board using the configuration specified above.
  4. Program the sequences considering that 1,2,3,4,5,6,8,9 pins will turn on when the level is HIGH while A1,A2,A3,A4,A5 when the level is LOW.
  5. (^) Test the program.

CODES:

showPattern();

//F data[0] = B00111001; data[1] = B01000001; data[2] = B01000001; data[3] = B01000001; data[4] = B00111001; showPattern();

data[0] = B01110011; data[1] = B10000010; data[2] = B10000011; data[3] = B10000010; data[4] = B01110010; showPattern();

data[0] = B11100111; data[1] = B00000100; data[2] = B00000111; data[3] = B00000100; data[4] = B11100100; showPattern();

data[0] = B10011110; data[1] = B00010000; data[2] = B00011110; data[3] = B00010000; data[4] = B10010000; showPattern();

data[0] = B00111100;

data[1] = B00100000; data[2] = B00111100; data[3] = B00100000; data[4] = B00100001; showPattern();

data[0] = B01111000; data[1] = B01000000; data[2] = B01111000; data[3] = B01000000; data[4] = B01000010; showPattern();

//J

data[0] = B11110001; data[1] = B10000000; data[2] = B11110000; data[3] = B10000001; data[4] = B10000100; showPattern();

data[0] = B11100011; data[1] = B00000000; data[2] = B11100000; data[3] = B00000010; data[4] = B00001001; showPattern();

data[0] = B11000111; data[1] = B00000001; data[2] = B11000001; data[3] = B00000101;

data[4] = B00010011; showPattern();

data[0] = B10001111; data[1] = B00000010; data[2] = B10000010; data[3] = B00001010; data[4] = B00100110; showPattern();

data[0] = B00011110; data[1] = B00000100; data[2] = B00000100; data[3] = B00010100; data[4] = B01001100; showPattern();

data[0] = B00111101; data[1] = B00001001; data[2] = B00001001; data[3] = B00101001; data[4] = B10011001; showPattern();

data[0] = B01111010; data[1] = B00010010; data[2] = B00010010; data[3] = B01010010; data[4] = B00110011; showPattern();

data[0] = B11110100;

data[1] = B00100100; data[2] = B00100100; data[3] = B10100100; data[4] = B01100111; showPattern();

data[0] = B11101000; data[1] = B01001000; data[2] = B01001000; data[3] = B01001000; data[4] = B11001111; showPattern();

data[0] = B11010000; data[1] = B10010000; data[2] = B10010000; data[3] = B10010000; data[4] = B10011110; showPattern();

data[0] = B10100000; data[1] = B00100000; data[2] = B00100000; data[3] = B00100000; data[4] = B00111101; showPattern();

data[0] = B01000000; data[1] = B01000000; data[2] = B01000000; data[3] = B01000000; data[4] = B01111010; showPattern();

data[1] = B01010010; data[2] = B01011100; data[3] = B01010000; data[4] = B10010000; showPattern();

data[0] = B00111000; data[1] = B10100100; data[2] = B10111000; data[3] = B10100000; data[4] = B00110000; showPattern();

data[0] = B01110000; data[1] = B01001000; data[2] = B01110000; data[3] = B01000000; data[4] = B01000000; showPattern();

data[0] = B11100000; data[1] = B10010000; data[2] = B11100000; data[3] = B10000000; data[4] = B10000000; showPattern();

data[0] = B11000000; data[1] = B00100000; data[2] = B11000000; data[3] = B00000000; data[4] = B00000000;

showPattern();

data[0] = B10000000; data[1] = B01000000; data[2] = B10000000; data[3] = B00000000; data[4] = B00000000; showPattern();

data[0] = B00000000; data[1] = B10000000; data[2] = B00000000; data[3] = B00000000; data[4] = B00000000; showPattern();

// data[0] = B00000000; // data[1] = B00000000; // data[2] = B00000000; // data[3] = B00000000; // data[4] = B00000000; }

void allOff() { for (int i=0; i<5; i++) for (int j=0; j<8; j++) { digitalWrite(row[i], LOW); digitalWrite(col[j], HIGH); } }

void showPattern() {

for (int sec = 0; sec < 25; sec++) { for (int trow = 0; trow < rows; trow++) { allOff(); digitalWrite(row[trow], HIGH);

for (int tcol=0; tcol<columns; tcol++) { if(bitRead(data[trow],columns - tcol -1) ==1) { digitalWrite(col[tcol], LOW); } else { digitalWrite(col[tcol], HIGH); } }

delay(pause); }

} allOff(); }