I'm having trouble connecting an SD card module to the MKR2UNO board.
I found this on the documentation of the board and I've tried everything.
Unlike the Arduino UNO, the MKR2UNO Adapter do NOT have I2C signals on A4 and A5 and SPI on pins 11, 12 and 13, but then which pins are the correct ones?
I've tried the SPI pins 8,9 and 10 from the MKR1000, but nothing.
For SPI, use the 2x3 ICSP header on the MKR2UNO. You can see the pinout of it here:
For I2C, use the pins marked SCL and SDA.
The form factor of the MKR2UNO is the same as the Uno, but the pinout is not exactly the same, similar to the Leonardo vs. the Uno. The SDA/SCL and ICSP header are standardized on all boards of this type (Uno, Leonardo, Zero, Due, 101, MKR2UNO). SDA/SCL being on A4/A5 and SPI being on pins 11, 12, 13 are specific to the Uno only, so it's not such a big deal that the MKR2UNO was not able to match that part of the Uno pinout.
I've connected the headers of the MKR2Uno board to their equivalent pins on the SD card module, but i'm still not getting any response. The code doesn't get pass the SD.begin(4).
I'm not sure what else to do.
pert:
For SPI, use the 2x3 ICSP header on the MKR2UNO. You can see the pinout of it here: SPI - Arduino Reference
For I2C, use the pins marked SCL and SDA.
The form factor of the MKR2UNO is the same as the Uno, but the pinout is not exactly the same, similar to the Leonardo vs. the Uno. The SDA/SCL and ICSP header are standardized on all boards of this type (Uno, Leonardo, Zero, Due, 101, MKR2UNO). SDA/SCL being on A4/A5 and SPI being on pins 11, 12, 13 are specific to the Uno only, so it's not such a big deal that the MKR2UNO was not able to match that part of the Uno pinout.
I removed the SD card module entirely and this time I used the VCC,GRD, MOSI, MISO and SCK from the header with the module and it worked. Also the CS is on 4. Everything is good so far. Thanks for your help. You saved me.