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

SHT25 interface with nordic

Hi,

I am Using nrf52832DK and SHT25 breakout board. I can't able to read a device address using "TWI Scanner". But, I can able to scan the sht25 device address by Arduino I2c scanner.

I need your help to make work nordic's TWI Scanner for the sht25 breakout board or suggest me the code for the proper interface of sht25 with nrf52832.

  • Yes, our code was correctly configured with DK pins

    yes, we didn't connect anything on those pins

    Is this a breakout board right so manufacturer provides the pullups

  • we didn't connect anything on those pins

    That wasn't the question.

    You need to check that there isn't anything on the DK itself that is using those pins.

    Is this a breakout board right so manufacturer provides the pullups

    You can't just assume that - what does its documentation tell you?

  • See I am once again explaining you clearly. First understand our problem. 
    SHT20 break out board ( Which will have pull up )
    When I am working with arduino there is no problem sht20 works perfectly.
    But when I use nRF52 DK it is not working. Those pins in nRF52 is only connected with sht 20 sensor and we are also defining that in firmware board file. 
    SHT20 is not detecting only with nRF52 DK. 
    Please have a clear understand of our problem then explain and give solution. 




    If it's sht20 issue then it should not worked with arduino.
    Is there any other way to read sht20 with nRF52 in firmware wise.
    If you have any idea regarding tell us. 

  • Hello,

    DD_ said:
    SHT20 break out board ( Which will have pull up )

    I will have to reiterate what @awneil has already asked here - how do you know that the SHT20 breakout board / module provide the pullups? You may not just assume.
    Do you have a link to the specific module or breakout board you are using, or specifically to the user guide / data sheet of the module?

    DD_ said:
    When I am working with arduino there is no problem sht20 works perfectly.
    But when I use nRF52 DK it is not working.

    The Arduino might be providing the pullups here. In which case, the nRF needs to be configured to do the same in order for the TWI communication to work. Again, as @awneil has already mentioned - the fact that the example is unable to find the sensor indicates that there is a hardware problem.

    DD_ said:
    Those pins in nRF52 is only connected with sht 20 sensor and we are also defining that in firmware board file. 

    Would you mind sharing the code section where you setup and configure the TWI peripheral?
    It would also be helpful to see the changes you have made to the boardfile. 

    DD_ said:
    If it's sht20 issue then it should not worked with arduino.

    This could for example happen if the sensor does not provide pullups but the Arduino enables pullsups behind the scenes. We will know more about this when we get to see the modules / breakoutboards user manual or data sheet.

    Looking forward to resolving this issue together.

    Best regards,
    Karl

  • Hi Karl

          We have just use the nordic  TWI scanner we didn't change anything in code only change the pins and we didn't have the breakout board datasheet. We have only the Sht25 SOS datasheet

    Thank you

Related