-->
Page 1 of 1

SPI pins of ESP8266 for multiple use

PostPosted: Wed Nov 23, 2016 11:50 pm
by arsalan
Hello everyone, I am working on a project in which I am collecting data from different sensors and then transmitting the data packet through ethernet shield towards my local database. Main issue i am facing right now is After connection break I am loosing my data, so I figured that i should use Micro SD card for that period.

Coming towards my main question, Both ethernet shield and micro SD card module uses same SPI pins, and I am unable to get them working in parallel. Is there anyway we can use these modules in parallel.

I am also attaching pictures of ESP8266 12E, ethernet shield and Micro sd Card module, which i am using for the project.


Thank you all for your time.

Re: SPI pins of ESP8266 for multiple use

PostPosted: Thu Nov 24, 2016 5:39 am
by Barnabybear
Hi, are you using a different CS (chip select) pins for the sensor and the SD card? The device should only respond when enabled via its CS line, if both the SD and sensor are connected to the same one you will have 3 things all trying to communicate.

Re: SPI pins of ESP8266 for multiple use

PostPosted: Thu Nov 24, 2016 7:25 am
by arsalan
Barnabybear wrote:Hi, are you using a different CS (chip select) pins for the sensor and the SD card? The device should only respond when enabled via its CS line, if both the SD and sensor are connected to the same one you will have 3 things all trying to communicate.


Thanks alot :)


Thank you so much for the idea,, It's working. I have just tried basic code. I will surely update you if its working for the main purpose or not.