The sample rate on the box is a one-channel number
An oscilloscope is sold with one number, and the number is a rate: samples per second, usually in millions. The number is real, it is measurable, and on its own it says very little about whether the instrument can answer the question in front of it.
The usual advice is that the sample rate is not the bandwidth, and that advice is correct but stops one step too early. The rate is not a single constraint at all. It is the place where four independent ones meet: how many channels are converted at once, how much memory the record fits into, how long the converter is allowed to look at the pin for each sample, and how fast the samples can leave the board. Change any one of the four and the headline moves, which is why the headline alone never predicts behaviour.
This piece works through those four on a piece of hardware that publishes its own numbers. EMBO, short for EMBedded Oscilloscope, is a master's thesis project from the Department of Measurement at the Czech Technical University in Prague, released under the MIT licence: an STM32 board does the sampling, a PC does the drawing, and six instruments share one firmware image. Its last firmware release is 0.2.4, dated 10 October 2021, and the repository has been quiet since, which makes it a stable subject rather than a moving one.
What makes it useful here is that the firmware states the constants a commercial scope keeps in a datasheet footnote. The ADC's internal capacitance, the internal series resistance of the sample switch, the exact number of conversion cycles, the memory ceiling, and the loop that decides how long each sample may take are all in the source. Every figure below is computed from those constants and the two tables the repository ships, so every figure can be reproduced.
One board, six instruments, four converters
The device matrix is the first place where the single number starts to come apart. It is printed as a channel count with an ADC count beside it, and that second number is the one that matters.
| Board | Carrier | Oscilloscope | Logic analyser | Voltmeter | Counter | PWM out | Generator |
|---|---|---|---|---|---|---|---|
| STM32F103C8 | Blue Pill | 4 ch over 1 ADC | 4 ch | 4 ch | 1 ch | 2 ch | none |
| STM32F103RE | LQFP64 | 4 ch over 2 ADCs | 4 ch | 4 ch | 1 ch | 2 ch | 1 ch |
| STM32F303RE | Nucleo-64 | 4 ch over 4 ADCs | 4 ch | 4 ch | 1 ch | 2 ch | 1 ch |
| STM32L412KB | Nucleo-32 | 4 ch over 2 ADCs | 4 ch | 4 ch | 1 ch | 1 ch | none |
Four channels is four channels on all four boards, and the same firmware runs on all of them. The difference is how many conversions can happen at the same instant, and that single number sets both the per-channel sample rate and whether two traces are actually simultaneous.
With one ADC, four channels are converted one after another inside the same sample period, so they are not simultaneous: they are four snapshots spaced by one conversion time. With four ADCs, each channel has its own converter and its own DMA stream, and the four samples describe the same instant. The firmware is explicit about this, selecting one of three acquisition backends at compile time: one ADC with one DMA channel, two ADCs splitting channels one and two from channels three and four, or four ADCs with four DMA streams.
The consequence is arithmetic. The maximum rate is quoted for one channel and divided by however many channels are enabled on the same converter.
| Board | Converters | Quoted maximum | 1 channel | 2 channels | 4 channels |
|---|---|---|---|---|---|
| STM32F103C8 | 1 ADC | 0.800 MSps | 0.800 MSps | 0.400 MSps | 0.200 MSps |
| STM32F103RE | 2 ADCs | 0.800 MSps | 0.800 MSps | 0.400 MSps | 0.400 MSps |
| STM32F303RE | 4 ADCs | 4.965 MSps | 4.965 MSps | 4.965 MSps | 4.965 MSps |
| STM32L412KB | 2 ADCs | 5.000 MSps | 5.000 MSps | 2.500 MSps | 2.500 MSps |
Enabling a second channel on the Blue Pill halves the rate; enabling the third and fourth halves it again, to 200 kSps. The board is the cheapest in the set and it keeps its four channels, but the number printed in the limits table, 0.800 MSps, applies to exactly one of them.
The two-converter boards have a way out. Because channels one and two are wired to the first ADC and channels three and four to the second, which pins you enable decides the rate. Channels one and three together keep 800 kSps on both; channels one and two together drop both to 400 kSps. The sample rate of a two-channel measurement therefore depends on which two channels, which is not something a specification sheet can express in one number.
Simultaneity follows the same table. On the four-converter board the time skew between channels is zero. On the single-converter board, the four channels are 1.21 microseconds apart at 200 kSps, which is more than a whole sample period of the signal being measured. Any phase measurement between two channels inherits that offset, and subtracting it is not optional.
The record is memory divided by rate
The second constraint is memory, and it is the one that disappears from the marketing copy entirely. The sample rate says how fine the time axis is. The memory says how much of the time axis you get.
The ceiling is a single number per board, shared by every enabled channel, and 12-bit samples take two bytes each. A Blue Pill has 10,000 bytes to divide; the two 44,000-byte boards have 22,000 samples in total; the L412KB has 25,000 bytes.
| Board | 12-bit samples in total | 1 channel | 2 channels | 4 channels |
|---|---|---|---|---|
| STM32F103C8 | 5,000 | 6.25 ms at 0.800 MSps | 6.25 ms at 0.400 | 6.25 ms at 0.200 |
| STM32F103RE | 22,000 | 27.50 ms at 0.800 MSps | 27.50 ms at 0.400 | 13.75 ms at 0.400 |
| STM32F303RE | 22,000 | 4.43 ms at 4.965 MSps | 2.22 ms at 4.965 | 1.11 ms at 4.965 |
| STM32L412KB | 12,500 | 2.50 ms at 5.000 MSps | 1.25 ms at 5.000 | 1.25 ms at 2.500 |
Read the middle rows together and the trade becomes visible. The Blue Pill returns 6.25 milliseconds at every channel count, because the rate and the memory divide by the same factor and cancel: faster is not available, and more channels does not buy more time. The F103RE, with the same clock and six times the memory, returns 27.5 milliseconds at one channel, which is six times the record of the F303RE running five times faster. The wimpiest converter in the set records the longest window.
That is the whole argument in one comparison. A rate answers how precisely a moment can be located; a record answers how far back the search can look. The F303RE resolves 201 nanoseconds and can only see 4.4 milliseconds of history with one channel, or 1.1 milliseconds with four. A 1 kHz control loop with a 60 Hz disturbance needs tens of milliseconds to show a cycle, which the slow board covers and the fast one does not.

