Building the Astro Clock

In the last post, we took a look at a funky new sidereal clock from the Oscilloclock Lab. Now let’s take a look at what fanciness went into it!

The Hardware

[Alan], our astronomer protagonist, wanted to install all the electronics inside his Tektronix 620 X-Y Monitor. He didn’t need a nice fancy case.

Demonstration of a Lissajous circle
No pixels here! Circle Graphics

No problem! We supplied the Oscilloclock Bare – our stand-alone controller board that generates images and text rendered in smooth and silky Lissajous figures.

The board ships on a cast acrylic mount to make it easy to test externally, prior to installation into the host piece of equipment.

Next, we added the Oscilloclock Wave. This is a Wi-Fi adapter that allows an Oscilloclock to pull (Solar) time from NTP servers over the internet, keeping accurate time indefinitely.

Bare-bones Wave Core module

For [Alan], we left the cabling and aesthetics options open, and shipped the basic Wave Core module instead of the stand-alone type pictured above.

Finally, we included a decent quality power pack, to allow running the assembly prior to installation.

This would eventually be eliminated by powering the unit from the Tek 620’s internal supply itself.

The software – Sidereal time enhancements

To transform the Oscilloclock Bare into the astronomically great Astro Clock that it is today, we needed sidereal time.

Querying the sidereal API. Easy as pie!

Easy! The US Naval Observatory Astronomical Applications Department provides a publicly available API for querying sidereal time, given a location.

The Oscilloclock Wave already had features to pull earthquake data from a similar API and push it to the Oscilloclock for display. Extending this for another API wasn’t astronomically difficult.

The Wave sports a bunch of advanced settings for particularly tweak-loving oscillofans out there. We just needed to add a few more! These are to enable querying and sending sidereal time to the Oscilloclock, and to set the location.

Setting up for sidereal time

But why not just calculate sidereal time?

Some readers may have guessed that formulae and code libraries for calculating sidereal time are readily available. Why didn’t we just implement the calculation in code, and avoid depending on an external API?

Our minimalist PIC 18F2680 even had a terrible bug at one point…

Well, I’ve mentioned before that the current revision Oscilloclock Control Board uses a minimal-specification microcontroller with very limited capabilities, and is heavily optimized by coding in assembly language.

Sadly, this chip was already jam-packed to the hilt, and there simply wasn’t any more space left for the code and run-time memory needed to calculate sidereal time internally.

And writing the necessary floating-point calculations in assembly would be no mean feat!

Why Assembly Code?

Because We Can.

But, it sure ain’t easy…

So NO – we couldn’t easily calculate sidereal time, and it was API Option full steam ahead!

Astro Screens!

Even with its minimalist microcontroller chip, we’ve managed to squeeze some amazing stuff into the Oscilloclock Control Board firmware.

For more of the weird and wacky, see Screens & Things!

For this build, we needed yet more screens.

First, we used our trusty Figure Creator software to render a rudimentary telescope into Circle Graphics sprite code.

Astro Clock splash screen

We then crafted a simple Astro Clock splash screen, by adding some random circles for stars and laying out basic text around the telescope.

Finally, we added some basic digital and analog clock screens, using the same telescope figure as a centrepiece. This was mostly straightforward, but the existing clock hand drawing code did need some tweaking, to reference either solar time or sidereal time depending on the active screen.

Done!

Invoiced. Paid. Shipped. Received. Treasured forever. Right?

Wrong!

Sidereal really sidelined…

A year after [Alan] received his lovely Astro Clock, the unhappenable happened. The Astronomical Applications API was taken down!

“undergoing modernization”… a harbinger of API death! Jan 2020 snap courtesy archive.org

The site was taken offline for a planned six months, for “modernization”. [Alan]’s sidereal clock was relegated to a normal solar Oscilloclock, albeit temporarily.

But as lovers of electron beams striking phosphor, we always look at the bright side! Six months is still relatively short in astronomical terms! We resignedly marked “X” on the calendar, and bided our time.

But then… the unfathomable fathomed. The COVID-19 pandemic struck. The USNO site modernisation was completely halted – very likely deprioritised in the midst of indiscriminate illness, clinical chaos, and staff shortages.

