Need I2C GPS Module

Tips and questions relating to the GPS modules from SFE

Moderator: phalanx

Post Reply
User avatar
RocketNut
Posts: 24
Joined: Wed Jun 22, 2016 11:45 am

Need I2C GPS Module

Post by RocketNut » Fri Aug 05, 2016 1:22 pm

Howdy

I am on the hunt for a GPS module with I2C? Does any one know where I can get one. The TTL serial port is all ready in use for a radio link.

Thank you

Rocket Nut

tex792
Posts: 13
Joined: Sat Dec 12, 2015 8:53 pm

Re: Need I2C GPS Module

Post by tex792 » Sat Aug 27, 2016 6:12 pm

I believe you may be able to utilize the digital pins as serial connections by using the SoftwareSerial library in your sketch (https://www.arduino.cc/en/Reference/SoftwareSerial). I'm guessing you are using an Arduino board that only has one UART, so this library allows you to "pretend" that you have more UARTs and use your digital pins as TX/RX pins.

I did this recently as I was experimenting with a GPS module as well (https://www.sparkfun.com/products/13740). Using SoftwareSerial, I was able to hook the GPS to pin 3 on a Sparkfun RedBoard to listen it (this GPS module doesn't receive data, so I only had to hook it up to one data pin), and at the same time I monitored the data using the serial monitor (hardware serial through the UART).

As a side note, I used the TinyGPS++ library to help extract data from the GPS module (http://arduiniana.org/libraries/tinygpsplus/). I found this one much easier to use than the Adafruit GPS library.

User avatar
RocketNut
Posts: 24
Joined: Wed Jun 22, 2016 11:45 am

Re: Need I2C GPS Module

Post by RocketNut » Sun Aug 28, 2016 6:15 pm

I am using Adafruit Feather M0 Adalogger. I have looked over the serial tutor [https://learn.adafruit.com/using-atsamd ... s/overview], sorry to say it way over my head. It is some what on the back burner right now because I am working on the hardware interface/control circuit and pcb. With this line of code from the tutor Uart Serial2 (&sercom1, 11, 10, SERCOM_RX_PAD_0, UART_TX_PAD_2);. The schematic shows radio TX line is wired to pin 10. I am playing with MsTimer2 library. to control sample rate. It seems to be working, but still have a long way to before I am ready to tackle this new serial port.

Rocket Nut

Post Reply