WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:07.440 align:start position:19%
This is my precision clock, the most
precise and most accurate wall clock you

00:00:05.760 --> 00:00:11.120 align:start position:19%
can get.
Until now.

00:00:09.640 --> 00:00:18.720 align:start position:19%
Introducing
the precision clock Mark IV.

00:00:14.040 --> 00:00:22.320 align:start position:19%
It's even more precise.
Yes, the time now reads out to the

00:00:20.280 --> 00:00:26.480 align:start position:19%
nearest millisecond and the entire
display has been redesigned so that it

00:00:24.440 --> 00:00:30.840 align:start position:19%
doesn't flicker even when filmed at very
high frame rates.

00:00:28.240 --> 00:00:35.360 align:start position:19%
The old display refreshed at about 330
hertz, which isn't bad if you're talking

00:00:33.320 --> 00:00:40.240 align:start position:19%
about a gaming monitor, but for a
precision clock, we can do better.

00:00:37.640 --> 00:00:46.840 align:start position:19%
The new display updates at up to 100,000
hertz and it's adjustable just in case.

00:00:44.840 --> 00:00:51.760 align:start position:19%
The display brightness still dims
automatically, but it doesn't rely on

00:00:48.760 --> 00:00:56.200 align:start position:19%
PWM. The brightness circuit is analog to
maximize the duty cycle.

00:00:54.240 --> 00:01:00.600 align:start position:19%
Of course, this extra digit means the
clock is now even wider. Already I had

00:00:59.200 --> 00:01:05.280 align:start position:19%
people complaining that the clock was
too wide, that we should have the time

00:01:02.520 --> 00:01:09.800 align:start position:19%
and date on separate rows. But if we do
that, we lose the aesthetic of it being

00:01:07.400 --> 00:01:14.440 align:start position:19%
an ISO time stamp.
Well, the only way to please everyone

00:01:12.160 --> 00:01:18.160 align:start position:19%
was to give it an articulated joint so
that it could transform.

00:01:16.440 --> 00:01:25.120 align:start position:19%
There's a hall sensor so the top half
rotates what it displays automatically.

00:01:22.080 --> 00:01:28.920 align:start position:19%
This substantially complicates the
design of the clock. But we've not even

00:01:27.120 --> 00:01:32.760 align:start position:19%
got to the good bit yet.
On the back of the clock, we have a GPS

00:01:30.880 --> 00:01:36.600 align:start position:19%
module which gives us a very accurate
time pulse. We have two

00:01:34.480 --> 00:01:43.200 align:start position:19%
microcontrollers, one of which has an 80
megahertz ARM Cortex M4 with FPU. We

00:01:40.200 --> 00:01:46.600 align:start position:19%
also have 16 megabytes of flash memory.
All of which might seem a bit much for a

00:01:45.440 --> 00:01:51.960 align:start position:19%
clock.
But on board that flash memory, we have

00:01:49.040 --> 00:01:56.600 align:start position:19%
a simplified world atlas extracted from
OpenStreetMap data that gives the

00:01:53.960 --> 00:02:01.200 align:start position:19%
country and time zone borders.
We also have a compressed, processed

00:01:58.560 --> 00:02:05.840 align:start position:19%
version of the Olson timezone database.
And that ARM Cortex-M4 snorts all of

00:02:03.479 --> 00:02:10.119 align:start position:19%
this in, looks at the GPS position, and
performs a horrendous point-in-polygon

00:02:07.880 --> 00:02:13.920 align:start position:19%
algorithm in order to figure out which
country we're in, what the timezone

00:02:11.920 --> 00:02:19.160 align:start position:19%
offset is, what the daylight saving
rules are, and finally figures out what

00:02:16.800 --> 00:02:22.959 align:start position:19%
the time is.
That's right. You can take this clock

00:02:21.040 --> 00:02:26.240 align:start position:19%
anywhere and it will tell you what the
local time is.