Two numbers keep the record readable in practice. Pre-trigger is a percentage from 1 to 99, and the firmware computes the post-trigger length as the complement, so a trigger placed at 20 percent spends a fifth of the memory looking backwards. And the buffer carries a small reserve per channel, ten bytes, to cover the conversions still in flight when the DMA stream is stopped, which is the difference between a clean last sample and a channel-order error.
The sample window is a filter
The third constraint is inside the converter, and it is the one that decides whether the resolution printed on the box is available at the rate printed next to it.
An SAR converter does not measure a voltage. It charges a small capacitor to the input voltage and then spends a fixed number of clock cycles bisecting that charge. On the F303RE the capacitor is 5 picofarads, the count is 12.5 cycles for a 12-bit result, and the ADC clock is 72 MHz. The acquisition phase, during which the capacitor is connected to the pin, is configurable, and the firmware picks it with a loop rather than a constant: it walks an eight-entry table from the shortest sampling time upwards and keeps the longest one that still finishes inside one sample period.
At full rate on the F303RE that period is 201.4 nanoseconds and the loop lands on 1.5 cycles, which is 20.8 nanoseconds of connection time. Everything else is conversion.
Twenty nanoseconds is short enough to be a filter in its own right. A sample-and-hold that averages the input over an interval behaves as a sinc filter with its first null at the reciprocal of that interval, and its half-power point at 0.443 divided by the interval. For 20.8 nanoseconds that is 21.3 MHz.
| Board | ADC clock | Shortest window | Aperture at minus 3 dB | Nyquist at quoted rate |
|---|---|---|---|---|
| STM32F103C8 | 12 MHz | 1.5 cycles, 125 ns | 3.54 MHz | 0.400 MHz |
| STM32F103RE | 12 MHz | 1.5 cycles, 125 ns | 3.54 MHz | 0.400 MHz |
| STM32F303RE | 72 MHz | 1.5 cycles, 20.8 ns | 21.26 MHz | 2.483 MHz |
| STM32L412KB | 80 MHz | 2.5 cycles, 31.3 ns | 14.17 MHz | 2.500 MHz |
In normal operation the aperture column is not the limit; the Nyquist column is, and it is five to forty times lower. The aperture only becomes the binding constraint in the one mode where the Nyquist limit is deliberately broken, which is the subject of a later section.
The same window has a second consequence, and this one appears immediately. Charging 5 picofarads through the switch's own series resistance takes time, and a short window leaves the capacitor short of the input voltage. The firmware's own constant for that resistance is one kiloohm, which gives a 5 nanosecond time constant, and 20.8 nanoseconds is 4.2 of them. The residual is 1.55 percent of the step, or 63 counts on a 12-bit scale.
That figure needs its condition attached, because it is not a fixed penalty. It is the error for a full-scale step arriving at the pin between two samples, which is the worst case and the one that matters at an edge. For a signal that moves slowly relative to the sample rate, the capacitor is nearly charged already and the loss is proportional to the change, so the same network behaves as a first-order low-pass at 31.8 MHz rather than as a fixed offset.
| Input frequency | RC network, 1 kOhm and 5 pF | Sampling aperture | Combined | Error | Usable bits |
|---|---|---|---|---|---|
| 100 kHz | 1.00000 | 0.99999 | 0.99999 | 0.0 LSB | 12.0 |
| 300 kHz | 0.99996 | 0.99994 | 0.99989 | 0.4 LSB | 12.0 |
| 1 MHz | 0.99951 | 0.99929 | 0.99879 | 4.9 LSB | 9.7 |
| 3 MHz | 0.99559 | 0.99359 | 0.98921 | 44.2 LSB | 6.5 |
| 10 MHz | 0.95403 | 0.93014 | 0.88738 | 461 LSB | 3.2 |
The useful reading of that table is a division of labour. Twelve bits is a claim about DC and audio, and it holds there. Four decimal places at 4.965 MSps is a claim about locating an edge in time, and it holds there too, because a 5 percent amplitude error moves a threshold crossing by a few percent of a period while a sample period is 201 nanoseconds. What does not hold is the combination: an instrument cannot be 12-bit accurate at 10 MHz on a 3.3 V range with a 5 pF sample capacitor and no front end.
What the pin looks like from the circuit
The fourth constraint is the one that decides whether the probe can be attached at all, and it is not in any table, because it depends on the circuit under test.
The oscilloscope input is a microcontroller pin. There is no attenuator, no buffer amplifier, no fifty ohm termination and no 1 megohm input resistor. What the circuit sees is 5 picofarads being switched onto the node at the sample rate, plus 1 kiloohm of switch resistance.
A switched capacitor presents a load proportional to how often it is switched and how much the voltage moves. For a signal that changes, the charge packet taken each cycle is the capacitance times the change, so the equivalent load is one over the product of capacitance and rate. At 4.965 MSps that is 40 kiloohms. On the Blue Pill, with 8 picofarads at 800 kSps, it is 156 kiloohms. On the voltmeter, at 100 samples per second, it is 2 gigohms.
The load is not the main problem. The time constant is. The pin settles towards the input with a time constant set by the source resistance in series with the switch resistance, multiplied by the sample capacitor, and the measurement bandwidth follows directly from it.
| Source resistance | Time constant, 5 pF | Bandwidth at the pin | Time constant, 8 pF | Bandwidth at the pin |
|---|---|---|---|---|
| 0 ohm | 5.0 ns | 31.8 MHz | 8.0 ns | 19.9 MHz |
| 1 kOhm | 10.0 ns | 15.9 MHz | 16.0 ns | 9.95 MHz |
| 10 kOhm | 55.0 ns | 2.89 MHz | 88.0 ns | 1.81 MHz |
| 100 kOhm | 505 ns | 315 kHz | 808 ns | 197 kHz |
| 1 MOhm | 5.01 us | 31.8 kHz | 8.01 us | 19.9 kHz |
This is the number to check against a schematic before connecting anything. A sensor output through a 100 kiloohm pull-up is a 300 kHz instrument. A resistive divider built from 1 megohm parts is a 32 kHz instrument. Neither is wrong, and neither is what the sample rate suggested.

