Conflict in SD and Ethernet modules wiring

hello,

i'm trying to connect to an arduino uno the sd shield and the ethernet shield, but they both use pins 11, 12, 13... how can i change the default pins in library? i want to change the 11, 12, 13 pins of ethernet shield in 6, 7, 8... what should i change in library?

jumbobosco: i want to change the 11, 12, 13 pins of ethernet shield in 6, 7, 8...

No you don't, and you shouldn't change anything. Pins 11,12,13 form the SPI bus and can be shared by several devices. The most typical are indeed the SD and Ethernet. It probably time to learn up on SPI and chip select pins.

Really thank you! Tomorrow i'll read something about that! I'm sorry but i'm really at the beginning :confused: do you have some link that explain ehat you said? Or some tutorial?

Thank you again

We all learn, and the SD and Ethernet examples included in the IDE should be all you need.

ok , I'm starting to make some order in my ideas following your advices...

i read about pins 11, 12, 13 and i saw that they can be shared. but can pin 4 and pin 10 (rispectively cs of SD and Ethernet) be active at the same time?

i'm trying to do a sketch to send a mail to a email address with attached a .csv file (the .csv file is a database of DHT11 misurations in the SD).

have you ever done something like this?

thank you for your patience

jumbobosco: i read about pins 11, 12, 13 and i saw that they can be shared. but can pin 4 and pin 10 (rispectively cs of SD and Ethernet) be active at the same time?

Yes. Pin 4 is the standard chipselect for SD, and pin 10 is usually nominated as OUTPUT as part of the SD operation. This does not interfere with Ethernet operation, what you propose is normal.

i'm trying to do a sketch to send a mail to a email address with attached a .csv file (the .csv file is a database of DHT11 misurations in the SD).

have you ever done something like this?

I have only sent .CSVs of DS18B20 readings to phone via bluetooth. I have only used Ethernet for IoT, which is a hell of a lot simpler than what you are doing, but what you want is possible and I'm sure there is a swag of information about it round here.