Halted… 2 years later, still no luck… Mar 2022 snap courtesy archive.org

We waited, and waited, and waited. There were no fingernails remaining to chew when, after two and a half years, a revised API was finally made available at the end of 2022. Hooray! Thank the stars!

API resurrected

Fresh API documentation in hand, we set about modifying the Wave to use the fresh fruits of the USNO modernisation machine.

Fortunately, there were only minor changes to the API – a few more mandatory data fields, a change in date format and such. These required a relatively small amount of rework in the Wave’s firmware.

And … we were back in the amateur astronomy business.

Almost like a big Christmas present from Santa!

Was this [Alan]’s Christmas present? – Santa in your Clock

Do we regret taking the API approach?

It’s a good question. API death could happen at any time – possibly rendering the Astro Clock lifeless, listless, or lethargic yet again.

But, no. The decision not to calculate internally was valid, based on the known constraints. And we did our veritable utmost to revive poor [Alan]’s Astro Clock as soon as possible.

By the way, we at the Oscilloclock Lab certainly can’t complain about USNO’s API shutdown. We, too, have been heavily impacted by pandemic and other worldly events. As of this posting, our formal activities, too, remain on pause…

… for now!


Curious about other Oscilloclocks that use APIs? Check out the AfterShock Clock, which taps into an earthquake API to display earthquakes in (almost) real-time on a lissajous-rendered map!

Astro Clock

A few years ago, we introduced Metropolis Time, a time system based on the 20-hour, two-shift days featured in Fritz Lang’s iconic movie Metropolis.

Since then, we’ve received a few requests to craft clocks that display some other calendar and time systems – from the ancient and archaic, to the religious, to the scientific.

That’s Astronomical!

Today’s exciting story began with a request from [Alan], a prominent amateur astronomer. He happened to have a lovely Tektronix 620 X-Y Monitor lying around, and wanted to turn it into a clock.

Well, that would be easy – the Oscilloclock Bare is a bare-bones controller assembly that can be used to drive an oscilloscope or XY monitor that meets certain requirements (for the techies: a DC coupled Z-axis amplifier). And the Tek 620 is perfect – wonderfully performant, and perfectly compatible. Job done! Right?

Oscilloclock Bare + Tek 620 + scientific passion = Astro Clock!

No way! [Alan] didn’t want just any old clock. The custom splash screen above was pretty cool, but could his clock display something called “sidereal time“?

Yes! Anything is possible, and here’s what we ended up delivering: several custom clock faces showing sidereal time (in both analog and digital formats), in addition to all the standard screens that are based on solar time.

The shipped Astro Clock assembly!

But what is sidereal time?

A Solar day

Well, most normal human beings and their clocks like to measure a 24 hour day by using the Sun as a reference point. One solar day is the time it takes for the Earth to spin on its axis enough and see the Sun at the same height in the sky as the previous day.

For example, let’s say it’s 1 May 2023. It’s lovely weather out, and you happen to notice that the Sun reached its highest point in the sky at 12:30 pm. The next day, 2 May, you would find the Sun at its highest point at — you guessed it! — 12:30 pm. And if you ignore man-made tweaks such as daylight savings, you find the Sun is always at its highest point at 12:30 pm*, year-round, looking from the same location.

*This is not quite true – because every day is slightly shorter or longer. But it averages out over the year.

A sidereal day

Sidereal time, on the other hand, uses the distant stars as a reference point to measure 24 hours. One sidereal day is the time it takes for the Earth to spin on its axis enough to see the same distant star at the same height in the sky as the previous day.

Because the Sun is so close, and a distant star is so (relatively) far, there is a difference in the length of a sidereal day compared to a solar day. A sidereal day turns out to be approximately 23 hours, 56 minutes, and 4.0905 seconds.

Confused? I don’t blame you. This video should help:

History and Sidereal clocks

According to this brilliant post, the concept and utility of sidereal time has been around a very long time. The length of a sidereal day was even calculated to a surprisingly high level of accuracy some 1,500 years ago!

Here are two surviving sidereal clocks that were made “recently” – just a few centuries ago.

