- This topic has 11 replies, 6 voices, and was last updated 12 years, 10 months ago by .
Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › 5X7 dot matrix led interfacing
pic 1
right side pic
code to display ‘A’:
#include<avr/io.h>
#include<util/delay.h>
int main (void)
{
DDRB=0xff; // set port B as o/p
DDRD=0xff; // set port D as i/p
while(1)
{
PORTB=~(0x01);
PORTD=0x04; // to display first row
_delay_ms(1);
PORTB=~(0x02);
PORTD=0x0A; // to display second row
_delay_ms(1);
PORTB=~(0x04);
PORTD=0x11; // to display third row
_delay_ms(1);
PORTB=~(0x08);
PORTD=0x1F; // to display fourth row
_delay_ms(1);
PORTB=~(0x10);
PORTD=0x11; // to display fifth row
_delay_ms(1);
PORTB=~(0x20);
PORTD=0x11; // to display sixth row
_delay_ms(1);
PORTB=~(0x40);
PORTD=0x11; // to display seventh row
_delay_ms(1);
}
}
result:
wow greats its wonderfull and very inspire me…
thanks
Really thankx ,,, i amfinding this since a long time ago…. thanks again
Hi dagakshay..
Atmega32 have only 4 ports like ATMEL C51 if i want to interface 6 7*5 dot matrix leds how can i provide external ports ????
I think you can interface just 3 dot matrix leds is that right or not ????
can we use another way to do this with one chip? and how ???
hello ahmed ,
nice concept… i think you can use it as you do in seven segment mutiplexing technique… i dint tried that yet but that idea must work… instead of connecting the cathod directly to microcontroller use ULN… and the common pint of ULN can be used as a multiplexing point… i will try that concept and paste the ckt here… till the tym you also try and let me know till where you have reached… once again apprecaite your idea.. all d bst i will back to you soon…
Hi dagakshay
Thank you very match nice teachnic. is this called shift the writing???
Thank you again
not exactlly shiftting it is basically multiplexing
sir how to shift the characters . so it likes a moving display
nice work buddy
i,m working on similar project
im using just 8 leds to display my name”vamsi ece” actually it worked
watch the link
http://homemaderobo.blogspot.in/2012/03/propellerrotating-led-display.html