Quadruped Robot Control is an Arduino-based program developed for a competition. It is designed to control a robot with four legs, using Three servos for each leg. The robot can walk, climb, rotate, and other, and it has ultrasonic sensors to detect obstacles for ABU Robot Contest Thailand Championship 2019
- Arduino Mega
- Four-legged robot with three servos for each leg
- Ultrasonic sensors
- Clone the repository or download the ZIP file.
- Open the 'Quadruped Robot Control.ino' file in the Arduino IDE.
- Connect the Arduino Mega to your computer via USB.
- Select "Arduino Mega" as the board type and choose the appropriate serial port.
- Upload the code to the Arduino.
- Connect the ultrasonic sensors to the appropriate pins on the Arduino Mega.
- Connect the servos to the appropriate pins on the Arduino Mega.
- Connect the power supply to the servos and the Arduino Mega.
- Turn on the power supply.
- Press one of the three switches ('sw1', 'sw2', or 'sw3') to select the operating mode.
- The robot will perform the selected mode. The eight modes are:
- Mode 1: Walk
- Mode 2: climb_d
- Mode 3: climb_u
- Mode 4: climb_w
- Mode 5: roped
- Mode 6: ropeu
- Mode 7: rotatiol
- Mode 8: rotationr
You can customize the delays for the rotation, climb, and walk by changing the values of the following variables:
- 'r' and 'rt': Delay for rotation
- 'c' and 'ct': Delay for climb
- 'w' and 'wt': Delay for walk
You can also change the values of the servo positions in the following arrays:
- 'setting': Initial position of the servos
- 'standnew': Standing position of the servos
- 'climbu_1' to 'climbu_7': Climbing positions of the servos
This program is licensed under the MIT License - see the LICENSE file for details.