aureq / rpi-ntp-gps

GPS based NTP server on a Raspberry Pi 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 and SCL)
    • Connect SQW to GPIO 22
    • Connect VCC pin to 3.3v and GND pin to GND
  • Ublox Neo 6M

    • Connect TX to UART0_RXD
    • Connect RX to UART0_TXD
    • Connect PPS to GPIO 4
    • Connect VCC pin to 3.3v and GND pin to GND
  • 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

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/

About

GPS based NTP server on a Raspberry Pi 2


Languages

Language:Shell 53.4%Language:Python 46.6%