Thanks to RaspberryPi for the idea, images and start to the code. Find the tutorial here: https://projects.raspberrypi.org/en/projects/archery