Tinkerlog header image 2

Tinkerlog

Alex’ blog

Interfacing an AVR controller to a GPS Mobile Phone

July 13th, 2007 · 104 Comments · avr, gps, gsm

Update: Part II Using Google Maps with a Mobile GPS Tracker is online.

My goal is to build a kind of a mobile tracker. There are many different use cases you can think of but one of the obvious is a device, that is able to report where it is. This device can be put in your car and it could trigger an alarm, if the car got stolen. Actually it could tell you where it is.

There are already mobile tracking devices out there, but they seemed to be too expensive and too closed for my needs. Another option is one of these new Nokia N95 which have built-in GPS. They are really nice, but about 600€, which is not a bargain. So I decided to do my own.

IMGP1475

Materials

So my first idea was to combine a microcontroller with a GSM and a GPS modul. There are a lot of these modules over at Sparkfun, for example. Looking through their shop I found the Telit GM862, which is a GSM modul with an built in GPS receiver. That is what I wanted. And they sell great break out boards to make it easier for hobbyist to access these modules.

Here are some of the features of this GSM-GPS module:

  • Quad band GSM
  • 17mA average stand-by, 3.5mA in low-power mode
  • 250mA average operating current
  • SiRF III GPS Receiver Built In
  • Data, Voice, SMS, and Fax
  • Data speeds up to 57.6kbps
  • Supply voltage : 3.4-4.2V
  • CMOS Camera Capable
  • Python Interpreter built-in

Voice means you are not limited to mobile tracker applications. You could attach a speaker and a microphone to build a complete mobile phone!

So here is a list of what I purchased to get the first integration done.

  • Telit GM862-GPS modul, roundsolutions: 126€, or Sparkfun: CEL-07917, $183.95
  • GM862 Evaluation Board, Sparkfun: CEL-00277, $29.95
  • Quad band antenna, Sparkfun: CEL-00675, $7.95
  • GPS antenna 3V, Sparkfun: GPS-00464, $14.95
  • 2 interface cables for antenna, Sparkfun: GPS-00285, $8.95
  • optional: PolymerLithium Ion Batteries, Sparkfun: PRT-00341, $7.95
  • optional: LiPoly Charger, Sparkfun: PRT-00726, $16.95
  • ATmega8 microcontroller, ca. 2€
  • Resistors: 100, 10k, 22k, 27k, 2 x 47k, 2 x 100k, ca. 1€
  • Capacitors: 2 x 22p, 100n, 10u, ca. 2€
  • LED, 0.10€
  • Transistor, BC337, 0.10€
  • Prototyping board, 3€
  • optional: bread board

Summing up you get all parts at about 220€ or $286. Ouch! Who said, that tinkering with electronics is a cheap passion? But again, if you go this way, you can implement anything you can think of.

Circuit

Looking at the specs for the GM862, you realize, that it is more complex as you might have thought. A problem for me, still a beginner in electronics, were the different voltages used for the module. The power supply has to be 3.4-4.2V. Thats ok as an AVR can run on that voltage. But the serial port requires lower levels, 2.8V (CMOS). That means, you can not connect the UART of the controller directly to the module. You have to do some level translation. Fortunately this has already been solved over at Trackbox2.

Another point to mention is the power supply itself. It requires at least 2A for peaks. I used a LiPoly rechargable battery, which perfectly fits my needs. If you have to use 5V supply, you will have to use a capable voltage regulator and you have to deal with the CMOS voltage level issue as well.

GM862_circuit

As you can see, there are very few connections really required to the GM862. You have to connect the following on the breakout board:

  • RX, seriell modem communication
  • TX, seriell modem communication
  • RTS to ground, no handshake is used.
  • Status LED
  • On/off to power on the module
  • VCC and GND

Please keep in mind, that this is not an enterprise grade and production like circuit, so read any spec and guide before you assemble your components. You have been warned.

Operation

For now I am able to switch the module on and off, send text SMS through the module and fetch GPS positions from it. Here is an example GPS response:

Request GPS
AT$GPSACP got: AT$GPSACP
GPSACP: 131924.999,5333.9291N,00954.8841E,2.6,34.0,3,29.78,0.32,0.17,130707,07
OK

So now you know where I am living ;)

Conclusion
That’s it so far. It cost me quite some energy and money but was worth it. Next time more on software and how to talk to the GSM module.

IMGP1490

Links

Downloads

