[PIC] PIC16F877A With GSM AND GPS

Status
Not open for further replies.

Vineeth Cherupalath Illam

Newbie level 4
Joined
Mar 2, 2015
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
33
I need to connect both GSM and GPS to PIC16F877A..
I'm using mikroC compiler..Anyone help me to acheive the connection..
Please Help me...
Please provide mikroC code
 

GSM is used only to send SMS ? If yes, then connect 5V TTL Rx pin of GSM to Tx pin of PIC. Connect 5V TTL Tx pin of GPS to Rx pin of PIC.

If GSM is used to send and receive SMS then use PIC18F46K22. It has two UART.
 

@Ogu Reginald

I have only interfaced GSM and GPS with 5V PIC. The SIM900 pins are 2.8V TTL, I guess. I have used SIM900 which already have level converters for 5V and 3.3V TTL. If your GSM and GPS modules doesn't have 5V TTL interface pins then you have to use level converters for interfacing with 5V PIC. If you want to both send and receive SMS then cross connect GSM to PIC UART pins that is Rx of GSM to Tx of PIC and Tx of GSM to Rx of PIC.

@Vineeth

Do you need formatting of latitude and longitude values ?
 

ok sir.....
i need that format and i need to display that on LCD..
but the problem is is i need to GPS too...it also needs uart but pic16f877a has only one uart..
can i use software uart using mikroC
 

I said if GSM is only used for sending SMS then PIC UART Tx is connected to GSM Rx and GPS Tx is connected to PIC Rx. So, one UART is enough. My advice is use PIC18F which has more RAM. In mikroC for PIC16F devices you will get "IRP_bit must be set manually to access xyz variable" warning. uart buffer needs to be big enough to hold one burst of GPS data.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…