I am looking to use the motor2040 to control 4 motors with encoders.
Ideally I would be able to control these motors from a remote system - so that I can monitor and control the rpm of each connected motor from a seperate system (whether that is via UART, USB, I2C…) - perhaps setting the board up as an I2C peripheral/slave device?
Does anyone know if this is possible? I think the answer might be “yes, but the code does not yet exist”?
It looks to me that if I know the encoder PPR I can, using the supplied libraries, output the RPM over the serial console…
There are I think only 2 analogue inputs broken out, but I could use one of them, on a potentiometer, coupled with the push button as a selector, to let a user change the target RPM…does that sound like it could work?
I might also be able to read a requested RPM from serial input…but haven’t looked int how yet!