two sensors usin SCL +SDA

Hello, I want to make a rocket controller but gyro (MPU-6050) is using SCL + SDA and pressure sensor (BMP280) is also using SCL + SDA I'm using Arduino nano is there some way around it?

The 2 devices can share the same SDA and SCL pins but give them each a different address

Not only "can" but always do share the I2C interface pins. That is what I2C is.

The BMP280 will be on address 0x76 or 0x77, while the MPU6050 will be on address 0x68 or 0x69. So you could have two of each device, all four connected on the same I2C bus.

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

Have you googled

arduino i2c more than one

It will give you many examples of many devices on I2C bus.

Tom.... :slight_smile:

Paul__B:
Not only "can" but always do share the I2C interface pins. That is what I2C is.

On of my Unos (Unoes, like potatoes?) is on one of these Sparkfun plastic plates with a mid-sized breadboard.

I took a wire from each of the SCL and SDA Uno pins to one pair of power rails on the breadboard to use as an I2C bus. (Just need to remember to ignore the + and - markings :wink: )

blomcrestlight:
On of my Unos (Unoes, like potatoes?) is on one of these Sparkfun plastic plates with a mid-sized breadboard.

Depends how you pronounce potatoes! But Uno is an Italian word, so I guess we should pronounce it like an Italian.

Also that's not a mid-sized breadboard, it is very small. And the correct term is "stupid sparkfun plastic plate". Why do a reputable company like Sparkfun sell such nonsense? For the same price you can buy a descent size breadboard and a breadboard compatible Arduino like Nano.

(Apologies for the off-topic comments)

But good suggestion about using a bus-bar for the i2c bus. My favourite breadboards, the K&H AD100 series (the ones with 6 hole rows) have detachable bus-bars that can be purchased separately, so you could attach an extra bus-bar for i2c while still having power bus-bars at both sides.

I would have gone the nano / decent sized breadboard years ago had I known better.

This is a very small bb :wink:

blomcrestlight:
I would have gone the nano / decent sized breadboard years ago had I known better.

Sparkfun, by selling that plate, are suggesting to beginners that it's a sensible thing to do.

This is a very small bb :wink:

Where? I can't... Let me get a magnifying glass...

blomcrestlight:
I took a wire from each of the SCL and SDA Uno pins to one pair of power rails on the breadboard to use as an I2C bus. (Just need to remember to ignore the + and - markings :wink: )

Making I2C Bus is not a good idea for practical purposes when working with breadboard which gives intermittent contacts for most of the times. The recommendation is to place the I2C devices on the breadboard and then making device-to-device connections using short jumpers.

GolamMostafa:
Making I2C Bus is not a good idea for practical purposes when working with breadboard which gives intermittent contacts for most of the times.

Buy good quality breadboards and don't abuse them. Then you won't be working with intermittent contacts.

GolamMostafa:
The recommendation is...

Can you say who's recommendation that is please?

PaulRB:
Buy good quality breadboards and don't abuse them. Then you won't be working with intermittent contacts.

Bad quality breadboards (discovered after purchase) are there in the market and those should be abused.

Can you say who's recommendation that is please?

Trained and Skilled human Trainers.