Digital Oscilloscope
PC Based Digital Oscilloscope
Specifications
• Input voltage range :-2.5 v to 2.5 v
• Bandwidth :120 Hz
• Output display on the PC screen
Introduction
In this project we have written a MATLAB program to display the signal waveform on a PC screen.
Block Diagram
Working Principle
Internal Structure of Digital Oscilloscope
Summing Amplifier
To be able to measure negative values we need to add a bias voltage to the input signal because Arduino cannot measure negative voltages. The designed circuit is a summing amplifier which adds 2.5 volts to the input signal so a -2.5 volts to 2.5 volts sine wave, will become a 0 to 5 volts sine wave after passing through this circuit. The 5.1V zener diode at the summing amplifier's output will protect the Arduino if the input signal goes beyond 5.1V. Any signal greater than 5.1V peak to peak will be clipped at 5.1 volts.
Below is the summing amplifier formula.
Arduino's Analog to Digital Converter
Serial Communication
The digital readings are sent to the the PC through serial COM port which are retrieved by a MATLAB program.
MATLAB Program
Arduino Code
void setup()
{
Serial.begin(115200);
}
void loop() {
val = analogRead(A0); // read the input pin
Serial.print(val*0.0048828125-2.5);
Serial.print("\r");
}
Uses
1. Trouble shooting
2. Research and development
3. Product design
Video of Final Working Product
Index
References
1) http://www.instructables.com/id/Girino-Fast-Arduino-Oscilloscope/
2) http://www.mathworks.com/help/images/ref/imfuse.html
3) http://en.wikipedia.org/wiki/Oscilloscope
4) http://en.wikipedia.org/wiki/Analog-to-digital_converter
5) http://www.arduino.cc
6) http://www.electronics-tutorials.ws/diode/diode_7.html
7) https://www.princeton.edu/~achaney/tmve/wiki100k/docs/Zener_diode.html
Comments
Post a Comment