sparkfun / SparkFun_CAN-Bus_Arduino_Library

Other
154 stars 99 forks source link

No GPS reading on Arduino Uno R3 #6

Open sunekaae opened 7 years ago

sunekaae commented 7 years ago

I was not able to get any GPS readings. I am using: CAN-BUS Shield (DEV-13262) and GPS Receiver EM-506 (GPS-12751) ordered bis SK Pang Arduino Uno R3

Looking at the hookup guide, it actually seems that the author was also not able to get a GPS fix, The author suggested the reason was poor GPS connection, but perhaps it's actually the code. Looking through the code it seems to me that it will not work on Arduino Uno with software serial, because it does too many other things including delays to be able to read the incoming data from the serial GPS module. https://learn.sparkfun.com/tutorials/can-bus-shield-hookup-guide

sunekaae commented 7 years ago

I have reorganized the code such that:

I have not done substantial rewrite or refactor, rather just reorganized what already exists and tweaked it to get the GPS to work

Here's the reorganized code: https://github.com/sunekaae/SparkFun_CAN-Bus_Arduino_Library/tree/fix-gps-on-ecu-demo