The values from b() are correct, the picture not, if you mean the byte positions.
They are the bytes in a long integer ( 32 bit, 4 bytes )
Starting from the most significant byte ( left )
X.4B X.3B X.HB X,LB
X.4B not used here.
The values from b() are correct, the picture not, if you mean the byte positions.
They are the bytes in a long integer ( 32 bit, 4 bytes )
Starting from the most significant byte ( left )
X.4B X.3B X.HB X,LB
X.4B not used here.
Hi,
Here's the latest program with CALC. Will someone check it please?
The TEMP looks like it's reading and shows TEMP= 512XXX.0 to 52XXXX.0 with finger heat.
PRES is all over the place.
There are lines with ?????????????????? that I doubt.
C.
Is the TEMP a raw or ADC_t value or the final t after calculation?
Can you display the adc_t and t.
t should be something like 22.34 in room temperature.
It is better forget the pressure until temperature measurement is ok and display now only temperature values.
Is the TEMP a raw or ADC_t value or the final t after calculation?
Can you display the adc_t and t.
t should be something like 22.34 in room temperature.
It is better forget the pressure until temperature measurement is ok and display now only temperature values.
Hi,
The TEMP is showing approx 2.5° higher than my none scientific thermometer.
The PRES is showing 154xxx.xx, but seems too influenced by the TEMP.
I tried it in a food container, and pressed on it to make the PRESS rise, but it didn't.
Here's the latest:
I don't see any writes to Conf, Reset, Control addresses
0xF5, 0xE0, 0xF4 ?
You could strip extra unused variables and constants.
Would be easier to read.
I don't see any writes to Conf, Reset, Control addresses
0xF5, 0xE0, 0xF4 ?
You could strip extra unused variables and constants.
Would be easier to read.
Hi J,
Here's a shorter one.
Check my WRITE addresses are correct, HIGH BIT = 0 instead of the actual address.
I've removed some of the WAITs. Earlier it didn't seem to work without them, but now the results are the same, with this program.
C.
Previously, I chose to READ TEMP and PRESS in separate programs, to narrow down the errors. When I combined the CALC into one of these MAIN programs, I forgot to turn on the PRESS BITs in 0xF4.
Now I'm getting TEMP READings around 22.00° and PRESS READings, downstairs average '701' and upstairs '670' repeatedly.
I'll need to check all of the settings, again, then post the program.
Hi E,
That's handy for anyone who want to make a weather station. I haven't had chance to check any conversions, but the PRESS was reading 100896.xx yesterday, and today is 102711.xx
I don't actually need this though, as I will zero it on the ground, then use numbers above that as it's altitude. I'll work out how I will use it as I get readings, and get the feel for it.
C.