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

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


This article details the assembly of a Mini DSO oscilloscope using an STC8A8K64S4A12 microcontroller. The device features a 5V SSD1306 OLED display, supports time intervals from 100us to 500ms, and measures voltages up to 30V. Users can assemble it by soldering components onto a circuit board, programming the MCU via USB-TTL with Keil C software, and powering it with a 3.7V Li-ion battery and booster module. While effective for positive voltage waveform observation, the project has limitations regarding negative voltage measurement.

Parts used in the Mini DSO:

  • STC8A8K64S4A12 MCU x 1
  • SSD1306 OLED Display (5V with 7-Pin SPI Interface) x 1
  • 1W 10k Resistor x 1
  • 1/4W 2k Resistor x 2
  • 1/4W 10k Resistor x 1
  • 47uF Capacitor x 1
  • 0.01uF Capacitor x 1
  • EC11 Encoder x 1
  • Toggle Switch x 1
  • 2-Pin Terminal x 1
  • IC Socket 40-Pin x 1
  • Row Pin Female 7-Pin x 1
  • Row Pin Female 2-Pin x 1
  • 3.7V Li-ion Battery x 1
  • 5V Booster Module x 1
  • USB-TTL Downloader x 1
  • Circuit Board x 1

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.

Step 1: Watch the Video!

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

Step 2: Prepare Your Parts!

Material List:

Step 3: Scheme and Circuit!

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.

Step 4: Download the Code!

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.

Step 5: Success!

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.

Step 6: Issue

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

Step 7: Related Topic

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.

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

Quick Solutions to Questions related to Mini DSO:

  • What is the primary function of this Mini DSO?
    You can use this Mini DSO to observe waveforms.
  • How does the time interval range compare on this device?
    The time interval ranges from 100us to 500ms.
  • What is the maximum voltage range supported?
    The voltage range is 0 to 30V.
  • Can I change the draw mode settings?
    Yes, you can select between Vector or Dots draw modes.
  • How do I download the code to the MCU?
    Use a USB to TTL downloader to connect TXD, RXD, and GND to the Mini DSO.
  • Which software is required to compile the code?
    The code was written in C and requires Keil software to edit and compile.
  • Does this device support measuring negative voltage?
    No, since this Mini DSO could not measure negative voltage, the waveform will stop at 0V.
  • What power source is recommended for the battery?
    A 3.7V Li-ion battery is used along with a 5V Booster Module.
  • Can I add a probe for handheld operation?
    Yes, adding a probe to the terminal allows it to work easily in hand.
  • Is there a related topic mentioned for generating waveforms?
    The author also made a Function Generator with STC MCU which generates the waveforms shown.

About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Scroll to Top