Ok so i have been coming up with ideas for a way to auto feed my fish using a raspberry pi. I think i have the mechanical part mostly complete and i want to use servos to control two gates on the design. I want to have the pi running 24/7 then at certain times during the day it dispenses food into the tank. I am very new to coding and my only project before this one was a time lapse device using the raspberry pi camera that took photos every 10 seconds, very basic programming. I am also unsure of how to connect the servos to the pi, like i have done a bit of research and most people are running the servos with external power supply's. But i am still very confused about which pins do what and where wires should connected.
So basically i am asking how to first connect wires to the GPIO pins on the board and then have a python script that is constantly running and will dispense food at a certain time each day. Even if you could just help with the script part of this project that would be great.
Thanks in advance