Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about the temperature - 260 ℃ #2

Open
brightproject opened this issue Jul 12, 2023 · 1 comment
Open

What about the temperature - 260 ℃ #2

brightproject opened this issue Jul 12, 2023 · 1 comment

Comments

@brightproject
Copy link

brightproject commented Jul 12, 2023

Hello @enjoyneering
Use BMP180 breadboard GY-68 I2C adress 0x77
Датчик давления и температуры BMP180
Is the sensor faulty or is the library configured incorrectly?
Скриншот 12-07-2023 20 45 57
I use example.
Just changed terrain height from 115 to 150.
I tried to add an include to the sketch, but nothing changes.

#include <BMP180.h>

But then I saw that the main header file was already added to #include <BMP180advanced.h>
maybe some coefficients need to be adjusted, or is the sensor defective / fake?
Does this sensor have a built-in temperature sensor?
I used to think that it was not inside, but I saw the meaning and was surprised.
Added information
When I used another library temperature is corrected
Скриншот 12-07-2023 21 43 00
compensation calculation B5 function in this library is

int32_t BMP180::computeB5(int32_t UT)
{
  int32_t X1 = ((UT - (int32_t)_calCoeff.bmpAC6) * (int32_t)_calCoeff.bmpAC5) >> 15;
  int32_t X2 = ((int32_t)_calCoeff.bmpMC << 11) / (X1 + (int32_t)_calCoeff.bmpMD);

  return X1 + X2;
}

compensation calculation B5 function in this library is

long BMP180::calculateB5(long UT) {
	long X1 = (UT - (long)_AC6) * (long)_AC5 >> 15;
	long X2 = ((long)_MC << 11) / (X1 + (long)_MD);
	return X1 + X2;
}
@achilles0XFF
Copy link

hey @enjoyneering and @brightproject , i was testing the sensor, i used this library before and it worked correctly, but when i use it now i run into the same problem as you did, the temperature being -260 therefore the pressure reading is also incorrect, i read your comment and saw the solution that you provided but when i use the other library that you provided, i run into the same problem again, temperature is again -260, i'm pretty sure that my sensor is ok. do you know how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants