https://shop.sb-components.co.uk/blogs/posts/controlling-dc-motor-using-raspberry-pi