Hello, I am a student trying to control a hexapod robot using the servo2040.
I have tried various uf2 files to establish communication in the Raspberry Pi Linux environment, but nothing works. Although I installed the simple driver and tried to add libraries, I only found pimoroni.py, and servo2040.py was missing, so I failed.
Control through the Android chica server and chica android app works well.
However, even after installing firmware compatible with Linux Python on the servo2040 and sending simple commands from the Linux terminal, the servo2040 only responds by turning off its indicator light without actually moving.
What should I do to make it work properly?
Is it possible to decompile the Android app to extract the communication protocol and make the Python code run? This has been very difficult for me.
Ultimately, I want to use a LiDAR camera and AI tools like YOLO on Raspberry Pi 5 to control the robot, but I’m currently unable to even control one leg, so I feel overwhelmed and am leaving this comment hoping for advice.
Is there firmware or communication methods that work with Linux Python code?
I don’t know where or how to start learning this, so I’m lost. Please help. I need expert assistance.
I assume you connect the Servo2040 with an usb-cable with the Pi. The device should show up as an tty-device in Linux (/dev/ttyACM0 usually). Use this device on Linux side to communicate with the Servo2040.
But be aware that you have to write your own protocol. I.e. you define which data the Pi sends over the serial line, and a second program on the Servo2040 has to read it and act accordingly.