Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > GPS


Reply
 
Share Thread Tools Display Modes
Old 10-10-2002, 04:30 AM   #1
FLAC
 
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,543
Zip-Lock is on a distinguished road
Using a microprocessor to display GPS data on an LCD

Well I got my basic stamp II, wrote some code for it and finally got it all working. It’s really fast, from moment of turn on it displays GPS data on my Crystalfontz LCD within 4 seconds. Sometimes I have to wait a second from a cold start because my Gamin 35 takes up to 5 seconds get a valid fix.

My issue now is that I have maxed out the number of variable bytes I can use (26) on my Basic Stamp II. I would like to be able to display more data, because I have a 4x20 LCD to fill up, but I am out of RAM to do anything more.

I have latitude, longitude (had to crop down to minutes to conserve RAM), speed, and course (numeric) all displayed. I would like to add altitude and direction (N,S,E,W,etc) but I can’t process anything more without more RAM.

I’m sort of at a lost as to what to do at this point I got this far and now I’m stuck; I didn’t think I was going to max the BS2 out this easily. It’s looks like it would be fairly easy to add OBD-II support but I’m going to need something more powerful. Do I need to learn assembler to get anything more powerful?

Attached is a picture of what I have working thus far.
Zip-Lock is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-10-2002, 08:45 AM   #2
Low Bitrate
 
Join Date: Dec 2000
Posts: 65
[]\/[]aster []D
im diggin those runnin shoes....
[]\/[]aster []D is offline   Reply With Quote
Old 10-10-2002, 09:14 AM   #3
Low Bitrate
 
Join Date: Jul 2002
Posts: 89
Mxyzpltk
I don't think you would need to learn assembler... just get a more powerful microprocessor.

The PIC devices are readily available and fairly cheap. They come in many different configurations, so you can get more or even outboard memory with relative ease.

There are a number of compilers available, several of which are based upon reasonably high-level languages and are free.

I haven't found the time to do much with my PIC programmer yet, so I can't be terribly specific, I'm afraid.
Mxyzpltk is offline   Reply With Quote
Old 10-10-2002, 04:00 PM   #4
Newbie
 
Join Date: Oct 2002
Posts: 38
Ohgary
You might want to try the basicX stamp. This is very similar to the basic stamp but is faster and has more memory/variables.

Any change I can get the GPS code?
Ohgary is offline   Reply With Quote
Old 10-10-2002, 05:55 PM   #5
Maximum Bitrate
 
Join Date: Sep 2001
Location: DC
Posts: 744
SuperMatty
Dude I can't believe you're showing latitude and longtitude...what is the point?
SuperMatty is offline   Reply With Quote
Old 10-10-2002, 05:58 PM   #6
Newbie
 
Join Date: Oct 2002
Posts: 38
Ohgary
For day to day driving lat/long is of little use, but if your offroading or using a topo map these are needed. I know I would like to have them available, maybe not displayed all the time but sleectable when needed.

Quote:
Originally posted by SuperMatty
Dude I can't believe you're showing latitude and longtitude...what is the point?

Ohgary is offline   Reply With Quote
Old 10-10-2002, 08:26 PM   #7
FLAC
 
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,543
Zip-Lock is on a distinguished road
I want to display lat + long because I keep a mental map in my head and I can tell generally where I am or how far I have traveled from points I know.

Also another problem I was having with the lack of RAM was parsing NMEA sentences. With only 26 bytes RAM I could only use a fixed length NMEA sentence (GPRMC) and only capture strings at known points. With variable length strings like GPGGA (needed to get altitude) I would have to copy the string to RAM, search it, then parse out what I need.

I wish I had seen the BasicX before I bought the Basic Stamp II. I think I might have to send back my stamp and buy the BasicX instead. The BasicX looks like it not only has a lot more RAM but it runs faster too. So then I should be able to add OBD-II support too.

Any comments on the Basic Stamp II vs. BasicX?
Zip-Lock is offline   Reply With Quote
Old 10-10-2002, 08:31 PM   #8
Low Bitrate
 
Join Date: Sep 2002
Location: aychamo land
Posts: 92
Bobby_Aychamo
ROFL - "Self, ok, I have been on i-10 for approx 5 hours, so I am lattitude 00000000000000000000
__________________
AYCHAMO! http://www.aychamo.com
Bobby_Aychamo is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 10-10-2002, 08:51 PM   #9
Maximum Bitrate
 
Join Date: Sep 2001
Location: DC
Posts: 744
SuperMatty
Yeah man serious, get real
SuperMatty is offline   Reply With Quote
Old 10-10-2002, 09:19 PM   #10
Low Bitrate
 
Join Date: Sep 2002
Location: aychamo land
Posts: 92
Bobby_Aychamo
Uh oh I just picked no the admin EDITS POST!
__________________
AYCHAMO! http://www.aychamo.com
Bobby_Aychamo is offline   Reply With Quote
Old 10-10-2002, 10:09 PM   #11
FLAC
 
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,543
Zip-Lock is on a distinguished road
Enough on the lat and long display. It’s not for everyone but, I’m a geek.
Zip-Lock is offline   Reply With Quote
Old 10-11-2002, 09:47 AM   #12
Newbie
 
Join Date: Oct 2002
Posts: 38
Ohgary
The basic stamp II and basic X are similar, X is faster more I/O, ram, etc. You might also look at the parallax javalin. This is a java based stamp. Lots of I/O, memory and fast.

Also if you didnt know, Yahoo groups has a basic stamp support fourm.
Ohgary is offline   Reply With Quote
Old 10-16-2002, 01:38 AM   #13
FLAC
 
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,543
Zip-Lock is on a distinguished road
I decided to that I would return my Basic Stamp II and instead buy the BasicX. It should be here next week. With a student discount I'm gonna get a much more powerful processor for about $30 cheaper.
Zip-Lock is offline   Reply With Quote
Old 10-21-2002, 02:13 PM   #14
Registered User
 
Join Date: Jul 2002
Location: Downey, California
Posts: 50
Krazy Nemesis
Zip-Lock - You could have just added some external RAM. I know it sounds like a pain in the butt, but I do it all the time. And while you were at it you could have added some EEPROM for data logging. So when one of your buddies/kids/wife/g-f/etc. borrow the car, you can see where they took it. It's also good for making your own maps, and whatnot.
__________________
[------------------|--] 90% Completed
Not installed, yet.
Developing Completely DirectX shell.
P4 1.7GHz, 256MB RAM, 40GB-7200RPM HD
Krazy Nemesis is offline   Reply With Quote
Old 10-21-2002, 02:28 PM   #15
Newbie
 
Join Date: Oct 2002
Posts: 38
Ohgary
If its variables he ran out of then ram doesnt help that. It might be the way the variables are being used. He might be saving Bitwize variables as bytes. Adding memory is pretty easy but its serial memory and you have to write code to save to memory.
Ohgary is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 05:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics