CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

SHT11 offset required?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Requan



Joined: 11 May 2008
Posts: 74

View user's profile Send private message

SHT11 offset required?
PostPosted: Mon Aug 13, 2012 2:17 am     Reply with quote

Hi,
I use SHT11 library from this forum (PIC16F690, ccs 4.134), so calculation function is:
Code:

void calculate_data (int16 temp, int16 humid, float & tc, float & rhlin, float & rhtrue)
{
float rh;

 //calculate temperature reading
 tc = ((float) temp * 0.01) - 40.0;

 //calculate Real RH reading
 rh = (float) humid;

 rhlin = (rh * 0.0405) - (rh * rh * 0.0000028) - 4.0;

 //calculate True RH reading
 rhtrue = ((tc - 25.0) * (0.01 + (0.00008 * rh))) + rhlin;
}

I compared temperature with two different thermometers and I saw that SHT11 has 2 degrees too many.
I read temperature each 10second.
Does that mean I will have to calibrate system with add offset?
Best Regards,
Martin
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 13, 2012 12:58 pm     Reply with quote

Quote:
I saw that SHT11 has 2 degrees too many.

Read this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=43073
Requan



Joined: 11 May 2008
Posts: 74

View user's profile Send private message

PostPosted: Tue Aug 14, 2012 4:05 am     Reply with quote

Arrow PCM programmer
Thanks for Your reply. I read it previously but it didn't help me Sad
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group