Projects / Ideas / DMA mini scope on a Black Pill

DMA mini scope on a Black Pill

IntermediateTest & MeasurementIdeaReviewed
In short

How do you build a DMA mini scope on a Black Pill?

A Black Pill fills a sample buffer with the ADC and DMA while the processor draws the last trace on a small OLED. Inputs stay inside 0 to 3.3 V; use a divider and clamp diodes for anything bigger. You need STM32 Black Pill (STM32F411CEU6), ST-Link V2 programmer (clone), SSD1306 OLED Display, Potentiometer 10 kΩ, Resistor 10 kΩ, Signal Diode 1N4148 × 2 and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 180 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Capture a waveform without the processor touching every sample.

How to build it

  1. Configure ADC1 in continuous mode with a timer trigger
  2. Set up DMA to fill a 128-sample buffer
  3. Clamp the input with two diodes and a series resistor
  4. Draw the buffer on the OLED as a line
  5. Add a knob to choose the sample rate

Related projects

Common questions

What parts do I need for the DMA mini scope on a Black Pill?

STM32 Black Pill (STM32F411CEU6), ST-Link V2 programmer (clone), SSD1306 OLED Display, Potentiometer 10 kΩ, Resistor 10 kΩ, Signal Diode 1N4148 × 2 and Breadboard 830 Tie Points.

How long does the DMA mini scope on a Black Pill take to build?

About 180 minutes for a intermediate maker.