The same arithmetic explains why a passive oscilloscope probe does not work here. A ten-to-one probe is a nine megohm resistor in series with the signal, designed to be terminated by the one megohm input of a bench scope, which is what completes the divider and what its compensation capacitor trims. Terminated by 5 picofarads instead, the time constant is 45 microseconds, and the sample window is 20.8 nanoseconds, which is 0.046 percent of it. The capacitor charges by that fraction, so the displayed value is roughly one two-thousandth of the input rather than one tenth. The probe is not attenuating ten times; it is barely conducting.
The trigger is a window comparator in the ADC
Everything above describes how samples are taken. What turns samples into a stable trace is the trigger, and its implementation is the analog watchdog.
Each STM32 ADC can watch its own conversions against a pair of thresholds and raise an interrupt when a result falls between them. That is the whole trigger. For a rising edge the firmware sets the upper threshold to full scale and the lower threshold to the requested level, so any conversion at or above the level arms it; for a falling edge it sets the window from zero up to the level. The trigger level is a percentage of the range, which means its resolution is one count, 806 microvolts on a 3.3 V reference.
There is no hysteresis. The window for a rising edge extends all the way to full scale, so the first sample above the level fires, even if the next one falls back below it. On a noisy edge the crossing is located at a random point within the noise band, and because the whole trace is aligned to that sample, the jitter appears as the entire waveform sliding sideways by up to a sample period: 201 nanoseconds at full rate, 1.25 microseconds on the Blue Pill. A stable display on a slow noisy signal therefore needs either an averaged input or a level set well clear of the noise floor.
The three trigger modes differ only in what happens when the condition is not met. Auto combines normal behaviour with a timeout computed as a minimum plus one full record duration, so the display keeps refreshing while the search continues. Normal waits indefinitely. Single stops after one capture. Pre-trigger is a percentage of the memory, and the firmware converts it into a millisecond count against the record duration.
The changelog records what happens when that arithmetic is done in the wrong place. In version 0.2.3 the fix is listed plainly: in Auto and Disabled modes the trigger position was being set as the last sample rather than the first, which put the event at the wrong end of the buffer. Two releases earlier, a timeout was inserted between disabling the timer and disabling the ADC, because without it the channels came out in the wrong order. These are the failure modes of a correct design, and they are worth knowing because they are silent: the trace still draws, it is simply misaligned.
A hundred samples per second is a decision about mains
The voltmeter is the instrument that looks like an afterthought and is not. Its sample rate is fixed at 100 per second, which is a strange number for a feature that could have been anything, until it is compared with the mains frequency.
Fifty hertz needs two samples per cycle. At 100 samples per second the mains fundamental lands exactly on the Nyquist frequency, which is normally the worst place to put a signal, because it aliases to DC and cannot be separated from a genuine offset. Here the aliasing is the point: every sample carries the same phase of the interference, so the alternating component is a constant in the sample sequence, and averaging an even number of consecutive samples removes it exactly.
The firmware exposes the setting as NPLC, the number of power line cycles integrated per reading, and the interface computes it as the average length divided by two. An average of 100 samples is 50 cycles, one second per reading, and the noise falls by the square root of the count, a factor of ten.
| Averaging | NPLC at 50 Hz | Time per reading | Noise reduction | Residual rejection of 50 Hz |
|---|---|---|---|---|
| 1 | 0.5 | 10 ms | none | none, one half cycle |
| 10 | 5 | 100 ms | 3.2 times | exact |
| 100 | 50 | 1.00 s | 10 times | exact |
| 1000 | 500 | 10.0 s | 31.6 times | exact |
The cost is visible in the same table. Averaging a hundred readings takes a second, and a signal that changes within that second is averaged into a value it never held. This is the standard trade of every integrating instrument, and it is why the voltmeter can resolve below one count while the oscilloscope cannot: the noise is averaged away, and what remains is a number whose uncertainty is much smaller than the 806 microvolt step.
A stroboscope for repetitive signals
The mode that breaks the Nyquist limit is equivalent time sampling, added in firmware 0.2.2 and described in the interface as stroboscopic. It applies to repetitive signals only, and it is worth following because the arithmetic is unusual.
The trick is to sample a periodic signal at a rate that is close to but not equal to its frequency. Each sample then lands at a slightly different phase of the waveform, and the sampled sequence walks slowly across the shape. The walk rate is the difference between the two frequencies, and that difference can be made arbitrarily small by choosing the sample rate carefully.
The interface implements this with one coefficient: the absolute difference between the signal frequency and the real sample rate, divided by the signal frequency. The time axis of the plot is multiplied by that coefficient, which maps the slowly walking difference pattern back onto the true period.
A worked case makes the scale clear. On the F303RE the real sample rate is not exactly 4.965 million: it is 144 megahertz divided by 29, or 4,965,517 samples per second, and the firmware stores that exact value because the timer divider rarely produces a round number. Measure a 5 MHz signal with it and the difference is 34,483 hertz, so the coefficient is 0.006897. The 4.4 millisecond record then contains about 144 points of the signal's period rather than one, and the apparent resolution is 720 megasamples per second.

