cancel
Showing results for 
Search instead for 
Did you mean: 

lis2dwt12 SPI communication with other slaves present

Garslanbay
Visitor

I have lis2dwt12 sensor and nrf24l01+ sensor.Can i connect these devices on same spi line? i will select different CS pins.

Thank you for now.

4 REPLIES 4

Yes, that is the whole point of SPI as a bus.

But I couldn't get it to work. I know that different models exist, and I adjusted accordingly. The common pins like SCK, MOSI, MISO are the same. I haven't been able to read the NRF24L01+ registers at all.

I had this thought: could it be that when I set the CS pin of the LIS2DWT12 sensor High, it switches to I2C and is preventing my communication with the NRF?


@Garslanbay wrote:

 I haven't been able to read the NRF24L01+ registers at all.


Can you communicate with it on its own - ie, with the LIS2DWT12 disconnected?

You can disable the I2C in the LIS2DWT12:

AndrewNeil_0-1742919954259.png

 

Ohh thank you so much i will try it than i will give information about this subject.