NTP clock using Raspberry Pi and 7-segment displays
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
7seg_clock.py
LICENSE
README.md
amptest.py
clock-wiring.PNG
ntpclock.sh

README.md

ntpclock

This project uses a Raspberry Pi show NTP diciplned time on 6 7-Segment LED displays

Bill of Materials

Setting up NTP

First, we need to set up NTP on the Raspberry Pi.

sudo apt-get install ntp

Then, if you want to, you can configure your own time servers in /etc/ntp.conf, but it will work just fine with the stock Debian NTP Pool servers. sudo nano /etc/ntp.conf

After changing the NTP conf, you need to restart the NTP deamon

sudo /etc/init.d/ntpd restart

Make sure your clock is running correctly by running the date command

date

Also remember to set your timezone

sudo dpkg-reconfigure tzdata

Copying the Repository

Setting the Python Code to Run at Startup

Copy the ntpclock.sh file to an appropriate directory on you Raspberry Pi, in my example I've created a new folder under /usr/local/ named ntpclock

Edit /etc/rc.local

sudo nano /etc/rc.local

and add the following line to the bottom

/usr/local/ntpclock/ntpclock.sh &

Wiring Everything Up

Wiring Diagram