LIS2DW12 and nRF52840 Feather Express via I2C HW issue
I have a simple setup of (Arduino) nRF52840 Feather Express connected to steval-mkiv1-184872 -evaluation board. I was going to use it via I2C bus, and followed the connection diagram almost to last letter.
- I connected SDA/SCL to feather
- I connected VDD and VDDIO to VCC (3.3V)
- I connected GND to feather GND
- I connected SA0 to GND
Then I write more verbally my steps:
I wrote simple Arduino program, to open I2C (Wire -library). The program reads WHO_AM_I successfully.
Next step, I added 8bit temperature reading, again successfully get result 0 -- which means +25'C. Also WHO_AM_I is printing ok.
This far everything seems to be ok.
I got more curious; I try to read long temperature (registers OUT_T_L and OUT_T_H) and combining them to float temperature. No compile errors.
And therefore I flashed the latest changes to Arduino (above mentioned nRF board), flashing was successfull.
Program starts....
...Serial monitor states that device does not open communication port (/dev/ttyACM0)...
...board stays blinking only communication LED fast. Board is dead.
Quick re-check of cabling, I find that I have missed pull-up resistors. I add 10k pull-up resistors, and connect new board.
I flash the SW and again this new board dies.
Diagnosis: With multimeter, I/O pins give realistic values (for non-powered board). When connected to USB the board does not give out voltage, so. I guess that LDO has burned. It should however, be able to provide at least 40mA. I however, find that I have not connected the CS of LIS2DW12 to VDD.
Question: what happens, if LIS2SW12 is used via I2C, and the CS is NOT connected to VDD? In some forums I have seen references, that it should be internally connected, but datasheet states that with I2C it should be connected. Can it result of
At this point, I runned out of boards to destroy. Need to order more...
Any ideas?
Tommi
lis2dw12 Arduino
VDD - 3V
VDDIO - 3V
SDA -SDA
SCL - SCL
GND - GND
CS - N/A
INT1 - N/A
INT2 - N/A
