I'm playing with I2C on an AVR. I need the devices separated, and each device has its own battery. For the I2C I'm not clear if it is OK to have the pull up resistor within the source device, then share on a connection cable: ground, SCL and SDA?

  • 1
    \$\begingroup\$ It's probably also worth mentioning if both the devices are running at the same supply voltage (3V3, 5V etc) and if not what voltage they are running at. \$\endgroup\$
    – PeterJ
    Aug 29, 2013 at 21:54

1 Answer 1


Should be fine,if the voltage on the pullup is at an acceptable on for the slave and the master. If not, you need a level shifter. Also, you need to pay attention to total cable capacitance if you want to keep your speed up. You might need to use smaller resistors than you expect.

http://www.edn.com/design/analog/4371297/Design-calculations-for-robust-I2C-communications seems like a good reference.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.