Arduino UNO 4 WIFI and GPS data logger

Hi there,
I'm trying to build a GPS data logger to implement into a larger project. I now have the Arduino uno R4 WIFI and additionally I bought the adafruit ultimate GPS logging shield. Sadly I haven't gotten very far. Ive gotten my arduino to work on its own. However when I connect my GPS shield, my arduino com no longer appears in the serial ports on my laptop. I followed the following tutorial https://www.youtube.com/watch?v=OsMoowoB2Rg&t=561s . I attached my arduino to the datalogger by connecting the TX (GPS) to the 1 pin on my arduino; RX of the GPS to the 0 on my arduino. Furthermore I connected the two grounds and the Vin of the gps to the 5v power supply of the arduino. I think the problem has to do with the power supply but I do not know very well how to solve this. Any advice would be very welcome.

Kind regards,
Emma

Welcome to the forum

You say that you have connected the GPS to pins 0 and 1. If so then you need to use the Serial1 interface of the Uno R4 rather than the Serial interface. Is that what you have done ?

The Tx pin of the GPS should be connected to pin 0 (Rx) of the Arduino

Please post your full sketch, using code tags when you do

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

So far we do not yet have a code exactly. We are following the technique described in the following link Direct Connect | Adafruit Ultimate GPS Logger Shield | Adafruit Learning System . And hitting a wall at the "Testing Direct Connection", the site says that you do not yet need a code at all to simply be able to read off the NMEA's. I have added two foto's of our set up which is very simple.


I have switched the TX and RX around as you advised aswell. However this sadly did not show result.

Kind regards,

It also says

Direct Connection by flipping the switch on this shield only works if you're using an Uno/Duemilanove/Diecimila/compatible

Despite the name, the Uno R4 is not compatible with the classic Uno when it comes to doing what you want with a direct connection because its serial connections are different. Pins 0 and 1 are not connected to the Serial monitor as they are on the classic Uno

Connect the GPS to pins 0 and 1 and try this minimal sketch


void setup()
{
    Serial.begin(115200);  //Serial monitor interface at 115200 baud
    Serial1.begin(9600);  //GPS interface at 9600 baud
}

void loop()
{
    if (Serial1.available())  //if GPS data is available
    {
        Serial.print(Serial1.read());  //read from GPS and print to Serial monitor
    }
}

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.