Make Your Own Oscilloscope(Mini DSO) With STC MCU Easily

by CreativeLau in Circuits > Microcontrollers

82446 Views, 643 Favorites, 0 Comments

Make Your Own Oscilloscope(Mini DSO) With STC MCU Easily

IMG_6270.JPG

This is a simple oscilloscope made with STC MCU.

You can use this Mini DSO to observe waveform.

Time Interval: 100us-500ms

Voltage Range: 0-30V

Draw Mode: Vector or Dots.

Watch the Video!

How to DIY Oscilloscope Mini DSO with STC MCU easily

In this video, I will show you how to assembly this Mini DSO step by step.

Prepare Your Parts!

IMG_6243.jpg

Material List:

Scheme and Circuit!

Mini DSO_YouTube.00_03_49_42.Still002.jpg
Mini DSO_Taobao.00_02_41_37.Still006.jpg
Mini DSO_Taobao.00_02_48_33.Still004.jpg
Scheme V0.2.jpg
circuit V0.2.jpg

The circuit is very simple.

The final circuit is a little different from the video.

I add two capacitors as MCU power filter. Add a resistor as voltage dividing for voltage sampling of battery.

Move the switch to Battery+ and power module to avoid the drain current during stand by.

Download the Code!

Mini DSO_Taobao.00_05_04_26.Still008.jpg
Mini DSO_Taobao.00_05_06_50.Still011.jpg
Mini DSO_Taobao.00_05_12_15.Still010.jpg
Mini DSO_Taobao.00_05_43_52.Still007.jpg
Mini DSO_Taobao.00_05_23_29.Still009.jpg

Use a USB to TTL downloader to download the code to MCU

Connect TXD, RXD and GND to the Mini DSO.

Download STC-ISP software here: http://www.stcmicro.com/rjxz.html

If the interface of STC-ISP is Chinese, you could click upper left icon to change language to English.

The detail configuration of STC-ISP please refer my video above.

The code was written in C. Use Keil software to edit and compile.

Downloads

Success!

Mini DSO_Taobao.00_07_32_19.Still012.jpg
Mini DSO_Taobao.00_08_36_17.Still013.jpg
Mini DSO_Taobao.00_08_51_06.Still014.jpg
Mini DSO_Taobao.00_09_46_07.Still002.jpg
Mini DSO_Taobao.00_09_22_14.Still015.jpg
Mini DSO_Taobao.00_09_43_04.Still017.jpg

Here you could observe waveform easily with this Mini DSO.

It also could be used to measure voltage.

Add a probe to the terminal, it could be easily working in hand.

Issue

Mini DSO_YouTube.00_09_06_31.Still003.jpg

Since this Mini DSO could not measure negative voltage, the waveform will stop at 0V.

Related Topic

How to Make Function Generator with MCU to Generate Square and Sine Wave
Mini DSO_Taobao.00_08_44_25.Still016.jpg

I also made a Function Generator with STC MCU. The waveform shown on the Mini DSO is just generated by my DIY Function Generator. If you are interested in it, you could watch my video now. I will create the instruction later.

Update in the Future

IMG_6265.JPG
IMG_6266.JPG
IMG_6268.JPG

The new functions for the Mini DSO is being developed. They are Normal Sweep and Single Sweep. With these functions you could observe the waveform mutation. In the picture, it is the waveform mutation of the switching power supply during power on. We catch the wave rising just same as the oscilloscope DS1052E.

I will share this update when I finished it.

Hope you like it.

I am appreciate your support.

Feel free to check out my YouTube Channel: https://www.youtube.com/c/CreativeLau

New Version Released!

There is good news for this project!

Since many people are interested in this project, I spent some time upgrading it overall. There are changes in interface, operation logic and circuit. After upgrading, the Mini DSO is more powerful.

Please refer to the instructable for the new version:

https://www.instructables.com/id/Upgrade-DIY-Mini-...