2 TMAG5273 Hall sensor breakouts

My plan is to have 2 TMAG5273 hall sensor breakouts communicating to a redboard plus
communicating through a qwiic mux. Seems easy enough but, I want to put both sensors in averaging mode. It would seem like I would define all libraries, begin mux setup, then call one sensor at a time and set them up individually. In practice, trying to do this causes conflicts. Separately I can get readings from one sensor set up to my liking. Separately I can run the mux. The problem lies in where the code must be in the sketch. The setup for average mode apparently has to be above the setup code area or it won’t compile. The code for operating the mux has to be in the main loop area or it won’t compile, but I want both in the same place which doesn’t compile. Also, the compiler won’t allow consecutive identical sets of setup code needed for the setup of 2 sensors.

In case you are wondering about my code, all I am doing is merging basic examples from Qwiic mux and from TMAG5273, which work fine separately.

Sounds like you’ll need to accept their data as separately named variables, or just run 2 independent setups and have them send their data to some 3rd device if you can’t figure out how to code it

Could you elaborate please I do not fully understand.

Never mind elaborating. I think that the easiest option is an additional Redboard instead of using a mux. Each sensor has its own Redboard.

1 Like

Using one TMAG5273 Qwiic connected to a Redboard Qwiik in fast mode (400khz), how many reads per second can I expect to get? Is this the fastest that the Redboard can run?