Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 10

<#>

* Home<http://eezey.com/>
* About Us<http://eezey.com/us/>
* Embedded Lab<http://eezey.com/embedded-lab/>
* Articles<http://eezey.com/articles/>
o Tech News <http://eezey.com/articles/tech-news/>
* Contact Us<http://eezey.com/contact-us/>
*eezey <http://eezey.com/>*<#>
* Home<http://eezey.com/>
* About Us<http://eezey.com/us/>
* Embedded Lab<http://eezey.com/embedded-lab/>
* Articles<http://eezey.com/articles/>
o Tech News <http://eezey.com/articles/tech-news/>
* Contact Us<http://eezey.com/contact-us/>
* <?s=>
* <https://twitter.com/eezeyinc>
* <https://www.facebook.com/eezey>
internal dot matrix
<http://eezey.com/wp-content/uploads/2014/04/internal-dot-matrix.png>
Interfacing of dot matrix using 8051
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-dot-matrix-usin
g-8051/>
April 25, 2014/0 Comments
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-dot-matrix-using-
8051/#respond>/in
8051 <http://eezey.com/category/embedded-lab/microcontrollers/8051/>,
Embedded Lab <http://eezey.com/category/embedded-lab/>, Microcontrollers
<http://eezey.com/category/embedded-lab/microcontrollers/> /by SKY LAB
<http://eezey.com/author/aakash_kumar/>
*Like It? Share It!*
Overview
Description
Design
C code
Overview
This tutorial is about the LED matrix and its interfacing of dot matrix
using 8051 to print numbers from 0 to 9 on the DOT MATRIX. DOT matrix
can be used to print characters, numbers or sentences on the LED screen.
We can also make animations and scroll any sentence on the LED matrix.
This is a great fun to work with this device.
Before proceed in this tutorial, we should know about the dot matrix and
8051 microcontroller. So for interfacing of DOT matrix using 8051
microcontroller, we will use the AT89C51, which belongs to the Atmel
family of 8051 series of microcontrollers, is very commonly used by a
large community of hobbyist and engineers for learning purpose. Its
simplicity and ease of programming with inbuilt features easily makes
its position in the top preferred list of microcontroller for both
beginners and advanced user.
result4 proteus design of matrix using 8051
Description
*Led Dot Matrix* Display is very famous for Displaying Messages in Metro
and Buses everywhere and making of these boards are quite interesting.
In this tutorial we will make some character frames and running them
into a continuous loop then it will look like a dancing man as shown in
the images.
matrix
internal<http://www.eezey.com/wp-content/uploads/2014/03/matrix-internal.jpeg>
*LED MATRIX DISPLAY: *In the Dot Matrix LED Display there are multiple
led's connected in the row and column fashion just like its name
`matrix'. Assuming 8X8 matrix then the anodes of 8 LED's are common and
named as rowX : X(1 to 8). Similarly the cathodes of 8 LED's are common
and named as colY Y(1 to 8) as shown in the image below.
internal dot matrix
Let's turn on a LED shown in the below figure point by a blue circle.
The led pointed in a blue circle have cathode connected with *col4 *and
anode is connected to *row3 *so if I connect these to pin with
microcontroller. We have to set or high the *row3* and clear or low the
*col4.*
internal dot matrix1
*DISPLAY A CHARACTER: *Now assume we want to make this character on the
display as shown in the figure below.
internal dot matrix1
We will first set the row and send the corresponding data to its column
so we need to run a loop for sending data to 8 row one by one and send
the corresponding 8 bit data to its column for each row. So in real the
LED's are blinking but the blinking is too fast or we realize that it's
still an image.
if Row are connected to the port 2 of 8051
if Col are connected to the port 3 of 8051
now for turning on 4,5 number LED in row1
we will write
/////////////////
P2 = 0b0000 0001; /// for selecting first row
P3 = 0b1110 0111; /// for turning on the led's in that row
By using the same method we create a table for whole image in the above
figure.
matrix table
Design
*Proteus Design for interfacing of dot matrix using 8051*
proteus design of matrix using 8051
result4 proteus design of matrix using 8051
C code
*C programming for interfacing of dot matrix using 8051
*
********************************************************************************
http://www.eezey.com/
This program is developed by ENGENIUSLAB DEVELOPERS.
********************************************************************************
* *
*#include<reg51.h>*
*void display_matrix();*
* *
* /* This is a delay Routine to provide count
milisecond delay we require delay on 2-3 miliseconds in our program and
maybe at some places 100 miliseconds*/*
* *
*void delay(unsigned char count)*
*{*
* int i;*
* unsigned char x;*
* for(x=0;x<count;x++)*
* {*
* for(i=0;i<500;i++);*
* }*
*}*
* *
* /* This is the main function use to call
the subroutines of other function and this is the first place where your *
* controller is looking first time when
bring up*/*
* *
*void main()*
*{*
* while(1)*
* {*
* display_matrix(); // calling the function of the
displaying pattern on matrix*
* }*
*}*
* *
*/* This is the display matrix function *
* ..*
*P2-> cathodes of the dot matrix*
*P3-> anodes of the dot matrix*
**/*
* *
*void display_matrix()*
*{*
* *
* unsigned char i,j,x;*
* unsigned char row[8]={080,040,020,010,008,004,002,001};*
* *
*/* For the zumi like in vodafone add this is the character which will
dance for you*
* these are basically three repetative frames of the
charater running again and again *
**/ *
* *
* unsigned char
col[10][8]={{0x3c,0x7e,066,066,066,066,0x7e,0x3c},
// for printing 0*
*


{018,038,078,018,018,018,0x7e,0x7e},
// for printing 1*
*


{038,0x7c,0x4c,018,070,060,038,0x1c}, //
for printing 2*
*


{038,0x7c,0x0c,078,078,0x0c,0x7c,038}, //
for printing 3*
*


{0x6c,0x6c,0x6c,0x7c,0x7c,0x0c,0x0c,0x0c},
// for printing 4*
*


{0x7e,0x7e,060,0x7e,0x7e,006,0x7e,0x7e},
// for printing 5*
*


{0x0c,0x1c,030,060,078,0x6c,0x7c,038}, //
for printing 6*
*


{0x7e,0x7e,006,006,0x0c,018,030,060}, //
for printing 7*
*


{038,0x7c,0x6c,038,038,0x6c,0x7c,038}, //
for printing 8*
*


{038,0x7c,0x6c,0x3c,0x0c,0x0c,078,070}}; //
for printing 9*
* *
* for(j=0;j<10;j++) // Increasing the vlaue
which sould be printing on the display*
* {*
* for(x=0;x<20;x++) // Hold the
display for some time by running the same frame for 20 times*
* {*
* for(i=0;i<8;i++)*
* {*
* P2=~(row[i]);*
* P3=col[j][i];*
* delay(1);*
* }*
* }*
* } *
* *
* }*
*******************************************************************************
End program
Thank you for visiting our website
http://www.eezey.com/
*******************************************************************************
*Like It? Share It!*
* About <#abh_about>
* Latest Posts <#abh_posts>
<http://www.engeniuslab.com>
SKY LAB <http://www.engeniuslab.com>
Research Engineer at Engeniuslab <www.engeniuslab.com>
SKY LAB is an engineer freelancer, trainer, & research engineer, who has
3 years experience in giving workshops on various embedded technologies
like embedded system(8051,PIC, AVR, ARM) & robotics, matlab, labVIEW.
And loves to do project on the same.
<http://www.engeniuslab.com>
Latest posts by SKY LAB (see all
<http://eezey.com/author/aakash_kumar/>)
* Led dot matrix <http://eezey.com/embedded-lab/led-dot-matrix/>-
April 26, 2014
* LCD <http://eezey.com/embedded-lab/lcd/>- April 26, 2014
* Sensor <http://eezey.com/embedded-lab/sensor/>- April 26, 2014
Powered by Starbox <http://wordpress.org/plugins/starbox/>
*Liked this post? Then subscribe here for latest news, trending,
tutorials and articles. We promise, we will never spam you!*
*Tags:*8051 <http://eezey.com/tag/8051/>, lcd
<http://eezey.com/tag/lcd/>, led <http://eezey.com/tag/led/>, led matrix
<http://eezey.com/tag/led-matrix/>, segment <http://eezey.com/tag/segment/>
You might also like
7 segment view
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-seven-segment-usi
ng-8051/>
proteus design of dc motor using 80051
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-dc-motor-using-80
51/>
lcd
Interfacing of lcd using 8051
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-lcd-using-8051/>
AVR
AVR microcontroller
<http://eezey.com/embedded-lab/microcontrollers/avr/avr-microcontroller/>
stepper motor coils
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-unipolar-stepper-
motor-using-8051/>
led matrix character <http://eezey.com/embedded-lab/led-dot-matrix/>
2
<http://eezey.com/embedded-lab/microcontrollers/avr/interfacing-of-seven-segment
-using-atmega16/>
ir sensor <http://eezey.com/embedded-lab/sensor/>
0 replies
Leave a Reply
Want to join the discussion?
Feel free to contribute!
Leave a Reply Cancel reply
</embedded-lab/microcontrollers/interfacing-of-dot-matrix-using-8051/#resp
ond>
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Input error: Invalid referer
Comment
You may use these HTML tags and attributes: |<a href="" title=""> <abbr
title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del
datetime=""> <em> <i> <q cite=""> <strike> <strong> |
Newsletter
Subscribe here for latest news, trending, tutorials and articles. We
promise, we will never spam you!
Follow us on Facebook
Popular
Recent
Comments
Tags
Popular
* led matrix character*Led dot matrixApril 26, 2014 - 7:23 pm*
<http://eezey.com/embedded-lab/led-dot-matrix/>
* stepper motor coils*Interfacing of unipolar stepper motor using
8051April 22, 2014 - 5:43 pm*
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-unipolar-step
per-motor-using-8051/>
* PIR sensor*Interfacing of PIR sensor using 8051April 22, 2014 - 1:09
am*
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-pir-sensor-us
ing-8051/>
* 7 segment view*Interfacing of seven segment using 8051April 21, 2014
- 11:23 pm*
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-seven-segment
-using-8051/>
* proteus design of dc motor using relay with 8051*Interfacing of dc
motor by relay using 8051April 21, 2014 - 11:02 pm*
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-dc-motor-by-r
elay-using-8051/>
Recent
* led matrix character*Led dot matrixApril 26, 2014 - 7:23 pm*
<http://eezey.com/embedded-lab/led-dot-matrix/>
* lcd pins*LCDApril 26, 2014 - 4:55 pm*
<http://eezey.com/embedded-lab/lcd/>
* ir sensor*SensorApril 26, 2014 - 12:29 am*
<http://eezey.com/embedded-lab/sensor/>
* dc motors*DC motorApril 25, 2014 - 11:54 pm*
<http://eezey.com/embedded-lab/dc-motor/>
* internal dot matrix*Interfacing of dot matrix using 8051April 25,
2014 - 12:37 am*
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-dot-matrix-us
ing-8051/>
Comments
Tags
2d plotting <http://eezey.com/tag/2d-plotting/> 8051
<http://eezey.com/tag/8051/> atmega <http://eezey.com/tag/atmega/>
Atmega8 <http://eezey.com/tag/atmega8/> atmega16
<http://eezey.com/tag/atmega16/> atmega32
<http://eezey.com/tag/atmega32/> AVR <http://eezey.com/tag/avr/> avr
atmega32 <http://eezey.com/tag/avr-atmega32/> basic matlab
<http://eezey.com/tag/basic-matlab/> basic of matlab
<http://eezey.com/tag/basic-of-matlab/> c code
<http://eezey.com/tag/c-code/> dc motor <http://eezey.com/tag/dc-motor/>
design <http://eezey.com/tag/design/> intefacing of dc motor
<http://eezey.com/tag/intefacing-of-dc-motor/> interfacing
<http://eezey.com/tag/interfacing/> interfacing of dc motor
<http://eezey.com/tag/interfacing-of-dc-motor/> Interfacing of lcd using
8051 <http://eezey.com/tag/interfacing-of-lcd-using-8051/> interfacing
of led <http://eezey.com/tag/interfacing-of-led/> interfacing of stepper
motor <http://eezey.com/tag/interfacing-of-stepper-motor/> introduction
of matlab <http://eezey.com/tag/introduction-of-matlab/> ir sensor
<http://eezey.com/tag/ir-sensor/> lcd <http://eezey.com/tag/lcd/> led
<http://eezey.com/tag/led/> led matrix
<http://eezey.com/tag/led-matrix/> led using atmega16
<http://eezey.com/tag/led-using-atmega16/> LFR
<http://eezey.com/tag/lfr/> line follower robot
<http://eezey.com/tag/line-follower-robot/> matlab
<http://eezey.com/tag/matlab-2/> matlab basic
<http://eezey.com/tag/matlab-basic/> micrcontroller
<http://eezey.com/tag/micrcontroller/> microcontroller
<http://eezey.com/tag/microcontroller/> motor
<http://eezey.com/tag/motor/> PIC Microcontroller
<http://eezey.com/tag/pic-microcontroller/> PIR sensor
<http://eezey.com/tag/pir-sensor/> robot <http://eezey.com/tag/robot/>
sensor <http://eezey.com/tag/sensor/> seven segment
<http://eezey.com/tag/seven-segment/> seven segments
<http://eezey.com/tag/seven-segments/> simulink
<http://eezey.com/tag/simulink/> singal generation
<http://eezey.com/tag/singal-generation/> singal operation
<http://eezey.com/tag/singal-operation/> stepper motor
<http://eezey.com/tag/stepper-motor/> tlc <http://eezey.com/tag/tlc/>
traffic light control <http://eezey.com/tag/traffic-light-control/>
winavr <http://eezey.com/tag/winavr/>
Newsletter
Subscribe here for latest news, trending, tutorials and articles. We
promise, we will never spam you!
Latest News
* Led dot matrix <http://eezey.com/embedded-lab/led-dot-matrix/>
* LCD <http://eezey.com/embedded-lab/lcd/>
* Sensor <http://eezey.com/embedded-lab/sensor/>
* DC motor <http://eezey.com/embedded-lab/dc-motor/>
* Interfacing of dot matrix using 8051
<http://eezey.com/embedded-lab/microcontrollers/interfacing-of-dot-matrix-us
ing-8051/>
Recent Tweets
Error: Bad Authentication data
Newsletter
Subscribe here for latest news, trending, tutorials and articles. We
promise, we will never spam you!
Follow us on Facebook
Copyright - eezey 2014
* Privacy Policy <http://eezey.com/privacy-policy/>
LED led <http://eezey.com/embedded-lab/led/>dc motors DC motor
<http://eezey.com/embedded-lab/dc-motor/>
<#top>

You might also like