Amega32 and SHT15 temperature and humidity sensor

Status
Not open for further replies.

eehero

Full Member level 3
Joined
Nov 23, 2005
Messages
169
Helped
13
Reputation
26
Reaction score
5
Trophy points
1,298
Location
Libya
Activity points
2,620
sht15 avr

Hi all, i am going now to make an interface between my mega32 and SHT15 sensor
i am programming in assembly, but i found that is some how difficult to write a code for SHT15!!!
any one can help me, a code in asm if it is possible
any other notes, hints may be usefull
this is so impor for me please help as u can
thanks much
eehero
 

avr sht15

Hi all, realy now i want to reduce my request or problem,i had found a code for reading
the SHT1x sensor using AVR this code is posted below, it needs some modifications to obey
my goals (read temp/hum, send it via RF "TWS433" receiving it with RWS433 and displaying
the final data on 2x16 LCD, all done with atmel avr uc).

At this moment one problem occure:
The reading of temperature and humidity are stored into two 8bit register for each one
r18,r19 for high and low byte of temperature
r20,r21 for high and low byte of humidity

These digital readings will be converted into temperature and humidity using the following
equations:

Temperature=d1+d2*SOT ;d1=-40 centigrade, d2=0.01 centigrade,
;SOT is the digital temperature reading r18:r19

humidity=C1+C2*SORH+C3*SORH^2
c1=-4,c2=0.0405, c3=-2.8*10^-6

The problem is how to implement these equations in Avr assembly, and finaly gets a cook
data to be displayed on an LCD.

The code that i had found do this in (calchumtemp) routine but i can not understand where
the final data are stored, the code is attached below.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…