Go Down

Topic: Master Clock Mk2 (Read 1 time) previous topic - next topic

oliverb

Jun 08, 2014, 08:36 am Last Edit: Jun 08, 2014, 08:40 am by oliverb Reason: 1
I have been building my new Arduino DCF77 Master clock for some time now. The clock uses 1" (25mm) Green 7 segment displays, a Yellow LCD display, LEDs and Bluetooth to monitor time, decoding and clock pulses. The clock will drive my various slaves and clock chimes.

Mock up of approx design


The clock has auto display dimming and PIR detection to turn the 7 segment display and LCD back-light on and off when triggered by someone entering the room.




I have also fitted a Blue Tooth board so I can program/update my clock remotely from my Windows PC.  The Blue tooth module also means I can read the clock stats and test the PIR detection from my Android mobile.




The DCF77 signal is decoded using the fantastic new DCF77 library written by Udo Klein. See his site here http://blog.blinkenlight.net/experiments/dcf77/dcf77-library/

More details on my clocks progress including test videos  here http://home.btconnect.com/brettoliver1/Master_Clock_MK2/Master_Clock_MK2.htm

oliverb

#1
Jun 14, 2014, 06:50 pm Last Edit: Sep 03, 2014, 08:40 pm by oliverb Reason: 1
Completed Master Clock






The DCF77 signal is decoded using the fantastic new DCF77 library written by Udo Klein.


Latest 1 min test video shows clock from 09:00 to 09:01 and includes test of PIR auto display control.

http://youtu.be/Q6HFfloORoA

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

oliverb

#3
Sep 03, 2014, 08:49 pm Last Edit: Sep 03, 2014, 08:59 pm by oliverb Reason: 1
Master Clock Bluetooth  to Samsung S3 by Brett Oliver, on Flickr
Udo Klein has now added "Auto Tune" to his DCF77 library. When the DCF77 reception is good the DCF77 library now tunes the on-board quartz crystal to the DCF77 signal. In the event of the signal being lost the quartz crystal is able to keep the clock running for days without loosing a second.

I have now added this to my clock. The LCD display now also shows the tuned quartz crystal frequency and accuracy.
You can see a video of this working along with many others on my Master Clock Mk2 site here http://home.btconnect.com/brettoliver1/Master_Clock_MK2/Master_Clock_MK2.htm

The clock has the following functions

Arduino 328 Microprocessor is used to decode Time & date from the DCF77 "Atomic" Clock in Mainflingen near Frankfurt Germany

The DCF77 signal is decoded using the fantastic new DCF77 library written by Udo Klein meaning the clock stays in sync even with a massive amount of noise on the received DCF77 signal

Udo Klein's DCF77 library continually "Auto Tunes" the quartz crystal so in the rare event the signal can't be decoded the clock remains accurate within 1 sec over a number of days

The clock provides the following pulses to drive slave clocks 1 sec alternating, 30 sec, 1 min , 1 hour, 24 hr, 15 min chime of quarter hours, hourly chime of hours

Primary display of time in hours, minutes & seconds are displayed on 1" (26mm) green LED 7 segment displays

Secondary 4x20 I2C LCD display is used to display time & date, fast or slow seconds, summer winter correction, display brightness, sync information, signal quality, auto tune'd frequency, auto tuned quartz accuracy and summer winter time mode

The primary and secondary displays are auto dimmed using and LDR and Pulse Width Modulation

The primary and secondary displays are shutdown during daytime and are activated by Passive Infrared detection when someone enters the room

Manually triggered automatic Summer/Winter time correction of 30 second slave clocks

Blue-Tooth link for programming, clock pulse status and PIR adjusting

Auto leap second adjustment of 30 second slave and 1 second slave clocks time and date of leap second can be read via Blue-tooth on your PC or Android mobile or tablet

Recording of fast or slow 1 second slave clock pulses on the LCD display as well as time and date stamping of last fast or slow pulse accessible by Blue-Tooth on your PC or Android mobile or tablet



CrossRoads

How does the blue tooth programming work?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

oliverb

You just turn on the Blue tooth power switch choose the com port connected to the EZ Link Bluetooth Serial Board and upload as normal. It's exactly the same as programming over USB.

To read the clock info use a terminal program or use an Android device. I use an Android app called Blueterm.
Link below.
https://play.google.com/store/apps/details?id=es.pymasde.blueterm


oliverb

I have made a 1 min video in Ulta HD showing the clock working.

http://youtu.be/gwhSe5WHQ7c



CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

oliverb

Thanks Crossroads.
The Quarter chime is an electronic sample and the hour chime is an electromechanical Longcase clock bell struck by a modified 30 sec slave clock movement.


Go Up