Venus GPS don't work with TinyGPS Library

Hi,

I buyed the Venus GPS Modul. I tried it with a Duemilanove without the Atmega Chip and it works.
But then I tried it with the Atmega and the TinyGPS Library Example but nothing happened. When I tried the GPS without Chip, the Nav Led flashes after the Modul got contact with the satellites. But when I used the Exapmle the Led is just on all the time. I tried the test_with_gps_device example.
Then I coded an other program, but it also don't work. The program only returns 0. I think the GPS get no contact with satellites, because the led is on and don't flashes. But why? I tried all programs
outside with free sky and at the same place I also tried the GPS without the Atmega Chip.

#include
#include

TinyGPS gps;
NewSoftSerial nss(2,3);

void setup(){
Serial.begin(115200);
nss.begin(9600);
Serial.println("Ready... ");
}

void loop(){
float lat, lon, speed, course;
unsigned long fix_age, time, date;
float chars;
unsigned short sentences, failed_checksum;
while(nss.available()){
int c = nss.read();
if(gps.encode(c)){
long lat, lon;
gps.f_get_position(&lat, &lon, &fix_age);
gps.get_datetime(&date, &time, &fix_age);
speed = gps.f_speed_kmph();
course = gps.f_course();
}
}
Serial.println(date);
Serial.println(time);
Serial.println(lon);
Serial.println(lat);
}


I hope you can help me.

Philipp

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hello Philipp
    As suggested in our previous post (http://www.diydrones.com/forum/topics/needing-help-with-the-venus?c...), did you try to dialog first to GPS with a serial terminal (example : RealTerm, easy to find with Google), and learn Venus dialog protocol ?

    After, you will be able to modify your software.
    (if necessary, but you will need to understand the GPS library low level procedures, not listed in your example)

    But I repeat my advice in my previous post :
    If you are not familiar with serial links and programmation, you should buy the standard GPS suggested by the Autopilot Team & afficionados ! So they can help you and you will be able to use the standard programm with success.

    Regards,
    Gilles
This reply was deleted.

Activity