BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ged
Normal user
Posts: 10
Joined: 15 Oct 2016, 07:04

BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

#1 Post by ged » 15 Oct 2016, 07:40

Got a GY-BME/P280 which seems to be a hybrid of a BME280 and a BMP280, marketed as a BMP280. (CSB pin seems to be a chip selector from the doc I saw)

When I connect it up and power cycle the ESP8266, I get "0x76 BME280/BMP280/MS5607/MS5611" from the i2c scanner.

No matter what configuration I choose BMP280 or BME280, I only get 0.0 for my values.

I've wired it up as follows:
VCC -> 3.3V
GND -> GND
SDA -> GPIO4
SCL -> GPIO5
CSB -> No wire
SDO -> No Wire

I'm a noob at this, what can I try for troubleshooting? Do I need a resistor (I read something about a pull-up resistor for some sensors)? Possible I have a bad sensor?

Thanks for reading
Last edited by ged on 15 Oct 2016, 19:21, edited 1 time in total.

pm_cz
Normal user
Posts: 10
Joined: 16 Mar 2016, 10:56

Re: GY-BME/P280 Reading all 0.0's

#2 Post by pm_cz » 15 Oct 2016, 08:49

It would be good to include log messages and version of ESPEasy.

Generally speaking, these boards typically include pull-up resistors so you do not have to use them. I suppose you have tried both plugins (Temperature & Humidity & Pressure - BME280, Temperature & Pressure - BMP280) and that you do not have anything else on the same I2C address. But did you set index to a non-zero value and checked "Send data"?

ged
Normal user
Posts: 10
Joined: 15 Oct 2016, 07:04

Re: GY-BME/P280 Reading all 0.0's

#3 Post by ged » 15 Oct 2016, 19:09

pm_cz wrote:It would be good to include log messages and version of ESPEasy.

Generally speaking, these boards typically include pull-up resistors so you do not have to use them. I suppose you have tried both plugins (Temperature & Humidity & Pressure - BME280, Temperature & Pressure - BMP280) and that you do not have anything else on the same I2C address. But did you set index to a non-zero value and checked "Send data"?
Yeah, I thought there were some tiny resistors on the board but wasn't sure.

I tried with build 120 and 137... I didn't initially adjust the idx/var value from the default of "0", but after reading your post I did and I got readings as a BMP280! Prior to successful readings, the logs were pretty much empty with some boot messages, freemem and flash writes... Now I get:

221476 : BMP280 : Address: 0x76
221476 : BMP280 : Temperature: 21.90
221476 : BMP280 : Barometric Pressure: 1001.72

So that was the problem! Thanks! That was a noob mistake I guess, I accepted the defaults, delay changed itself to 60, the idx/var didn't change from 0.

pm_cz
Normal user
Posts: 10
Joined: 16 Mar 2016, 10:56

Re: BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

#4 Post by pm_cz » 17 Oct 2016, 13:13

I think this is a mistake we all do in the beginning, since the idx=0 not measuring anything is not intuitive.

Regards,
Pavel

grz3
Normal user
Posts: 36
Joined: 21 Feb 2016, 21:47

Re: BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

#5 Post by grz3 » 17 Oct 2016, 20:44

what about a comment to IDX that value 0=no use of sensor, value !=0 sensor in use? i think 1/2of user complaints about not working sensors will be solved :-)

ChrisuK
New user
Posts: 1
Joined: 05 Jun 2017, 14:32

Re: BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

#6 Post by ChrisuK » 05 Jun 2017, 14:40

Hi there,

i face the same problem no readings on BMP280 (GY-BME/P280)

On the I2C scan i can see that EasyESP found the sensor on 0x76
Image

Also in the device i chose low 0x76.
Image

What i can´t change is the IDX/Var.
It is 1.

Connecting aDHT22 shows readings.

Image
----
ESP Mega 2.0.0 Dev 10
NodeMCU V0.9

Cheers,

Chrisu

franciscoaze
New user
Posts: 1
Joined: 14 Apr 2020, 21:45

Re: GY-BME/P280 Reading all 0.0's

#7 Post by franciscoaze » 14 Apr 2020, 21:49

ged wrote: 15 Oct 2016, 19:09
pm_cz wrote:It would be good to include log messages and version of ESPEasy.

Generally speaking, these boards typically include pull-up resistors so you do not have to use them. I suppose you have tried both plugins (Temperature & Humidity & Pressure - BME280, Temperature & Pressure - BMP280) and that you do not have anything else on the same I2C address. But did you set index to a non-zero value and checked "Send data"?
Yeah, I thought there were some tiny resistors on the board but wasn't sure.

I tried with build 120 and 137... I didn't initially adjust the idx/var value from the default of "0", but after reading your post I did and I got readings as a BMP280! Prior to successful readings, the logs were pretty much empty with some boot messages, freemem and flash writes... Now I get:

221476 : BMP280 : Address: 0x76
221476 : BMP280 : Temperature: 21.90
221476 : BMP280 : Barometric Pressure: 1001.72

So that was the problem! Thanks! That was a noob mistake I guess, I accepted the defaults, delay changed itself to 60, the idx/var didn't change from 0.
Hello. I know it has been a couple of years since this, but this is one of those problems you find a grasp of the solution in the middle of the internet and have to hold on to it.
I have the readings (zeros...) from my bme sensor and I would like to try your solution, but can't seem to understand what the idx/var is or how to change it. Can you please help me with that?

Thank you very much!

planedo79
Normal user
Posts: 23
Joined: 10 Apr 2020, 12:22

Re: BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

#8 Post by planedo79 » 19 Apr 2020, 08:10

Hi, I got some readings by typing to formulas text box. Pressure = Hpa, Temperature = Celcius. Humidity was something i did not get working at all... Any suggestion for that? IDX number should be able to change, and if you have domoticz, there from devices list shows the IDX number.

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: BMP280 (GY-BME/P280) Reading all 0.0's [FIXED: IDX/VAR was 0]

#9 Post by TD-er » 19 Apr 2020, 09:51

IDX values are mainly used by Domoticz and are used to mark the sensor ID so Domoticz knows what device sends the data.

You have to define a (virtual) sensor in Domoticz and there you find the assigned IDX.
This IDX value you set in the field next to the chosen controller in the task configuration page.
Strictly speaking you can let the same device send to Domoticz MQTT and Domoticz HTTP, using different IDX values.
It is just a flag sent along with task values to a controller.

Post Reply

Who is online

Users browsing this forum: No registered users and 137 guests