https://www.raspberrylovers.com/2019/08/motor-control-using-raspberry-pi.html