1
\$\begingroup\$

I have 13 sensors with voltage outputs, each sensor can provide a voltage up to 3.3 volt, so I have 13 voltage lines. My goal is to somehow sort these voltages without using any MCU or ADC chip for minimizing price and space. Besides I do not need the exact value of each line. I am wondering is there any analog circuit for doing that for me?

I've just googled something like multiple analog voltage comparator, but no result found. In a nutshell I want to find which line has higher voltage with minimum space and price and circuitry. If no analog solution found, best option is a MCU with 13 INDEPENDENT ADC channels and very low conversion time. I want to compare these lines just in a moment (e.g. 100 us) so time consuming ADC conversions in the MCUs may affect the result.

\$\endgroup\$
11
  • \$\begingroup\$ what output would you expect such a circuit to present to you? What circuits would be downstream consumers of it? What are the upstream sources of these analog voltages? \$\endgroup\$
    – vicatcu
    Commented Mar 8, 2020 at 20:44
  • \$\begingroup\$ re: inputs, what is the output impedance? are they buffered? \$\endgroup\$
    – vicatcu
    Commented Mar 8, 2020 at 20:50
  • \$\begingroup\$ @vicatcu just 0 to 1 for desire line \$\endgroup\$ Commented Mar 8, 2020 at 20:52
  • 3
    \$\begingroup\$ A cheap MCU with 13 analog inputs is probably cheaper than a few dozen discrete components, I think you may be focusing on the wrong thing... For example, the ATMEGA4809 has 20 ADC's and is $2.22 in qty 1 for a PDIP. If you want small space, go with the ATTiny1617 which is $0.92 and has 20 ADC's. \$\endgroup\$
    – Ron Beyer
    Commented Mar 8, 2020 at 20:53
  • \$\begingroup\$ @vicatcu output of sensors? Yes they are buffered. \$\endgroup\$ Commented Mar 8, 2020 at 20:54

1 Answer 1

0
\$\begingroup\$

schematic

simulate this circuit – Schematic created using CircuitLab

It's intended that all channels are identical. However, I've drawn channels 1 and 2 as the simplest possible, and left channel n to receive embellishments.

Consider all inputs except input 1 low. Amplifier 1 works as a follower, with its output a diode D1 drop above its negative input, R1 pulling a modest current through the diode. All other amplifier outputs will be at the negative rail, with their diodes reverse biassed.

As input 2 increases in voltage, it will eventually exceed the common reference voltage on R1, OA2 output will go high, pulling the common reference up to its input voltage, which will send amplifier 1 output low.

If we assume a sufficiently low impedance driving the inputs, I've shown on channel n how a sniff of hysteresis can be applied to the input.

The active output is a diode drop above the input voltage. The inactive outputs are near the negative rail.

To make this easily discriminated by logic, the inputs need to be guaranteed to stay some reasonable voltage above the negative rail. This will happen automatically if the inputs are strictly positive, and the amplifiers receive a negative rail.

With sufficient positive rail available, the diodes could be replaced by elements with a larger voltage drop, for instance several series diodes, or a LED, to increase the voltage excess of the output over the input. Using LEDs would make a nice self-indicating circuit, as long as the LED reverse breakdown was not exceeded, or they were protected by a proper diode in series. If they were inputs to optocouplers, they could be used to drive logic easily.

In an effort to get better logic levels out of the system, I've added Qn. It works as a cascode, transferring the amplifier output current to R1, but only when the output voltage is about 2 diode drops above the logic high reference voltage. Dn could be omitted, as long as the reverse VBE limit, usually around 5v or so for silicon, is not exceeded when the output is low. This now ensures that the outputs are nearly negative rail for low, and logic high reference + 1.4v for high. It does increase the loop gain of the system, so might compromise stability. I'd need to think about that. A resistor in series with Qn emitter would control the gain, and while it would destroy the relatively constant output high voltage, at least the output high voltage is guaranteed to be above a certain voltage, regardless of how low the winning input voltage is.

An essentially identical scheme can be configured to select the smallest input voltage

13 silicon diodes and 4 quad opamps, I'm sure the cost would be much less than 2 USD/EUR/GBP, probably less than one!

It's so straightforward you can see it works by inspection, but here is a SPICE simulation for those who doubt their analytic abilities.

enter image description here

I never got around to building this, because I went straight for the thing I actually wanted, which was differential amplifiers in a minimum selecting arrangement to show me the minimum cell voltage in a 5S Lipo battery.

\$\endgroup\$
4
  • \$\begingroup\$ thanks for your response, how can i calculate sensitivity of this circuit? What is the minimum voltage difference this circuit can detect, saying Milli-volts? and how can this be improved? is input offset of op-amps limit minimum voltage differenece? \$\endgroup\$ Commented Mar 8, 2020 at 21:58
  • \$\begingroup\$ and Are you practically test this circuit? \$\endgroup\$ Commented Mar 8, 2020 at 21:59
  • \$\begingroup\$ @ElectronicLover See my edited answer. \$\endgroup\$
    – Neil_UK
    Commented Mar 9, 2020 at 6:17
  • \$\begingroup\$ yes, it's obvious that the circuit works, but my question was about probable implementation considerations. \$\endgroup\$ Commented Mar 13, 2020 at 19:33

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.