Problem with connections shield sd and pressure sensor

Hi, I have a problem with the MS5534 pressure sensor connection and the SD shield on the Arduino Mega 2560 r3.
To make it work the shield Deek Robot data logger with Arduino Mega, I connected pins 50 51 52 and 53 to pins with pins 10 11 12 and 13 of the data logger. So far, so good.

Now, the MS5534 uses the same pins of the data logger. My question is how can I make it work the sensor and the data logger on the same pins? Because I need to save the data sensor MS5534 on the SD.

This is pressure sensor: http://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+SheetMS5534CBpdfEnglishENG_DS_MS5534C_B.pdfCAT-BLPS0032

This is a data logger: https://cdn-learn.adafruit.com/downloads/pdf/adafruit-data-logger-shield.pdf

I’m sorry for my not perfect English :slight_smile: :slight_smile:

That sensor has a 3-wire serial interface that is not compatible with SPI. So you have to program a bit-bang interface for the sensor and use 3 separate GPIOs of the Mega to connect it to.

I haven't much experience with arduino. What is the bit-bang interface?

rob_88: I haven't much experience with arduino. What is the bit-bang interface?

A bit-bang interface is one that you build completely in software using just GPIOs (digital inputs and outputs). In your case the Arduino eco-system provides some help: shiftIn() and shiftOut() provide most of the functionality you need.