Chapter 1 Oscilloscope
In this chapter, we will make a complex virtual instrument, oscilloscope. Oscilloscope is a widely used electronic measuring instrument. It can get the electrical signals not directly observed into visible image to facilitate the analysis and study of various electrical signals change process.
Project 1.1 Oscilloscope
Now, let’s use Processing and ESP32 board to create an oscilloscope.
Component List
ESP32-WROVER x1
|
GPIO Extension Board x1
|
Breadboard x1
|
|
Rotary potentiometer x1
|
Jumper M/M x3
|
Circuit
Use Pin4 (A10) port to detect the voltage of rotary potentiometer.
Schematic diagram |
Hardware connection |
|---|---|
|
|
Sketch
Sketch Oscilloscope
Use Processing to open Freenove Ultimate Starter Kit for ESP32CProcessingProcessingOscilloscopeOscilloscope.pde and click Run. If the connection succeeds, the follow will be shown:
The green line is the waveform acquisited. Rotate the potentiometer, then you can see changes of the waveform:
Disconnect the A10 port from the potentiometer and connect it to the Pin 2 port. Pin 2 port output is 0.5Hz square wave. As is shown below:
The left side of the software interface is a voltage scale, which is used to indicate the voltage of the waveform.
The “1000ms” on top left corner is the time of a square, and you can press “↑” and “↓” key on keyboard to adjust it.
The “0.00V” on top right corner is the voltage value of current signal.
You can press the space bar on keyboard to pause the display waveform, which is easy to view and analysis.
We believe that with the help of this oscilloscope, you can obtain more intuitive understanding of the actual work of some electronic circuits. It will help you complete the project and eliminate the trouble. You can export this sketch to an application used as a tool.






