Testing Lego+ Base and Suggestion
I tested the Lego+ Base using three Lego NXT Motors. I am using UiFlow and it seems that not too much can be done with the present version. We know that the Lego NXT motor has an encoder and from the software side, we can control the movement of the motor precisely using the unit of "Rotation", "Degree" and of course simple PWM speed (combine with a time interval). In addition, after a certain amount of shaft movement, usually, we would like to let the motor brake or coast away.
My testing program used all the available features provided by the UiFlow, and you can see that driving (unload) the motors forward and backward with the same PWM speed does not necessarily bring the motors back to their initial positions. This is frustrating for a serious project.
I forgot. I wanted to say that the PID feature of the Lego motor should be included in the future improvement of the Lego+ base API. Thanks.
@liemph the LEGO+ module don't provide PID API yet. if you want the use PID API , you could use BASE X module。
@m5stack Thanks. I am now experimenting with Base X.