top of page

We use the GPS PA1010D,

a miniature GPS module that uses I2C and UART with which we can know where our CanSat is located at all times.  

 

This is the code we used:

 

#include <Adafruit_GPS.h>

 

Adafruit_GPS GPS (& Wire);

 

void setup () {

  while (! Serial) {}

  Serial.begin (115200);

  Serial.println ("test");

  GPS.begin (0x10); 

}

void loop () {

  if (Serial.available ()) {

   char c = Serial.read ();

   GPS.write (c);

  }

  if (GPS.available ()) {

   char c = GPS.read ();

   Serial.write (c);

  }

}

Heading 2

GPS

Captura de pantalla 2022-01-28 a les 16.31.02.png
bottom of page