00:02:25.000 --> 00:02:30.000 align:start position:19%
You can carry it across a timezone
border and it will update.

00:02:28.560 --> 00:02:33.720 align:start position:19%
You could take it out to sea or the
middle of the desert and it will tell

00:02:31.560 --> 00:02:38.000 align:start position:19%
you what the local time is according to
the timezone database.

00:02:35.600 --> 00:02:43.120 align:start position:19%
It will even work on Lord Howe Island,
where during daylight saving they put

00:02:39.920 --> 00:02:48.959 align:start position:19%
their clocks forward by half an hour.
No need for Wi-Fi or networking, no need

00:02:45.840 --> 00:02:53.040 align:start position:19%
for a SIM card or cellular modem, no
longwave antenna,

00:02:50.600 --> 00:02:57.480 align:start position:19%
just GPS.
This zone detection is based on the work

00:02:55.040 --> 00:03:01.519 align:start position:19%
of Evan Siroky, who created the timezone
boundary builder, and Berthold

00:02:59.600 --> 00:03:05.680 align:start position:19%
Vandenberg, who created a reference
implementation on how to use it.

00:03:04.080 --> 00:03:09.680 align:start position:19%
What I've done here is ported to a
bare-metal embedded system along with

00:03:07.959 --> 00:03:13.600 align:start position:19%
the timezone database so that it
functions as a completely self-contained

00:03:11.680 --> 00:03:18.680 align:start position:19%
unit.
Eventually, the timezone data will go

00:03:15.600 --> 00:03:23.040 align:start position:19%
out of date. Timezone rules and even
country borders are not set in stone,

00:03:20.959 --> 00:03:26.480 align:start position:19%
but for when that happens, we have a USB
port, which enumerates as a mass storage

00:03:25.360 --> 00:03:30.800 align:start position:19%
device.
Updating the database is as simple as

00:03:28.440 --> 00:03:34.880 align:start position:19%
copying the files across.
Since it was easy enough to add, this

00:03:32.640 --> 00:03:38.200 align:start position:19%
clock also supports multiple display
modes.

00:03:36.040 --> 00:03:43.760 align:start position:19%
Along with ISO date, we have ISO
ordinal, that's day of year, ISO week,

00:03:41.680 --> 00:03:48.360 align:start position:19%
the weird financial one,
decimal Unix timestamp, which pleasingly

00:03:46.440 --> 00:03:52.120 align:start position:19%
fits into 10 digits,
Julian date,

00:03:49.880 --> 00:03:55.600 align:start position:19%
modified Julian date.
We even implemented a high-precision

00:03:53.960 --> 00:03:59.440 align:start position:19%
countdown mode.
But if that's not enough, adding new

00:03:57.320 --> 00:04:05.760 align:start position:19%
display modes is easy because firmware
updates are as simple as drag and drop.

00:04:02.320 --> 00:04:05.760 align:start position:19%
No drivers needed.

00:04:05.960 --> 00:04:13.440 align:start position:19%
But perhaps my favorite feature of this
clock is that the precision is dynamic.

00:04:10.920 --> 00:04:17.519 align:start position:19%
If it loses GPS signal or if it's been
turned off for a while and only has the

00:04:15.440 --> 00:04:20.600 align:start position:19%
coin-cell powered quartz crystal to go
by,

00:04:18.519 --> 00:04:24.720 align:start position:19%
then the last few digits of the display
start to disappear.

00:04:22.800 --> 00:04:30.000 align:start position:19%
In other words, the precision of the
display implies the tolerance of the

00:04:27.280 --> 00:04:33.800 align:start position:19%
current time.
They say that a man with one clock knows

00:04:32.040 --> 00:04:38.240 align:start position:19%
what time it is, but a man with two
clocks is never sure.

00:04:36.000 --> 00:04:41.680 align:start position:19%
Unless, of course, those clocks display
a tolerance.

00:04:40.440 --> 00:04:45.360 align:start position:19%
If I look at the clock and the
milliseconds is ticking, I know that the

