Showing posts with label Project-Micro Controller. Show all posts
Showing posts with label Project-Micro Controller. Show all posts

Sunday, 22 December 2013

How To Interface 5x7 Led Dot Matrix Segment By AT89C51 ?

Simply to explain the working principle of our 5x7 Led Dot Matrix Panel we introduced the one block/segment operation of this 5x7 Led Dot Matrix Panel. Thus we will understand the functionality of different Integrated Circuits pins and how different logic are passing through that pins. We also observed the decorder/demultiplexer‘s and octal buffer/line driver‘s logic variation at instant of time in simulation.
 
The simple Proteus simulation block diagram of this is as shown in Fig.12a
 Fig.12a

Here we used the common anode 5x7 Led Dot Matrix Module. Thus we applied the +Vcc or high logic to the row and ground or low logic to the column of 5x7 Led Dot Matrix Module. 

In Micro-controller we used Port0 as a selection of column to providing ground or logic low and Port2 providing data bus to the row of 5x7 Led Dot Matrix Module. 

For that concept we make the data code of the character ‘A’ which write as below.
             Unsigned array column = {0x7Eh, 0x7Dh, 0x7Bh, 0x77h, 0x6Fh}
             Unsigned array row = {0x81h, 0xF6h, 0xF6h, 0xF6h, 0x81h}

When micro-controller is sending the 0x7Eh data at Port0 at that time micro-controller is also sending 0x81h data at Port2. This both data are synchronized to each other. This are Shown in Fig. This synchronization is always in same manner to all five data of the array.

 Fig.12b

The 0x81h data is provided to the transistor switching circuit. When we applied 0 at the base terminal at that time the transistor will work as a switch. 

It means the collector voltage is applied is directly available to the emitter pin and through that it reach at the row pins of the 5x7 Led Dot Matrix Module. The working of the transistor as a switch is shown in Fig.12c

Fig.12c

Also the connection diagram of 5x7 Led Dot Matrix Modules to the Micro-controller through the transistor is as shown in Fig.12c 

In the 5x7 Led Dot Matrix Modules, one led dot consumes 10ma current. Therefore the whole segment having 350(35x10ma) current is required. There is a problem now because the micro-controller is not provided that much current therefore do not interface to the 5x7 Led Dot Matrix Module directly.

 Fig.12d

Thus we used one Line driver which driven the 5x7 Led Dot Matrix Modules’ columns. Here we used 74HC541 octal buffer/line Driver which is connected to the micro-controller’s Port0 and 5x7 Led Dot Matrix Modules’ columns which are shown in Fig.12d.

The c language program of display one character in the 5x7 Led Dot Matrix Modules is write below;

Program of display only one character in the 5x7 Led Dot Matrix Segment

#include
Void delay_ms ( int time );
Void main (void)
    {
       P1=0xFF;
       P2=0xFF;
    While (1)
        {
           P1=0x01;
           P2=0x01;
           delay_ms (1);
           P1=0x02;
           P2=0xEE;
           delay_ms (1);
           P1=0x04;
           P2=0xEE;
           delay_ms (1);
           P1=0x08;
           P2=0xEE;
          delay_ms (1);
          P1=0x10;
          P2=0x01;
         delay_ms (1); 
       }
}

