December 26, 2011

Displaying string on Dot Matrix Display(Proteus simulation)

In earlier posts we have discussed about how to display alphanumeric characters on a single block of 5x7 dot matrix display.  but now it is time to move on to display characters on a series of blocks. basic concept remains same.  Only two things are new here
  1. Buffer with tristated output (74 LS 541)
  2. De-multiplexer(74 LS 138)
Buffers here are used to isolate other blocks while accessing a single block.
Let us say we want to dispaly 'Y' on 3rd block so at that time we must not disturb other blocks so we have tristated(in rough term disconnected ) them to prevent from any changes.

De-multiplexers are used to decode address of the destination block. Assume we are having 30 blocks to display in that case we can't give separate enable pin to each Buffer that's why if we are having a 5to32 demultiplexer we can address up to 32 blocks with help of only 5 pins of microcontroller.
Here in my design i only wanted to display 5 Characters simultaneously so i used 3to8 demultiplexer(decoder).

dot matrix display proteus avr
5x7 Dot matrix display in proteus

by inserting some decoding mechanism in our program and using earlier made header file we are all set to display a message 'KEYUR' on the blocks. the program is as shown below


void main()

            PORTB=0;    //select first block
            PORTB=1;    //select second block
            PORTB=2;    //select third block
            PORTB=3;    //select fourth block
            PORTB=4;    //select fifth block

we can further minimize the program by making a function to display message on series of displays.

final output may look like this
string on 5x7 dot matrix display
A creative imagination you will not see this in software
here is the source code, header file, Proteus ISIS design file and .hex file for AVR Atmega 8535 Microcontroller.

      I figured it out that this source code and circuit diagram is not only for a string displaying on dot-matrix.But if you want to design NxNxN (3X3X3,8X8X8,anything ) cube of LEDs to display some fancy patterns this circuit design and coding will be like a base guide for you.

  That cube display will be more attractive than this one displayed above but i found above one more commercial to make.

1           2            3


Post a Comment

Related Posts Plugin for WordPress, Blogger...