I have a small PIC project that is to read the NMEA 0183 strings from a GPS from the serial port and then, extract some values from it and then, process it and then, turn On/Off a relay on the pcb.
Wich PIC is required ?
I'll use C on MPLAB.
Someone has any hints on how to read the ASCII data from the serial port ?
Any PIC could do it, NMEA is only 4800baud. A PIC with a USART would make the programming simpler. The 16F628A or 18F1320 would both be good choices IMO.
It would be easier to use a PIC with enough memory for the whole of the GPS sentence. That way, you can have a simple program to collect the data from the EUSART one character at a time, and store it in memory.
Then you can test the program that looks at the data using MPLAB.
It would be easier to use a PIC with enough memory for the whole of the GPS sentence. That way, you can have a simple program to collect the data from the EUSART one character at a time, and store it in memory.
Then you can test the program that looks at the data using MPLAB.
The data that i need to collect is only from the "GPRMC" line.
The first one start at 15 for 8 char lenght, the second one start at 26 for 9 char lenght and the third one start at 38 for 3 char lenght. Non stop collect. That is all.
From that data collected, i want first to look at the third one and use it to activate a pin 5 volts somewhere on the pcb.
I think this is an easy project but i've never done anything yet on a micro processor. :-(
I'll need some help and hints to begin the project.
I don't know if i can do this here but since i really need this fast, i am willing to Paypal money to someone who is interested to do enough code that let me finish or fine tune it after.
Anyone ? PM me.
Thanks!