1
\$\begingroup\$

I have 64 digital hall effect sensors with open drain outputs (A3144), and would like to read their outputs with an MCU. Is there a simple way to multiplex these sensors to limit the number of IOs needed? Reading bandwidth is low.

My thought is as follows:

Arrange the sensors in a 8x8 matrix, shorting the outputs of every row, and the grounds of every column. Interrupt the power supply on the GND side with a mosfet, and cycle one column at a time like conventional multiplexing. The unsupplied sensors will see their GND go up to VCC and won't be able to pull down the line even if their output is active.

I have some concerns:

  • in case the active sensor in the row is low, the other sensors will see -5V on their outputs wrt their GND. Do I need a diode in series with each individual output for protection?
  • is it a bad idea to repeatedly power cycle the sensors at moderate frequency? (no startup time is specified in the datasheet muxing sensors by controlling gnd
\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

Usually switching the ground of a system with data connections is a poor idea, and this is likely not an exception to that.

The datasheet says that absolute maximum rating is that output pin has -0.5V compared to ground pin.

So if like you say, ground pin floats at VCC when disconnected, another output may pull the common data wire low. If this were a regular IC, it would power up as pulling the data wire low also pulls GND low via internal protection diodes.

But what you could do is multiplex the supply voltage. Or the data.

\$\endgroup\$
2
  • \$\begingroup\$ Agree with your comment. If I was multiplexing VCC, wouldn't the unpowered sensors short the data line to GND or get powered by backfeeding of the output? How would you multiplex the data? \$\endgroup\$ Commented Aug 23, 2023 at 14:48
  • \$\begingroup\$ @reivax-boucoi That is a good question, and I did not consider it - But according to data sheet, the output can handle 24V while supply is 8V, so everything indicates the sensor has a true open-collector output, so the sensor should not be powered by backfeeding via output. Data could be read with analog or digital multiplexers, or via shift registers, or GPIO expanders, or just by 8 logic buffers each buffering 8 wires with separate output enables. \$\endgroup\$
    – Justme
    Commented Aug 23, 2023 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.