I'm just a bit confused why my micro sd breakout board wont work when my ethernet shield is plugged into my Arduino Uno? I've tried changing the cs pin to different pins but it makes no difference. However, if I take the shield off I can choose any cs pin I like and it works, but not with the shield on.
If Pin 10 (the Ethernet SS pin) is LOW then the Ethernet chip is going to think that it is supposed to be responding on the SPI bus. Set Pin 10 to OUTPUT and set it HIGH if you have the Ethernet Shield installed and don't want the Ethernet chip active.
Similarly for Pin 4 if you have an SD card in the Ethernet Shield SD slot: Set Pin 4 as an OUTPUT and set it HIGH.
Thanks for the reply ![]()
Ok that makes sense, but how come whenever I tried to select a different cs pin like say pin 7, it wouldn't work when the shield was connected and the contrary without the shield?
daz1761:
Thanks for the replyOk that makes sense, but how come whenever I tried to select a different cs pin like say pin 7, it wouldn't work when the shield was connected and the contrary without the shield?
"If Pin 10 (the Ethernet SS pin) is LOW then the Ethernet chip is going to think that it is supposed to be responding on the SPI bus."
If your SD card and the Ethernet chip are BOTH responding on the SPI bus then neither will work.
Thanks for the help, makes perfect sense now ![]()