This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I need to work on twi compatible with smbus and I2C for NRF5340 DK

I need to interface my sensors by using twi. Here one of my sensor is smbus compatible. For I2C, I need to read acknowledge from sensor. So i need reference or samples to work on above requirements with NCS v1.5.0 for nrf5340dk

Thanks & regards

Navin

Parents Reply
  • Hi Simon,

    Thank you very much, I have seen your ncs tutorial series that is very helpful. to get started to create an application nrf5340. I have understood part 1 and part 2.  I have got stuck at Part 3. It was a little difficult. give some implementation examples.

    I have tried to interface the sht20 sensor with nrf5340. My sensor output values are always constant. even I didn't connect my sensor it throws the same values.

    do you have any reference to interface external sensors other than given samples?

    It seems like the sensor should be compatible with I2C as long as you set the speed to 100kHz. Use the clock-frequency field in an i2c instance to configure the speed (see thingy91_nrf9160_common.dts and dt-bindings/i2c/i2c.h).

    I have tried the above. The same issue followed which I mentioned above.

    Thanks & Regards

    Navin

Children
Related