I've been doing some STM32 programming recently as part of my
Mini-Mapper
project (using an STM32F767ZI). I needed to collect samples from
several analog inputs at a fixed frequency, for monitoring motor
torque. A simple thing to do, right? But the obvious way to do it
isn't necessarily the best.
In this series of three articles, I'm going to try to show a better
way. Some of this will be quite boring (it's just configuring
microcontroller peripherals, after all), so I allowed myself a bit of
time for a fun "finisher" at the end.
There's a video demonstrating
each of the examples covered in this series of articles. It's
probably most useful to watch it in conjunction with reading the
articles.