MicroPython support for any motor controllers?
Forums:
Hi, I'm planning to either use three ThunderBorg motor controllers (which I have been using for several years) or the PicoBorg Reverse for a Mars rover project.
I'd like to connect the motor controllers to an MCU running MicroPython rather than the Pi, so I was wondering if either the Python library for the ThunderBorg or PicoBorg Reverse has been ported to MicroPython. If not, I'd probably have to use a different board since I'm not sure I'd be up to porting it myself.
Thanks for any information.
piborg
Tue, 10/26/2021 - 19:25
Permalink
MicroPython support
We do not have a premade library version of either the ThunderBorg or PicoBorg Reverse library, but it does not look like it would be too difficult to modify the existing libraries to work.
The main functions that would need to be changed are
RawWrite
,RawRead
,Init
andInitBusOnly
- these all work with the standard Linux style I2C driver at the moment.There may be some other bits that need a slight adjustment, but for the most part it should be a fairly straight forward set of changes to make.
Looking at the MicroPython website it seems like the provided I2C library is simple to use.
Example from https://micropython.org/
I would be happy to have a go at making the changes if that would help.