logo elektroda
logo elektroda
X
logo elektroda

SHT25 Sensirion I2C Code for Reading Temperature and Humidity—Data Conversion Steps

57 12
ADVERTISEMENT
  • #1 21666104
    kiran B
    Anonymous  
  • ADVERTISEMENT
  • #2 21666105
    kiran B
    Anonymous  
  • #3 21666106
    Steve Spence
    Anonymous  
  • #4 21666107
    kiran B
    Anonymous  
  • ADVERTISEMENT
  • #5 21666108
    kiran B
    Anonymous  
  • #6 21666109
    Todd Hayden
    Anonymous  
  • #7 21666110
    Mark Harrington
    Anonymous  
  • #8 21666111
    Mark Harrington
    Anonymous  
  • ADVERTISEMENT
  • #9 21666112
    kiran B
    Anonymous  
  • #10 21666113
    Mark Harrington
    Anonymous  
  • ADVERTISEMENT
  • #11 21666114
    kiran B
    Anonymous  
  • #12 21666115
    Mark Harrington
    Anonymous  
  • #13 21666116
    Mark Harrington
    Anonymous  

Topic summary

The discussion centers on coding challenges for reading temperature and humidity data from the Sensirion SHT25 sensor via I2C, focusing on data conversion steps to achieve high resolution (0.01°C) and accurate relative humidity measurements. The original code snippet is incomplete, prompting requests for detailed coding examples and clarification on data handling, including definitions of constants and buffer usage. Contributors highlight the importance of specifying the microcontroller (C8051F020), programming language (C with Keil C51 compiler), and resolution settings (8/12/14-bit modes) as per the sensor datasheet, which indicates typical accuracy of 1.8% RH. Issues reported include obtaining only 0.7°C resolution instead of 0.01°C and relative humidity readings exceeding 100%. Suggestions emphasize verifying test system accuracy, ensuring proper timing and instruction execution, and possibly rewriting critical code sections in assembly to reduce overhead. References to example code for similar sensors (SHT21) and requests for complete code, schematics, and detailed system parameters are made to facilitate troubleshooting. The discussion also touches on the cost and accessibility of development tools like Keil C51 and the need for manufacturer technical support with comprehensive system information.
Summary generated by the language model.
ADVERTISEMENT