Hello
my project is basically a datalogger that is supposed to write IMU and GPS data onto an SD-Card.
The logging and everything works, but I cant read the GPS module.
With my UNO I am able to read the GPS data.
On the nano I cant use the Gpsneo
library, since it seems to need the SoftwareSerial
library which does not work on the Nano BLE sense.
I use an example of the library:
#include <SoftwareSerial.h>
#include <Gpsneo.h>
Gpsneo gps(0,1); //(rx,tx)
char time[10];
char status[3];
char latitud[11];
char latitudHemisphere[3];
char longitud[11];
char longitudMeridiano[3];
char speedKnots[10];
char trackAngle[8];
char date[10];
char magneticVariation[10];
char magneticVariationOrientation[3];
void setup()
{
Serial.begin(9600);
}
void loop()
{
//Just simple do getDataGPRMC, and the method solve everything.
gps.getDataGPRMC(time,
status,
latitud,
latitudHemisphere,
longitud,
longitudMeridiano,
speedKnots,
trackAngle,
date,
magneticVariation,
magneticVariationOrientation);
Serial.println(time);
Serial.println(status);
Serial.println(latitud);
Serial.println(latitudHemisphere);
Serial.println(longitud);
Serial.println(longitudMeridiano);
Serial.println(speedKnots);
Serial.println(trackAngle);
Serial.println(date);
Serial.println(magneticVariation);
Serial.println(magneticVariationOrientation);
}
I get the following error message:
minimumRecommendedFull:1:10: fatal error: SoftwareSerial.h: No such file or directory
#include <SoftwareSerial.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
SoftwareSerial.h: No such file or directory
How can I read the GPS data without software serial?
I am a real newbie to arduino...
Thanks in Advance!