can virtual library be used with PID controller

stm32 is a 2$ arduino due 19 $

You can get ESP32 dev boards without OLED for 5$ on aliexpress, 160MHz, Wifi and bluetooth already in place, and programmable by Arduino IDE: