Comments on: ESP32 with BME280 Sensor using Arduino IDE (Pressure, Temperature, Humidity) https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 04 May 2024 18:54:12 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jimp https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-912482 Sat, 04 May 2024 18:54:12 +0000 https://randomnerdtutorials.com/?p=86478#comment-912482 Great guides and this is a little off topic as it concerns the BME680 on ESP32 not ESP8266
I am trying to get the BME680 working with the CYD (Great guide by the way) since there is no Default SDA at 21 need to use alt pins no possible work around the BME280 Works fine with the CYD but same code with BME689 does not??
Using the code in this guide as a starting point I got the BME680 working with no problems on the default pins. I was also able to get both a BME280 and a BME680 working at the same time verifying Wiring, Address, Board etc.
Trying your alt pin method (and every other I could find) have been unable to get the the BME680 to work on alt pins.

The below sums it up I can send remaining support code but its pretty simple.

//I2CBME.begin(I2C_SDA, I2C_SCL, 100000); // commented to get default to work
//status1 = bme1.begin(0x77 , &I2CBME); // This reports Check wiring
//status2 = bme2.begin(0x76 , &I2CBME); // This works and produces output
status1 = bme1.begin(0x77); // This works and provides output
status2 = bme2.begin(0x76); // This works and provides output
if (!status1) { Serial.println(“Could not find a valid BME680 sensor, check wiring!”);}
if (!status2) { Serial.println(“Could not find a valid BME280 sensor, check wiring!”);}

Any help or insite would be great.

By the way Adding the BME280 to the CYD guide I think would be a great guide.
Curently I have it running along with 2 20X40 lcd displays for Model railroading applications.

]]>
By: Witchdoc59 https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-899796 Thu, 21 Mar 2024 00:11:38 +0000 https://randomnerdtutorials.com/?p=86478#comment-899796 Neither of the sensors that you show in the article are labelled Mosi or Miso so why use those in your code? My sensor has SCL, SDA, CSB and SDO. So which pins do I connect these to?

]]>
By: jeff snure https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-884855 Thu, 18 Jan 2024 22:39:41 +0000 https://randomnerdtutorials.com/?p=86478#comment-884855 In reply to Tim Albin.

this code is C not python. you can use it with Arduino IDE. to use it as a python program you’ll have to install circuit python or micropython on you dev board first, then convert it to python and use the correct python support library.
otherwise copy and paste it into the Arduino IDE and save it, then up load to the board.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-775836 Mon, 15 Aug 2022 11:30:05 +0000 https://randomnerdtutorials.com/?p=86478#comment-775836 In reply to Mel.

Hi Mel.
We cover that BMP280 situation in this article: https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#fake-bme280
Regards,
Sara

]]>
By: Mel https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-775738 Mon, 15 Aug 2022 00:17:29 +0000 https://randomnerdtutorials.com/?p=86478#comment-775738 Hello.

I was having unreliable results from using a very cheap BMP/e280 sensor.

After a lot of trial and error, I found it worked better with a BMP280I2C driver and modified the code accordingly.

I display the results on a TFT display and combined results obtained from Openweathermap website.

Thank you so much in getting me started.

I highly recommend the TFT_eSPI driver and GitHub site for loads of advice on my IL9341 TFT display.

Kind regards
Melvin Lee

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-726811 Thu, 17 Feb 2022 19:09:26 +0000 https://randomnerdtutorials.com/?p=86478#comment-726811 In reply to Shailedra kumar gupta.

Hi.
After uploading the code and making sure the serial monitor is set to the right baud rate, press the on-board RESET button so that it starts running the code.
If that doesn’t work, read our BME280 troubleshooting guide: https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/
Regards,
Sara

]]>
By: Shailedra kumar gupta https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-726764 Thu, 17 Feb 2022 15:20:41 +0000 https://randomnerdtutorials.com/?p=86478#comment-726764 Hi, thanks for the tutorial. Kindly help me with the following problem.
My serial monitor is showing nothing though I checked the sensor address and the boud rate of the monitor as well. What could be the problem.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-724779 Tue, 08 Feb 2022 21:06:44 +0000 https://randomnerdtutorials.com/?p=86478#comment-724779 In reply to Ivo van Horssen.

Hi.
Read this: https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/
Regards,
Sara

]]>
By: Ivo van Horssen https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-724763 Tue, 08 Feb 2022 19:47:07 +0000 https://randomnerdtutorials.com/?p=86478#comment-724763 I’am getting “nan” readings for the values. What am I missing or doing wrong

]]>
By: Joel https://randomnerdtutorials.com/esp32-bme280-arduino-ide-pressure-temperature-humidity/#comment-650217 Thu, 22 Jul 2021 22:02:59 +0000 https://randomnerdtutorials.com/?p=86478#comment-650217 Does anyone have CAD drawings for a ESP-32 connected to an SD card & the BME280? I would like to order a PCB with these so that I don’t have to hardwire the components.

]]>