View previous topic :: View next topic |
Author |
Message |
riya
Joined: 15 Feb 2012 Posts: 10
|
how to show the data on led |
Posted: Wed Feb 15, 2012 5:13 am |
|
|
hello,
I am new to this forum. I am doing the project gsm based notice board on led display.
Help me how to start the coding part. I am using pic16f877a
thanks everyone.
How to use Johnson counter to shift the led matrix display? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Wed Feb 15, 2012 6:43 am |
|
|
Start by getting the basic hardware to run right ! Cut code for the basic 'blinking LED' and 'hello World' programs.
Every line of code you cut, you learn.
Be sure to save all versions of your code.Save the old,make a copy, edit the copy,try it, save it, repeat as required until your program does what you want. |
|
|
riya
Joined: 15 Feb 2012 Posts: 10
|
|
Posted: Wed Feb 15, 2012 11:53 pm |
|
|
Thank you for the reply.
I tried like this:
Code: |
#include<16f877a.h>
#include<stdio.h>
#use delay(clock=20MHZ)
#fuses PROTECT, HS
#use rs232(baud=9600,rcv=PIN_C0,xmit=PIN_C1,stream=GSM)
char data[60];
char ch;
int i=0;
void flash_led()
{
output_high(led);
delay_ms(1000);
output_low(led);
delay_ms(1000);
output_high(led);
delay_ms(1000);
output_low(led);
}
|
|
|
|
riya
Joined: 15 Feb 2012 Posts: 10
|
|
Posted: Thu Feb 16, 2012 1:07 am |
|
|
I started the program by flashing the LED.
Now I have to write the main code.
My aim is to send a message from gsm modem that has to be displayed in a bunch of leds.
How to start ? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Thu Feb 16, 2012 5:37 pm |
|
|
Standard 'scientific approach'....break down the project into modules or sections that you can do.
Start by downloading the specs on the gsm modem and get the PIC to talk/rcv from it, verify that command 'x' does what it says....
...maybe display command/results on a terminal program in a PC or on a local LCD( on the PIC project board)
'bunch of LEDs' is vague....how many,arrangement,type,power levels,etc....type of data to be displayed? form(hex,ASCII,??) |
|
|
riya
Joined: 15 Feb 2012 Posts: 10
|
|
Posted: Fri Feb 17, 2012 2:04 am |
|
|
My requirement is to display a message in group of leds arranged in a 5*7(5 rows and 7 columns) matrix form. Initially the message is sent from a remote mobile phone to the gsm modem. Now the message is from gsm modem to control unit to led display. The data is displayed in English font. i require small , large font letters(26+26=52) and some special characters.
Thank you |
|
|
|