Orange Pi Zero NTP Stratum 1 PPS GPS Server with Armbian OS, Hardware and Software Tutorial


 Share

4 4

Recommended Posts

Orange Pi Zero NTP Stratum 1 PPS GPS Server with Armbian OS.
Link to the Tutorial - http://schwartzel.eu3.org/ntp-stratum1.html

This tutorial uses a 3.3V capable GPS module with PPS output - TOPGNSS GN-701 (u-blox 7) but other similar modules should work.
image002.jpg.79e8f2fe5963fd0e45a8aefd73412d37.jpg
 

This tutorial is for the Orange Pi Zero, but will probably work for other boards.

image001.jpg.f5c7634b6c994d1ab806873d1513c664.jpg
 


I couldn't easily do a comprehensive hardware and software tutorial on this forum, so I've published it on my web server and linked from here and attached a PDF.
Link to the Tutorial - http://schwartzel.eu3.org/ntp-stratum1.html

Tutorial PDF
ntp-stratum1.pdf

If you spot any typo's or errors please let me know.

 

Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

Just add the server to your NTP client as you would any other NTP server.
If you are using the Windows 10 OS then you can use the built in client.
Open Control Panel
Go to Clock, Language, and Region
Click the icon Date and Time
Open the tab named Internet Time
Click the button named Change settings
Tick Synchronize with internet time server
Fill in the IP of your NTP server

Click OK.
 

Link to post
Share on other sites

Hi @Elektrický,

Nice tutorial, worked great for me. Bought a cheap GPS module:

image.png.c3dd5954a863a0b70dd4254b9f3480a7.png

 

And a pinheader to solder onto the OrangePi Zero board itself.

P_20210621_112118-mod.thumb.jpg.fb96183c04cff4a0ccb2f17725cbede2.jpg

 

The only thing I had to change was to swap the RX/TX wires, as a straight connection did not work for my GPS board.

P_20210618_162823-mod.thumb.jpg.3b36c83e15d50f9abf75065412bbe163.jpg

P_20210618_162716.thumb.jpg.157c0571f8a9e601a385cc999eb1c8f3.jpg

 

I did not have any success getting PPS to work through the USB connection (works as ttyACM). I had to use the GPIO dtb overlay and electrical connection as per your tut.

gpsd in action:

gpsd-output.jpg.f528d43f1dd3c76f7cbdf0c6fb73ab0d.jpg

 

ntp[sec] in action:

ntpq.png.e68e361ff071f77a5da2d4b3059af1ab.png

 

Thanks a lot!

Groetjes,

 

p.s. I still have to figure out why I needed this :thumbup:

Link to post
Share on other sites

Hi @djurny, nice.  I'm glad that you liked my tutorial.

Re: "p.s. I still have to figure out why I needed this" :lol:
I have the same issue, but I like building things and I like the idea of having really accurate time.

I donated one to a friend in South Africa.  They have rolling power cuts which takes out the internet for several hours at a time.
He has a good UPS and some IoT devices that don't have real time clocks so they don't initialise properly without NTP time and he didn't have a suitable backup NTP server.   Technical overkill, but still a very economic solution to his problem.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

4 4