A legged robot controller using Buehler clock gait with synchronized haptic feedback for granular substrate locomotion.
This project controls a 4-legged robot using Dynamixel XL-320 servos and DRV2605L haptic motors. The system implements a biologically-inspired gait pattern with vibration feedback during leg swing phases to aid in substrate penetration.
- 4x Dynamixel XL-320 servos (IDs: 21, 6, 8, 1)
- 2x DRV2605L haptic motor drivers
- Arduino-compatible microcontroller
├── Final_Project/
│ ├── Final_Project.ino # Main control program
│ ├── Motor_1_Control.h # Front legs haptic control
│ └── Motor_2_Control.h # Rear legs haptic control
├── Motor_Sanity/
│ └── Motor_Sanity.ino # Motor testing utility
└── EE579_Final_Project.docx # Project documentation
- Buehler clock gait algorithm with configurable phase offsets
- Synchronized haptic feedback during swing phase
- Real-time power consumption monitoring
- Multiple gait modes (trot, walk, bound)
- Upload
Final_Project.inoto your Arduino - Connect servos and haptic motors as per pin configuration
- Serial debug output available at 115200 baud
| Component | Pin |
|---|---|
| Dynamixel | Default serial |
| Motor 1 (Front) | Hardware I2C |
| Motor 2 (Rear) | Software I2C (4, 5) |
| Debug Serial | Software Serial (7, 8) |
EE579 - USC Fall 2025