Multi sensor address lost while I2C communication

Hello I’m jin

I’m very new in this subject

I know there are a lot of articles about I2C. but I couldn’t find right solution for my issue

to describe the problem briefly, I’m working on a project using MPU9250 sensor and BME280 sensor

my board is Arduino Uno wifi rev2

MPU9250 - 9axis accelerator, gyro, magnetic - SparkFun

BME280 - barometer from gravity

I tried to use those two sensor on 3v3 and I2C connection but I couldn’t get the MPU9250’s address only when I use two sensors simultaneously

when I use only one sensor it works perfect but when I use those two at the same time I can’t get any data from the MPU’s address

I used the scanner code to figure out what is wrong , usual MPU’s address is 0x68 and BME is 0x77

scanner get only 0x77

I tried 10k pull up, 4.7k pull up

would you suggest any other method to try??

here is the sacanner code for just in case

// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011
#include <Wire.h>
void setup() {
 Serial.begin (115200);
 // Leonardo: wait for serial port to connect
 while (!Serial) 
 Serial.println ();
 Serial.println ("I2C scanner. Scanning ...");
 byte count = 0;
 for (byte i = 8; i < 120; i++)
   Wire.beginTransmission (i);
   if (Wire.endTransmission () == 0)
     Serial.print ("Found address: ");
     Serial.print (i, DEC);
     Serial.print (" (0x");
     Serial.print (i, HEX);
     Serial.println (")");
     delay (1);  // maybe unneeded?
     } // end of good response
 } // end of for loop
 Serial.println ("Done.");
 Serial.print ("Found ");
 Serial.print (count, DEC);
 Serial.println (" device(s).");
}  // end of setup
void loop() {}

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.

Posting tips.

  • Your OS and version can be valuable information, please include it along with extra security you are using.
  • Always list the version of the IDE you are using and the board version if applicable.
  • How to insert an image into your post. ( Thanks Robin2 )
  • Add your sketch where applicable but please use CODE TAGS ( </> )
  • Add a SCHEMATIC were needed even if it is hand drawn
  • Add working links to any specific hardware as needed (NOT links to similar items)
  • Remember that the people trying to help cannot see your problem so give as much information as you can

thank you for fast reply

I will take sometime to do more research before make some question here

your tip helped me a lot