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 G,View attachment 110434 What is the problem and why do you keep talking about 20 bit values?
Here is a 5110 set up on a PIC
Hi E,hi C,
This clip from a "C" shows how the program shifts 4 Right
E.
void BME280_SPI::readPressure(void) {
int64_t var1, var2, p;
int32_t adc_P = read24(BME280_REGISTER_PRESSUREDATA); // a 24 Bit Read ie: 3 * 8 bytes
adc_P >>= 4; // shift Right 4 times
Hi E,hi C,
The Pressure is a 20 bit value and so it requires 3, 8 bit bytes to hold it.
They have chosen set the lsb Nibble to 0000.
'
If you could accept a lower resolution value of say 16 bits, just ignore the LSB register
E
Hi E,
I hope you are getting the LOW BYTE XLSB mixed up with the MID BYTE LSB [TOP BYTE MSB] as I did.
If we ignore the LOW BYTE and use LSB: As Temperature is easier to change and measure with a thermometer, I have been testing t_LSB. It is time consuming as the slower the change in TEMP, the more accurate. I think I am getting consitant readings.
0-255 = approx 2DEG so for 0.1DEG perhaps 10 digits on the BMP280, and that's good enough for me. Next I'll try t_MSB.
C.
BMP280 has a resolution +-0.12 hPa -> about +- 1mYour pressure gauge measures to about the nearest 0.1 Pascal.
Air pressure change about 12 Pa/ meter (you can the 8 or 9 LSB to change by moving it from floor to ceiling). You should even see a measurable change if you happen to be breathing on it.
Reading further in the datasheet I found that BMP280 can have 0.16 Pa resolution in super resolution mode.BMP280 has a resolution +-0.12 hPa -> about +- 1m
Reading further in the datasheet I found that BMP280 can have 0.16 Pa resolution in super resolution mode.
Hi G,That is just about good enough to determine which stair you are on (it may need some temperature compensation) as you walk up to your bedroom.
Hi E,hi C,
For the LSB I am referring to the LSB of the 3 Bytes that are being Read.
The Byte that has the Lower Nibble preloaded by the BMP with xxxx,0000, the d/s calls it xlsb.
E
Hi E,hi C,
This is why the T versus P requires that Cal maths routine.
E