|
 |
|
10-10-2002, 03:30 AM
|
#1
|
|
FLAC
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,580
|
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.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
10-10-2002, 07:45 AM
|
#2
|
|
Low Bitrate
Join Date: Dec 2000
Posts: 65
|
im diggin those runnin shoes....
|
|
|
10-10-2002, 08:14 AM
|
#3
|
|
Low Bitrate
Join Date: Jul 2002
Posts: 89
|
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.
|
|
|
10-10-2002, 03:00 PM
|
#4
|
|
Newbie
Join Date: Oct 2002
Posts: 38
|
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?
|
|
|
10-10-2002, 04:55 PM
|
#5
|
|
Maximum Bitrate
Join Date: Sep 2001
Location: DC
Posts: 744
|
Dude I can't believe you're showing latitude and longtitude...what is the point?
|
|
|
10-10-2002, 04:58 PM
|
#6
|
|
Newbie
Join Date: Oct 2002
Posts: 38
|
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?
|
|
|
10-10-2002, 07:26 PM
|
#7
|
|
FLAC
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,580
|
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?
|
|
|
10-10-2002, 07:31 PM
|
#8
|
|
Low Bitrate
Join Date: Sep 2002
Location: aychamo land
Posts: 92
|
ROFL - "Self, ok, I have been on i-10 for approx 5 hours, so I am lattitude 00000000000000000000
|
|
|
10-10-2002, 07:51 PM
|
#9
|
|
Maximum Bitrate
Join Date: Sep 2001
Location: DC
Posts: 744
|
Yeah man serious, get real
|
|
|
10-10-2002, 08:19 PM
|
#10
|
|
Low Bitrate
Join Date: Sep 2002
Location: aychamo land
Posts: 92
|
Uh oh I just picked no the admin  EDITS POST!
|
|
|
10-10-2002, 09:09 PM
|
#11
|
|
FLAC
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,580
|
Enough on the lat and long display. It’s not for everyone but, I’m a geek.
|
|
|
10-11-2002, 08:47 AM
|
#12
|
|
Newbie
Join Date: Oct 2002
Posts: 38
|
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.
|
|
|
10-16-2002, 12:38 AM
|
#13
|
|
FLAC
Join Date: Aug 1999
Location: Washington D.C.
Posts: 1,580
|
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.
|
|
|
10-21-2002, 01:13 PM
|
#14
|
|
Registered User
Join Date: Jul 2002
Location: Downey, California
Posts: 50
|
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
|
|
|
10-21-2002, 01:28 PM
|
#15
|
|
Newbie
Join Date: Oct 2002
Posts: 38
|
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.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:01 AM.
| |