Usually, when you want a servo motor, you simply buy one already made ... There is also a 3D printed gearbox and housing. Overall, a very well-done project. The motor control uses a PID algorithm.
[Giovanni] took apart an economical mini servo and after replacing the motor with a 100:1 gear motor and using it to power a compact 3D printed linear actuator, he used the servo’s potentiometer ...