Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Embeded-SCM Develop SCM

DHT11forSTM32

  • Category : SCM
  • Tags :
  • Update : 2016-06-03
  • Size : 1kb
  • Downloaded :1次
  • Author :feij****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
// - // void calc_sth11(float*p_humidity ,float*p_temperature) { const float C1=-4.0 // for 12 Bit const float C2= 0.0405 // for 12 Bit const float C3=-0.0000028 // for 12 Bit const float T1=0.01 // for 14 Bit @ 5V const float T2=0.00008 // for 14 Bit @ 5V float rh=*p_humidity // rh: Humidity [Ticks] 12 Bit float t=*p_temperature // t: Temperature [Ticks] 14 Bit float rh_lin // rh_lin: Humidity linear float rh_true // rh_true: Temperature compensated humidity float t_C // t_C : Temperature [¬ C t_C=t*0.01-40 //calc. Temperature ticks to [¬ C rh_lin=C3*rh*rh+ C2*rh+ C1 //calc. Humidity ticks to [ RH] rh_true=(t_C-25)*(T1+T2*rh)+rh_lin //calc. Temperature compensated humidity [ RH] if(rh_true>100)rh_true=100 //cut if the value is outside of if(rh_true<0.1)rh_true=0.1 //the physical possible range *p_temperature=t_C //return tem
Packet file list
(Preview for download)


DHT11forSTM32.txt
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.