SPI ARDUINO NANO 33 IOT

Hi I have some sort of problems trying to find out which pin do I have to asign for SS/CS i have tried the digital pin nº10 but it doesn´t work.
Any help?
I am using Arduino nano 33 iot

Any help?

No, you failed to provide the necessary information. No code you used, no wiring diagram, no links to the used hardware, no description of what exactly went wrong (what was your expectation, what result did you get). Did you really read the sticky post at the top of the topic ("How to use the forum - please read") before posting?

Hi I just wanted to Know which pin is asigned to arduino nano 33 iot for SS/CS.

I have used the example that arduino provides for SD
However the problem is that I am constantly receiving this message in the Serial port:
"initialization failed!"

I suposse it is due to I have assigned the wrong ping for CS/SS and I can´t find out which pin do I have to asign

This is the part of the code:

if (!SD.begin(10)) {
Serial.println("initialization failed!");
while (1);
}

Hi I just wanted to Know which pin is asigned to arduino nano 33 iot for SS/CS.

You can use any available pin.

I suposse it is due to I have assigned the wrong ping for CS/SS and I can´t find out which pin do I have to asign

I suppose it's because of a wrong wiring. But without any information about your hardware and your wiring we cannot help you.

Hardaware:
Arduino Nano 33 IoT
AZDelivery 3 x SPI Reader Lector de Tarjeta SD TF
I have attached the photos of the conections

It will never work reliably if you don't solder the pin-headers to the Nano.
Leo..

I have also tried in a arduino uno and the same resoult

See post#1

It seems that you have connected ground of the SD card module to V-in of the Nano,
and ground of the Nano to VCC of the SD module.
Leo..

Yeah I saw that.
I conected wrong the ground and vcc for taking the pictures, but I was doing right when I uploaded de program

I don't see any reverse polarity protection on the SD module, so you might have destroyed it if you connected it with the VCC and GND pins reversed. You should also check your SD card on your computer to see if it's still working.

Keep in mind that you might have multiple problems compounded. The fact it didn't work on the Uno shows that the problem is not only that you haven't soldered the headers on your Nano 33 IoT, but even if you fix whatever the other problem is, the unreliable or non-existent electrical connections to those headers will be a problem. If you don't have the ability to solder those headers, I would recommend using the Uno exclusively as you troubleshoot this issue in order to eliminate this factor.

Hi,
Ops pics;



Tom... :slight_smile:

Hi,
See post #5.


Tom... :slight_smile:

Hi! I experienced the same problems when trying to set up my first sensor readout + sd card data logger.

See thread her:

As written in the tweet, I stumbled upon a comment in a forum (might have been even this one) saying, the connections have to be soldered otherwise the communication will fail.

Initially I had the arduino nano and the sd card reader attached to a breadboard and connected using jumper wires. This setup led to error messages as you experienced them. After reading the mentioned post, I removed the breadbord and wired the nano directly to the sd card: Success!

I switched back and and forth. In the end, the setup WITH breadboard was very unreliable (worked one time), but the setup WITHOUT breadboard worked all the time.