How to make Real Time Oscilloscope using Simulink and Arduino | applied electronics engineering

Latest

How to make Real Time Oscilloscope using Simulink and Arduino

By Applied Electronics - Tuesday, February 28, 2017 No Comments
In this blog post we want to share how to build real time oscilloscope build using Arduino and Simulink. This tutorial is taken from How to make Real Time Oscillscope using Simulink and Arduino.

Basically you can make your own oscilloscope utilizing one of the arduino analog pin. The analog pin is connected internally to a 10 bit ADC(Analog to Digital Converter) and this allows one to get analog signal in terms of digital samples. The sampled value ranges from 0 to 1024 because the ADC is 10-bit wide. This is basically same as the tutorial we showed earlier How to plot analog signal in Matlab using Arduino in real time where matlab code is used. But here simulink is used.

The hardware connection is as shown below.

Real Time Oscillscope using Simulink and Arduino





The hardware setup is for the purpose for illustration. To stimulate analog signal a 10KOhm potentiometer is used and its central pin is connected to the A0 analog pin of the Arduino. The other two ends are connected to the 5V supply and ground.

The following figure shows the schematic diagram.





This schematic diagram was drawn in Proteus professional.

The Simulink model is as shown

Real Time Oscillscope using Simulink and Arduino

In the diagram, an analog input block from the Simulink Support for Arduino Hardware/ Common is used, a product block from the math library, a constant block from the source library and a time scope is used which is obtained from the sink library.

After proper configuration of simulink to work with Arduino, running the simulation gives the following real time analog signal displayed on the time scope in the same way as oscilloscope. The following figure was reported.

Real Time Oscillscope using Simulink and Arduino


So in this manner you can get real time oscilloscope using simulink and arduino. By connecting the ADC analog pin to the probe and touching the probe to the circuit wire you should be able to pick up signal and display it on the real time scope and in this example.

If you like matlab simulink see Rapid BeagleBoard Prototyping with MATLAB and Simulink and PID and Predictive Control of Electrical Drives and Power Converters Using MATLAB/Simulink.

No Comment to " How to make Real Time Oscilloscope using Simulink and Arduino "