Shop OBEX P1 Docs P2 Docs Learn Events
Parallax GPS Module (with SX) used with an ATOM28 microprocessor (MBasic) — Parallax Forums

Parallax GPS Module (with SX) used with an ATOM28 microprocessor (MBasic)

ralonsoralonso Posts: 9
edited 2007-01-06 01:30 in General Discussion
Good afternoon:

Recently i purchased a GPS Receiver Module that uses the SX microprocesor. My idea was to use it for a mobile robot that use an existing ATOM 28 from MBASIC.

The GPS module blink as expected until light remain fixed, indicating it obtained all the sat data necessary for calculating position.

But when i tried to obtain the information, i only receive zeros (no data)

Attached i will put a copy of the Basic program.

I tried all combination and found equivalence from BS2 to MBasic, but unsucesfully. Could any of you have ideas that will help me?

Regards

Ricardo Alonso
ricardo_alonso@yahoo.com


Sio···con··P1
T4800··con··188
Open··con··$8000
Baud··con··Open|T4800···
GetTime··con··$03
GetLat··con··$05
GetLong··con··$06
GetAlt··con··$07
GetSpeed·con··$08
GetHead··con··$09
Baud··var··byte
tmHRS··var··byte
tmMIN··var··byte
tmSEC··var··byte
degrLAT··var··byte
minLAT··var··byte
secLAT··var··byte
degrLONG·var··byte
minLONG··var··byte
secLONG··var··byte
Heading··var··word
alt···var··word
speed··var··word
clear

'·servo p2,0,2
'·servo p3,0,2

ciclo:
··SerDetect Sio,nmode,Baud
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS" ,GetTime]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]tmHRS,tmMIN,tmSEC]
··debug [noparse][[/noparse]dec tmHRS," ", dec tmMIN, " " , dec tmSEC,13]

··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetLat]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]degrLAT,minLAT,secLAT]
··debug [noparse][[/noparse]dec degrLAT," ", dec minLAT, " " , dec secLAT,13]

··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetLong]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]degrLONG,minLONG,secLONG]
··debug [noparse][[/noparse]dec degrLONG," ", dec minLONG, " " , dec secLONG,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetHead]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]Heading]
··debug [noparse][[/noparse]dec Heading,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetAlt]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]alt]
··debug [noparse][[/noparse]dec alt,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetSpeed]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]speed]
··debug [noparse][[/noparse]dec speed,13]



·pause 1000

·goto ciclo


No_response:
··debug [noparse][[/noparse]"No response",13]

return

Comments

  • JonnyMacJonnyMac Posts: 9,443
    edited 2006-12-29 15:44
    Perhaps you should ask the folks at Basic Micro for assistance -- if they can be bothered to help you, as they don't seem very good at customer service. Like others, I can vouch that the GPS module works with the BASIC Stamp.
  • ralonsoralonso Posts: 9
    edited 2006-12-29 16:41
    Hi: i consulted them... they said to me that the setting of baud rate should be NO4800. The code for parallax is not usefull. But still not working. I have the GPS capturing satelite data (light is still; not blinking), but i do not receive information from module (neither Lat and Long nor Version of Hardware Firmware).

    I am begining to think that SX interface is not working well

    Do you know a parallax program that obtain the NMEA string of GPS.

    Regards

    Ricardo
  • JonnyMacJonnyMac Posts: 9,443
    edited 2006-12-29 18:14
    The GPS module works in True mode -- perhaps the NO4800 setting of the BM compiler is for inverted mode. The RAW pin controls the GPS behavior and can be used to force the module to dump raw GPS strings (every second) from its serial output.

    I can assure you that the SX works fine, the Parallax GPS module works fine, and that the problems your experiencing have everything to do with your choice of compiler.
  • ralonsoralonso Posts: 9
    edited 2007-01-06 01:30
    Hi everybody



    Today i went to my supplier and checked the module. Is not working for any reason. You were true, T4800 means IO4800 (inverted) for BM. Know, i have a module running ok. I will send the group the program that is, bassically the same as Parallax.



    Best regards



    Ricardo
Sign In or Register to comment.