DC Motor Control via Grove I2C Motor Drivers

Hi there,

I have a Raspberry Pi B (512MB version) connected to it is a GrovePI device and from there, 2x Grove I2C Motor Drivers are connected via I2C cables.
I have a 12v battery also connected to be able to power the motors.

i2c is enabled and starts at boot.

i2cdetect -y 1 gives me 2 addresses

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – -- – -- 04 – -- – -- – -- – -- – -- 0f
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – -- – -- – -- – -- – --

and so I now need to control my DC motors but I’m stuck at the first hurdle of how to program I2C in python.

I currently have 2 motors plugged in to one controller.

I think the problem is that most examples I’ve found are for Arduinos and that is in C, not python.
I think the other problem is that most DC motor examples are using GPIO and not i2c, which isn’t helpful either as ultimately I will be controlling 4 motors and my GPIO cannot handle that many because I also have an Adafruit Touch Screen attached.

I would love to have some assistance if anyone is able to give me any pointers.

Many thanks in advance,
Simon

Even with the correct code this seems to not be working, and has a huge lack of support anywhere on how to get it working with the raspberry pi.

Very misleading on the site where it claims it works for the Pi as I have yet to get this device to work.