You can click this image for a demo video
The Hexapod can be controlled using a tkinter GUI or with a more classic prompt.
Both work the same way and are easy to use.
- Plug in the battery
- Turn it on
- Connect to the Hexapod wifi (no password required) (or plug the mini usb cable)
- Launch Client/main.py
- Just use the action buttons (sit, stand, walk...)
There are two mains usages for the gui
-
Call predefined function (at the bottom). Those are hardcoded movements like sit, stand etc ...
-
Test a specific action (most of the others widgets)
-
If you use
forward,backward,rotate_rightorrotate_leftyou have to stop the movement usingstop -
You must be in position
stand1if you want to calldab,forward,backward,rotate_right,rotate_leftorwave
Allows you to choose with which engine you want to work
-
LeftandRightselect the side of the engine you want to move -
Front,MiddleandRearselect the position of the engine -
Hori,VertiandKneeselect which engine you want to move -
All typescheckbox allow you to move all engine of a specific type at once (types arekneevertiandhori) -
Liveis quite cool, it allows you to directly send the command when theAngleslidebar is changed
Combining Live and All types is useful !
Allows you to change the angle of an engine
- The slidebar can be moved to change the angle of an engine
- The little textbox on the left is here if you need a value that is not on the slidebar
- The
Angle Equivalentlabel on the right shows you the exact value that will be send to the engine (mainly for debugging)
Allows you to change the speed of the movements
-
The slidebar can be moved to change the speed
-
The little textbox on the left is here if you need a value that is not on the slidebar
-
the
Action speedcheckbox on the right if you want to apply the selected speed to the predefined actions. (The default speed for actions is 700) -
sendbutton send the command
A little history of the command you sent
- After a command is sent, it will be shown in the history
Playbutton play a selected commandPlay allbutton play all command of the history in the order they arrivedEditallows you to edit a selected commanddeleteallows you to delete a selected commandclearclears history
Change the angle min/max values of an engine
Minvalue is controlled with the left slidebarMaxvalue is controlled with the right slidebarSaveButton save the values in Client/constants.json
This panel is mainly used for debugging and engine calibration
Connect :
-
VS2+from the Hexapod toVINon the ESP-32. -
VS2-from the Hexapod toGNDon the ESP-32. -
TXfrom the Hexapod toD2on the ESP-32. -
RXfrom the Hexapod toD15on the ESP-32. -
Gfrom the Hexapod toGNDon the ESP-32.
- Flash the arduino code from
./Arduino_codeto the ESP-32. - The file to flash is ./Arduino_code/hexapod.ino
For any assistance, feel free to ask to:
-
lorenzo.rosmarino@epitech.eu -
yohann.assouline@epitech.eu
The official webpage : http://www.lynxmotion.com/c-117-phoenix.aspx
