3

Can I change the pins on the communication for a Master-Slave arduino Wire transmission? I want to communicate between 2 arduinos, but on one of them A4&A5 are taken

Ignacio Vazquez-Abrams
17.7k1 gold badge28 silver badges32 bronze badges
asked May 22, 2014 at 23:04

2 Answers 2

4

You cannot. Wire uses hardware I2C, and on the Uno only A4 and A5 are connected to the TWI peripheral on the MCU. You will need to either switch to a bit-bang I2C implementation or change the protocol you're using.

answered May 22, 2014 at 23:50
1

To complete Ignacio's answer, there's indeed no other hardware I2C on AVR Arduinos.

The only options you have to use other pins is:

  • to use bitbang i2c, which is way slower ;
  • or you can switch to the Arduino Due which features two TWI ports ;
  • or you can use an SPI to I2C serial bridge such has that one.
answered May 23, 2014 at 0:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.