00:04:43.960 --> 00:04:48.800 align:start position:19%
time is accurate to within a
millisecond.

00:04:46.760 --> 00:04:53.240 align:start position:19%
If the last digit disappears, then I
know that the time it displays is only

00:04:50.440 --> 00:04:56.840 align:start position:19%
accurate to within 10 milliseconds.
And if the last two digits disappear,

00:04:55.200 --> 00:05:00.440 align:start position:19%
well, at that point it's just not worth
bothering with, but at least we know

00:04:58.680 --> 00:05:05.520 align:start position:19%
that the time it displays is not
accurate. It never implies an accuracy

00:05:03.400 --> 00:05:08.600 align:start position:19%
that it doesn't have.
And now that I've experienced this,

00:05:07.480 --> 00:05:13.840 align:start position:19%
I don't understand why it's not a
feature of all clocks.

00:05:12.200 --> 00:05:17.919 align:start position:19%
In a previous video, I compared my
precision clock against a commercially

00:05:15.560 --> 00:05:21.680 align:start position:19%
made radio-controlled clock, which I
found to be a lot less accurate than I'd

00:05:19.600 --> 00:05:26.560 align:start position:19%
expected, even accounting for the fact
that it doesn't correct for the speed of

00:05:23.040 --> 00:05:30.320 align:start position:19%
light delay, which GPS does.
The truth is, this radio-controlled

00:05:28.120 --> 00:05:34.880 align:start position:19%
clock only attempts to synchronize once
per day, and between syncs, it will

00:05:32.600 --> 00:05:38.280 align:start position:19%
drift as much as any quartz clock, maybe
half a second or more.

00:05:37.120 --> 00:05:42.520 align:start position:19%
Those tests were done using a
consumer-grade 1,000 frame per second

00:05:40.440 --> 00:05:45.919 align:start position:19%
camera, and I did use the same camera
for the development of the Mark IV,

00:05:44.480 --> 00:05:49.840 align:start position:19%
even though it's not quite fast enough
to be helpful.

00:05:47.720 --> 00:05:55.080 align:start position:19%
Interestingly, the viewfinder decimates
the frame rate. So, when we preview the

00:05:51.760 --> 00:05:58.480 align:start position:19%
clock, the last digit appears static.
Yet, it still has a rolling shutter

00:05:56.360 --> 00:06:04.440 align:start position:19%
effect. So, when we tilt the frame up
and down, the last digit changes.

00:06:02.840 --> 00:06:09.760 align:start position:19%
But, this doesn't prove that the clock
works. So, I made some inquiries and

00:06:06.760 --> 00:06:15.080 align:start position:19%
befriended a local studio called Pirate,
who very kindly gave me some time on a

00:06:11.880 --> 00:06:18.280 align:start position:19%
Phantom Flex 4K.
We first filmed it at 3,000 frames per

00:06:17.200 --> 00:06:23.680 align:start position:19%
second.
The important thing to note in this

00:06:19.680 --> 00:06:28.200 align:start position:19%
footage is the PPS LED here.
The rising edge of the PPS signal

00:06:25.600 --> 00:06:31.840 align:start position:19%
signifies the start of the UTC second
with exceptional accuracy.

00:06:30.360 --> 00:06:37.480 align:start position:19%
So, the goal is to have our display
rollover at exactly the same moment that

00:06:34.480 --> 00:06:41.160 align:start position:19%
the LED lights up.
Perfect.

00:06:39.840 --> 00:06:45.120 align:start position:19%
It took us a while to figure out how to
do this, but if you drop the resolution,

00:06:43.320 --> 00:06:48.520 align:start position:19%
it's possible to reach much higher frame
rates with this camera.

00:06:46.840 --> 00:06:53.480 align:start position:19%
Here's footage of the clock face at
14,000 frames per second.

00:06:51.760 --> 00:06:57.720 align:start position:19%
You can see that unlike the digits, the
colons are driven using PWM.

