Hello (I am a noob),
I am using a brand-new Adafruit Motor Shield V2 and running it with an Arduino Uno and am attempting to run it with the Adafruit library. However, the I2C scanner is not detecting the motor shield. I am aware that the SDA/SCL pins are A4 and A5 and I believe that they are secure. I have made a test sketch for the I2C scanner:
#include <Wire.h>
void setup() {
Serial.begin(9600);
Serial.println("Scanning for I2C devices...");
Wire.begin();
for (byte address = 1; address < 127; address++) {
Wire.beginTransmission(address);
if (Wire.endTransmission() == 0) {
Serial.print("I2C device found at address 0x");
Serial.println(address, HEX);
}
}
Serial.println("Scan complete.");
}
void loop() {
// Nothing here
}
I am using a 6xAA battery. Here is my board:
