Can someone help me guess how to read three bytes from an eeprom on an HH10D hu
Looks like they ommited any reference how to read the three bytes from the eeprom needed to calculate the RH% humidity value on this humidity sensor. google turns up more questions but no answers. The device works and gives me 7.2khz in the room i am in. frequency output is from 5khz to 10khz for 1% to 99% humidity.· That would make the reading 44% with no calibration. I have a fluke humidity sensor I can test it with but it would be nice to be able to read the eeprom.
There are SDA and SCL pins to read the eeprom but nothing that says what signals it is expecting.
Any guesses?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
There are SDA and SCL pins to read the eeprom but nothing that says what signals it is expecting.
Any guesses?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Comments
A Google search produces the fact that the EEPROM (M24C01) is a product of ST Micro. ST Micro shows that EEPROM here:
http://www.st.com/stonline/stappl/productcatalog/app?path=/comp/stcom/PcStComOnLineQuery.showresult&querytype=view=table$$type=product$$Parametric=N&querycriteria=RNP139=112
The data sheet is found at the link above as well.
The "trick" is that this is an I2C device, and thus can only be directly addressed by Stamp BS2P? devices. It can be addressed by other Stamps as well, but not as directly. For Stamps other than the BS2P? series, refer to the Nuts and Volts Columns on the Parallax web site for applications information. For the BS2P? series one would use the I2CIN command to access the necessary calibration data.
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 12/11/2007 7:06:07 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
My numbers are
Sensitivity· = 356
Offset······ = 7453
TCS········· = 65535 ( not used I guess)
The pulsin reads 35 using a BS2
so its 1,000,000/((35*2)*2) = Frequency = 7,142khz
Now I know the humidity is somewhere around 30%·to 40% in the room it is in so I know the frequency will be larger than the offset at higher humidity levels and that would give me negative numbers for the (offset-Soh) part of the calculation.
Since·I do not know what the little upsidedown V is between the 2 and 12 I am also lost.
Could someone help me out with a sample calculation with the data I have?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
The upside-down V is the caret, the symbol above the 6 on your keyboard. It means "raised to the power of", so 2^12 is 2 raised to the 12th power, which is 4096. I can only think this means to multiply the SENS value times 4096 to arrive at the frequency? Or divide the frequency by 4096 to get the RH(%), or somethin' like that, don't know how this all works. No doubt someone else will step in and supply the answer.
Happy holidays!
kenjj
so that's 7142 khz at 35 and goes down to 6410 (pulsin 39) when humidity is higher. From the chart i am looking at it looks like a frequency of 5000 is 1% and 10,000 is 99% so it seems to be opposit of what it should be, I should see higher frequency at higher humidity. So I really need help to figure this one out, i am at a dead end.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Sensitivity = 356
Offset = 7453
It outputs a frequency of 7000
The formula says RH% = (offset-Soh)*sens/2^12
So (7453-7000)*356/2^12
7453-7000 = 453
453 * 356 = 161,268
161,268/4096 = 39
rounding the numbers
minimum frequency 7441 as 7453 - 7441 = 12 and 12 * 356 = 4272 and 4272 / 4096 = 1%
minimum frequency 6314 as 7453 - 6314 = 1139 and 1139 * 356 = 405,484 and 405,484 / 4096 = 99%
Now I will have to figure out how to best calculate these using the stamp and maximum values of a word
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!