A Simple Arduino Based Oscilloscope For Physlab: Muhammad Shiraz Ahmad and Muhammad Sabieh Anwar
A Simple Arduino Based Oscilloscope For Physlab: Muhammad Shiraz Ahmad and Muhammad Sabieh Anwar
1
1 Getting Arduino Ready for Oscilloscope
1. Install Arduino IDE [1].
4. Run Arduino IDE and select the entry in the Tools → Board menu that
corresponds to your Arduino board.
Figure 2
5. Select the serial device of the board from the Tools → Serial Port menu.
Figure 3
2
6. Install the “TimerOne.h” library for the Arduino IDE (for details, see ap-
pendix).
7. Download and run the Arduino program “oscilloscope arduino.ino” from [3].
8. Adjust the COM port correctly (Figure 3).
9. Upload the program to Arduino (Figure 4).
Figure 4
3 Oscilloscope Capabilities
1. It can monitor up to 4 voltage channels (0 to 5V).
2. It can measure frequency upto 500 Hz (tested on Arduino Mega).
3. It can stabilize the wave on the screen using a simple trigger.
4. It identifies the frequency of the wave using the best criterion (square or sinu-
soidal).
5. Volts/division and time/division can be adjusted individually for each channel.
6. It has a combined display of channels in XYZ.
7. It can be used as PWM signal generator.
3
Serial connection control
Demonstration
Resets
XYZ controls
Figure 5
APPENDIX
3. Information about the library will appear, click over that text and the “Install”
button will appear.
4. click “Install”.
4
Fig.7
References
[1] http://bit.ly/PhysLab_Link01
[2] http://bit.ly/PhysLab_Link02
[3] http://bit.ly/PhysLab_Link03
[4] http://bit.ly/PhysLab_Link04
[5] http://bit.ly/PhysLab_Link05