BME280 with SPI?

MitchSF
Posts: 11
Joined: Sat Jun 17, 2017 11:30 am

BME280 with SPI?

Postby MitchSF » Sat Jul 15, 2017 4:35 pm

Has anyone tried this? I've tried hardware and software SPI using pins 18, 21, 22 and different pins for CS. I tried switching MISO and MOSI just in case. I tried both Adafruit and Sparkfun libraries, setting both for SPI. I2C works with both libraries. Same setup works with an MKR1000.

I'm using the Adruino core. Help and suggestions are appreciated. Thanks in advance.

E-M-Dev
Posts: 10
Joined: Sun Apr 02, 2017 3:57 pm

Re: BME280 with SPI?

Postby E-M-Dev » Tue Jul 18, 2017 9:42 pm

Hi,

Actually I run all sensors over I2C and they are all working.

Regards,

MitchSF
Posts: 11
Joined: Sat Jun 17, 2017 11:30 am

Re: BME280 with SPI?

Postby MitchSF » Wed Jul 19, 2017 12:11 pm

I have no issues with I2C, just SPI. I did manage to get one BME280 working with SPI, but a second one on the bus crashes it. I tried with and without pullups on the CS line. Maybe the cheap sensors don't work well with other devices on the bus. I'm thinking about trying Adafruit or Sparkfun.

Who is online

Users browsing this forum: Bing [Bot] and 144 guests