Connect two I2C devices to Mega 2560


hello,
i'm new in forum , had new project, need twi i2c devices, can connect them both @ same time arduino mega , use them simultaneously.
and if possible how can realize it?

the arduino mega 2560 has 5v i2c bus.
you can connect number of i2c devices bus, long devices can handle 5v i2c bus.

for example bmp085 sensor can handle 3.3v i2c bus.

the i2c bus 'bus'. connect sda , scl together. in sketch (the software) can select device because every device has own i2c address on bus.

run i2c_scanner see if wiring okay, scan devices on bus.
http://playground.arduino.cc/main/i2cscanner


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Connect two I2C devices to Mega 2560


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support