Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Paul Stewart
#69202 Try SD SPI code and ADXL345 SPI code separately and both are fine. When merge the codes, ADXL345 reading okay (not plug in MicroSD Adapter). I am connecting to HSPI pins and pin connection should be okay.

Every time MicroSD is plugged (the same pin working with above code), ADXL345 reading suddenly becomes 0g, 0g, 0g. Pull it out then reading is good.

See https://forum.arduino.cc/index.php?topic=360718.0 and not sure if this is due to a hardware defect on MicroSD Adapter.

Already read many post like https://forum.sparkfun.com/viewtopic.php?f=14&t=38072 and the code produce 0g result, too.

I am using this Catalex MicroSD Card Adapter - https://www.amazon.com/SenMod-Adapter-R ... QPVZDQS37N

(1) Not sure if anyone successfully combine both or combine one SPI with this kind of SD Adapter.
(2) Is it purely a Catalex MicroSD Card Adapter problem? Anyone suggest another SD adapter that can work with ADXL345?
(3) I am thinking to use SPI for SD and HSPI for ADXL345. Is it possible?