Pages: [1]   Go Down
Author Topic: Leonardo GPS Communication  (Read 363 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've been searching for about a week trying to find out why the example code located on sparkfun's website for the GPS shield won't work with my Leonardo and the 406 module. I've read that with the Leonardo, it's supposed to be easier to interface with things through the hardware UART through pins 1 and 2. However, I'm finding it difficult to understand how to tweak the example from sparkfun to work with the Leonardo. So far, I understand that I must use Serial1 instead of SoftwareSerial, but I'm not really sure which pins go where. Any help would be appreciated. Also, if it wouldn't be too much trouble, I'd like to understand why things must be wired a certain way. Teach a man to fish, right? Thanks in advance!

Also, the example code I'm trying to use is: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Dev/Arduino/Boards/gps_arduino_1_0.ino
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 650
Posts: 50833
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I've read that with the Leonardo, it's supposed to be easier to interface with things through the hardware UART through pins 1 and 2.
It's even easier if you use pins 0 and 1.

Quote
However, I'm finding it difficult to understand how to tweak the example from sparkfun to work with the Leonardo.
Change Serial to Serial1 if using the hardware serial port or change the SoftwareSerial instance to Serial1.

Quote
Also, if it wouldn't be too much trouble, I'd like to understand why things must be wired a certain way.
To ensure that they work. Seems kind of obvious, no?
Logged

Pages: [1]   Go Up
Jump to: