Interfacing GPS And GSM with Microcontroller

mahesh kumar

mahesh kumar

@mahesh-kumar-Q55M5Z Oct 27, 2024
Hi,
could u please explain me how to interface gps and gsm together with microcontroller(8051)

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • wassup

    wassup

    @wassup-ayhA3F Aug 20, 2009

    More information required buddy. What module of GPS do you have? What are you trying to do ?
    If you are doing complex stuff move on to DSPs not microcontrollers.
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Aug 21, 2009

    well mostly GPRS and GSM modem are easily interface with microcontroller by simple Serial Communication called UART.
  • bramin19

    bramin19

    @bramin19-jhJYpa Jan 19, 2011

    Re: interfacing gps with microcontroller

    can u please give ideas on how to write code for MCU to extract data from GPS reciever?
    I wish to use 8051. suggest me a GPS reciever.
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Jan 22, 2011

    Re: interfacing gps with microcontroller

    bramin19
    can u please give ideas on how to write code for MCU to extract data from GPS reciever?
    I wish to use 8051. suggest me a GPS reciever.
    #-Link-Snipped-# This is the GPS Module and you have to simple extract the bytes from the data you received from GPS module to your Controller via UART (SERIAL).
  • shahrul

    shahrul

    @shahrul-Ex12xz Jan 27, 2011

    GSM, use UART to send AT Command. Ex #-Link-Snipped-#.
    GPS, use UART to read NMEA protocol.
    If you combine this 2, you need microcontroller that have 2 UART.
  • sssss1616

    sssss1616

    @sssss1616-Nfx4Kr Mar 28, 2011

    Re: interfacing gps with microcontroller

    friend can you give brief idea about the c-language code for how to display latitude & longitude on lcd through sunrom gps with microcontroller using NMEA protocol
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Mar 29, 2011

    Re: interfacing gps with microcontroller

    sssss1616
    friend can you give brief idea about the c-language code for how to display latitude & longitude on lcd through sunrom gps with microcontroller using NMEA protocol
    Before that Do you have interfaced your LCD with Controller? and its working properly? If then you just have to extract the Latitude and Longitude from the string you received from GPS Module. and put it on LCD.

    Or just post your demo code whatever you have tried.
  • yashelectron

    yashelectron

    @yashelectron-oyRSlE Apr 8, 2011

    hello sir would u like 2 help me..........
  • yashelectron

    yashelectron

    @yashelectron-oyRSlE Apr 8, 2011

    any body help me , is there any command to extract data from gps module when we interface with PC.
    plz help me it's argent.........
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Apr 9, 2011

    yashelectron
    hello sir would u like 2 help me..........
    Hello Yash,

    Sure we are here to help you mate, But please follow some basic rules of this forum.

    Okey now back to your problem. Can you please let us know that which GPS Module you are using?
  • yashelectron

    yashelectron

    @yashelectron-oyRSlE Apr 10, 2011

    First i m sorry that i posted 2 time .by mistake(when i was posting my thread it was not showing due to disconnection of net ,that's why i tried again ) i hv posted 2 times. sir u can delete "interfacing pic micro controller with GSM " threade .
    Now thanks for Repply actually i want to about interfacing of GPS moudule with 16f877.i hv worked on GSM module.Please can u refer me any advance GPS module. Sir first i want to confident about elementary knowledge interfacing GPS module wd mic , then i want 2 go on hardware part bcs i buy module from foreign country .
    So it is humble request to guide me. 1. pls tell me how extract data from gps so that i can display long/alti on display ,is there any command like AT for GSM.
    2.Since there is need of two usart tell me any pic series mic,so that i can read about that .but firstly i want 2 concentrate on only extracting data only
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Apr 10, 2011

    yashelectron
    First i m sorry that i posted 2 time .by mistake(when i was posting my thread it was not showing due to disconnection of net ,that's why i tried again ) i hv posted 2 times. sir u can delete "interfacing pic micro controller with GSM " threade .
    Now thanks for Repply actually i want to about interfacing of GPS moudule with 16f877.i hv worked on GSM module.Please can u refer me any advance GPS module. Sir first i want to confident about elementary knowledge interfacing GPS module wd mic , then i want 2 go on hardware part bcs i buy module from foreign country .
    So it is humble request to guide me. 1. pls tell me how extract data from gps so that i can display long/alti on display ,is there any command like AT for GSM.
    2.Since there is need of two usart tell me any pic series mic,so that i can read about that .but firstly i want 2 concentrate on only extracting data only
    No problem mate, You're welcome to CE.

    well here is the one GPS Module have a look at its data-sheet and they have mentioned everything there if you want to interface with PC then one software is also available you can trial on that. #-Link-Snipped-#
    And here one more GPS module available #-Link-Snipped-#

    Well i have not much knowledge of PIC series controller so i can help to select the controller but there are many controller available with 2 UART in higher range.
  • yashelectron

    yashelectron

    @yashelectron-oyRSlE Apr 12, 2011

    hello sir thanks for yr kind reply;
    Sir i hv read gps data sheet and every thing is clear in spite of confusion that-
    1- Is gps receiver output all massages( GGA,GLL,GSA,GSV,RMC,VTC and ZDA) simultaneously that is given in data sheet at page 8?.
    if it output all then we hv take data only GLL that contain "lattitued/longitude".
    2- is it update al data at every second are more time.
    Thankyou!
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Apr 13, 2011

    yashelectron
    hello sir thanks for yr kind reply;
    Sir i hv read gps data sheet and every thing is clear in spite of confusion that-
    1- Is gps receiver output all massages( GGA,GLL,GSA,GSV,RMC,VTC and ZDA) simultaneously that is given in data sheet at page 8?.
    if it output all then we hv take data only GLL that contain "lattitued/longitude".
    2- is it update al data at every second are more time.
    Thankyou!
    Well i don't know exactly will take a look and let you know.
  • krupa vachhani

    krupa vachhani

    @krupa-vachhani-1KHtSZ Jan 15, 2012

    i have to trasmit data serially from GPS to GSM using two UART micro-controller ....... which kind of coding i should use??........
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Jan 16, 2012

    krupa vachhani
    i have to trasmit data serially from GPS to GSM using two UART micro-controller ....... which kind of coding i should use??........
    That's very simple Your GPS Module gives you data serially you can save that data in your Microcontroller and after processing or without processing you can send it to GSM via another UART. And as you know these things can you explain your problem in detail please where exactly you stuck in coding?
  • nauman_mrd

    nauman_mrd

    @nauman-mrd-HQlA0Z Sep 15, 2012

    Hey Dear Friend
    i have designed this circuit in which i have interfaced GSM Module Sim900D and GPS M89 Module with Atmel 89c51. Can anybdy write code for me?
  • arunchary

    arunchary

    @arunchary-VtqB3c Sep 16, 2012

    yes we can connect gps and GSM to microcontroller 8051 family
  • arunchary

    arunchary

    @arunchary-VtqB3c Sep 16, 2012

    yes we can do the interface of GSM and GPS with microcontroller with MAX232 as following circuit.7and 8 pin of MAX are connected to RXD andTXD of GSM respectively ,then GPS TXD is connected to 13th pin of MAX is connected to GPS TXD PIN and then UC is connected to 10th and 12th pin of max to RXD and TXD pins of controller to MAX.
    it follows in below ckt with logic probs.
  • nauman_mrd

    nauman_mrd

    @nauman-mrd-HQlA0Z Sep 16, 2012

    arunchary
    yes we can do the interface of GSM and GPS with microcontroller with MAX232 as following circuit.7and 8 pin of MAX are connected to RXD andTXD of GSM respectively ,then GPS TXD is connected to 13th pin of MAX is connected to GPS TXD PIN and then UC is connected to 10th and 12th pin of max to RXD and TXD pins of controller to MAX.
    it follows in below ckt with logic probs.
    Can you please write a code for the circuit that i have designed ?
  • arunchary

    arunchary

    @arunchary-VtqB3c Sep 16, 2012

    yes, please send such that i can write......
  • nauman_mrd

    nauman_mrd

    @nauman-mrd-HQlA0Z Sep 17, 2012

    arunchary
    yes, please send such that i can write......
    can you please provide me your email address so thati can send you the circuit. i am unable to attach a pdf file here in which i have my circuit.

    Thanks
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Sep 19, 2012

    nauman_mrd
    Hey Dear Friend
    i have designed this circuit in which i have interfaced GSM Module Sim900D and GPS M89 Module with Atmel 89c51. Can anybdy write code for me?
    Have you tried to write code for the same? You just have to write serial communication command in case of 8051 same way GPS Module can be interfaced with SPI communication.

    I have used ARM7 with SIM900D and currently working on same. What is the part number of the GPS Module you are using?
  • nauman_mrd

    nauman_mrd

    @nauman-mrd-HQlA0Z Sep 20, 2012

    GPS used is Holux M89. connected with Serial port (RX) using Multiplexer (74157). because we need to data from GSM and GPS both at different time intervals.
  • suhaila km

    suhaila km

    @suhaila-km-XX7QKP Oct 20, 2014

    friends, please help me i want to interface gps and gsm module with ma pic 16f877a.i want to message the location to a mobile phone