Extremly Simple Oscilloscope Clock With ESP32

5,234

16

8

Introduction: Extremly Simple Oscilloscope Clock With ESP32

How to turn your old oscilloscope into an analog clock.

Step 1: Building...

This is the simplest way to generate an analog clock on the oscilloscope display. The oscilloscope should be two-channel, one channel for the "x" axis and the other for "y". On the GitHub page of Mauro Pintus, there is a detailed description and code that use internal DACs of ESP32 microcontroller and WiFi ntp clock sync.By default this sketch will start from a fix time 10:08:37 everityme you reset the board.

To change it, modify the variables h,m,s below. To synchronize the clock with an NTP server, you have to install the library NTPtimeESP from Andreas Spiess. Then ncomment the line //#define NTP, removing the //. Edit the WiFi credential in place of Your SSID and Your PASS. Check in the serial monitor if it can reach the NTP server. The NTPtimeESP library was meant for the ESP8266 and you need to adit the file NTPtimeESP.h to use it with the ESP32. Open up the "NTPtimeESP.h" inside the library and replace the "#include " with "#include ".

Step 2: Schematic and Code

As you can see on the circuit, pin 25 of ESP32 is connected to "x" (channel 1) of oscilloscope, and pin 26 to "y" (channel 2). Then we select a X-Y mode of operation of the oscilloscope. Connecting is done with shielded cables.On the video you can see flickering in the image, which is a consequence of the outdated oscilloscope.

2 People Made This Project!

Recommendations

  • Anything Goes Contest

    Anything Goes Contest

8 Comments

0
blackman.richard
blackman.richard

Question 3 months ago

a nice addition would be to move the clock slightly around the display every few minutes so the image is not burned into the scope face.

0
DonH119
DonH119

9 months ago

I cannot get this to work! The arduino software keeps throwing error Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"
ESP32_OscilloscopeClock_v1.0:64:10: fatal error: driver/dac.h: No such file or directory
#include
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
driver/dac.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Thanks for help.

0
DonH119
DonH119

Reply 9 months ago

"It IS simple, I am just stupid!" - ElectroBOOM

1
mircemk
mircemk

Reply 9 months ago

You need to use ESP32 inbstead ArduinoUno board

0
DonH119
DonH119

Reply 9 months ago

OK I see what you mean. Thank you!!

0
DonH119
DonH119

9 months ago

OK! Success! The fault was me of course! I uploaded a video to I built this hope it posts soon! Thanks for your help! My setup is crude I need to order some parts to make it nice.

0
robot797
robot797

3 years ago

can you post the link to the esp32 that you use?

0
DonH119
DonH119

Reply 9 months ago

It says it's a Hiletgo Heltec ESP32 bUILT IN oled wIfi KIT 32. Link is heltec.cn. Thanks for replying