I want to design and develop my own bipedal sim-to-real robot from scratch after being inspired by MicroDuck. For starters, I want to design a small bipedal humanoid robot with 13 degrees of freedom (DoF), very similar to MicroDuck's joint placement. For each leg, there will be a DoF in the ankle and knee, and three in the hip (roll, pitch and yaw), giving me 10 motors across both legs. Then two DoFs in the neck for up-and-down articulation and positioning, and one in the head for side-to-side movement.
My initial plan (sorry if I am overexplaining; I am still learning) is to first select the hardware to determine the approximate size and weight, then design the robot in sections using FreeCAD. Using this model, I will determine a rough weight, centre of gravity and moment of inertia. I will then import this data, along with the robot's geometry and joint configurations, into MuJoCo, where I can set up and simulate the robot with its estimated weight and other components.
I will revise my design if necessary before 3D printing and assembling the robot in real life. Once assembled, I will measure the actual weight, centre of gravity and moments of inertia, then update these values in the simulation to make it more representative of the physical robot.
Once I have a sufficiently accurate model, I want to transfer the controller to the physical robot and hopefully get it running smoothly, initially doing something basic like holding its balance or walking. From there, I can go back, change the simulation conditions, introduce domain randomisation and continue developing the AI/neural network to improve its performance.
That's my current plan, but I'm unsure whether it's realistic or if I'm overlooking anything important.
Hardware and electronics
My current thinking is to use a Raspberry Pi Zero 2 W as the main computer. This would act as the brain of the robot, running the AI agent and making decisions about how the robot should move.
I was then thinking of connecting an ESP32-S3 via UART serial communication. This would act like the spinal cord, taking inputs from the IMU, other sensors and motor positions, sending that information back to the Raspberry Pi, and then receiving movement instructions from the AI to control the motors accordingly.
My main concern currently is how to get the Raspberry Pi and ESP32 running simultaneously, with one running the agent and sending instructions while the ESP32 handles the sensor data and executes the motor commands. I know I can connect them through their TX and RX pins, but I'm not really sure how the communication works between the two, what the software architecture would look like, or how to write the code required to run both together.
In terms of motors, I'm currently considering the FEETECH HD-1910-C001 smart serial bus servos. They have smart motor control, and I believe I can utilise their position and load feedback to improve the control system and make the simulation more representative of the physical robot.
There is currently an AliExpress sale for 15 of these motors for around $400 AUD, which is quite appealing. However, my overall budget is around $500 AUD, and I don't want to purchase them before knowing whether they are actually suitable for my project.
For sensors, I'm thinking of using:
- BNO085 IMU.
- A camera module (still deciding which one).
I'll also need some sort of battery pack and power distribution system to power everything.
The whole robot will hopefully be around 27 cm tall and under 800 grams, if I can help it.
Questions and things I'd love some feedback on
1. Hardware architecture: Is using a Raspberry Pi Zero 2 W alongside an ESP32-S3 a sensible approach? Is the Pi capable of running a lightweight AI controller while simultaneously communicating with the ESP32?
2. UART communication: How should I structure communication between the two boards? What would the software architecture look like, and how should movement commands and sensor feedback be exchanged? How would I get the AI agent running on the Raspberry Pi to make decisions and send instructions to the ESP32, which then controls the actual motors?
3. Servo control: How do I communicate with and control the FEETECH HD-1910-C001 servos? I'm particularly interested in how to read their position and load feedback and incorporate this into the control system. Are these motors suitable for a project like this?
4. Simulation: Is MuJoCo a suitable choice for this project? How accurately can I transfer a FreeCAD model into MuJoCo, including its mass, inertia and joint properties?
5. Sim-to-real: Is my proposed workflow sensible? Should I be approaching the simulation and physical testing differently? At what point should I introduce domain randomisation, and how should I go about transferring the trained controller from simulation to the real robot?
6. Mechanical design: Is a 27 cm humanoid with 13 DoF and a target weight below 800 grams realistic with these components? Are there any mechanical considerations I should account for before starting the CAD design?
7. Power: What sort of battery and power distribution setup would be appropriate for this number of servos, particularly considering the current draw when multiple motors are operating simultaneously?
This project might be a bit too ambitious for a first robotics project of this type using AI, but it's something I'd really love to learn more about and work towards. I'm trying to get a much clearer picture of the entire process before purchasing anything, particularly the motors, as I don't want to spend most of my budget on components that turn out to be unsuitable.
If anyone has any feedback, suggestions or alternative approaches, I'd really appreciate it. I'd also love to hear from anyone who has worked on similar small-scale bipedal robots or sim-to-real projects.
Thank you for your help in advance!