• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Can’t run the bme280, esp32 test sketch.

Q&A Forum › Can’t run the bme280, esp32 test sketch.
0 Vote Up Vote Down
Robert Gillespie asked 4 years ago

I’m taking the ESP32 course.  I’m on webservers.  Trying to do the first part of putting bme280 readings on webpage.  I’ve loaded the adafruit bme280 library.  I’ve loaded the adafruit_sensor library.  When i upload the bme280test sketch, the serial monitor tells me that an I2C device can’t be found.  When I run I2C scanner the serial monitor says I2C device found at 0x76 which is the address in the sketch.  I’ve changed out to another BME280, no success.  Any thoughts?

4 Answers
0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Hi:  I’m taking the ESP course and I’m the section where you use the BME280 and a web server.  I’ve loaded the sketch and the serial monitor tells me that they can’t find the BME280.  I ran the I2C scanner and it found it at 0x76 so I assume I have it wired correctly.  I’m trying to run the BME280test sketch.  I assumed that you could change the address in the code but I don’t see how.  Any help? I’ve entered the 0x76 address in the status = bme.begin(0x76); and it says I have a bad address.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
 
You can change the address in the code in that line:

status = bme.begin(0x76)

However, if you run the I2C scanner sketch and it found the 0x76 address, you don’t need to change anything in the code.
It shouldn’t also be a problem with the sensor. Otherwise, it wouldn’t have found the address.
 
Do you have more details about your issue? Otherwise, it is very difficult to find out what might be wrong.
 
Can you show me a picture of your sensor? Are you sure it is a BME280 sensor? There are very similar sensors that are, in fact, a BMP180.
 
Regards,
Sara
 
 

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Hello Sara:
You are right about the sensor.  I found with the help of William Lucid that I had a BMP instead of a BME.  William directed me to a site with a different library and it found the chip to be the BMP.  Thank you so much for your help as well on other issues.  I hate to be a pain but I do enjoy learning this new material at my age of 78.  Have a great day.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Robert.
Don’t worry. That’s what the forum is for.
I’m glad you found the problem.
I’ll close this issue. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.