But who on Earth would use sidereal time?

Astronomers would.

Most people don’t look at the boring old Sun all the time. We look out to the stars and galaxies far, far beyond our solar system. If an astronomer wants to track the position of Betelgeuse day after day, she can record the sidereal time that she saw it, and know that it’ll be at the same ascension at the same sidereal time the following day. Brilliant!

Mariners and Astronauts would.

They can fix their location even when the Sun is not visible, by observing the position of the stars and calculating their position back from the current sidereal time. Life-saving!

Oscilloclock Labs would.

Because we can.


In the next post, we’ll take a look at the build. What hardware went into this Astro Clock? How on earth does it tick? Can you figure it out?

Screens & Things

Recently I had an enquiry from [Frank], who had just begun a life-long love affair with scope clocks by purchasing one on eBay. The clock was great – but he felt that the two available screens (simple analogue and digital clock faces) lacked a certain oomph.

He then stumbled across Oscilloclock.com, and in his smitten state immediately reached out with his number one question: just what screens are available on an Oscilloclock?

Well, let me save Frank’s time trawling through years of blog posts. Right here in one place are most of the Oscilloclock screens and features created to date.

Enjoy the show!

Standard Time Screens

These stock-standard analogue and digital time screens may be quite simple, but they do evoke the ‘retro’ look that most people appreciate.

And you can flip a menu setting to display days, months, years in Japanese:

There are also some ‘random’ screens that add in a bit of dynamic visual entertainment:

  • Random number screen
  • Random letter sequence screen
  • Random four letter word screen (clean words only, by default!)
  • Random phrase screen (the phrase list is typically customized to a theme)

And of course the mesmerizing Timedrops screen:

Themed Screens and Features

… These themed features were developed more recently, and can be added for a small fee to help cover development costs!

Astroclock (Sidereal Time)

External XY input

OscilloTerm (serial terminal)

Oscilloblock (lego)

Metropolis

Aftershock Clock (Earthquake display)

Unbirthday Clock

War Games

Logo screens

Over the years many folks have requested that I render custom logos in Circle Graphics. Here are some examples:

“Seasonal Treats”

Up next are some fun, mildly interactive animation features. Not exactly screens per se, these animations pop up after a predefined period of inactivity – but only during certain months of the year. Can you guess which months?

Boo!
Santa in your Clock!

Menu screens

There are far too many configuration menu and test screens to present here. Fiddle to your heart’s content!



Q. How are screens switched?

Screens are switched simply by rotating the control knob in one direction or other.

There is also a configurable auto-switch feature; the screen is changed every 90 seconds in a predefined order (with the exception of some animation screens). The display time is configurable, and the auto-switch feature can also be turned off for those who prefer to switch screens manually.

Q. How are screens selected & configured?

Customers can request screens to include and/or specify the switching order. The configuration is done here in the lab before clocks are delivered.

Oscilloclock also provides a firmware upgrade kit, which allows the customer to upload a revised version of the firmware into the clock themselves. Using this, updates to screens and other features can be uploaded without shipping the clock back to the lab.

Q. What is the process for rendering a custom screen or logo?

We typically prepare a mock-up based on the customer’s description, sketch, or image file. This is tweaked as needed until the screen looks just right to the customer.



Like what you see? Contact me!

VectorClock Reloaded!

Aside

Fresh from Oscilloclock Labs – a new VectorClock creation, commissioned for the office of a world-famous film and television director:

Tek 520 VectorClock - S/N 002 (image published with permission of the owner)

Tek 520 VectorClock – S/N 002 (image published with permission of the owner)

This unit is based on an original Tektronix 520 vectorscope, which is the predecessor of the 520A that was used in the first VectorClock, described here. This custom conversion employs several key enhancements, and performance has never been better!

Be sure to check out videos on my YouTube channel.

Making the Heathkit Oscilloclock

Last month’s post about the Heathkit Oscilloclock generated tremendous interest, and I’ve heard from several folks keen to try their hand at preserving their own beloved instruments.

… so let’s take a brief look at what was involved in the Heathkit OR-1 conversion!

Heathkit Oscilloclock - inside

