The project demonstrates how to make the Quadruped detect the hand in front of it and move according.
Type 1 – Forward Backward
The logic is simple. If the distance measured from the ultrasonic sensor is less the robot will move toward the hand. Else the robot will lean backward.
Code
Type 2 – Upside Down
If the distance measured from the ultrasonic sensor is less the robot will face upwards towards the hand. Else the robot will look downward.
Code