Add this to:Del.icio.us Del.icio.us Digg! Digg

104 responses so far ↓

  • 1 Lee // Jul 14, 2007 at 19:16

    Nice project, I was thinking of doing the same thing with an old gps and a gsm modem. (Same as the Trackbox by the looks of it) I was looking at the ATmega128 due to the two serial ports, but seems like overkill. Only just started looking at AVR and yet to get my hands dirty, could you use a AT2313 which seem quite popular?

  • 2 Alex // Jul 14, 2007 at 20:08

    The ATtiny2313 is maybe a bit limitted (2k flash, 128 bytes SRAM). I am using the ATmega8 (8k flash, 1k SRAM) which is sufficient until now. Communication is done with a hardware and a software serial port. One is attached to the modem, the other, for debugging and monitoring is attached to my PC, so you don’t have to have 2 hardware UARTs.

  • 3 Nate // Jul 16, 2007 at 16:48

    For your serial IO, you could step down the voltage for TXD with 2 diodes (0.6V drop per diode) instead of the resistor divider it appears you’ve done. And you wouldn’t need anything at all for RXD if the output is true 2.2V since that reads as logic high for most 3.3V inputs. However, I can’t read the schem very well because the labels are too small so I’m guessing at what you did.

  • 4 PacManFan // Jul 16, 2007 at 18:22

    You don’t need a uController, the Telit module has Python built-in.
    This is what you need to do:

    1) Insert a SIM card
    2) Write a python script to get the GPS position
    3) setup the module to boot the python script (AT#ESCRIPT = “gps_sms.py”)
    3) send the GPS position via SMS through the python script

    I did this last week with the same module for another purpose. ;)

    All you really need for this circuit is a power supply / charger

  • 5 GPS/GSM-слежка своими руками - GPS Новости - GPS, GLONASS ( ГЛОНАСС), GALILEO, GNSS - последние новости о спутниковых технологиях. Автомобильная, морская, Ð°Ð²Ð¸Ð°Ñ // Jul 16, 2007 at 20:11

    [...] вы точно последуете его (http://tinkerlog.com/2007/07/13/interfacing-an-avr-controller-to-a-gps-mobile-phone/) инструкции, то в итоге у вас получится нечто, [...]

  • 6 Nick // Jul 16, 2007 at 21:36

    It is worth noting that the GM862 has an embedded charging circuit (for details see http://www.telit.co.it/data/uploads_EN/products/80272st10019a_GM862_Product_Description_r5.pdf page 16) although I have not used it myself.

    Using embedded Python would save the extra cost / complexity of a separate microcontroller. However developing using Python can be tricky (no easy debugging capability) – the only reliable way seems to be to use the Python Debugger add-on hardware module from Round Solutions (which is not cheap). Also Python does not include support for floats, and only has the following modules: imp, marshal, md5, sys (no math etc).

  • 7 Alex // Jul 16, 2007 at 22:32

    Thanks for the input.

    @Nick: Using the embedded Python is really an option. I have to check that and maybe drop the micro.

  • 8 DIY Live » DIY Archive » DIY Cellular Rotary Phone // Jul 17, 2007 at 04:30

    [...] got an email from Alex from over at Tinkerlog.com about his newest project. He has taken a GSM board that has GPS built in, and has connected it to [...]

  • 9 sinnister // Jul 17, 2007 at 15:56

    Are there any costs associated with GSM transmission? Sorry for my lack of understanding.

  • 10 Alex // Jul 17, 2007 at 18:44

    The costs are the same as if you are using your mobile phone. You have to pay the SMS that the module will send. For an SMS with a prepaid card it is about 0.20€ per SMS (in Germany). Most of all operators have special offers for SMS only usages.

  • 11 DIYer concocts homegrown GSM-GPS tracking device - WeedSenseâ„¢ // Jul 18, 2007 at 01:28

    [...] Read | Permalink | Email this | Comments [...]

  • 12 Rob // Jul 18, 2007 at 05:04

    Cool project.

    For those not as ambitious:
    Gumstix just announced their open “Goliath” board which also has GSM and GPS and adds analog audio, USB host port, 3D-accelerometer and is LCD ready. This board costs about the same as above but you’ll also need to add a Gumstix motherboard.
    http://gumstix.com/store/catalog/product_info.php?cPath=31&products_id=194

  • 13 hnkelley // Jul 18, 2007 at 05:10

    This is great. This is certainly a different option than the one I’m thinking of doing. My method will be to use off the self equipment: ham radio, GPS, special radio modem (called a TNC).

    Pros: easy, off the shelf system (I already have most of the pieces)
    Cons: can be pricey; requires ham radio license (I have)

    A key advantage of this system is the integration with web-based mapping. I imagine this can be done with your system as well, though.

    Good going. Great idea and very educational!

  • 14 Nick // Jul 18, 2007 at 06:49

    So you basically went out and bought a prepaid gsm plan(phone) to
    provide the account to send the test messages over? Pretty Slick.

  • 15 Nick // Jul 18, 2007 at 06:54

    ps. Mind posting up a pic of the underside of your board? I want to critique your soldering skills ;)

  • 16 How to build a GPS-GSM tracking device « Mauro Blog // Jul 18, 2007 at 09:37

    [...] More details here [...]

  • 17 deqn // Jul 18, 2007 at 11:58

    I’ve just bought one ready made from Fashioncar for about $270, i bet they use one of these controllers, the plus is – it’s ready built and programmed and it comes with way more extras, the bad is you still need to know in detail how it works inside as the manual is so bad that it needs deconstructing to be able to use it… :)

  • 18 Electronics-Lab.com Blog » Blog Archive » Interfacing an AVR controller to a GPS mobile phone // Jul 18, 2007 at 19:14

    [...] an AVR controller to a GPS mobile phone – [via] Link. Filed in [...]

  • 19 Blue Skies Okie Weblog » Nifty but expensive // Jul 18, 2007 at 22:41

    [...] your own GPS phone or Rotary GSM phone also linked here [...]

  • 20 3ricj // Jul 19, 2007 at 04:19

    Or just use mologogo, which is about $50 total, not including service charges.

  • 21 JOHN M. HELLER // Jul 19, 2007 at 08:35

    What would you charge to build one and send it to the US. Of course payment would be by cold hard US dollars.

    Thanks,

    John

  • 22 wacko911 // Jul 19, 2007 at 13:16

    Another $200 ready made solution :
    http://www.semsons.com/ha60gptr.html

  • 23 chris // Jul 19, 2007 at 18:14

    I was wondering if you could post a larger picture of your schematic. Thanks.

  • 24 Alex // Jul 19, 2007 at 18:51

    @John, I am not into production right now, still prototyping. It will take some months at least, as I am doing this in my spare time.

    @Chris, please have a look at the full size version: http://www.zooomr.com/z/photos/zoom/2686902/size-16/
    If this is not enough, I will post the eagle file in the next part.

  • 25 Aaron // Jul 19, 2007 at 23:26

    This is great but what software are we using to view this info.google maps?

  • 26 För den händige: bygg din egen spÃ¥rare at gpskoll.se // Jul 20, 2007 at 14:07

    [...] Ta dig då en titt på den här sidan, där du snabbt och enkelt – allt är ju relativt – får en beskrivning på hur du bygger din egen GPS-tracker. [...]

  • 27 Sammy75 // Jul 20, 2007 at 23:14

    Dear Alex
    i’ll be using the same module in couple of wks from now, but this time i’ll be interfacing it with a PIC microcontroller (i’m very good in using PIC’s) cos as Nick pointed out, python has no support for math routines; so the controller will handle that. But i need ur schematic as guidance but its very small on the page! Pls could u send me the eagle file? Thanks

  • 28 Alex // Jul 21, 2007 at 07:52

    @Sammy, I added the eagle schematics, please try and drop me an email if something is missing (alex [at] tinkerlog [.] com).

  • 29 Besnik // Jul 21, 2007 at 12:30

    Hi,

    I’ve seen this project. It’s amazing, but I have some questions.
    I have bough a Siemens MC35i Termina, which can use both GSM and GPS. But the problem is that I don’t have a Software for tracking.

    Can someone please help me.
    Regards,

  • 30 mna // Jul 24, 2007 at 18:40

    alex, can u emel me detail about this project. i mean the progrm, the connection and etc. i want to try it. pleaz.tq

  • 31 GPS mobile phone controlled by AVR | AVR Projects | New MCU project everyday // Jul 26, 2007 at 14:07

    [...] itself is very simple as GSM module already comes with GPS module (GM862) built in. Alexander Weber connected this module to Atmel’s Atmega8 microcontroller (circuit) and communicated [...]

  • 32 DIY GPS tracker | GPS Tracking Systems // Jul 30, 2007 at 17:51

    [...] has written about creating their own GPS tracking device. They list costs, saying… Summing up you get all parts at about 220€ or $286. Ouch! Who [...]

  • 33 thomas // Aug 17, 2007 at 07:25

    hiii i like ur project iam planning to do one project like this . onething i want to know wether i can use PIC instead of using AVR controller and wat software u used to access google maps how it done

  • 34 Alex // Aug 17, 2007 at 10:16

    Hi thomas,
    sure, you can use a PIC instead of an AVR. But your are on your own to migrate the code to the PIC, which should not be a real problem.

    Google Maps is not accessed directly. The module sends an SMS with a link to Google Maps to your email address. If you open the email and click the link, Google Maps will open and show your position.

    BTW: I am currently working on a Python version, which looks quite good so far, sending of SMS works already. Next thing is using GPRS instead of SMS. Using the built-in Python makes the external controller obsolete.

  • 35 Developing a vehicle tracker with the Telit GM862-GPS module at Digital DawgPound // Aug 18, 2007 at 15:19

    [...] had been planning to write up this entry for a while, but in the mean time Alex at Tinkerlog beat me to it – all be it with a slightly different solution using an additional microcontroller [...]

  • 36 numan // Aug 24, 2007 at 05:19

    hi Alex, can u send me the complete code and presentation of this project plz
    Also, how it work tell me the detail about it

  • 37 Alex // Aug 24, 2007 at 08:21

    Hi numan,
    please have a look at part II on the link section. That leads you to part III which includes also the code and the schematics.

  • 38 gsm car alarm // Sep 7, 2007 at 21:02

    gsm car alarm…

    Then again, sound system speakers targeted towards younger audiences tend to have just the opposite philosophy….

  • 39 vikram // Sep 9, 2007 at 06:00

    hi
    nice project!

    how much does a very basic gps receiver cost? is it possible to make a gps + gps module for

  • 40 Suchin // Sep 16, 2007 at 15:24

    Hello Alex,

    I hope that u can give me suggestion and how to… I wish to have this unit be able to connect directly to car battery…..as primary power and also the back up battery in case the car battery is loss…..

    Thank you very much

    Ma, Suchin

  • 41 Alex // Sep 19, 2007 at 07:42

    Hi Suchin,
    scroll a bit up and look at the solution at Digital DawgPound. It uses a car battery.
    Cheers,
    Alex

  • 42 Jacob // Sep 29, 2007 at 11:31

    Quiet a nice circuit, but in my opinion somehow to expensive. I’m still looking for a very simple AVR-based GPS Tracker with GPLed sources.
    If someone finds one, please add to http://www.avr-projects.info
    regards,
    J³

  • 43 Al // Oct 1, 2007 at 22:48

    Dear Alex… what crystal Oscillator are you using?

  • 44 Alex // Oct 3, 2007 at 11:17

    Al, I use a 4.096 MHz crystal.
    Cheers,
    Alex

  • 45 Breizo // Oct 5, 2007 at 02:44

    HI ALex,
    GReat job! And very cool.
    I am trying to setup a Telit module myself and I have contacted them in the US. They mentioned there is a $25k PTCRB fee to get certified and on the network… How did you get past this?
    Thanks
    Breizo

  • 46 Alex // Oct 5, 2007 at 07:16

    Hi Breizo,
    if I understood that correctly, the manufactures may certify their devices, but don’t have to. As I live in Germany, it was not a problem to get the module running.
    Others in the US had no problem as well, e.g. http://www.sparkfun.com/commerce/present.php?p=Port-O-Rotary

    I don’t think that this is a problem, if you want to build your own device.

    Cheers,
    Alex

  • 47 Rumiko // Oct 8, 2007 at 07:22

    I’m a complete noob and I need help..
    I am trying to make an sms remote controller based on ATtiny2313 with an ericsson t10s cellphone. I cant find a feedback circuit that would confirm the status of the controlled devices via sms. Any help would be appreciated..

  • 48 chris scott // Oct 9, 2007 at 15:35

    I would really like to buy one of these from you. Please email me if you want to sell it.

  • 49 cheap gps trackers // Nov 8, 2007 at 19:53

    seems to me it would be cheaper to buy one all put together, but I guess that not the point.

  • 50 Make your own remote GPS Tracker Revice » Spy Review // Nov 9, 2007 at 10:22

    [...] you fancied making your own remote GPS tracker for around £150, have a read of this Interfacing an AVR controller to a GPS Mobile Phone article on [...]

  • 51 surveillance guy // Nov 15, 2007 at 09:13

    This article definitely educated me on how these systems can be integrated into everyday use.

  • 52 Kent Paget // Nov 17, 2007 at 07:02

    Hi.

    I am looking for a tracking system that can be fitted to a boat. It needs to be relitivey small, and not triggerd my movement. I will need acsses to the location of it by internet live updating.

    If you can come up with a posible tracker then I would be looking at a bulk order!

    Regards

    Kent Paget

    Director Of Pendennis Maritime Security

  • 53 Tim Mason // Nov 23, 2007 at 14:01

    Global Boat Tracking – check out http://www.tmtracking.com

  • 54 Nico Nagel // Nov 28, 2007 at 14:04

    Or check this out: http://www.corbitconnect.com

  • 55 Bruce // Nov 30, 2007 at 10:02

    Nice link Tim!

    Does anybody know where I can find further info on the Inmarsat transcievers? Are there specific IC’s for building an Inmarsat transceiver?

  • 56 ideree // Jan 2, 2008 at 05:01

    hi Alex, Good job. I have two questions.

    - How to attache the terminal to PC. Is there need to use Max232 or other thing for connecting to PC?
    Is this right to connect TX (PB0), RD (PB1) and GND connections directly to Serial DB9 connector? And is it possible to transfer data via serial port?

    - Is it possible to use 4.0000MHz quartz instead of 4.096MHz?

    I will be very thankful for your reply.

  • 57 Alex // Jan 2, 2008 at 08:34

    Hi ideree,

    yes, I used an USB-to-RS232 converter to connect the terminal to the PC. This converter uses a FTDI chip but any other should do as well. So RX, TX and GND should be connected to such a converter.

    Every crystal will work, but you may have to check timings and baud setting again.

    Cheers,
    Alex

  • 58 Jaro // Jan 7, 2008 at 21:15

    Hello,
    it is necessary to make programm in phyton or connect GM863 with ucontroler. Isn’t possible just send well formated SMS from mobile to GM862 and receive GPS possition? Thanks.

  • 59 Chitic Stefan // Jan 8, 2008 at 12:52

    Hi Alex… it is an intresting project. I am writing a C# application for traking sistems. I am intrested in this “device”. I want to learn more about this. I would be gratefull if you give me an email / yahoo messanger / msn messanger address.

  • 60 Alex // Jan 8, 2008 at 20:17

    Try alex at this domain. Or search for the about page. ;)

  • 61 nicholas // Jan 10, 2008 at 10:46

    Can anyone supply better picture of the circuit …this one is just too small.

    tnx.

  • 62 Alex // Jan 10, 2008 at 22:08

    The schematic is updated and now in full size, just click on the link.

  • 63 Arthur Neva // Jan 11, 2008 at 23:39

    Hi Alex,
    Very interesting project! … I build the circuit and I am in the uploading firware process, and I have some doubts. These are the tools/kit I am using: AVR Studio 4.13, STK500 AVR Flash MCU Starter Kit, and the Mfile for AVR-GCC ver 2.7:
    1. Is there any way to see a sample of a filled beacon file (C Type) to compare it with my entries? I found all the “EDIT THIS” areas, but I want to make sure I am using the right parameters and format information.
    2. Once I have customized my own information in the beacon file (C Type), do I need to compile this file with the others files too? (suart & uart (C & H type), and beacon (Microsoft Schedule and Application type).
    3. If I need to upload the previous files, do I need to use the flash section in the AVR Studio software for the beacon (Ctype file), and the EEPROM section for the other files?

    Thanks a lot for your support, and sorry for the bunch of questions.
    Arthur Neva

  • 64 Alex // Jan 12, 2008 at 00:39

    Hi Arthur,

    edit this line and replace 1234 with your PIN for your SIM card.
    const char ATCPIN_P[] PROGMEM = “AT+CPIN=1234″;
    Edit this line and replace 7676245 with the phone number, to which you can send SMS. It is the number of a SMS center. This number can be found at the configuration details for your provider.
    const char ATCMGS_P[] PROGMEM = “AT+CMGS=\”7676245\”";

    You have to compile all .c files. The .sch is a eagle cad schematic file, you can not compile that. I haven’t used AVR studio, so I am not sure, but you should be able to add all .c and .h files to a project and then to compile them.

    The compile step should result in two files, one for the flash (.hex), another for the eprom section (.eep). Both must be uploaded.

    HTH

    Cheers,
    Alex

  • 65 Arthur Neva // Jan 14, 2008 at 09:15

    Hi Alex,
    I really appreciate your feedback.
    I’ll implement the changes you recommended, and I’ll keep you posted on the results.

    Greetings.
    Arturo

  • 66 Serge // Jan 16, 2008 at 21:32

    Cool projects,

    Anyone here gotten around to doing a math module with basic Trig which would run natively on the Telit using their Python engine.

    I am thinking this could be done using Taylor Series but I have not got around to doing it yet. Maybe someone else has???

    Thanks,
    Serge

  • 67 abood // Jan 20, 2008 at 20:09

    hey all … hiiii , first i wanna know if i can make my tracker with a GPRS instead of gsm… i need the circuit to do that… please if any body here can help me just reply here and on my mail modern_lord@hotmail.

  • 68 Iwan // Jan 23, 2008 at 04:13

    Hi,
    I need a gps+gsm tracker wich can trigger may webpage like :
    http://www.mygooglemap.net/myasp.asd?gps=gpstracker data
    can any body help me..?

  • 69 Snoop // Feb 6, 2008 at 03:33

    Hi, i am wondering whether the telit module can do interrupt handling routines like microcontrollers. For example, can it handle an interrupt that is raised due to input from serial port>? Thanks

  • 70 Dan // Feb 7, 2008 at 01:08

    Hi Alex,

    Do you have any idea to add a cmos camera (like E700 at Sparkfun) into the GM682?

    Thanks
    Dan

  • 71 Alex // Feb 9, 2008 at 12:30

    Hi Dan,
    no, I haven’t done anything like that. But it should be possible, I think I read something about cameras attached to the GM862 in the documentation.
    Cheers,
    Alex

  • 72 Saranga // Feb 13, 2008 at 07:04

    Hi,
    How you debugg the python codes?

  • 73 Alex // Feb 13, 2008 at 07:39

    Saranga,
    take a look at the source linked at http://tinkerlog.com/2007/09/23/using-twitter-and-twibble-for-mobile-tracking/
    It redirects stdout. For me the only way to debug, using print statements.
    Cheers,
    Alex

  • 74 jorge orengo // Feb 22, 2008 at 23:26

    Dear Alex,

    I live in BRAZIL. Here I only look SIEMENS MC39i GRPS MODEMS for buy.

    I have a MC39i with DB9 conector (RS232C) But It´s not have any GPS module only modem and RS232. How I use you track circuit for insert a
    serial GPS and RS232 MODEM separately ?

    Congratulation for BLOG and PROJECTS !

    Best for You,

    ORENGO

  • 75 Alex // Feb 22, 2008 at 23:51

    Hi jorge,

    most of the GPS modules out there are using a serial port for NMEA output. You could use a microcontroller to fetch the GPS data and send it via your MC39i. You may want to take a microcontroller that has two serial port, e.g. ATmega32.

    HTH.

    Cheers,
    Alex

  • 76 Взаимодействие микроконтроллера AVR с GSM телефоном - Разработка электроники Зеленоград // Mar 18, 2008 at 11:18

    [...] статьи – Interfacing an AVR controller to a GPS Mobile Phone ( http://tinkerlog.com/2007/07/13/interfacing-an... и Архив страницы проекта со всеми данными (315 [...]

  • 77 moh. mohaisen // Apr 11, 2008 at 21:07

    hey alex….really intersting project..and i hope u can email me with all the details and info i need to try it..thnx

  • 78 Mike // Apr 22, 2008 at 19:43

    Here is my GPS tracker project. I am using a mobile phone (USD$20) and a GPS module with an ATTINY84. Source code available here:
    http://www.opengpstracker.org

  • 79 Jose Ramon // May 1, 2008 at 20:08

    We are looking for an assets gps tracker

  • 80 May Jii // May 6, 2008 at 09:18

    Dear Alex

    May i know how you can progamme the microcontroller of your built device ? What programming language you are using ?

    Thks & Rgds
    May

  • 81 michael // May 14, 2008 at 02:26

    Can you give me the schematics of the harware by using EAGLES?The schematics should include the connection of TelitGM 862 Module and Sparkfun GM 862.Thanks

  • 82 Alex // May 14, 2008 at 07:24

    Please have a look at the downloads on this page.

  • 83 Ideree // May 23, 2008 at 09:04

    Hi, Alex

    You sad that, you used USB-to-RS232 converter to connect the terminal to the PC. This converter uses a FTDI chip.

    - So in such case do you have your own driver built-in in your USB-to-RS232 converter?

    And what about terminal operation when terminal is not connected to PC.
    - Can i send a message to another mobile phone number stored in EEPROM of ATmega8-16PU?

    And i am going to use this device in Mongolia, which country located between Russia and china.
    - So, is there any reason that i can’t be using this device in Mongolia?

    Regards, Ideree

  • 84 Alex // May 23, 2008 at 11:32

    Hi Ideree,
    you don’t need a driver in the converter. It looks like a serial connection to the controller. Just attach RX and TX to the controller. The connection from the converter to the PC is established with a driver that enables a virtual com port. You can download these drivers at FTDI, http://www.ftdichip.com/Drivers/VCP.htm
    Sending an SMS to another mobile phone should be possible, if you tweak the source code.

    I don’t see any reason, why it shouldn’t work in Mongolia. I assume you have GSM coverage most of the time.

    Cheers,
    Alex

  • 85 Ideree // May 24, 2008 at 07:22

    Hi, Alex

    Finally I’ve collected all equipments (Antennas, GM862GPS, Atmega8 and etc).
    First I have to say that I am not good at programming but i really wanna build a device as you built. And I’m hardly trying to make it working.

    I’ve finished to assemble all elements along with your guidence, and changed all the settings in your source code as you signed as EDIT THIS.
    And I have compiled all .c and .h codes and built a hex file. So i’m gonna write this file to Atmega8.

    - So I’d like to know how to use this source code and is it possible to send a message to another phone number instead of connecting device to PC?
    - If it is possible i can use your source code and program ATmega8 and build a device as you have, and turn it on by plugging power supply than device will send a message to another phone number from anywhere and anytime, without need of using PC.

    As I mention that this source code you made is possible to send a message to another phone and If I connect device to PC, the device can be controlled by PC.

    - AM I RIGHT?

    Please help me to finish this project successfully.

    Best regards,
    Ideree

  • 86 Alex // May 24, 2008 at 09:14

    Hi Ideree,

    I will help as best as I can, but I will not do the programming for you. Sorry. You will have to learn this to adopt this project to your needs.
    You can modify the sms_gateway string to a number of your choice. And then have a look at the google_maps_P string. This is the formatted message that gets send. Further you have to adjust the main method to acquire the gps position and set it out with the SMS.
    If you have any further questions you can drop me an email, alex at this domain.

    Cheers,
    Alex

  • 87 Chris // Jun 7, 2008 at 18:52

    Hi, alex
    Interesting project, i have the gm862 and all the components, i trying to make this by hooby, it appears that it’s all right, but i have problems with the terminal, i connect it via USB-RS232 converter, i probed this with a garmin and it works at 4800 bauds but i try to connect with the terminal the AVR at 19200 bauds with the pins 14, 15 and GND to transmit with the terminal but nothing appears, what i’m doing wrong? the only thing that i see is the blinking led when i power the circuit, and i supposed that it’s working because as soon as i reset the avr, the led stop blinking then it blinks again.
    Your help it’s appreciated.

    Regars
    Chris

  • 88 Alex // Jun 9, 2008 at 18:34

    Hi Chris,
    pin 14 and 15 are ok. If you haven’t modified the source code, then the baud rate for the serial connection is 9600 baud.
    HTH,
    Cheers,
    Alex

  • 89 tuan henda // Jun 12, 2008 at 06:01

    hellow alex..how are you???
    can help my to solve Latitude/Longitude from GPS data to Distance Conversion(meter unit)…thank you

  • 90 uOLED progress // Jun 13, 2008 at 15:07

    [...] and the display was misinterpreting the garbage as a signal. I noted that a fellow who had wired a Telit GSM module to an ATmega8 had tied his serial lines high (connected them to the + power rail) with 10kohm resistors. I tried [...]

  • 91 Binu // Jul 25, 2008 at 10:36

    Anybody done Tracking with GPRS.

  • 92 celal // Jul 30, 2008 at 09:28

    I wanna know how can I use interrupt with python.Python has interrupt’s function?Can you help me about this topic???
    thnks

  • 93 Trenade // Aug 21, 2008 at 15:47

    Hi ALex/anybody who can help

    Im having issues getting my GM862 GPS to process AT commands I send it from the micro. Hyperterminal proves to me that the micro is doing its job correctly, however I can’t understand what Im doing wrong. Ive been reading and reading and reading for days..please guys?..Help.

  • 94 nigel // Aug 26, 2008 at 23:38

    Hi alex, Thanks for making this great project available. I didnt know anything about microcontrollers before i started and has been a great way to learn. I had quite some success yesterday and now when I power the tracker on I get sent a text message on my phone every two minutes with the converted co-ordinates and the email-google map details. Im not going to use the sms-email function as costs quite alot of money here in new zealand to acuire it. Im able to load the long. and lat. numbers in manually on google maps and if I put a “-” in front of the first co-ordinate i get my location. Would that have to do with me being in the southern hemisphere? The other question I had was whether the unit has to run automatically when powered on. Am i able to change so i get a response from tracker if i text to it? If not could i change code so i get sent a new position once a day? thanks

  • 95 aloha // Aug 29, 2008 at 11:21

    Good day! i would like to ask if i will do this project, when i text the device it will send me an SMS message containing the GEOCODE right? like 0.000 latitude and 0.000 longitude… now what i want to ask, is is there a way for me to reverse it.. instead it sends me real street address… hope you reply

    thanks!!

  • 96 juan // Sep 3, 2008 at 22:05

    Hi everyone.

    A few days ago, I was surfing the web and I found out a project that works over most mobile phones which lets you know where your friends are in real time and update your status in twitter. It´s called Dimdix.

    On their website they say you don´t need a GPS system to detect your location. Does anyone know how this works?

    I´m using a Motorola L7 and amazingly it detected my location.

    I cannot stop thinking of all the things I could do with it.

    If anyone wants to take a look you can go here

    Thanks,

    Regards,

    Juan

  • 97 zouheir // Sep 15, 2008 at 09:19

    dear alex
    i want to ask you about price of all the products above now
    and pleas tell me if that products enough to make the instrument

  • 98 Derek // Sep 19, 2008 at 03:48

    I am doing a similar project but using a pic. I have a question about your level translation. I am confused about the voltage divider you have in your schematic for TXD. Shouldn’t the r6 resistor to ground be on the other side of r5, so that when the controller went high i.e. 5V then the gsm would see (5/49k)*22k=2.24V? Which would still be within the high range for the gsm. Forgive my stupidity if am I miss reading this. Also, when I connect my gsm to the rs232 port using demo board and hyperterminal I have to use 115200 in order to send text. How do I set this using the microcontroller? Thx for any help.

  • 99 Jose // Sep 25, 2008 at 16:02

    That module is pretty big to me, a mobile phone done with that would be a fat one. Is there a smaller alternative?

  • 100 panky // Oct 6, 2008 at 10:05

    i want to interface pic with mobile i want to know about it?

  • 101 Ian // Nov 17, 2008 at 12:42

    According the datasheet the GM862 runs on 3.8V (3.4V – 4.2V), but on the schematic it is shown connected to 3.3V. Is there a typo on the schematic, or are you running it outside of spec?

  • 102 Alex // Nov 18, 2008 at 08:33

    Good catch. It’s a typo. I used a 3.7V LiPoly battery to power it.

  • 103 AVRで作ったGPSモバイルフォンインターフェース基板 - cosacool // Jun 26, 2009 at 04:58

    [...] 持ち運べる携帯型のトラッカーは様々なところで大変便利なツールになります。愛車に取り付けて万が一盗難に遭ったらすばやく場所を教えてくれます。GPS内蔵の携帯電話を使う方法がありますが、あまりにも経済的な方法ではありませんのでGSMモジュールTelit GM862(GPS内蔵)とAVRマイコンを使って自作しちゃいます。>>tinkerlog.comより [...]

  • 104 自制GPS追踪手机 // Nov 10, 2009 at 11:12

    [...] 相关页面:http://tinkerlog.com/2007/07/13/interfacing-an-avr-controller-to-a-gps-mobile-phone/ This entry was posted in 嵌入式项目 and tagged AVR, GPS, GSM. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL. « FreeRTOS AVR GCC移植 [...]