【问题标题】:How to get data from UP501 gps module on Arduino?如何从 Arduino 上的 UP501 gps 模块获取数据?
【发布时间】:2013-08-20 11:16:18
【问题描述】:

我正在尝试在 Arduino 上使用 UP501 gps 模块并从 GPS 获取原始信息,例如 long、lat、alt..等

我在 Arduino 上运行此代码以查看 GPS 上的串行是否可用,如果可用则打印来自 GPS 的数据。

Arduino 代码:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX .

void setup()  
{
  // Open serial communications and wait for port to open:
  Serial.begin(57600); 
  Serial.println("Searching using GPS...");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());
}

我的问题:我没有从 GPS 模块获得任何数据。

我以为是电线的原因。请看下面我的接线图。

  • 引脚 2 的黄线连接到 D10,这将是 RX
  • 引脚 3 的黑线接地。
  • 引脚 4 的红线连接到 3.3 伏

注意:我去外面(户外)获取卫星但没有信息

【问题讨论】:

    标签: gps arduino


    【解决方案1】:

    adafruit 上有一个tutorial 用于使用此 GPS

    我建议你看看它,因为你的接线似乎缺少一些东西

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-26
      相关资源
      最近更新 更多