Multiplexer pca9546a not detected to MicoAir743v2

hello everyone,

i want to use multiple external sensors connected to mux pca9546 for micoair h743v2. i tried building custom firmware several times but couldnt succeed.

i have connected mux scl sda lines to micoair i2c1 port.

rm3100 (0×20)connected to mux channel0

bmp585 (0×46)connected to mux channel1

qmc5883l (0×0D)connected to mux channel2.

when using lua script the mux detected and channels also opens. but sensors behind the mux not getting detected.

i want to build custom firmware to read the mux and sensors instead of lua script.

what specific code needed to change in hwdef.dat

1 Like

Why do you want sensors with distinct addresses behind mux?
Ardupilot doesn’t support MUXed sensors, you will need a Lua driver to use sensors behind MUX.

1 Like

ok then i shall remove the mux and connect the sensors directly to i2c of board