Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi J,Ok, you are right.
There was another table in the calculations page, where UT, UP where mixed.
I have the simulator, the values are ok.Hi J,
Ok.
Do you have the Oshonsoft simulator?
I just ran your latest CALC through it:
For i = 0 To 2
adr = 0xf7 + i
'SPISend adr
'SPIReceive data
b(i) = data
Next i
[Produced i+1 adr=247, i+2 adr=248, i=3 adr=249]
For i = 0 To 2
adr = 0xfa + i
'SPISend adr
'SPIReceive data
b(i) = data
Next i
[Produced i+1 adr=250, i+2 adr=251, i+3 adr=252]
EDIT: When you edit your latest CALC will you change 't' to 'tp' please, for ease of reading. (for me anyway)
C.
Hi J,I have the simulator, the values are ok.
The values from b() are correct, the picture not, if you mean the byte positions.Hi,
Trying to understand .HB .LB and .3B
Is this correct?
t_raw.LB = b(2) _________XXXXXXXX
t_raw.HB = b(1) XXXXXXXX_________
t_raw.3B = b(0) __________________XXXXXXXX_________
C.
Ok, Is this ok? I hope so, it looks more sensible.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.
It is ok, but the bits don't overlapOk, Is this ok? I hope so, it looks more sensible.
t_raw.LB = b(2) _________________________XXXXXXXX
t_raw.HB = b(1) ________________XXXXXXXX_________
t_raw.3B = b(0) ________XXXXXXXX___________________
C.
Hi J,It is ok, but the bits don't overlap
Hi j,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 J,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,Could you check, that SPI is working correctly.
Add a byte variable ID ( device Id ) and get it by:
SPIsend 0xD0
SPIreceive ID
ID should be 0x58 ( 88 decimal )
Hi E,hi C.
Use the online Govt local weather station site to get your local Barometric pressures.
Today should around 980 to 1000mB
E
Edit: I read 1010mB over here.