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
  • Mr.NCK said:

    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 you are creating the driver yourself. I would recommend you to start with the i2c_scanner example, and just see if you can communicate with the sensor. Then you can gradually, step-by-step, build on the example. Write to a register, read a register, read sensor values. Study the datasheet of the SHT20 closely.

    Do you have a logic analyzer? That's a very useful tool that allows you to see what's actually being sent.

    Best regards,

    Simon

Children
Related