Matrix 8x8
Hello guys , here we are again to learn utilisation of another device. Today's device is Matrix of led.
First we gonna start by defining a matrix led, how it is build from inside, number of pins and how to connect it.
Matrix led
a matrix led is a display device, it's easy to use and it have many applications in real life, such as various types of electronic display panels and in other projects.today we gonna use a 8x8 matrix. so we have a 64 led , it can be of any color (red, green, blue, ...) . this leds are wired as it's shown in the picture below (every row have a common anode and a different cathode and every colomn have a common cathode and a different anode ).
that's give us a 16 pin s to connect to our microcontroller but sometimes it's too much and we can't connect any other device with it so today we gonna show you two different ways to connect a matrix led. for this tutorial we will just connect it simply.
first let's start by defining the function of each pin
1: | R5 |
2: | R7 |
3: | C2 |
4: | C3 |
5: | R8 |
6: | C5 |
7: | R6 |
8: | R3 |
|
with R : row
C : col
connect matrix simply
we ll just connect the 16 matrix pins with our microcontroller(arduino in our case) directly
download code : click here
Aucun commentaire:
Enregistrer un commentaire