OK, great. I happen to have an older GPS unit
in another project so I tried it on the Arduino tonight; this unit just spits out serial data and I've connected it up like you describe in your breadboard friendly GPS unit
. However, I would rather use the hardware serial rather than the software serial; is this possible?
In other words, I want to use the SD logger (over SPI) with a bare GPS (over hardware serial). I've tried the software serial, reading the GPS and then printing it back to the hardware serial to see on the serial monitor, and I see the GPS messages.
I've also connected the GPS to the hardware serial and uploaded a blank sketch and started the serial monitor, then I see the GPS messages being spit out fine. But how do I read the GPS messages from the hardware serial, in order to write them to the SD? It seems like if I open the hardware serial with
- Code: Select all
then I can't do anything other than talk to the host computer, and if I don't open the hardware serial then I can't get data from the GPS. There must be a way to do this but I haven't learned it yet.