Thanyasit / Quadruped_Robot_Control

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quadruped Robot Control

Description

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

Hardware requirements

  • Arduino Mega
  • Four-legged robot with three servos for each leg
  • Ultrasonic sensors

Installation

  1. Clone the repository or download the ZIP file.
  2. Open the 'Quadruped Robot Control.ino' file in the Arduino IDE.
  3. Connect the Arduino Mega to your computer via USB.
  4. Select "Arduino Mega" as the board type and choose the appropriate serial port.
  5. Upload the code to the Arduino.

Usage

  1. Connect the ultrasonic sensors to the appropriate pins on the Arduino Mega.
  2. Connect the servos to the appropriate pins on the Arduino Mega.
  3. Connect the power supply to the servos and the Arduino Mega.
  4. Turn on the power supply.
  5. Press one of the three switches ('sw1', 'sw2', or 'sw3') to select the operating mode.
  6. 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

Customization

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

Example

License

This program is licensed under the MIT License - see the LICENSE file for details.

About

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.

License:MIT License


Languages

Language:C++ 100.0%