

Adafruit_MotorShield AFMS = Adafruit_MotorShield(0圆1)

Or, create it with a different I2C address (say for stacking) Create the motor shield object with the default I2C addressĪdafruit_MotorShield AFMS = Adafruit_MotorShield() PS3BT PS3(&Btd, 0x00, 0x15, 0x83, 0x3D, 0x0A, 0x57) // This will also store the bluetooth address - this can be obtained from the dongle when running the sketch PS3BT PS3(&Btd) // This will just create the instance * You can create the instance of the class in two ways */ USBHub Hub1(&Usb) // Some dongles have a hub insideīTD Btd(&Usb) // You have to create the Bluetooth Dongle instance like so Satisfy the IDE, which needs to see the include statment in the ino too. #include “utility/Adafruit_MS_PWMServoDriver.h” It won’t work with v1.x motor shields! Only for the v2’s with built in PWMįor use with the Adafruit Motor Shield v2 This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2 I have combined both examples as a test project, and the SW reads like this: I will appreciate any input on this project With this SW I can still see that the motor shield works fine but I loose the BT connectivity with the USB Host shield On the Hardware side I have stacked the Arduino UNO then the Motor Shield and then at the very top the USB Host shield The documentation of the USB Host shield uses the SPI ports I have read the documentation of the Motor shield that the only PINS used on the shield are the SDA/SCL on the Arduino UNO these are also known as A4 and A5. It works perfectly and I can check the full functionality of all bottons and triggers using the serial monitor I have successfully tested the Arduino UNO + the USB Host Shield + the PS3BT Dongle + the PS3 Controller I have successfully tested the Arduino UNO + the Motor shield alone, It works perfectly To control 3 DC motors connected to the Motor shield A USB Host Shield rev2.0.1 from want to connect the USB Host Shield to a PS3 controller through a Bluetooth Dongle
