electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

sht10 with pic 16f917 wrong measurement


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> sht10 with pic 16f917 wrong measurement
Author Message
pajithrao



Joined: 29 Oct 2009
Posts: 3


Post31 Oct 2009 16:40   

sht10 with pic 16f917 wrong measurement


i am attaching a vb screen shot which shows the temperature and humidity taken as 14 bit and 12 bit respectively. It also shows the communication between the microcontroller and sht10. The info is passed to pc thru serial communication. Each line is one full set of communication.
R stands for com reset.
s stands for transmission start
s-f is softreset command
s-u is status write command
u-w is data written into status reg
s-v is status read command
v-x is status reg data read - which is different from what i wrote into it problem no. 1
x-z is checksum
s-t is temperature measurement command
t-j is msb of temp
j-k is lsb of temp
k-r is checksum
s-h is humidity command
h-y is msb of humidity
y-next eight bits is lsb of humidity
temperature count is shown top box next to humidity text box
humidity count is shown in top right box
the air temperature and humidity was 26.5 and 55%

the sht10 was manually soldered and no recharge time was given. will the humidity and temperature come back to the actual value after a day or is there some problem in the communication



Sorry, but you need login in to view this attachment

Back to top
wp100



Joined: 15 May 2009
Posts: 327
Helped: 45
Location: England


Post31 Oct 2009 17:34   

Re: sht10 with pic 16f917 wrong measurement


Hi,

Cannot help with all your VB code but as the datasheet says you should allow time for the sensor to recover after soldering - although I did not notice any great problem.

Unless you have a known good humidity sensor to work against perhaps you should do a salt box calibration on the SHT10 - see this pdf for details for how to do this -
with common house salt you should get 75% at 20 -25 deg C - ensure you do just moisten the salt and not turn it into a runny mess.

http://www.cma.science.uva.nl/english/Resources/Manuals/d0381.pdf
Back to top
FvM



Joined: 22 Jan 2008
Posts: 5161
Helped: 767
Location: Bochum, Germany


Post31 Oct 2009 18:53   

sht10 with pic 16f917 wrong measurement


I think, before getting a meaningful temperature measurement, you don't need to think about calibrating the humidity sensor...

Either the communication setup or the calculation is obviously wrong. Your screenshot isn't really helpful to decide between both options.
Back to top
pajithrao



Joined: 29 Oct 2009
Posts: 3


Post01 Nov 2009 16:53   

Re: sht10 with pic 16f917 wrong measurement


Does the temperature reading also get affected by soldering?
any source code for communication with sensor?
what is the slowest clock that can be applied to sck?
Back to top
Google
AdSense
Google Adsense




Post01 Nov 2009 16:53   

Ads




Back to top
wp100



Joined: 15 May 2009
Posts: 327
Helped: 45
Location: England


Post01 Nov 2009 19:02   

Re: sht10 with pic 16f917 wrong measurement


Hi,

Quote:
Does the temperature reading also get affected by soldering?


Doubt it, I believe it is a separate sensor.

Quote:
any source code for communication with sensor?


There is example code on the Sensirion site.

Quote:
what is the slowest clock that can be applied to sck?


See the data sheet for full details
Back to top
pajithrao



Joined: 29 Oct 2009
Posts: 3


Post04 Nov 2009 17:06   

Re: sht10 with pic 16f917 wrong measurement


I got the problem solved. i just needed to pulse before i read the data pin. i was reading after clocking it. so the data moved a bit left increasing the count. I made a temp oscilloscope monitoring from the laptop. and i found what was the mistake.
thanks all of u who replied
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> sht10 with pic 16f917 wrong measurement
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
My SIM300CZ doesn't answer (with PIC 16F917) (2)
PIC 16F917 AND AT25256 Interface using SPI (1)
capacitance measurement with PIC (9)
True RMS measurement digitally with PIC (2)
PIC: Simple circuit but something wrong? (8)
What's Wrong with this VHDL code ??? or maybe with ISE ! (5)
What wrong with it !! (2)
what's wrong with Primetime ? (3)
Something wrong with PIC18F4620?? (4)
Whats wrong with my PWM ? (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS