VFD Clock with SNMP and NTP

photo

So I always get annoyed with clocks. They NEVER do what I want. Either they need setting too often because of drift, or they don’t know Daylight savings time or they are not very readable. NONE of them fit my needs.

So, what to do? Build one.

Parts,
For a screen I am using a salvaged VFD from an old Fruit Machine. 16 character 14 segment display with serial input.
Main control board is an ardiuno clone from eBay.
Connectivity is via a WizNet5100 board.
There is also a Dallas 1-wire Temperature probe because why not?

Power is a small DC2DC module from eBay that takes 12v or so and gives 5v and 3.3v out.
The screen needs 12v so the main PSU is a normal 12v wall-wart. This goes to the Vreg module and then 5v out to the Arduino clone and 12v over to the display. The Wiznet board uses 3.3v so that comes off the module too.

Output,
The screen shows the date, dd.mm then the time hh,mm,ss and finally the temp tt.tt
you can see from the shot above it was 11:33:21 and 24.25′c when I took this photo on the 4th Dec.

Features,
The internet connection is DHCP so no configuration of the device is required, it picks up it’s IP and hostname via DHCP on boot. This makes it pretty much plug and play anywhere there is a network socket.
The clock sets itself via NTP, so no buttons are needed!
What’s more it adjusts for Daylight savings time automatically. Adjustment is done every 24 hours at midnight, so this is also when Daylight savings is applied or not.
The Temperature is quite accurate using the Dallas 1-Wire sensor, certainly .00 of a degree is more than I need to know when the only question is should I wear a T-Shirt or Jumper?
An HTTP server displays all the information on a dedicated web page, full time/date and uptime etc.
It detects the Dallas 1-wire and shows the address on the webpage as well as the DHCP information on it’s IP and Hostname.
Lastly I put an SNMP server in it, all info is available over SNMP.
The device name is a get only value that is set from the DHCP request so you can change it’s hostname by configuring the DHCP server correctly.
The standard Arduino DHCP library didn’t do what I wanted. I modified it so that I could get the hostname in the DHCP reply. This is passed back to the rest of the code and used to set the device name in the SNMP system oid.
The standard system OIDs are all supported including up-time.
Location/Contact are get/set fields so you can program those to say what you want.
I also setup an OID to show the temperature so I can remotely monitor this. I have a server running Cacti graphing the temp every 5 minutes from the clock.

Improvements,
I really needs a box with filter over the display but is quite readable in all lighting.
I would like to add an ambient light sensor and vary the brightness of the display to be dimmer at night. At the moment that isn’t an issue as it’s on my desk at work, but for in the bedroom it would need auto-dimming.
I have a humidity sensor that I would like to add too.
The PSU should be replaced by a POE receiver so it can run just off the Cat5e cable. Having Cat5e and PSU is a bit too messy :p

Summary,
I now have an always correct Clock that never needs setting, is clearly visible and shows the time/date/temp on one clear and concise screen. I can monitor it via HTTP and SNMP as well as graph the temperature over time :)

photo 1

One Response to “VFD Clock with SNMP and NTP”

  1. […] Our friend Pyrofer wrote in about his new VFD Clock. […]