6 years ago.

How can I add more I2C pins on mbed LPC1768

I'm doing a project and I need three I2C sensor. However there are only 2 pairs of I2C pins on mbed LPC1768. What should I do if I need another pair of pins?

1 Answer

6 years ago.

I2C slaves (eg sensors) typically support multiple slave addresses. You select a different address for each slave and then they can all sit on the same bus. In case the address can not be changed you have to use different I2C buses or use an I2C multiplexer (google search) or implement an additional I2C port in software by bitbanging two or three pins .