The scenario
When two I2C sensors share the same default address, a microcontroller uses a dedicated GPIO to drive the ADR pin of one sensor, changing its address to a unique value and re-establishing communication.
What is in this drawing
Read the decisions behind it.
01
Use an ADR pin to change a conflicting sensor's address
02
Control the ADR pin via a microcontroller GPIO
03
Re-address the sensor to a new, non-conflicting I2C address
04
Resume normal data acquisition after re-addressing
Resolving address conflicts when multiple identical I2C devices must coexist on a single bus, especially in embedded systems with sensors that support hardware address selection via ADR pins.
More like this