Sending GPS data to mobile via bluetooth

Hi Roy

Can you modify your post so the code is in code tags - use the "#" button above the smileys. It makes it much easier for people to read. :slight_smile:

And most importantly, have you tried compiling and running the program? What happens? What help exactly are you looking for?

For example, I guess it won't compile because the following part of your code, at least, has problems.

    if
    
    // Sets the boundries
      (flat > 53.471623);
      Serial.print("Lost Connection - High!");
      (flon > -2.240617);
      Serial.print("Lost Connection - Right!");
      (flat < 53.471555);
      Serial.print("Lost Connection - Low!");
      (flon < -2.241046);
      Serial.print("Lost Connection - Left!");
      
}

If you search in the Reference section of this website for information about the "if" statement, you should find some examples that could help you to fix this part. I think I understand what you are trying to do, but the code isn't valid as it stands.

One other question for now. You are using a GPS library and software serial to communicate between the Arduino and the GPS. Have you got any example sketches that came with the libraries that will let you test if the link to the GPS is working ok, for example by printing out the data it sends to the serial monitor (i.e. keep the bluetooth to your phone out of the equation for now)?

Regards

Ray