You should be able to connect it directly to an ordinary stamp pin. ( for extra safety, go through a 220 ohm resitor to limit any current into the pin).Just set your serin command to the right baud rate; usually the WAIT modifier works best to watch for the first characters of the gps string.
If you plan to hook this to your computer you will need to have a level converter like a max232. tTo connect to the stamp you can use any pin as long as you tell serin what it is.
To display the input (from the GPS) tie the output pin from the serial output to a pin (and a ground to ground) use serin to get data from the GPS and (for simplicity) debug to display it in the pbasic debug window.
Double check that you have not only the baud rate correct, but the polarity and the parity. I would recommend checking out the SERIN help file in the Basic Stamp Editor, it has lots of good details. I've attached some code that Jon Williams wrote that really helped me out.
Hopefully not confusing the issue....but I've had experience where a PC will understand TTL rs232 (so long as it is still inverted).
The computer is just looking for thresholds being crossed. In the case of a logic 1, RS232 convention is for a -12Volts....but with TTL RS232 it will be a 0. Logic 0 is normally +12V in normal RS232, where it is +5Volts in TTL RS232.
I don't know the type of machien I was using (motherboard type) but it has worked for me on a laptop and a PC. So you may be able to get away from needing a 'level converter' when connecting to a PC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ ·
Steve "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
You may want to check with the Deluo manufacturer also, to ensure that your unit is outputting NMEA (what most expect to use in these projects). I’m using a SiRF GPS from US Global SAT, and although NMEA is its default, I see that at times it jumps to their proprietary output (which is gibberish, non-human readable).
Mike15 said...
I put a post on the company's forum.
Also I am working on trying to get mine running. I ran out of battery power. So please check this thread again.
This link also says the serial port is TTL/RS-232 so would I still need a converter to connect to hyper terminal?
If I understand the site correctly, you can use either TTL or RS232.
Is the GPS unit you have like the one on the site? Did it come with something to connect to a laptop/desktop as described on the website? If so, is their software to test or display data on your computer?
Or is it a bare OEM unit....
I have a OEM trimble LassenIQ that I connect to either my computer or a small LCD via my stamp using TTL. It also came with a small eval board that allows connecting directly to propeitary software on my comp to display data. Displaying GPS data is fairly simple with a stamp and TTL, there is quite a bit of code and examples throughout this froum and on the net. The Lassesn is also very easy to use, and very small.
Here is a snippet that shows the WAIT command mentioned earlier :
GetLatLong: ' Read the GGA sentence from LassenIQ GPS -
' $GPGGA,hhmmss.ss,llll.lll,a,nnnnn.nnn,b,t,uu,
SERIN 14, Baud48, [noparse][[/noparse]WAIT("GPGGA,"),SKIP 9,DEC WordData1, ' v.v,w.w,M,x.x,M,y.y,zzzz*hh <CR><LF>
SKIP 6, ByteData1, DEC WordData2,SKIP 6, ByteData2, ' - store Lat as WordData1, NS Coor as
SKIP 2,DEC NibData] 'ByteData1, store LON as WordData2,and EW Coor as
RETURN ' ByteData2. Store the satellites in use as NibData
Alohas,
Robert
Post Edited (Robert@HCC) : 9/4/2006 11:11:10 PM GMT
I ran the easy GPS program and when the GPS was connected nothing displayed in the debug terminal and when the GPS wasn't connected then I received the no GPS.
The GPS has 2 data out lines one for TTL and another for serial. Which one should be connected to the Stamp
Well, TTL is the level the BASIC Stamp will require if you're using one of the main I/O pins...RS-232 Serial if you're using the programming port for communication.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Tech Support
Comments
Cheers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
How can I test the input of the GPS (anybody have an examole code that will display the input?)
Post Edited (Mike15) : 9/2/2006 2:57:20 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Rick
The computer is just looking for thresholds being crossed. In the case of a logic 1, RS232 convention is for a -12Volts....but with TTL RS232 it will be a 0. Logic 0 is normally +12V in normal RS232, where it is +5Volts in TTL RS232.
I don't know the type of machien I was using (motherboard type) but it has worked for me on a laptop and a PC. So you may be able to get away from needing a 'level converter' when connecting to a PC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Also I am working on trying to get mine running. I ran out of battery power. So please check this thread again.
here is a link to the GPS unit.
http://www.deluogps.com/prods_universal.html
This link also says the serial port is TTL/RS-232 so would I still need a converter to connect to hyper terminal?
Post Edited (Mike15) : 9/4/2006 9:52:23 PM GMT
If I understand the site correctly, you can use either TTL or RS232.
Is the GPS unit you have like the one on the site? Did it come with something to connect to a laptop/desktop as described on the website? If so, is their software to test or display data on your computer?
Or is it a bare OEM unit....
I have a OEM trimble LassenIQ that I connect to either my computer or a small LCD via my stamp using TTL. It also came with a small eval board that allows connecting directly to propeitary software on my comp to display data. Displaying GPS data is fairly simple with a stamp and TTL, there is quite a bit of code and examples throughout this froum and on the net. The Lassesn is also very easy to use, and very small.
Here is a snippet that shows the WAIT command mentioned earlier :
Alohas,
Robert
Post Edited (Robert@HCC) : 9/4/2006 11:11:10 PM GMT
So all I have is the GPS no software.
The GPS has 2 data out lines one for TTL and another for serial. Which one should be connected to the Stamp
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Here is what I changed in the code
Setup:
· DEBUG CLS
'
[noparse][[/noparse] Program Code ]
Main:
· SERIN Rx, Baud, TimeOut, No_GPS,
······· [noparse][[/noparse]WAIT("@"), SKIP 6, DEC2 hr, DEC2 mn, DEC2 sc,
········ latHemi, DEC2 latD, DEC2 latM, DEC2 latF, SKIP 1,
········ lonHemi, DEC3 lonD, DEC2 lonM, DEC2 lonF, SKIP 1,
········ SKIP 4, altSign, DEC5 alt,
········ ewDir, DEC4 ewVel, nsDir, DEC4 nsVel]
' The PAUSE instruction below shows how much time is
' available for processing captured GPS data
Test:
· PAUSE 750
· DEBUG altSign, DEC5 alt,":",ewDir, DEC4 ewVel,":", nsDir, DEC4 nsVel, CR
· GOTO Main
· END
'
[noparse][[/noparse] Subroutines ]
No_GPS:
· DEBUG CLS, "No GPS..."
· PAUSE 2000
· GOTO Setup
·And here is the output I get
I noticed on the datasheet that the unit is 4800 baud. Be sure to change the code to something like this..
Baud CON T4800 + Inverted
or
Baud CON T4800
Tobrew
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support