Servos can be controlled by sending an electrical pulse, or by pulse width modulation through the control wire. A servo motor can turn only 90° in either direction for a total of 180° movement. The motor’s neutral position is the position where the servo has the same amount of potential rotation in the both direction( clockwise or counter-clockwise). The PWM sent to the motor measures the position of the shaft, and based on the duration of the pulse the rotor will turn to the desired position.
You can control servo motors via arduino as well. Simply connect the control pin of the servo to the digital pin of the Arduino board, and the GND & the positive wires to the external 5V power supply. Also connect the Arduino GND to the servo GND. You will then require codes to control the motor. I have attached the link. Go through it. https://howtomechatronics.com/how-it-works/how-servo-motors-work-how-to-control-servos-using-arduino/
Khaja, maybe you can check out https://www.allaboutcircuits.com/projects/servo-motor-control-with-an-arduino/.