Void delay_ms ( int time )
        {
         int i , j;
         for ( i=0; i
             for ( j=0; j<1275 font="" j="">
        }


The End.


Also visit below Post;

Post-10 Create A Character With Row Scanning Method In The LED Dot Matrix Display

Post-11 Create A Character With Column Scanning Method In The LED Dot Matrix Display




God Bless Thx............

Thursday, 19 December 2013

Create A Character With Column Scanning Method In The LED Dot Matrix Display

Basic use of Led dot Matrix Module is used to display character in different different way. For that, How to generate a character in this segment? This is simple and first question raises in our mind.

If we talking about the generating character in Module, we satisfied the law of “Persistence of Vision”. In that law, our eye is detect the static character when at a time 1/16 different frames are moving in the segments. It means that the character display on the segment it is not steady in that one but it is scanning rows or column in segments.

Way of Scanning Techniques
There are some useful techniques by which we can done software multiplexing in 5x7 Led Dot Matrix Module. These are classifying in two methods which names as follows:
                      [1] Row Scanning Method
                      [2] Column Scanning Method

[2] Column Scanning Method
Suppose we want to display the alphabet A in the common anode 5x7 led dot matrix segment. We will first select the column C1 (which means C1 is pulled low in this case), and deselect other columns by blocking their ground paths (one way of doing that is by pulling C2 through C5 pins to logic high). 

Now, the first column is active, and you need to turn on the LEDs in the rows R2 through R7 of this column, which can be done by applying forward bias voltages to these rows. Next, select the column C2 (and deselect all other columns), and apply forward bias to R1 and R5, and so on.      

Therefore, by scanning across the column quickly (> 100 times per second), and turning on the respective LEDs in each row of that column, the persistence of vision comes in to play, and we perceive the display image as still.
 
Row/Col
C1
C2
C3
C4
C5
R1
0
1
1
1
0
R2
1
0
0
0
1
R3
1
0
0
0
1
R4
1
0
0
0
1
R5
1
1
1
1
1
R6
1
0
0
0
1
R7
1
0
0
0
1

Table-11

The Table-11 below gives the logic levels to be applied to R1 through R7 for each of the columns in order to display the alphabet ‘A’.





Fig.11a

By these techniques we will display the Character 'A' in the 5x7 Led Dot Matrix Display and it is look like as below;

Fig.11b

The End....

Also visit Post-10 to get idea about How Row Scanning Method is working in the LED Dot Matrix Display......





God Bless Thx........


Create A Character With Row Scanning Method In The LED Dot Matrix Display

Basic use of Led dot Matrix Module is used to display character in different different way. For that, How to generate a character in this segment? This is simple and first question raises in our mind.

If we talking about the generating character in Module, we satisfied the law of “Persistence of Vision”. In that law, our eye is detect the static character when at a time 1/16 different frames are moving in the segments. It means that the character display on the segment it is not steady in that one but it is scanning rows or column in segments.

Way of Scanning Techniques
There are some useful techniques by which we can done software multiplexing in 5x7 Led Dot Matrix Module. These are classifying in two methods which names as follows:
                      [1] Row Scanning Method
                      [2] Column Scanning Method

[1] Row Scanning Method
Suppose we want to display the alphabet A in the common anode 5x7 led dot matrix segment. We will first select the row R1 (which means R1 is pulled high in this case), and deselect other rows by blocking their ground paths (one way of doing that is by pulling R2 through R7 pins to logic low).

Now, the first row is active, and you need to turn on the LEDs in the columns C2 through C4 of this column, which can be done by applying forward bias voltages to these columns. Next, select the row R2 (and deselect all other rows), and apply forward bias to C1 and C5, and so on.      

Therefore, by scanning across the column quickly (> 100 times per second), and turning on the respective LEDs in each row of that column, the persistence of vision comes in to play, and we perceive the display image as still.


Row/Col
C1
C2
C3
C4
C5
R1
0
1
1
1
0
R2
1
0
0
0
1
R3
1
0
0
0
1
R4
1
0
0
0
1
R5
1
1
1
1
1
R6
1
0
0
0
1
R7
1
0
0
0
1

Table.10

The Table.10 below gives the logic levels to be applied to R1 through R7 for each of the columns in order to display the alphabet ‘A’.







Fig.10a

By these techniques we will display the Character 'A' in the 5x7 Led Dot Matrix Display and it is look like as below;

 Fig.10b

The End....

Also visit Post-11 to get idea about How column Scanning Method is working in the LED Dot Matrix Display......





God Bless Thx........