Idea
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.
Parts list
- Development Boards
- Interfaces
- Displays
- Passives
- Passives
- Semiconductors
- Prototyping
How to build it
- Configure ADC1 in continuous mode with a timer trigger
- Set up DMA to fill a 128-sample buffer
- Clamp the input with two diodes and a series resistor
- Draw the buffer on the OLED as a line
- Add a knob to choose the sample rate
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.
