How to design Cathode Ray Oscilloscope using Arduino? Code of just 9 lines!

How to design Cathode Ray Oscilloscope using Arduino? Code of just 9 lines!

This entry is part 5 of 9 in the series Arduino Tips & Tricks

A cathode ray oscilloscope (CRO), also known as an oscilloscope or scope, is a type of electronic test instrument used to visualize and analyze electrical signals in the time domain. It is an essential tool for engineers, scientists, and technicians working with electronics, telecommunications, and various fields of science and engineering.

We can easily construct Cathode Ray Oscilloscope using Arduino using the following code of just 9 lines and a simple circuit.

Now let us see the interesting code. This code is of just 9 lines, but perfect to show any type of waveform on Serial Monitor of Arduino IDE, just like the screen of CRO.

 void setup()
 {
  Serial.begin(115200);
 }
 void loop()
 {
  int value = analogRead(A0);
  Serial.println(value);
 }

How to Construct the Circuit?

Constructing the circuit using Arduino is very simple. What you need it just potentiometer or direct input single from a function generator or any other source. Connect any type of input as you like at the Analog Input Terminal A0 of Arduino. The open serial plotter and monitor the output just like the output is monitored on CRO screen. Check connection diagram below –

image 14 Vidyasagar Academy

View Post

Series Navigation<< Effective coding techniques in Arduino: More about variablesHow to start learning NodeMCU in simple steps? Basic Tutorial on NodeMCU >>
Dr. Dattaraj Vidyasagar
Dr. Dattaraj Vidyasagar

M.S. Electronics & Telecomm. (Cleveland Institute of Electronics, Ohio), Associate Member (IETE, Kolkata), Panelist on Dr. Homi Bhabha Foundation, Google certified educator (Level-1), Mentor of Change (MoC-1619) Niti Ayog, Government of India, International Robotics Trainer, Veteran of Applied Electronics since 35+ years.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x