| Quantity | Value at 5 MHz on the F303RE |
|---|---|
| Real sample rate | 4,965,517 Sps |
| Difference from the signal | 34,483 Hz |
| Samples per signal period | 144 |
| Apparent sample rate | 720 MSps |
| Error if the rate were known to six digits | 0.014 percent |
| Error if the rate were known to four digits | 1.44 percent |
The last two rows are why the documentation insists that the real sample rate be known to six significant figures. The coefficient is a ratio of two nearly equal numbers, so a relative error in the sample rate is amplified by the ratio of the signal frequency to the difference. With a six-digit rate the reconstructed time axis is good to about one part in ten thousand. With four digits it is off by more than one percent, and the frequency read from the trace is wrong by the same amount.
Two limits are worth stating. Undersampling is aliasing by another name: any content above the sample rate folds back and lands in the record, and no amount of re-timing separates it afterwards. And the aperture from the previous section still applies, because each point is still a 20.8 nanosecond average. At 5 MHz that is a 0.7 percent amplitude loss, at 20 MHz it is 10 percent, and the method runs out where the sinc response does.
The bus is part of the sample rate
The last constraint is the cable, and it is the one that decides whether the instrument feels like a scope at all.
Every acquisition is a buffered capture followed by an upload. The samples land in the board's memory through DMA, the PC requests the record as a binary block, and the record is drawn. There is no streaming path, and the arithmetic shows why: two bytes per sample at 4.965 MSps is 9.9 megabytes per second, which is more than eight times what a full-speed USB link can carry. Even the 0.8 MSps boards need 1.6 megabytes per second, one third more than the bus provides.
The transport therefore sets a ceiling on how often the display can update, and the two transports differ by two orders of magnitude.
| Transport | Raw rate | Bytes per second | 44 kilobyte record | Sustained samples at 2 bytes |
|---|---|---|---|---|
| UART through ST-LINK, 115200 bps | 115,200 bps | 11,520 | 3.82 s | 5,760 per second |
| USB full speed, 12 Mbit | 12 Mbit/s | 1,200,000 | 37 ms | 600,000 per second |
The UART column is the one to remember, because it is the path most people try first: the ST-LINK header is already attached to the Nucleo board, and the virtual COM port costs nothing to open. One full record takes nearly four seconds to transfer, which turns a scope into a plotter. The firmware's own device string for the F303RE names both transports, USB and USART2 at 115200 bps, and the application's status bar reports latency rising into the hundreds of milliseconds when the link is busy. Over USB the same record arrives in tens of milliseconds, and the difference in the feel of the instrument is not subtle.
What six dollars does not include
The project describes itself as a scope for six dollars, and that number is honest about the board and silent about everything around it. Adding up what the analysis above leaves out is a more accurate way to describe the product than any specification.
The input range is the converter's range: zero to 3.3 volts, single ended, referenced to the board's ground. There is no attenuation ahead of the pin and no way to add it in software, so a ten-to-one probe reads almost nothing and a signal above the supply is out of range. An analog input pin is not a five-volt tolerant digital pin; the absolute maximum is the analog supply plus a few tenths of a volt, and beyond that the pin's protection diode conducts and the current has to go somewhere.
There is no protection network, no series resistor, no clamp, no isolation and no calibrated front end. The last of those is worth separating from the others: the firmware reads the internal reference to correct the supply voltage it uses as a scale factor, and on the F1 boards it runs the converter's own offset calibration at startup, which removes errors inside the chip, but nothing corrects the pin's input capacitance, the source impedance, or the absence of an attenuator. Those remain properties of the circuit the user built.
And there is no isolation, which is the electrical reason behind the warning not to connect this to mains or to anything referenced to it. The board's ground is the PC's ground through the USB cable. Connect the probe clip to a node that is not at earth potential and the return current finds its way through the USB shield, the host controller and the motherboard. Nothing in the six dollars is designed to survive that, and neither is the computer.
None of this makes the instrument worse than it claims to be. It makes it an acquisition chain with published constants, which is a more useful thing to have than a scope with a sealed specification: the four numbers that decide what it can measure are all in the source, and the arithmetic above can be repeated on any board in the list in a few minutes.
The habit transfers. Before trusting a rate, check the converter count and divide by the channels in use. Divide the memory by the rate and ask whether the record is long enough to contain the event. Multiply the source resistance by the sample capacitance and ask what bandwidth is left. Then look at the cable. Any one of the four questions would have caught the misreading; the sample rate alone answers none of them.