Thanks for the suggestions @Antun_Skuric and @Owen_Williams — keep’em coming!
I tried smaller
target_voltage between 0.1 and 1, no movement.
I started from the beginning, the
velocity_openloop example worked like a charm — so did the
Go back to the voltage test you pasted above and set voltage to zero. Now manually rotate motor.
One rotation is pretty much exactly 6.2. Turning it back is 0.
I commented out the
motor.foc_modulation line — no change.
As mentioned above, one rotation by hand results in a radian of around 6.2. I also tried it the
open_loop_position example with several values like 6.2, 62, 0, -6.2 leading to the expected rotations.
One more thing I noticed in the
voltage_control example, after repeating the following procedure a couple of times:
- set the voltage to 0
- turn the motor by hand to a random position
- set the voltage to 1
- motor rotates a couple of degrees
It seems that the motor always stops at the same couple of positions (maybe 3, could be more). It looks like there are «steps» where it just wouldn’t rotate any further. Have you experienced something like this?
I also setup the ESP32 but to no success. Almost exactly the same behaviour — with the exception of a very high pitched sound emitted by the motor when controlled by the ESP32.