GPS TinyShield not getting location

tvykruta

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
I have a GPS TinyShield and am running the official example, but I only get this output:

**** **** ********* ********** **** ********** ******** **** ****** ****** ***** ***   *******  ****** ***   17046 0         0       

It does this infinitely. I have it sitting on a window with clear view of the sky for 10 minutes. I'm using this example:

https://codebender.cc/utilities/download/37442?board=TinyDuino&referrer=TinyCircuits

As listed on the TinyCircuits official product page:'
https://tinycircuits.com/products/gps-tinyshield

I have a WiFI module which is not working either. 0/2 right now unfortunately for TinyCircuits. I've spent 2 days reading posts trying to solve this, no luck yet.


tvykruta

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
I bought 2 new TinyProcessor but still not getting any action from TinyGPS. 0 satellites found. The TinyProcessor works with the TinyAccelerometer Rectangular, so I have no reason to believe the processor itself is bad nor my dev setup. I see accelerometer read outs in the monitor. But still no GPS.  I'm testing the TinyGPS independent of other censors. My setup is just the USB unit, processor and TinyGPS.


PascalJedi

  • Newbie
  • *
    • Posts: 2
    • View Profile
Just bought the TinyGPS and exactly the same thing.  All results are *** and RX keeps incrementing, but no sentences are ever processes.  1 hr outside with clear line of sight to the sky and not response.

Was there just a batch of bad GPS modules from TinyCircuits or is the same code bad for the ASD2501 (Rev 4)



PascalJedi

  • Newbie
  • *
    • Posts: 2
    • View Profile
O.k., the answer to this question is:

static const int RXPin = A1, TXPin = A0;

TinyGPS is located on those pins.   Be sure to leave the hardware as 1,0 as those service the USB to Serial port output.

Code: [Select]
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
/*
   This sample code demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object.
   It requires the use of SoftwareSerial, and assumes that you have a
   4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
static const int RXPin = A1, TXPin = A0;
static const uint32_t GPSBaud = 9600;

Just bought the TinyGPS and exactly the same thing.  All results are *** and RX keeps incrementing, but no sentences are ever processes.  1 hr outside with clear line of sight to the sky and not response.

Was there just a batch of bad GPS modules from TinyCircuits or is the same code bad for the ASD2501 (Rev 4)


yost87

  • Jr. Member
  • **
    • Posts: 6
    • View Profile
This solution worked for the "Simple Test" sketch.  I am now able to see location data in the serial monitor after following Pascaljedis advice.
My code for the setup section now loos like this:

"void setup()
{
  // Added this
  static const int RXPin = A1, TXPin = A0;
 
  SerialMonitorInterface.begin(115200);
  ss.begin(GPSBaud);
  while (!SerialMonitorInterface && millis() < 5000); //On TinyScreen+/SAMD21 platform, this will wait until the Serial Monitor is opened or until 5 seconds has passed
 
  SerialMonitorInterface.print("Simple TinyGPS library v. "); SerialMonitorInterface.println(TinyGPS::library_version());
  SerialMonitorInterface.println("by Mikal Hart");
  SerialMonitorInterface.println();
 
  gpsInitPins();
  delay(100);
  SerialMonitorInterface.print("Attempting to wake GPS module.. ");
  gpsOn();
  SerialMonitorInterface.println("done.");
  delay(100);
  while (ss.available())ss.read();
}"



(NOTE: I added this: " static const int RXPin = A1, TXPin = A0;" to beginning of setup routine.  The text between the quotation marks.

I hope this helps.


« Last Edit: December 13, 2020, 10:56:48 PM by yost87 »


 

SMF spam blocked by CleanTalk