Approaches to conversion…

There are many approaches to retrofitting a scope into an Oscilloclock, but it really boils down to how much of the original circuit you want to re-use, vs. what you will bypass with Oscilloclock boards.

Continue reading

A Heathkit Oscilloclock!

Anyone familiar with Heathkit®?

From 1947 to 1992, the U.S. based Heath Company produced electronic kits for everything you can imagine: radios, TVs, computers, robots, ham gear, and electronic test equipment. Yes, you guessed it – they also produced kits for oscilloscopes!

My Grandpa purchased one such scope, the Heathkit OR-1, around 1960. He wanted to kick off a new career in electronics repair, and the ‘build-your-own-equipment’ approach to training was in full bloom at the time. Also, since this was before the era of cheap overseas manufacturing, he could buy a Heathkit far cheaper than an assembled scope.

Heathkit OR-1 manual - a work of art

Heathkit OR-1 manual – a work of art

Unfortunately, Grandpa’s electronics career never really took off. But decades later, he introduced me to his gorgeous oscilloscope, and boy – did that kick MY career off! Much later, the OR-1 came to live with me. (You can read a bit more about my affinity for this scope in my History page.)

The problem is, I have too many oscilloscopes. But I don’t have enough Oscilloclocks. What more fitting way to keep Grandpa’s legacy alive, than to retrofit his Heathkit?

Heathkit OR-1 Oscilloclock

Heathkit Oscilloclock - Splash and Clock

Special features

Continue reading

Font & Figure Creator!

Those of you who own, or are building, an Oscilloclock may have realized how tedious it is to create a new character or drawing. My little Casper (October, Seasonal Treats post) required a grueling 5 hours to get him looking good!

Casper - as drawn by my son (L) and then the Oscilloclock (R)

Casper – as drawn by my son (L) and then the Oscilloclock (R)

The current method – Painful

I have another blog post series in progress describing the theory behind Circle Graphics figure display, so I won’t elaborate on details, but the current process of getting a figure from paper to screen is very much manual:

  1. Roughly sketch out your figure on graph paper.
  2. Split out your lines and curves into blanked circle and line segments.
  3. For each segment, roughly ascertain the circle’s radius (width and height) and centre coordinates.
  4. Type the numbers into the code file, in PIC assembly language syntax.
  5. Build the code and Program the PIC.
Easy?

NO.The figure looks NOTHING like you expect. The size is wrong. The edges don’t meet up. The curvature is out. The thing is upside down. All of the above!

  • Repeat steps 3, 4, 5 for several hours. Drink coffee. Redraw and repeat for yet another few hours.

  • Finally – Celebrate the birth of a new figure!

The Easier Way

The new Oscilloclock Figure Creator utility allows you to easily create and modify font characters, graphic images, and sprites – interactively.

Continue reading

Circle Graphics – Lissajous figures

By the time you read this post, you must have seen the term “Circle Graphics” in a thousand places across the site.

In fact, “Circle Graphics” is not an official term – I just use it to describe how shapes are drawn on these clocks:

Everything you see on this screen is made up of CIRCLES! Blank out part of a circle and you get an arc. Squish an arc and you get a line. This clock simply draws circles, lines, and arcs of different sizes at various points around the screen. It does it quickly. And it does it very, very well!

The effect of using circles is beautiful – shapes are smooth and precise, with no jagged edges or pixelation.

Beautiful circles with no jagged edges

Making “perfect” circles

I carry on as if it were some incredible new concept or discovery, like the Higgs boson. But in fact, the analog technique of constructing perfect circles, ovals, and lines on a CRT is very, very old. These figures are really part of a class of shapes called Lissajous Figures.

Continue reading

Oscilloclock.com site is open!

This site is dedicated to showcasing my Scope Clock designs, and to sharing technical information openly to anyone interested in these vintage electronic timepieces.

What is an “(Oscillo)scope Clock”?

A unique style of clock that displays the time (and other fun things) on a CRT taken from an old oscilloscope. These clocks operate on a fusion of old and new electronics, and are often housed in beautifully crafted cases of wood, metal, or acrylic.

Continue reading