NEW PRODUCT – Adafruit LTC4316 I2C Address Translator – Stemma QT / Qwiic

5914 iso ORIG 2024 03

NEW PRODUCT – Adafruit LTC4316 I2C Address Translator – Stemma QT / Qwiic


Adafruit has hundreds of designs that use I2C – a two-wire protocol that can let you quickly connect sensors, OLEDs, GPIO expanders, and more. Folks love I2C because you can simply connect 4 wires for power and data, and even better, share those wires with multiple devices!

One things folks don’t like about I2C is that each device requires it’s own unique ‘address’. You can only have one device with a 0x20 address, for example, so while in theory you could have up to 127 device, each for the 7-bits of address space available, in reality you will quickly bump into two sensors with the same address. Many I2C components have jumpers or switches that allow changing the address, but not all. And some only let you pick between two values. One solution is to use an I2C multiplexer,  and these work pretty well, but they require some noodling in your code to set up the ‘plexer and then switch between the devices being plexed.

5914 demo ORIG 2024 03

5914 top 02 ORIG 2024 03

The Adafruit LTC4316 I2C Address Translator is another solution, with some magic sprinkled inside. This chip does on the fly address translation. There’s an ‘input I2C’ half, and an ‘output I2C’ half. And any devices on the ‘output’ half will automatically have their addresses translated from the input half. Specifically, each device will have bit A6 flipped  (most-significant-bit of the address) and then bits A4 and A5 can also be flipped or kept the same, with the two DIP switches on board. To determine the translated address, we use XOR bitwise math.

OK that’s a little confusing so let’s work through an example. Say we have an AHT20 connected on the output side of this breakout. The AHT20 does not have an adjustable I2C address: it’s fixed at 0x38. If both DIP switches are ON, then only A6 is flipped. That means the I2C controller on the input side will see 0x38 XOR 0x40 = 0x78 address. If we flip the A5 switch off, now it will be 0x38 XOR 0x60 = 0x58 and if both switches are off, now bits A4, A5 and A6 will be flipped, so 0x38 XOR 0x70 = 0x48. As far as the AHT20 is concerned, it will happily still see I2C writes and reads on 0x38, but from the I2C controller’s perspective, the device is responding on the new address.

5914 kit ORIG 2024 03

If you need more than 4 address translation options (two switches give you 4 options) we also have a spot where you can solder an XOR_LOW resistor for setting the ‘bottom’ 3 bits by soldering in a resistor value according to the datasheet. It can get confusing quickly so we definitely recommend using an I2C scanner to debug. Note also that you have to reset the LTC if you change the translation address with resistors or the DIP switches: the translation value is picked up on chip boot and isn’t on-the-fly adjustable without a toggle of the Enable pin.

While this chip is magical, there’s a few things to watch for: it doesn’t seem to support clock-stretching so not for funky chips like BNO055. Just because you can change the address on the fly, doesn’t mean the drive supports it! Some firmware is expecting a specific address and it may not be trivial to change the address. Check the driver to make sure you know how to change the address, to the new value.

To get you going fast, we spun up a custom-made PCB in the STEMMA QT form factor, making it easy to interface. The STEMMA QT connectors on either side are compatible with the SparkFun Qwiic I2C connectors. This allows you to make solderless connections between your development board and the LTC4316 or to chain it with a wide range of other sensors and accessories using a compatible cableQT Cable is not included, but we have a variety in the shop.

In stock and shipping now!

5914 quarter ORIG 2024 03


Halloween season is here!
Halloween season is here! Check out all the posts, gift guides, and more!

Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 10/9/24 Feat. Adafruit RP2040 Snap-on Enclosure for Adafruit Feather RP2040 USB Host

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: Milton Survival Issue: Two New Python Versions, Visualize WiFi and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — Garden Lights, Bluetooth 6.0, and more!

Maker Business – Adafruit Daily — First Solar’s $1.1 billion development of vertically integrated factory in the U.S.

Electronics – Adafruit Daily — My signal isn’t THAT noisy, is it?

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.