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_right
orrotate_left
you have to stop the movement usingstop
-
You must be in position
stand1
if you want to calldab
,forward
,backward
,rotate_right
,rotate_left
orwave
Allows you to choose with which engine you want to work
-
Left
andRight
select the side of the engine you want to move -
Front
,Middle
andRear
select the position of the engine -
Hori
,Verti
andKnee
select which engine you want to move -
All types
checkbox allow you to move all engine of a specific type at once (types areknee
verti
andhori
) -
Live
is quite cool, it allows you to directly send the command when theAngle
slidebar 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 Equivalent
label 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 speed
checkbox on the right if you want to apply the selected speed to the predefined actions. (The default speed for actions is 700) -
send
button send the command
A little history of the command you sent
- After a command is sent, it will be shown in the history
Play
button play a selected commandPlay all
button play all command of the history in the order they arrivedEdit
allows you to edit a selected commanddelete
allows you to delete a selected commandclear
clears history
Change the angle min/max values of an engine
Min
value is controlled with the left slidebarMax
value is controlled with the right slidebarSave
Button save the values in Client/constants.json
This panel is mainly used for debugging and engine calibration
Connect :
-
VS2+
from the Hexapod toVIN
on the ESP-32. -
VS2-
from the Hexapod toGND
on the ESP-32. -
TX
from the Hexapod toD2
on the ESP-32. -
RX
from the Hexapod toD15
on the ESP-32. -
G
from the Hexapod toGND
on the ESP-32.
- Flash the arduino code from
./Arduino_code
to 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