A small but complete control-and-test platform: a 3.3 V microcontroller safely drives an externally powered load, changes its output while running over a serial command line, and keeps credible validation evidence.
0.04 VMOSFET on-state drop
9.38 mAmeasured load current
115200UART baud
5 / 5PWM points matched


| PWM command | Expected average | Measured average |
|---|---|---|
| 0% | 0.00 V | 0.00 V |
| 25% | 0.82 V | 0.82 V |
| 50% | 1.64 V | 1.64 V |
| 75% | 2.46 V | 2.46 V |
| 100% | 3.28 V | 3.28 V |
Known limitation: TIM2 is set for a nominal 1 kHz, but the frequency and edges haven't been checked on an oscilloscope yet.
Oscilloscope capture (to do)1 kHz PWM at 25 / 50 / 75%
stm32-scope.png