STM32-based sampler