warning
This repository is merely usable as it's just a brain dump of my own work. Use at your own risk.
hardware
- Raspberry 2 (Could worrk on Raspberry 1 and Raspberry 3)
- RTC DS3231
- LiR 2032 or CR2032
- Ublox neo 6M
- GPS antena and SMA patch cable
- TFT Screen 480x320 3.5" for Raspberry 1 (Adafruit)
- Ethernet cable (Wi-Fi should be fine too)
- 5v - 2.5A power supply
hardware setup
-
RTC DS3231
- Insert the battery into the RTC module
- Remove the diode if using a non-rechargeable battery (CR2032) from the RTC module
- Connect the RTC to the I2C bus (
SDA
andSCL
) - Connect
SQW
to GPIO 22 - Connect
VCC
pin to3.3v
andGND
pin toGND
-
Ublox Neo 6M
- Connect
TX
toUART0_RXD
- Connect
RX
toUART0_TXD
- Connect
PPS
to GPIO 4 - Connect
VCC
pin to3.3v
andGND
pin toGND
- Connect
-
TFT Screen 480x320 3.5"
- Install screen on top of rPi header
Notes
In /boot/config.txt
, it may be necessary to tweak the order for dtoverlay=pps-gpio,gpiopin=22
and dtoverlay=pps-gpio,gpiopin=4
. /dev/pps0
should be linked to the GPS device on GPIO 4.
software
- NTPSec
- Lighttpd
software setup
apt-get purge fake-hwclock
apt-get install build-essential cpufrequtils fbi git i2c-tools lighttpd lsof pps-tools rrdtool -V
mkdir /var/www/html/ntp/
mkdir /var/lib/ntp/rrd/