Smart Trashbin metal detector with coin reward... need help

How come? I thought to only have to drive the servo I just need 5volts to 6 volts therefore I use voltage regulator since I have 9volt.