Flora GPS

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
maxwoodward
 
Posts: 9
Joined: Wed Oct 11, 2023 11:34 pm

Flora GPS

Post by maxwoodward »

I am trying to use the Flora Ultimate GPS Module with an ESP32 dev board and I can't get it to work. I have just been trying to get the Hardware Serial Echo example to work, but I never get an output in the serial monitor. I have tried it with multiple different boards with the same results. I have also tried going outside for it to connect, but still no luck. Any other tips to try to get it to work or is it possible I got a faulty module?
Thanks in advance!

User avatar
dastels
 
Posts: 15488
Joined: Tue Oct 20, 2015 3:22 pm

Re: Flora GPS

Post by dastels »

Please post photos of your connections.

Dave

User avatar
maxwoodward
 
Posts: 9
Joined: Wed Oct 11, 2023 11:34 pm

Re: Flora GPS

Post by maxwoodward »

Sorry I forgot to add a picture of my wiring! I am using a Lolin D32 Pro board in this picture, but I have tried it on a different ESP32 board with the same results.
[attachment=0]GPS module.jpg[/attachment
I have TX to RX and RX to TX, GND to GND, 3V from dev board to the module. The module turns on and the LED flashes, but I never get any output in the serial monitor.
I have also tried adjusting the baud rate just to see if that would do anything, but it did not.
Attachments
GPS module.jpg
GPS module.jpg (389.23 KiB) Viewed 800 times

User avatar
dastels
 
Posts: 15488
Joined: Tue Oct 20, 2015 3:22 pm

Re: Flora GPS

Post by dastels »

I'm not a fan of alligator clips used like this but as long as you're careful not to let them touch (a bit of tape around the exposed bits goes a long way to avoiding shorts) it should be good enough to test things.

The next question is your code. Can you post it?

Dave

User avatar
maxwoodward
 
Posts: 9
Joined: Wed Oct 11, 2023 11:34 pm

Re: Flora GPS

Post by maxwoodward »

Thanks for the tip with the electrical tape!
This is just the Hardware Serial Echo test from the Adafruit GPS library

Code: Select all

#define GPSSerial Serial1


void setup() {
  // make this baud rate fast enough to we aren't waiting on it
  Serial.begin(115200);

  // wait for hardware serial to appear
  while (!Serial) delay(10);

  // 9600 baud is the default rate for the Ultimate GPS
  GPSSerial.begin(9600);
}


void loop() {
  if (Serial.available()) {
    char c = Serial.read();
    GPSSerial.write(c);
  }
  if (GPSSerial.available()) {
    char c = GPSSerial.read();
    Serial.write(c);
  }
}

User avatar
dastels
 
Posts: 15488
Joined: Tue Oct 20, 2015 3:22 pm

Re: Flora GPS

Post by dastels »

Hmm. Everything looks reasonable. The connections still make me wonder if it could be a bad connection. What other board have you tried it with? Anything other than ESP32 boards? It would be nice to ascertain whether the GPS board is working.

Dave

User avatar
maxwoodward
 
Posts: 9
Joined: Wed Oct 11, 2023 11:34 pm

Re: Flora GPS

Post by maxwoodward »

I found the problem! On this line

Code: Select all

#define GPSSerial
the example had it defined as Serial1, and the D32 Pro only has UART0 pins accessible. So changing Serial1 to just Serial fixed my issue.
Thanks for the help, it led me in the right direction!

User avatar
dastels
 
Posts: 15488
Joined: Tue Oct 20, 2015 3:22 pm

Re: Flora GPS

Post by dastels »

Really? Serial is generally the USB "serial".

On most boards with native USB (unlike the UNO where Rx/Tx *is* the USB serial) the Rx/Tx pins are Serial1.

Anyway... yay!

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Wearables”