กลับไปหน้ารวมไฟล์
how-to-make-simplest-ever-oscilloscope-clock-d99f20-en.md

Project Overview

The "Simplest Ever Oscilloscope Clock" is a remarkable fusion of vintage vacuum tube technology and modern IoT-enabled microcontrollers. By utilizing a small cathode ray tube (CRT) typically found in old radar or test equipment, this project creates an analog-style clock display that feels like a piece of 1950s laboratory equipment. Despite its "simplest" label, the project leverages the ESP32's powerful DAC capabilities and Wi-Fi connectivity to ensure high precision and automated time synchronization via the Network Time Protocol (NTP).

An oscilloscope clock is a unique and creative way to display the time using an oscilloscope, which is a test and measurement instrument typically used to visualize and analyze electronic signals. In one of my previous videos I presented you a way to make the simplest oscilloscope with a small 2 inch CRT tube. This time I will describe to you also a very simple way how to make a Oscilloscope Clock with the same CRT tube. There are several projects of this type on the Internet, but they are relatively complex for self-construction, so I decided to make an Oscilloscope clock in the simplest possible way. It even avoids the use of a mains transformer which is expensive and difficult to obtain, and initially the device works on 12V. But despite its simplicity, it is fully functional, highly adjustable, and has the option of automatically setting the time via the Internet. So it even outperforms more complex devices of this class.

Basically the device consists of two parts, and one is a signal generator usually made with the help of a microcontroller, and the other part is an X-Y mode oscilloscope that visualizes this signal in the form of an analog clock.

First I will focus on the signal generation part. It is extremely simple and uses only an ESP32 Microcontroller board without any external components.

The code is the work of Mauro Pintus, and I just made a small modification, so now with a button we can choose between a clock with standard or Roman numerals. If you enter the data of your local Wi-Fi network in the code, the time will be updated automatically via the Internet, and if you do not have the Internet, the initial time that will appear when the clock starts can also be adjusted in the code in the (given) lines:

int h=10; //Start Hour

int m=8; //Start Minutes

int s=37; //Start Seconds

This project is sponsored by PCBWay. Visit the PCBWay website and save big, with a time-limited promotion on purple solder mask. From September 1st to September 30th you can get 10 pcs of 2-layer 100x100mm PCBs in purple for only $5. PCBWay has all the services you need to create your project at the best price.

Otherwise, I successfully tested a version of the code where the time is set manually through three buttons, but for the sake of simplicity, I left this version out. This time I will not dwell on the installation of the code on ESP32 , as it is described in many detailed tutorials that you can find on the Internet. Regarding the connection method, pin 25 of ESP32 should be connected to X Input, and pin 26 to Y Input of oscilloscope. The ground from the microcontroller is connected to the ground from the scope. Also in one of my older videosyou can see how this clock works on a commercial Oscilloscope.

Next, I will briefly describe the method of making the X-Y mode oscilloscope. As I mentioned before, the device has a complete control of the position and size of the image, which is done with the help of four potentiometers, and there are also potentiometers for adjusting the intensity of the light as well as for focusing the image.

As in my previous oscilloscope project, I will also use an inexpensive DC-DC step-up for power supply, where with an input voltage of 12V, the output voltage can be continuously adjusted within the range of 45 to 390 volts.

So the complete device consists of the following components:

- 2 Inch CRT display type 5LO38I

- Step Up Power supply module 12V to 300V

- LM317 voltage regulator with which we get a voltage of 6.3V for heating the tubes

- Two EF80 tubes as horisontal and vertical deflection amplifiers

- Six control potentiometers

- "Mode" button

- several passive elements, resistors and capacitors,

- and ESP32 microcontroller board

At the input of the boost converter we bring 12V, which then increases to 350V. The output voltage can be precisely adjusted with this multiturn potentiometer. This high voltage serves to power the CRT display and the tubes. An input of LM317 voltage regulator is connected to the 12V , the output of which produces 6.3 volts used for heating the three tubes. Since the heating current reaches a value greater than 1A, the regulator must be mounted on an aluminum heatsink. I got the necessary 5V for powering the ESP32 microcontroller by connecting two diodes in series to the 6.3V output, which gives exactly 5V due to the voltage drop of the two diodes.

At the input of the boost converter we bring 12V, which then increases to 350V. The output voltage can be precisely adjusted with this multiturn potentiometer. This high voltage serves to power the CRT display and the tubes. An input of LM317 voltage regulator is connected to the 12V , the output of which produces 6.3 volts used for heating the three tubes. Since the heating current reaches a value greater than 1A, the regulator must be mounted on an aluminum heatsink. I got the necessary 5V for powering the ESP32 microcontroller by connecting two diodes in series to the 6.3V output, which gives exactly 5V due to the voltage drop of the two diodes.

And now let's see how the device works in real conditions. After switching on, a certain time should pass for the cathodes of the tubes to heat up, and an image to appear on the CRT screen. During this time, the ESP32 updates the correct time if the Wi-Fi credentials are entered in the code, and so the clock starts working. Let's see how the picture adjustment potentiometers react.

