12th Anniversary Sale 12% Off in July & August with the voucher code "SUMMER12" *excludes trade customers

Introducing the New Raspberry Pi I2C Switch

I2C Switch

In electronics and computing, efficient communication between devices is crucial. For those who work with multiple I2C (Inter-Integrated Circuit) devices, managing and simplifying this communication can sometimes be a challenging task. There are a limited number of addresses available for I2C devices and you may encounter two devices using the same address. This is where the I2C Switch from AB Electronics UK comes into play.

What is the I2C Switch?

The new I2C Switch from AB Electronics UK is a 4-channel I2C switch designed for the Raspberry Pi and other similar small board computers. It splits the Raspberry Pi I2C bus into four separate buses allowing you to connect devices that share the same I2C address onto the Raspberry Pi. Each bus supports multiple I2C devices and if necessary the I2C switch can be daisy-chained allowing you to increase the number of I2C buses available.

The I2C Switch is based on a PCA9546A controller from NXP. The PCA9546A provides quad bi-directional communication between the I2C port on the Raspberry Pi and any attached I2C devices. Each channel can be individually enabled or disabled.

Power is provided through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allowing you to stack the I2C Switch with other Raspberry Pi Hats and expansion boards.

The four I2C channels contain 6 pin headers that match the first six pins on the Raspberry Pi GPIO header with 3.3V, 5V and ground provided alongside the I2C SDA and SCL pins making it easy to connect to external Raspberry Pi Hats and expansion boards using six-pin IDC ribbon cables.

Each channel can operate at 2.7V, 3.3V or 5V, allowing you to mix different voltage I2C devices on your Raspberry Pi. 

Key Features

  • Four Independent I2C Buses: The switch features eight separate I2C buses, each of which can be individually selected and controlled. This allows for easy management of multiple devices.
  • Ease of Use: The switch is designed to be user-friendly, with straightforward commands to select the desired I2C bus.
  • Code Libraries: We have programming libraries available in a range of languages including Python, C, C++ and Node JS.
  • Compatibility: It is compatible with a wide array of microcontrollers and single-board computers, including the popular Raspberry Pi, Asus Tinker Board and Odroid computers.

Who is it For?

The I2C Switch is a versatile tool suitable for various users:

  • Hobbyists: If you enjoy tinkering with electronics and creating projects that involve multiple I2C devices, the I2C Switch will simplify your setup and save you time.
  • Educators: Teachers and educators can use the I2C Switch to demonstrate complex I2C setups with ease, making it an excellent educational tool for teaching electronics and programming.
  • Professionals: Engineers and developers working on advanced projects that require multiple I2C devices will find the I2C Switch invaluable for managing their device communication efficiently.

Practical Applications

  • Our popular IO Pi Plus is a GPIO expander that adds 32 digital I/O channels to the Raspberry Pi. You can normally stack up to four IO Pi Plus boards on the Raspberry Pi giving you a maximum of 128 I/O channels. With the I2C Switch, you can stack four IO Pi Plus boards on each of the four channels giving you 16 boards in total and 512 digital I/O pins.
  • Combine the I2C Switch with 16 of our ADC Pi analogue to digital converters to give you 128 analogue inputs on your Raspberry Pi.

The I2C Switch from AB Electronics UK is a game-changer for anyone working with multiple I2C devices. Its ability to manage multiple buses with ease makes it an essential tool for hobbyists, educators, and professionals. Whether you’re building a simple project or working on a complex system, the I2C Switch will simplify your setup and enhance your project’s capabilities.

For more information, visit the AB Electronics UK Online Shop and discover how the I2C Switch can benefit your projects today!