The book «Build an HEXAPOD»
Summarizing the six months of research needed to build the robot, I wrote the book "COSTRUIRE UN HEXAPOD", which I later translated into English as "BUILD AN HEXAPOD".
Already have the book? Open the download area: FreeCAD drawings, STL files and code.What's in the book
The book explains the whole process of designing and building the robot.
After a dimensional analysis that lets you choose the servos you need, and so roughly understand the size of the robot, the 3D drawing software Freecad is introduced. The basic use of the program is explained, with everything needed to draw the robot parts.

Once all the parts are drawn, I explain how to install and use LycheeSlicer, which lets you load the STL files and prepare them for printing. While setting up the program I show the differences between the resins used, in order to configure the supplied resin libraries.

I then explain how to print the parts, clean them, cure them and assemble them into a finished robot.

Then the electronic control circuit is explained. Once the robot is assembled, the procedure to calibrate all the servos is shown.
With the hardware completed, the Arduino IDE software used to program the robot is introduced, showing how to install the required libraries and boards.
Then the geometry of kinematics and especially inverse kinematics is covered, with an approach that is easy to follow despite the complexity of the topic.

After implementing and testing the algorithms with Arduino IDE, an implementation is proposed that, although not written in assembler, achieves remarkable performance.
Once the legs can be positioned correctly, the question is how to control the robot. Of course, a system is developed to control it through the serial interface. For the best ergonomics, a wireless interface is created to connect a PS2 controller.

This interface is built as an I2C interface with an Arduino UNO, modifying the original controller.
Finally, a webserver is implemented on an ESP32-CAM board, which lets you control the robot remotely while watching the view from the camera.

This board is also programmed with Arduino IDE, and its integration into the system is explained. Since the PS2 controller uses I2C, the ESP32 is connected via serial, to look at this kind of connection between devices as well.
Once the control systems are in place, several complex movements are analyzed, and the book explains how they can be triggered by the 3 systems.
For all the hardware needed, an online supplier is listed to make it easy to find (see the materials).
Since the book is meant above all to teach, clarity comes first.