PiInTheSky / pits

Pi In The Sky Telemetry Software
GNU General Public License v2.0
87 stars 49 forks source link

BME280 readings zero #18

Closed Ryan-Ing closed 8 years ago

Ryan-Ing commented 8 years ago

I have set BME280=Y, and now I have the correct amount of fields but readings of zero. I have the VCC pin to 3Vo, SDA to SDI, SCL to SCK, Ground to ground. i2c is enabled. Do you know why this is?

daveake commented 8 years ago

It should be enable_bme280=Y

On 27/07/2016 20:28, Ryan-Ing wrote:

I have set BME280=Y, and now I have the correct amount of fields but readings of zero. I have the VCC pin to 3Vo, SDA to SDI, SCL to SCK, Ground to ground. i2c is enabled. Do you know why this is?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodO33TSN5R4b3hJpSm1JqqLu6d_Zdks5qZ7FZgaJpZM4JWimS.

Ryan-Ing commented 8 years ago

It is set to that

daveake commented 8 years ago

OK, not what you said.

Your BME280 isn't being seen on the i2c bus. You can check what addresses are active using the i2cdetect program (find instructions for installation and use on the web).

The BME280 can be set to address ox76 or 0x77. The software checks both. With zero results, the device is not present on either, which means it's dead or not wired correctly.

On 28/07/2016 10:08, Ryan-Ing wrote:

It is set to that

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18#issuecomment-235841130, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodHw1OMfBZBOC3sdH5Gq5E0PGtgeLks5qaHGDgaJpZM4JWimS.

Ryan-Ing commented 8 years ago

The following addresses are active. Im pretty sure I have wired it correctly, is there any reason why it might be dead.

fullsizerender

daveake commented 8 years ago

Run the tracker program from the command line and see what it sees on startup.

On 28/07/2016 11:22, Ryan-Ing wrote:

The following addresses are active. Im pretty sure I have wired it correctly, is there any reason why it might be dead.

fullsizerender https://cloud.githubusercontent.com/assets/19475894/17209549/65d7bc32-54b5-11e6-946e-72e9c3c01135.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18#issuecomment-235857370, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodGx0XXjWSvfRnj8m6Oq7LTCffWeQks5qaILwgaJpZM4JWimS.

Ryan-Ing commented 8 years ago

It keeps showing "error writing to i2c slave" and it says the bme280 sensor is found at address 76h

daveake commented 8 years ago

Do you have the option of setting yours to 76h ?

On 30 July 2016 at 20:09, Ryan-Ing notifications@github.com wrote:

It keeps showing "error writing to i2c slave" and it says the bme280 sensor is found at address 76h

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18#issuecomment-236384025, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodH4h23iBQLWYaI3ByIKksDLuBl-Hks5qa6F6gaJpZM4JWimS .

Ryan-Ing commented 8 years ago

Im sorry, I know nothing about coding. So no, I dont think so

daveake commented 8 years ago

No, I mean the device itself. Does it have a jumper setting or similar to change address? This is a feature of the BME280.

On 30 July 2016 at 20:39, Ryan-Ing notifications@github.com wrote:

Im sorry, I know nothing about coding. So no, I dont think so

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18#issuecomment-236385869, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodMIq52hGxQmMyiRHu0cuPQfyNiDTks5qa6h5gaJpZM4JWimS .

Ryan-Ing commented 8 years ago

Yes, I can add a jumper from SDO to GND, but it still says "error writing to i2c slave"

daveake commented 8 years ago

Run i2detect with the jumper in each position and tell me what that says.

On 30 July 2016 at 21:01, Ryan-Ing notifications@github.com wrote:

Yes, I can add a jumper from SDO to GND, but it still says "error writing to i2c slave"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18#issuecomment-236387121, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodP4UgWqDhPQMUwojEYvfcy1x0bZKks5qa622gaJpZM4JWimS .

Ryan-Ing commented 8 years ago

With the jumper SDO to GND: 76

With it wired normally:

77

daveake commented 8 years ago

Set to one address, close/restart the tracker program, see if it works.

If not, set to other address, close/restart the tracker program, see if it works.

If it doesn't work in either setting then it's faulty.

The software autodetects which address it's on, and so should work with either address. I've only tested with one address as my BME280 board doesn't have the option to change. I don't recall which address mine uses but it does work.

On 30 July 2016 at 21:21, Ryan-Ing notifications@github.com wrote:

With the jumper SDO to GND: [image: 76] https://cloud.githubusercontent.com/assets/19475894/17272918/8c2dab16-569b-11e6-843d-e04ba4b7392a.jpg

With it wired normally:

[image: 77] https://cloud.githubusercontent.com/assets/19475894/17272922/9a55d330-569b-11e6-9214-3799041d09e4.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PiInTheSky/pits/issues/18#issuecomment-236387971, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBodNiss3bsR_WEzdgFOIVKn4iV6txdks5qa7JZgaJpZM4JWimS .

Ryan-Ing commented 8 years ago

Aha! It's working now on the 76 address. Thank you very much for your help, I appreciate it!