Shop OBEX P1 Docs P2 Docs Learn Events
P1 controlling Adafruit Motor Shield V2 — Parallax Forums

P1 controlling Adafruit Motor Shield V2

I have bought a Adafruit Motor Shield V2 for Arduino, but of course it is Propeller and Spin that is my family. The shield is controlled by means of I2C, but so far I have not been able to find the I2C commands it is using. Does anyone know? - or do I have to dig down into the Arduino C libraries to find them - which is no fun at all?

Erlend

Comments

  • https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/stacking-shields
    look at:
    Addressing the Shields
    Each board in the chain must be assigned a unique address. This is done with the address jumpers on the lower edge of the board. The I2C base address for each board is 0x60. The binary address that you program with the address jumpers is added to the base I2C address.
  • Adressing the shield is ok, but commanding it is another thing. I appears that it is only a pwm chip running some h-bridges++, so the high level commands I expected are not there, only the I2C commands to run the pwm chip. Means I will have to write a more extensive port from either the C libraries or Python that Ada has.

    Erlend
Sign In or Register to comment.