I should mention that it takes a few to ten minutes for the image to finally stabilize on the screen. As I mentioned before, with the help of a button we can choose between a clock with standard and Roman numerals.

The screen should be shielded with a metal foil connected to grounding so that there is no influence of external electromagnetic fields on it. I haven't had a chance to try it, but I assume that the same circuit with minimal or no modifications should work with similar CRT tubes.

Very interesting is the option to draw various figures or text on the X-Y oscilloscope. If we bring signals with a certain frequency and shape to the inputs of the X-Y oscilloscope, we can get any figures, text or images on the screen.

There are several PC Applications, which generate a signal on the sound card which is then converted into an image or text. For this purpose I have installed a switch on the back side through which we can choose the type of input signal between the MCU Clock, or an external signal source, in this case a PC sound card.

The device is installed in a suitable box made of PVC material with a thickness of 5 mm, and covered with colored self-adhesive wallpaper.

And finally a short conclusion:

Building an oscilloscope clock can be a very fun and educational electronics project. It combines aspects of programming, circuit design, and creativity. But we should keep in mind that this clock is almost unreadable in daylight, which is a characteristic of the CRT display itself, so those beautiful pictures of such devices that you see on the Internet are actually taken in a partially darkened environment. However, it is a great pleasure, especially for the younger generations of self-builders, to make such a retro clock, bearing in mind that for a relatively low price, remaining supplies of CRT screens and vacuum tubes can be obtained on internet.

SAFETY NOTE: Please do not attempt to recreate the experiments shown on this video unless you are familiar with High Voltage Safety Techniques! Direct Current even above 60V maybe lethal, even when the AC supply voltage has been disconnected due to the stored energy in the capacitors. I have no responsibility on any hazards caused by the circuit. Be very careful. This is a humble request.

Technical Deep-Dive

The engineering heart of this clock is the X-Y deflection system. Unlike standard TV screens that use electromagnetic coils, small CRT tubes like the 5LO38I use electrostatic deflection plates.

  • ESP32 Waveform Generation: The ESP32 utilizes its two internal 8-bit Digital-to-Analog Converters (DACs) on GPIO 25 and 26. The software generates high-frequency periodic signals for both the horizontal (X) and vertical (Y) axes. By modulating the amplitude and phase of these signals relative to each other, the beam can draw complex vector graphics, including clock hands and numbering.
  • Tube Amplification Strategy: The 0-3.3V signals from the ESP32 are insufficient to move the electron beam across the phosphor screen. Two EF80 vacuum tubes (high-frequency pentodes) are configured as differential amplifiers. These tubes take the low-voltage DAC signals and scale them up to the several hundred volts required by the CRT's deflection plates.
  • High Voltage Generation: A compact DC-DC boost converter is employed to step up the 12V input to approximately 350V DC. This high voltage acts as the anode potential for the CRT, accelerating electrons towards the screen, and also provides the B+ line for the vacuum tubes.
  • Heater/Filament Supply: Vacuum tubes require their cathodes to be heated to emit electrons (thermionic emission). An LM317 linear regulator is tuned to 6.3V, providing the current-heavy filament power for both the EF80 tubes and the CRT itself.

User Adjustments and Stabilization

The clock features multiple potentiometers to counteract component tolerances and environmental factors:

  1. Horizontal/Vertical Centering: Offsets the bias voltage on the deflection plates to center the image.
  2. Focus: Adjusts the voltage on the CRT's focusing electrode to sharpen the vector lines.
  3. Intensity: Controls the brightness of the electron beam (grid voltage).
  4. Stabilization Period: Due to the nature of thermionic emission, the system requires 5–10 minutes for the tube cathodes to reach thermal equilibrium, after which the displayed clock face stabilizes in size and position.

ข้อมูล Frontmatter ดั้งเดิม

title: "How to make Simplest ever Oscilloscope Clock"
description: "Despite its simplicity, this Clock is fully functional, highly adjustable, and has the option of automatically setting the time via the Internet."
author: "mircemk"
category: "Screens & Displays"
tags:
  - "Clocks"
  - "Embedded"
  - "Games"
views: 68
likes: 0
price: 2450
difficulty: "Intermediate"
components:
  - "1x Grove - Button (P)"
  - "1x Soldering kit"
  - "1x XL6009 DC-DC Adjustable Step Up Voltage Booster Converter Module"
  - "1x CRT Display"
  - "6x 10kOhm potentiometer"
  - "1x Convertitore DC-DC step-down LM317"
  - "2x EF80"
  - "1x ESP32"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "054bb94e5b59dfac37fc6aa398da588deab3a0c4c33c867b03e7d7025f5d4380"
encryptedPayload: "U2FsdGVkX193BsV63CrEWqk4IxpxgW3hoocE+b37hgrmhDMEzTuZvE7Z4ld1NmcUWBQcD+LUF8e5NkVEFu0BX6nVns06iMZwY2tPazB7Bn4="
seoDescription: "Build the simplest Oscilloscope Clock with Internet time sync and highly adjustable features."
videoLinks:
  - "https://youtu.be/s0NppvGP4bw"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/how-to-make-simplest-ever-oscilloscope-clock-d99f20_cover.jpg"
lang: "en"