I'm working on a project called "The candy box", which is a box that open a little door with a servo when you press your button, so it can administrate the candies (my father and me eat them without noticing it, so my mather and sister get angry
Anyway. when I was working on the project, I conected the servo (a TowerPro SG92R, works from 3V to 6V) to the 5V pin of the RasPi, and everything works properly. When y powered the servo with an external source, a 5V-1A supply or an Arduino UNO, starts rotating in 360° continuously (like a normal dc motor), when it's supposed to rotate only 180°. The servo works fine with the UNO and with the Pi (as long as I connect it to the power rails of the Pi), so isn't broken.
¿What's happening? ¿Is there something I don't know about servos?