Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Module Arduino Neo 6m GPS模块发回奇怪的数字和符号_Module_Arduino_Gps - Fatal编程技术网

Module Arduino Neo 6m GPS模块发回奇怪的数字和符号

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

当我将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.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);
}
}
当我在串行端口中获取数据时,它如下所示: 为什么看起来像这样