2
3

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 3 years have passed since last update.

Raspberry Pi 4 + GPSモジュール + OS設定メモ

Last updated at Posted at 2020-04-14

はじめに

Amazonで安価に買える[GPS拡張ボードシールド](https://www.amazon.co.jp/gp/product/B072XF6MDR/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1 GPS拡張ボードシールド)を使ったGPSロガーを作成する。

image.png

image.png

OSセットアップ

Raspianが動作している状況で下記の設定をする。

/boot/config.txt
enable_uart=1
dtoverlay=pi3-disable-bt
/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
/lib/systemd/system/hciuart.service
[Unit]
Description=Configure Bluetooth Modems connected by UART
ConditionFileNotEmpty=/proc/device-tree/soc/gpio@7e200000/bt_pins
Before=bluetooth.service
After=dev-serial1.device

[Service]
Type=forking
ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -

[Install]
WantedBy=multi-user.target
/etc/default/gpsd
START_DAEMON="true"
USBAUTO="false"
DEVICES="/dev/ttyAMA0"
GPSD_OPTIONS=""

外部GPSアンテナ

この[アンテナ](https://www.amazon.co.jp/gp/product/B07DFFB7LZ/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1 アンテナ)は外部アンテナとして動作確認しています。基板から内蔵アンテナとのケーブルを取り外し入れ替えてやることで動作しました。

image.png

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?