Make Your Own Oscilloscope(Mini DSO) With STC MCU Easily
by CreativeLau in Circuits > Microcontrollers
83486 Views, 640 Favorites, 0 Comments
Make Your Own Oscilloscope(Mini DSO) With STC MCU Easily
![IMG_6270.JPG](/proxy/?url=https://content.instructables.com/FXK/5AX8/K9K8GNMY/FXK5AX8K9K8GNMY.jpg&filename=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](/proxy/?url=https://content.instructables.com/FFY/TJ7V/K9K8G15X/FFYTJ7VK9K8G15X.jpg&filename=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](/proxy/?url=https://content.instructables.com/FB2/APSS/K9K8G0ON/FB2APSSK9K8G0ON.jpg&filename=IMG_6243.jpg)
Material List:
- MCU: STC8A8K64S4A12 x 1 Get it from AliExpress
- Display: SSD1306 OLED(5V with 7-Pin SPI Interface) x 1 Get it from AliExpress | Get it from Amazon
- Resistor:
- 1W 10k x 1 Get it from AliExpress
- 1/4W 2k x 2 Get it from AliExpress | Get it from Amazon
- 1/4W 10k x 1
- Capacitor:
- 47uF x 1 Get it from AliExpress | Get it from Amazon
- 0.01uF x 1 Get it from AliExpress
- EC11 Encoder x 1 Get it from AliExpress | Get it from Amazon
- Toggle Switch x 1 Get it from AliExpress
- 2-Pin Terminal x 1 Get it from AliExpress
- IC Socket 40-Pin x 1 Get it from AliExpress
- Row Pin Female: Get it from AliExpress
-
- 7-Pin x 1
- 2-Pin x 1
- 3.7V Li-ion Battery x 1 Get it from AliExpress
- 5V Booster Module x 1 Get it from AliExpress
- USB-TTL Downloader x 1 Get it from AliExpress
- Circuit Board x 1 Get it from AliExpress
Scheme and Circuit!
![Mini DSO_YouTube.00_03_49_42.Still002.jpg](/proxy/?url=https://content.instructables.com/FFM/6MZ6/K9K8GF7I/FFM6MZ6K9K8GF7I.jpg&filename=Mini DSO_YouTube.00_03_49_42.Still002.jpg)
![Mini DSO_Taobao.00_02_41_37.Still006.jpg](/proxy/?url=https://content.instructables.com/FQH/FOED/K9K8G7BA/FQHFOEDK9K8G7BA.jpg&filename=Mini DSO_Taobao.00_02_41_37.Still006.jpg)
![Mini DSO_Taobao.00_02_48_33.Still004.jpg](/proxy/?url=https://content.instructables.com/FKI/6QT2/K9K8G6S2/FKI6QT2K9K8G6S2.jpg&filename=Mini DSO_Taobao.00_02_48_33.Still004.jpg)
![Scheme V0.2.jpg](/proxy/?url=https://content.instructables.com/FSS/2Y1R/K9K8GH49/FSS2Y1RK9K8GH49.jpg&filename=Scheme V0.2.jpg)
![circuit V0.2.jpg](/proxy/?url=https://content.instructables.com/FT6/KNKO/K9K8GH4D/FT6KNKOK9K8GH4D.jpg&filename=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](/proxy/?url=https://content.instructables.com/FE1/PT54/K9K8GCY8/FE1PT54K9K8GCY8.jpg&filename=Mini DSO_Taobao.00_05_04_26.Still008.jpg)
![Mini DSO_Taobao.00_05_06_50.Still011.jpg](/proxy/?url=https://content.instructables.com/FFB/DAJR/K9K8GDFG/FFBDAJRK9K8GDFG.jpg&filename=Mini DSO_Taobao.00_05_06_50.Still011.jpg)
![Mini DSO_Taobao.00_05_12_15.Still010.jpg](/proxy/?url=https://content.instructables.com/FMZ/8DI1/K9K8GDFH/FMZ8DI1K9K8GDFH.jpg&filename=Mini DSO_Taobao.00_05_12_15.Still010.jpg)
![Mini DSO_Taobao.00_05_43_52.Still007.jpg](/proxy/?url=https://content.instructables.com/FDT/6GJI/K9K8GCYB/FDT6GJIK9K8GCYB.jpg&filename=Mini DSO_Taobao.00_05_43_52.Still007.jpg)
![Mini DSO_Taobao.00_05_23_29.Still009.jpg](/proxy/?url=https://content.instructables.com/F28/TBAO/K9K8GCYM/F28TBAOK9K8GCYM.jpg&filename=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](/proxy/?url=https://content.instructables.com/FKY/B9CO/K9K8GF50/FKYB9COK9K8GF50.jpg&filename=Mini DSO_Taobao.00_07_32_19.Still012.jpg)
![Mini DSO_Taobao.00_08_36_17.Still013.jpg](/proxy/?url=https://content.instructables.com/FCP/J6RJ/K9K8GF5P/FCPJ6RJK9K8GF5P.jpg&filename=Mini DSO_Taobao.00_08_36_17.Still013.jpg)
![Mini DSO_Taobao.00_08_51_06.Still014.jpg](/proxy/?url=https://content.instructables.com/FVJ/ORWL/K9K8GF68/FVJORWLK9K8GF68.jpg&filename=Mini DSO_Taobao.00_08_51_06.Still014.jpg)
![Mini DSO_Taobao.00_09_46_07.Still002.jpg](/proxy/?url=https://content.instructables.com/FIJ/KGEP/K9K8KRH1/FIJKGEPK9K8KRH1.jpg&filename=Mini DSO_Taobao.00_09_46_07.Still002.jpg)
![Mini DSO_Taobao.00_09_22_14.Still015.jpg](/proxy/?url=https://content.instructables.com/FCE/MJO5/K9K8GF6O/FCEMJO5K9K8GF6O.jpg&filename=Mini DSO_Taobao.00_09_22_14.Still015.jpg)
![Mini DSO_Taobao.00_09_43_04.Still017.jpg](/proxy/?url=https://content.instructables.com/FLQ/87FA/K9K8GF7H/FLQ87FAK9K8GF7H.jpg&filename=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](/proxy/?url=https://content.instructables.com/FFJ/YZFV/K9K8GGDF/FFJYZFVK9K8GGDF.jpg&filename=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](/proxy/?url=https://content.instructables.com/FXA/IMMI/K9K8GIY1/FXAIMMIK9K8GIY1.jpg&filename=How to Make Function Generator with MCU to Generate Square and Sine Wave)
![Mini DSO_Taobao.00_08_44_25.Still016.jpg](/proxy/?url=https://content.instructables.com/FBG/MDDY/K9K8GF67/FBGMDDYK9K8GF67.jpg&filename=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](/proxy/?url=https://content.instructables.com/FQ1/8DES/K9K8G0O7/FQ18DESK9K8G0O7.jpg&filename=IMG_6265.JPG)
![IMG_6266.JPG](/proxy/?url=https://content.instructables.com/FBV/AGM8/K9K8G0NR/FBVAGM8K9K8G0NR.jpg&filename=IMG_6266.JPG)
![IMG_6268.JPG](/proxy/?url=https://content.instructables.com/FM8/PUMK/K9K8G0O3/FM8PUMKK9K8G0O3.jpg&filename=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: