Suppose the raspberry pi OS is installed:
- WIFI connection configuration through
/etc/wpa_supplicant.conffile - Make raspberry pi (Bluetooth) to be discoverable and paired
- Enable I2C Interface for PCA9685 communication
- Open SSH for debugging
Run this script on raspberry-pi:
sudo cd ~/PiHexa18/pihexa && python3 running.pyRun 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.pyWatch this video to learn more: Plot hexapod walking gait using python script
- 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
BLEofRaspberry Zero 2 W - It has 6 legs and each has 3 joint. So there are total
18Servo motors (Only support GuoHuaA0090, JXPDI1181MGnow and TowerProMG92Bin the future) - NXP
PCA9685x 2 are used to control these servo motors - Power comes from a
2S Lipo battery (7.4v). Also 7 xmini360 DC-DCstep down voltage regulator are used. One to provide5Vto Raspberry Pi, The other six to provide5Vto 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!
- Bilibili: 开源树莓派Python编程六足机器人功能介绍和运动测试
- YouTube: Open Source Hexapod using Raspberry Pi Zero 2 W and Python
Looking for an upgraded version? Check out my latest hexapod project powered by ESP32 with improved hardware design and enhanced performance!
- 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
Happy Making! 🤖


