Dave, I'm really struggling with a datalogger i'm making for 3 temperature probes (2x PT100 with Max31865 + 1 thermocouple with Max6675.), using an Arduino Uno board.
The three sensors work great together on the SPI bus:
- PT100_1 - Chip Select on pin 10
- PT100_2 - Chip Select on pin 9
- Thermocouple_K - Chip Select pin 8
Also connected the system to Nextion HMI and everything is ok.
The problem is similar to what you experienced with your project, i also want to record on a SD card the measurements from the sensors and i used a SD card module with SPI also:
- SD Card - Chip Select on pin 7
The card itself i tested and worked fine by itself, but connecting it to the same CLK, SDO, SDI, in paraller with the sensors, i loose the data and the values of the temperatures are all scrambled.
You finished your dialog telling you used the sdFat and it worked with minor changes.
I already tried a lot and i'm not getting there... The sdFat literature info tells that the library supports multiple SPI:
«Support for multiple SPI ports now uses a pointer to a SPIClass object.
See the STM32Test example.
explicit SdFat(SPIClass* spiPort);
explicit SdFatEX(SPIClass* spiPort); »
I cheked the STM32Test example but that seems to be made for two SD cards on the same SPI bus...
Am i right?
Would you be so kind to help me? How did you do it on your situation?
If anyone can help me i'm really desperate...