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

SPI Support for BMP280 #1321

Closed
psbankar opened this issue Jul 28, 2021 · 12 comments · Fixed by esphome/esphome-docs#3273 or esphome/esphome#7053
Closed

SPI Support for BMP280 #1321

psbankar opened this issue Jul 28, 2021 · 12 comments · Fixed by esphome/esphome-docs#3273 or esphome/esphome#7053

Comments

@psbankar
Copy link

Describe the problem you have/What new integration you would like

BMP280 sensor supports I2C as well as SPI but ESPHome currently supports only I2C for it. It would be great if SPI support was added for this sensor as well.

Please describe your use case for this integration and alternatives you've tried:

Same as above

Additional context

Same as above

@njbuch
Copy link

njbuch commented Jan 13, 2022

I will support this feature request! Thanks

The case is that I have a need for greater distance and the sensor supports this, in the I2C case shorter distance is required.

@DamianBroj
Copy link

any progress?

@Stef33fr
Copy link

Did something done for this ?

@IGitYou
Copy link

IGitYou commented Aug 31, 2023

I vote for this for sensor distance. It was not clear to me it did not support it until I read this and I was attempting to research how to do exactly what is requested.

@apbodrov
Copy link

I will try to make a version of bme280 for SPI within a couple of weeks

@rossens
Copy link

rossens commented Dec 16, 2023

I also look forward to this.
Another advantage for SPI over I2C - more sensors can be connected.
My understanding is Pi Pico can only support 2 x I2C BME280 (unless including a multiplexer).
But with SPI can support many more sensors.

@grahen
Copy link

grahen commented Feb 25, 2024

I am also looking forward to this as I need to extend the distance to my sensors.

@bartoszwalicki
Copy link

Is there any work in progress on this issue?

@apbodrov
Copy link

apbodrov commented Jun 9, 2024

Is there any work in progress on this issue?

Hello! I don’t have a BMP280, I can try to write a pull request blindly, but it’s not very convenient

@IGitYou
Copy link

IGitYou commented Jul 11, 2024

I will try to make a version of bme280 for SPI within a couple of weeks

I happen to have one I could spare but am in the domestic US, and would not even begin to know how to get something like that to Moscow. But, out of curiosity why did you say the above if you could not do it blindly?

@ademuri
Copy link

ademuri commented Jul 18, 2024

I have a draft pull request which adds support for BMP280 via SPI. You can test it out by adding the following to your yaml file:

external_components:
  - source:
      type: git
      url: https://github.com/ademuri/esphome
      ref: bmp280-spi
    components: [ bmp280_spi, bmp280_base ]

sensor:
  - platform: bmp280_spi
    temperature:
      name: "Board Temperature"
      oversampling: 16x
    pressure:
      name: "Board Pressure"
      oversampling: 16x
    update_interval: 5s
    cs_pin: GPIO16

spi:
  clk_pin: GPIO13
  mosi_pin: GPIO15
  miso_pin: GPIO14
  interface: hardware

If you do, feedback on whether it worked or not would be helpful.

@IGitYou
Copy link

IGitYou commented Sep 12, 2024

Thanks all

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