SkillAgentSearch skills...

PiHexa18

Hexapod in python.

Install / Use

/learn @ViolinLee/PiHexa18
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div align="center">

banner

PiHexa V1

Hexapod project using Raspberry Pi Zero 2 W and Python

中文·README

</div>

📋 Table of Contents


⚙️ Setup Raspberry Pi Zero 2 W

Suppose the raspberry pi OS is installed:

  • WIFI connection configuration through /etc/wpa_supplicant.conf file
  • Make raspberry pi (Bluetooth) to be discoverable and paired
  • Enable I2C Interface for PCA9685 communication
  • Open SSH for debugging

🚀 Running the Main Process

Run this script on raspberry-pi:

sudo cd ~/PiHexa18/pihexa && python3 running.py
<div align="center">

RealHexapod

</div>

🎬 Animation

Run this script on PC with python packages of matplotlib and pynput installed, then you can switch walking mode of the virtual hexapod by pressing different keys on your computer keyboard:

python pihexa/animate.py

Watch this video to learn more: Plot hexapod walking gait using python script

<div align="center">

Animation Plot GIF

</div>

📖 Brief Introduction

  • This project is the python version of the hexapod-v2-7697 project written in C++. I modified the size and structure, and redesigned the PCB
  • Remote control is done via BLE of Raspberry Zero 2 W
  • It has 6 legs and each has 3 joint. So there are total 18 Servo motors (Only support GuoHua A0090, JX PDI1181MG now and TowerPro MG92B in the future)
  • NXP PCA9685 x 2 are used to control these servo motors
  • Power comes from a 2S Lipo battery (7.4v). Also 7 x mini360 DC-DC step down voltage regulator are used. One to provide 5V to Raspberry Pi, The other six to provide 5V to each legs (1 mini360 serve 3 servo)
  • The body is 3D printed PLA. I use Anycubic i3 Mega S
  • Everything (3D STL, PCB schematic, Python source code) are included in the project under GPL license, Happy making!

🎥 Demonstration (Video)


🚀 New Project: ESP32 Hexapod

Looking for an upgraded version? Check out my latest hexapod project powered by ESP32 with improved hardware design and enhanced performance!

🔗 ESP32 Hexapod Project

Key Improvements:

  • ESP32 main controller for better performance and connectivity
  • Upgraded hardware design with improved servo control
  • Better power management and efficiency
  • More responsive real-time control

<div align="center">

Happy Making! 🤖

</div>
View on GitHub
GitHub Stars299
CategoryDevelopment
Updated16h ago
Forks71

Languages

Python

Security Score

75/100

Audited on Apr 8, 2026

No findings