Hobby servos are nifty and useful for a wide range of projects. There’s nothing stopping you from building your own servos though, and you can even give them nifty features like 360-degree ...
A servo uses a potentiometer attached to the output shaft in order to sense position, and the internal electronics take care of driving the motor to move the shaft to the desired angle.