LoginSignup
2
3

More than 3 years have passed since last update.

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

Last updated at Posted at 2020-04-14

はじめに

Amazonで安価に買える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アンテナ

このアンテナは外部アンテナとして動作確認しています。基板から内蔵アンテナとのケーブルを取り外し入れ替えてやることで動作しました。

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