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

Error in establishing a connection between nRF52840 DK board and SHT21 sensor using TWI module.

I  am using the SHT21 sensor for measuring temperature and humidity, trying to connect it to nRF52840 DK Board using TWI mode.

I am unable to even scan and get the response from the SHT21 sensor.

Initially, I am trying to send a basic address that is 0x80 and just confirming whether the communication is getting established between SHT21 and nRF52840 DK board or not.

I am unable to get anything on RTT viewer.

Parents
  • I am unable to even scan and get the response from the SHT21 sensor.

    Did you use the Nordic TWI scanner for that?

    Do you have correct pullups?

    Have you used an oscilloscope or logic analyser to see what's happening on the wires?

    I am trying to send a basic address that is 0x80

    I2C addresses are 7-bits - so cannot possibly be 0x80.

    0x80 could be the address plus the R/W bit - are you sure you have that correct?

    See: www.avrfreaks.net/.../1872781

    Again, the easiest way is to use the Nordic TWI Scanner example.

    am unable to get anything on RTT viewer

    Have you correctly configured the project to use RTT?

    Some examples default to using UART for the LOG outputs ...

Reply
  • I am unable to even scan and get the response from the SHT21 sensor.

    Did you use the Nordic TWI scanner for that?

    Do you have correct pullups?

    Have you used an oscilloscope or logic analyser to see what's happening on the wires?

    I am trying to send a basic address that is 0x80

    I2C addresses are 7-bits - so cannot possibly be 0x80.

    0x80 could be the address plus the R/W bit - are you sure you have that correct?

    See: www.avrfreaks.net/.../1872781

    Again, the easiest way is to use the Nordic TWI Scanner example.

    am unable to get anything on RTT viewer

    Have you correctly configured the project to use RTT?

    Some examples default to using UART for the LOG outputs ...

Children
No Data
Related