8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GPSモジュール + Arduino の設定備忘録

Last updated at Posted at 2016-08-13

#使用機器

  • GPSモジュール GYSFDMAXB
  • Arduino Uno Rev3

#準備
とりあえず以下のPDFの, 外部機器との接続方法(マイコンと接続する場合)に従って接続

1PPSの, Arduinoへの接続先は, アナログ/デジタルピンならばどこでもよいから接続する.

以下のスケッチを書く(どこかのサイトからお借りしたが忘れてしまった. 思い出したら書く)

#include <SoftwareSerial.h>

SoftwareSerial g_gps( 6, 7 );

void setup()
{
  g_gps.begin(9600);
  Serial.begin( 9600 );
}

void loop()
{
  char c = g_gps.read();
  if( -1 != c )
  {
    Serial.print( c );
  }
}
  • SoftwareSerial g_gps(6,7)について

#おわり
MiniGPSでも, GPSモジュールがArduinoに正しく接続できていれば動きます

8
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?