Trying to get GPS module connected to Leonardo. I presume I have to use serial1 but are the pins 0 and 1 for TX and Rx still? Tried a .ino (for a Uno board) on pins 4 and5 but get nothing from GPS.
No matter what I try I still get nothing.
GPS module works fine on the ublox software so I know that is ok.
Pins 0 and 1 on an Uno are Serial and are also associated with the USB connection to the PC.
On a Leonardo pins 0 and 1 are Serial1 and have no association with the USB connection which, like the Uno, is Serial
If that does not help please post your program and your wiring diagram
...R
Ok, that makes sense. I'm going to have to look into the pin differences
It's just a demo sketch for GPS data that is meant for a Uno. Tried it on the Leonardo and also an esp32. Botj not working. Switched to the 0 and 1 pins but of coarse still have serial rather than serial 1 in sketch.
Be nice if there is a chart somewhere that shows differences of pins etc in easy to read format. Think there was a list on here somewhere but it wasn't that clear.
No doubt the esp32 is different as is the esp32 with onboard oled.
Many thanks
Lifescape:
Be nice if there is a chart somewhere that shows differences of pins etc in easy to read format.
I think the Arduino product pages have links to pinout diagrams for each board.
And I suspect the differences are too great for it to be practical to have a single chart that covers them all.
...R
Here's the chart documenting serial interfaces on various official Arduino boards: