Tag: ブラウン管

  • Zork on an OscilloTerm!

    Today’s story began with a mail from [Eric], who’d read up on the Oscilloclock 3-inch VGA Assembly and wondered if it could be used to create an old-school serial terminal display on a vintage oscilloscope CRT.

    Yes it could! In fact, the Oscilloclock Lab did one better. Instead of just a VGA display controlled by an external device, we developed native terminal firmware that accepts DEC VT52 compatible commands over a serial port, and renders all text and graphics using beautiful, curvy Lissajous figures.

    The stuff of dreams. The OscilloTerm Exo B7S4.

    Demonstrating basic terminal features, connecting to a PC via serial cable
    Oh, did I mention? It’s a clock as well!

    Zork, anyone?

    Ultimately, [Eric] just wanted to play Zork. And together we made it happen.

    The CRT. The Case.

    [Eric] wanted a sleek ‘skeleton’ look. His choice of a gorgeous B7S4 CRT, mounted in custom-machined cast acrylic supports, exposes all glassware and allows for a titillating rear viewing experience.

    CRT rings and supports – originally introduced for the Oscilloblock “Summer Dusk” edition

    And with a high-transparency cast acrylic case housing the electronics, the OscilloTerm Exo can be enjoyed from every angle!

    Astute readers may wonder about the 2.1 kilovolts of high voltage coursing through their innocent-looking device. Rest assured! All internal wiring is sealed off, and Oscilloclock CRT harnesses are hand-crafted with heavy insulation and precautions taken against dust, prying fingers, rats, and even salivating cats.

    An O-ring blocks dust from entering the CRT/socket gap (picture from the Oscilloblock)

    This case and CRT mounting variation is branded the Oscilloclock Exo, and has proven its wow-factor at several public exhibits to date. We certainly love it, and [Eric] did too!

    The Terminal.

    This post would never be complete without showing you what real serial terminals from the 1970’s looked like, and explaining what they actually did! Here goes…

    Terminals such as the above were physical input/output console devices, back when computers were the size of massive refrigerators, and the operator would sit remotely – at a desk in a separate area, or even a different room.

    Gregory Lloyd, CC BY 2.0, via Wikimedia Commons

    The terminal and the remote computer were connected via a cable, and would communicate each other by sending data back and forth across the cable; mainly terminal commands and ascii encoded text. Most commonly, a serial communication protocol was used to get the data safely from one end to the other – and hence the devices were known as serial terminals or even serial consoles.

    Amusingly, they were also called dumb terminals, because they had no computing power of their own; they were only extensions of the computer to which they were connected.

    The OscilloTerm Terminal.

    [Eric] wanted a special Oscilloclock that he could also operate as a terminal, connecting it to a remote computer via cable. The remote computer would control the display, using the same serial protocol and commands as an ancient dumb terminal.

    But an Oscilloclock is anything but dumb. [Eric] wanted to keep all the standard exciting screens and features of his Oscilloclock active, and only display the special Terminal screen when the remote computer started to send commands. Then, when the commands stopped, the Oscilloclock should go back to the screen it was on!

    His wish was our command! Here’s a demo of smart screen switching in the final product:

    Some technical Comments

    Naturally, the terminal emulator firmware was written entirely in assembly language.

    PIC18F2680 – the Oscilloclock workhorse.

    We use assembly mainly because the minimalist PIC microcontroller used in the current Control Board revision has only 64K ROM, and an unbelievable 3328 bytes (yes, BYTES!) of RAM. To squeeze all the lovely Oscilloclock features in, while driving Circle Graphics real-time processing, the code and memory space has to be clean, tight, and heavily optimized at the machine code level.

    Assembly. It’s the ONLY way to squeeze it all in!

    For even more technical details, such as the list of VT52 (and VT100) commands supported by the OscilloTerm, and the various configuration parameters that can be tweaked to make the terminal emulator more ‘friendly’ when connecting to a specific device, check out the Support page. Worth a visit!

    Why Zork? And HOW?

    Zork is an interactive adventure game. But it’s old. And it’s text-based, because it was run on computers long before fancy graphics capabilities were widely available. The player explores mysterious locations, solves puzzles, and collects treasures while avoiding various hazards and creatures. All by reading text and typing commands and responses!

    [Eric] was able to play Zork by loading the game’s Z-code into a Z-machine interpreter known as Frotz, on a PC connected to the OscilloTerm. But there was trickery involved!

    1. He had to recompile a version of dfrotz (the dumb terminal version of frotz) to remove the status bar and audio from the game.
    2. He needed to wrap the dfrotz output with a custom Python script to support the OscilloTerm’s 16×8 screen and simulate the required baud rate.

    But now that’s done, he can play any Infocom game that runs in dfrotz on his OscilloTerm!

    What’s next?

    Readers would probably agree that adding a generative AI feature would be incredibly cool. For example, the War Games feature is great, but the text on the screens is all pre-programmed. What if you could interact more naturally with your Oscilloclock?

    Another one for the list!


    Are you a serial serial terminal collector? Do you want to play Zork on the oddest device imaginable? Or, you fancy a clock in the Oscilloclock Exo range? Contact us and let us know!

  • 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
    Metropolis Time

    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?

  • New Year’s Resolution!

    Q: “What’s your New Year’s Resolution?
    A: “Why, 1024 x 768, of course!”

    Geeky jokes aside, here at the Oscilloclock lab we DO have a form of New Year’s resolution! 「日進月歩Nisshin-geppo, which loosely translates as “Steady progress day by day“, reflects the goal to complete the the once-in-a-decade re-design work, and resume crafting beautiful Oscilloclock products. It also highlights confidence that issues currently facing the wider world will be overcome, one step at a time.

    In keeping with local traditions, [Oscilloboy] wrote the slogan in Japanese calligraphy. But there, tradition ended and true joy began! Behold, courtesy of an Oscilloclock VGA Core assembly, Oscilloclock’s 2021 New Year’s resolution on a beautiful old 7-inch oscilloscope!

    The Setup

    After choosing an appropriately meaningful four-character phrase for our resolution, I asked [Oscilloboy] to write out the characters. Bucking with tradition, we used standard white A4 paper instead of calligraphy paper. The ink took more time to dry, but we wanted to maximize the contrast.

    After scanning the handwritten characters and inverting the images, I created a rolling video in 1024 x 768 resolution. (See? The joke at the beginning of the post about resolution was serious, after all!)

    I then played this through an Oscilloclock VGA Core assembly, which is essentially a graphics card that allows you to use a beautiful old CRT as a rudimentary computer display. (For earlier write-ups, see VGA display… On a 3″ scope tube! and The VGA Cube! .

    The assembly used here features a late prototype of the Revision 3 Power Board, which I have been working on for almost a year. I won’t go into all the bells & whistles yet. Stay tuned!

    A VGA Core assembly – displays monochrome images from VGA, SVGA and XGA inputs

    Unlike a permanent Oscilloclock conversion (see the Gallery for examples), this was only a temporary setup. The VGA Core was positioned externally, with the harness routed into the 7VP1(F) CRT via the rear of one of the side panels. No invasive procedures needed!

    Just LOOK at that beautiful CRT socket – brown Bakelite!

    No VGA socket on your ultramodern slim notebook of choice? No problem – use an off-the-shelf HDMI to VGA converter!

    And voila – the final result! Japanese calligraphy on a vintage 7″ oscilloscope!


    About the Model – A rare 1963 Nitsuki Oscilloscope

    Nitsuki is the brand name of Japan Communication Equipment Co., Ltd., a specialist in television and microwave broadcasting systems. The firm’s English name was originally Nihon Tsushinki Co., Ltd., so you can see how the Nitsuki moniker came about.

    Check out this exquisite cap on the pilot lamp!

    By 1963, the Japan domestic test equipment market was mature and quite competitive. English language labeling had become stock-standard. This scope is one of very few units I have ever obtained that has Japanese labeling. How appropriate for today’s display!

    Japanese labeling – a rarity!

    Some of the higher-quality oscilloscopes of this era featured flip-latches and detachable side panels, for easy access. See the Toshiba ST-1248D for another example. These scopes are infinitely more enjoyable to work with and show off than scopes with a slide-out chassis.

    This model is also quite unusual for its time in that most of the components are located under the chassis! The valves (tubes, if you prefer) are even mounted horizontally. Nitsuki used very robust construction techniques, including very tidy cable lacing.

    In fact, their design was so robust that the scope functions almost perfectly today (except for some triggering instability), yet there is no evidence of major repairs in the last 57 years!

    Back to its natural self – a nice old 7-inch 1963 oscilloscope!

    Like what you see?

    The Oscilloclock lab struggled in 2020 due to worldly events, but NOW – day by day, step by step, the newly designed Oscilloclock boards are at last taking shape! Does your New Year’s ‘resolution’ for your next project specify 1024 x 768? Or perhaps you’re into displaying fancy calligraphy on vintage CRTs? Let me know.

    And as always, see previous posts and the Gallery for info on other unique creations!


    Critical Update 25 December 2021

    Well. Christmas Day 2021, and [Oscillowife] — the chief editor, advisor and critic extraordinaire — just informed me that I had placed [Oscilloboy]’s first character「upside down when creating this post! Apologies to our readers for the gross oversight.

    It’s been 12 months! But better late than never to eat humble pie…
  • For those cat lovers out there, let me present one beautiful kitten who knows his place in life: bedded down amongst some beautiful Brimar CRTs!

    Cathode-ray Cat

    This picture, submitted by an Oscilloclock aficionado, proves that there ARE others with an intense passion for CRTs out there. And this group now includes the feline species!

    Anyone out there have a capacity-controlled canine? An electron-excitable echidna? Or a filly with a phosphor fetish? Let me know!