• 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

How to use Adafruit BME280 with AI Thinker ESP32-CAM using I2C

Q&A Forum › Category: ESP32 › How to use Adafruit BME280 with AI Thinker ESP32-CAM using I2C
0 Vote Up Vote Down
Urs Kahle asked 5 years ago

Dear Sara and Rui
I like to run from Adafruit Libary BME280 the bme280test with the AI Thinker ESP32-CAM using I2C. The check connection I run first 
The I2CScanner
#define SDA1 21   // not available on ESP32-CAM
#define SCL1 22   // not available on ESP32-CAM
#define SDA2 12 // connected to SDI of BME280
#define SCL2 14 //connected to SCK
Scanning I2C Addresses Channel 1
Scan Completed, 0 I2C Devices found.
Scanning I2C Addresses Channel 2
.. .. .. .. .. .. 76 .. .. .. .. .. .. .. .. ..
Scan Completed, 1 I2C Devices found.
If the bme280test is run with 
// default settings
status = bme.begin();
// You can also pass in a Wire library object like &Wire2
// status = bme.begin(0x76, &Wire2)
I get the message “Could not find a valid BME280 sensor…..”
// default settings
//status = bme.begin();
// You can also pass in a Wire library object like &Wire2
status = bme.begin(0x76, &Wire2)
I get the message ‘Wire2’ was not declared in this scope.
I would like to combine elements of your course “learn ESP32 with Arduino” with the ESP32-CAM.
I hope you can help me I like your explanation in your course.
Kind regards
Urs
 

Question Tags: Adafruit BME280, AI Thinker ESP32-CAM, i2c
2 Answers
0 Vote Up Vote Down
Urs Kahle answered 5 years ago

Thank you, solved the problem with your tutorial “https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/“

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Thanks for letting me know! I’m glad you made it work, I’ll mark it was “Resolved”.

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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.