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.

Parents Reply
  • 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. 

Children
  • 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

  • Hello,

    It is unfortunate that you do not have the breakout board's datasheet. From the SHT25 datasheet I read that it needs to be supplied with external pullups, but we do not know whether the breakout board does this or not.
    Could you check whether the Arduino configures pullups on the pins as part of the test you did where it worked? As in, check whichever TWI driver and peripheral you used on the Arduino, and see if it sets pullups, or assumes external pullups.

    Karl Ylvisaker said:
    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. 

    You mentioned that you have made some changes to the board file / example, it would be helpful to see these.

    Is there any chance you could get access to a logical analyzer?
    Seeing what is actually happening on the lines would make this debugging (and any other serial protocol debugging) much easier.

    Best regards,
    Karl

  • Hi Karl 

    I will check the possibilities and made the requirements. then again continue here.

    Thank you

  • Hi Karl 

    I have checked with Arduino I2C Scanner they are using internal pullups by using a wire library. Tell me how can we activate the internal pullups for nrf52.  

    Thank you

Related