Module Arduino Neo 6m GPS模块发回奇怪的数字和符号
当我将Arduino与此代码连接时:Module Arduino Neo 6m GPS模块发回奇怪的数字和符号,module,arduino,gps,Module,Arduino,Gps,当我将Arduino与此代码连接时: /* * Rui Santos * Complete Project Details https://randomnerdtutorials.com */ #include <SoftwareSerial.h> // The serial connection to the GPS module SoftwareSerial ss(4, 3); void setup(){ Serial.begin(9600); ss.be
/*
* Rui Santos
* Complete Project Details https://randomnerdtutorials.com
*/
#include <SoftwareSerial.h>
// The serial connection to the GPS module
SoftwareSerial ss(4, 3);
void setup(){
Serial.begin(9600);
ss.begin(9600);
}
void loop(){
while (ss.available() > 0){
// get the byte data from the GPS
byte gpsData = ss.read();
Serial.write(gpsData);
}
}
/*
*鲁伊桑托斯
*完整的项目细节https://randomnerdtutorials.com
*/
#包括
//与GPS模块的串行连接
软件序列ss(4,3);
无效设置(){
Serial.begin(9600);
贝京(9600);
}
void循环(){
而(ss.available()>0){
//从GPS获取字节数据
字节gpsData=ss.read();
串行写入(gpsData);
}
}
当我在串行端口中获取数据时,它如下所示:
为什么看起来像这样