Nodemcu ADXL345 measure 0g when MicroSD Adapter is plugged
Posted: Thu Aug 17, 2017 2:47 pm
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?
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?