from servo import Servo
import time
SV1_servo = Servo(pin=15) #To be changed according to the pin used #HIP
SV2_servo = Servo(pin=14) #To be changed according to the pin used #UPPER LEG
SV3_servo = Servo(pin=16) #To be changed according to the pin used #LOWER LEG
while True:
SV1_servo.move(45) # turns the servo to 45°.
SV2_servo.move(120) # turns the servo to 120°.
SV3_servo.move(90) # turns the servo to 90°.
time.sleep(1)
SV1_servo.move(135) # turns the servo to 135°.
SV2_servo.move(60) # turns the servo to 60°.
SV3_servo.move(90) # turns the servo to 90°.
time.sleep(1)
SV1_servo.move(45) # turns the servo to 45°.
SV2_servo.move(60) # turns the servo to 60°.
SV3_servo.move(90) # turns the servo to 90°.
time.sleep(1)
SV1_servo.move(135) # turns the servo to 135°.
SV2_servo.move(120) # turns the servo to 120°.
SV3_servo.move(90) # turns the servo to 90°.
time.sleep(1)
SV1_servo.move(45) # turns the servo to 45°.
SV2_servo.move(120) # turns the servo to 120°.
SV3_servo.move(90) # turns the servo to 90°.
time.sleep(1)