Grove GPS with Grove Base Hat for Raspberry Pi (Changing port definitions?)

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, salmanfarisvp, jeremy882, crail.lyu969

Post Reply
melvinlee18
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Oct 17, 2019 6:56 am

Grove GPS with Grove Base Hat for Raspberry Pi (Changing port definitions?)

Post by melvinlee18 » Fri Nov 01, 2019 3:12 am

Hi people,

Is it possible to connect the Grove GPS with Grove Base Hat for Raspberry Pi?

I just realized there is no RPISER port on the Grove Base Hat.
Last edited by melvinlee18 on Mon Nov 04, 2019 1:17 am, edited 1 time in total.

bill.yu
Junior-7
Junior-7
Posts: 735
Joined: Mon Apr 02, 2018 11:05 am

Re: Grove GPS with Grove Base Hat for Raspberry Pi

Post by bill.yu » Fri Nov 01, 2019 5:51 pm

Hi there~

It's compatible but you need to modify source code to change the port.

melvinlee18
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Oct 17, 2019 6:56 am

Re: Grove GPS with Grove Base Hat for Raspberry Pi

Post by melvinlee18 » Fri Nov 01, 2019 6:09 pm

That's great!

Do I connect the GPS to the UART port of the Grove Base Hat?

melvinlee18
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Oct 17, 2019 6:56 am

Re: Grove GPS with Grove Base Hat for Raspberry Pi

Post by melvinlee18 » Mon Nov 04, 2019 1:16 am

Hi guys,

how do I change the port to the UART port or a Digital port?


code from desterGPS.py:

lass GROVEGPS():
def __init__(self, port='/dev/ttyAMA0', baud=9600, timeout=0):
self.ser = serial.Serial(port, baud, timeout=timeout)
self.ser.flush()
self.raw_line = ""
self.gga = []
self.validation =[] # contains compiled regex

Post Reply