I want to build a 2 wheel balancing robot like this, the motor I'll use are these ones, but I need help to find the ESCs to control them. The motor (not the output shaft) will run around 5000RPM and may go slow for fine adjustment. Any advice on the ESCs caracteritics I need to look at ?
Speed control requires feedback from the motor or output shaft. Read the speed pulses of the encoder and feed it into your software regulator (PID?) to obtain the duty cycle of the PWM signal to a motor driver board. The driver board should handle the voltage and current required for your motor.
You don’t need and ESC to drive that motor you need a H bridge controller . The motor speed you set with a pwm output from your Arduino - whether it’s fast enough I’ve no idea
The video is using stepper motors , not the same as those you are considering , which appear to be a dc motor with a shaft encoder
(?)
You probably don’t need to use the encoder as the balancing feedback signal comes from some other sensor and motor position is not important .
I planned on only using the IMU to get the pitch and then feed it into the PID do you think it could work with this sensor only? (The encoders were part of the wheel kit and I did not intend to use them)
The IMU provides a rotational speed. Conversion into an angle by integration is subject to offset and noise. An integrated offset can make the angle run away.
Oh sorry, I wanted to say MPU, so the draft is not that bad. I've run a few tests with the MPU 6050 and the oscillations are around 0.1° which I think are small enough for this application.
IMUs provide orientation in 3D space, without runaway. The combination of gyro and accelerometer assures that. Only in the yaw axis is rotation drift an issue (if no compass is used). The yaw axis is not used for balancing.