00:06:59.040 --> 00:07:06.360 align:start position:19%
Finally, by squeezing the frame down to
just 16 pixels high, we were able to

00:07:03.680 --> 00:07:09.160 align:start position:19%
film the clock at 25,000 frames per
second.

00:07:07.760 --> 00:07:14.960 align:start position:19%
This is a development clock showing
debug data, but it's clear that the

00:07:11.200 --> 00:07:14.960 align:start position:19%
display is rock solid.

00:07:16.840 --> 00:07:22.600 align:start position:19%
If you want to know more about the
technical details of how this clock

00:07:20.200 --> 00:07:26.080 align:start position:19%
works, I've written a ridiculous number
of words on my website.

00:07:24.720 --> 00:07:30.800 align:start position:19%
And I might also do a follow-up video
with more of the tech details for those

00:07:27.760 --> 00:07:30.800 align:start position:19%
who really want it.

00:07:30.840 --> 00:07:37.960 align:start position:19%
I sank so much time into the development
of this clock, you have no idea.

00:07:35.560 --> 00:07:42.520 align:start position:19%
The plan was to sell it as a kit, but
when the pandemic-induced chip shortage

00:07:40.200 --> 00:07:45.560 align:start position:19%
hit, most of the parts became impossible
to get.

00:07:43.800 --> 00:07:50.160 align:start position:19%
I didn't have the heart to redesign the
clock, so I waited it out. And when the

00:07:48.080 --> 00:07:53.920 align:start position:19%
parts finally did come back into stock,
I bought a whole load of them without

00:07:51.920 --> 00:07:58.040 align:start position:19%
really thinking about it.
It was for this reason that I borrowed

00:07:55.880 --> 00:08:02.840 align:start position:19%
that pick and place machine I may have
mentioned a few times.

00:07:59.920 --> 00:08:06.120 align:start position:19%
I tried to assemble 100 precision clock
PCBs.

00:08:04.840 --> 00:08:09.280 align:start position:19%
It was
a learning experience.

00:08:07.920 --> 00:08:16.160 align:start position:19%
And I may have gotten slightly
distracted once or twice along the way.

00:08:13.160 --> 00:08:19.960 align:start position:19%
But I do now have some number of
populated circuit boards along with the

00:08:18.480 --> 00:08:23.280 align:start position:19%
rest of the bits needed to build the
kit.

00:08:21.080 --> 00:08:28.600 align:start position:19%
So, if you'd like to own a precision
clock Mark IV,

00:08:25.080 --> 00:08:28.600 align:start position:19%
then head over to my shop.

00:08:28.680 --> 00:08:33.280 align:start position:19%
I did unfortunately have to set the
price point quite a bit higher than I

00:08:31.400 --> 00:08:37.159 align:start position:19%
was hoping, but it's an accurate
reflection of how much work I've

00:08:34.880 --> 00:08:40.880 align:start position:19%
invested into the project.
The software for the clock is open

00:08:38.560 --> 00:08:43.599 align:start position:19%
source, and I'll publish the PCB files
soon as well.

00:08:44.240 --> 00:08:49.240 align:start position:19%
I originally wanted to end this video
with an artistic assembly montage of the

00:08:48.200 --> 00:08:52.640 align:start position:19%
kit,
but I don't think I could ever outdo the

00:08:50.760 --> 00:08:57.000 align:start position:19%
glorious musical sequence I made for the
previous precision clock.

00:08:54.920 --> 00:09:01.080 align:start position:19%
I might do something like that later
if the enthusiasm strikes.

00:08:59.320 --> 00:09:06.360 align:start position:19%
For now, I'll just say what a relief it
is to finally publish this. This project

00:09:03.480 --> 00:09:10.760 align:start position:19%
has hung over me for so long, but now,
at last, I'm finally free

00:09:09.080 --> 00:09:13.640 align:start position:19%
to start working on the precision clock
Mark V.

