Author Topic: better way for adc multiplexing  (Read 1113 times)

0 Members and 1 Guest are viewing this topic.

Offline hsn93Topic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: bh
better way for adc multiplexing
« on: January 21, 2020, 09:37:35 am »
hi,

im trying to build industrial analog front end that can be configured by software to accept (4-20mA) or (0-10V / 1-5V / etc) on same connector pin

where accuracy doesnt matter that much


output to be connected with a filtering cap 10nF or so..


for switching i dont like to use relays due to relaiblity issues so
im thinking about SSR like AQY282S (with TVS with Voltage @Ipp < 60v)

also becasue there is 2 ssr per configuration it means 2x resistance =~5 ohm (ie 5% of 4-20mA lost?)

but this would require 4 ssr for 1 channel .. they arent cheap (1.5$ each).
also it will require a not gate for 2/4 ssr.. overall i think there should be simpler way i didnt think about?


so what would be the alternative robust configurable analog front end?



I'm wondering what way being used in PLCs.
and if the above way is good enough or not ?
« Last Edit: January 21, 2020, 09:42:10 am by hsn93 »
-------------------------------------
 

Offline pwlps

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: fr
Re: better way for adc multiplexing
« Reply #1 on: January 21, 2020, 10:12:20 am »
If this is for signal multiplexing you don't need any high-current SSR like AQY282S,  for your application I would suggest an SPDT switch like this one or similar (e.g. ADG1633, is cheaper):
https://www.analog.com/en/products/adg1634.html?doc=ADG1633_1634.pdf#
« Last Edit: January 21, 2020, 10:35:27 am by pwlps »
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 614
Re: better way for adc multiplexing
« Reply #2 on: January 21, 2020, 10:29:46 am »
Quote
industrial analog front end that can be configured by software to accept (4-20mA) or (0-10V / 1-5V / etc) on same connector pin
Maybe 74HC4051 and provide 8 different frontend circuits. One for 4-20mA, one for 0-10V one for 1-5V etc. Then you can select which one is fed through in software.


 

Offline pwlps

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: fr
Re: better way for adc multiplexing
« Reply #3 on: January 21, 2020, 10:42:14 am »
Quote
industrial analog front end that can be configured by software to accept (4-20mA) or (0-10V / 1-5V / etc) on same connector pin
Maybe 74HC4051 and provide 8 different frontend circuits. One for 4-20mA, one for 0-10V one for 1-5V etc. Then you can select which one is fed through in software.

74HC4051 has a >100Ohm on-resistance (vs. 5 Ohm for ADG16xx), so ok if you can afford a voltage drop of 2V at 20mA.   It seems you have to pay much more if you want a very low on resistance.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14217
  • Country: de
Re: better way for adc multiplexing
« Reply #4 on: January 21, 2020, 12:17:38 pm »
If one does not have a higher supply at hand, one may not be able to use the simple CMOS switches. These are limited to signals inside there supply. One could still use CMOS switches after the divider.  It should be OK to always have the divider (possibly higher resistors) connected. So one could likely get away without a switch there.  So it would be mainly about connecting the 150 Ohms or similar resistor for the 20 mA signal.

If the signals are only positive, one could use just a single divider chain of some 25 K , 10 K and 150 Ohms and have a N-Channel MOSFET  (e.g. 2N7000) in parallel to the 25 K and 10 K resistors. The control off the FET would however need some 8-10 V to turn it on.  A low R Photomos could be an option here.

« Last Edit: January 21, 2020, 12:19:39 pm by Kleinstein »
 

Offline hsn93Topic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: bh
Re: better way for adc multiplexing
« Reply #5 on: January 21, 2020, 12:20:59 pm »
Quote
industrial analog front end that can be configured by software to accept (4-20mA) or (0-10V / 1-5V / etc) on same connector pin
Maybe 74HC4051 and provide 8 different frontend circuits. One for 4-20mA, one for 0-10V one for 1-5V etc. Then you can select which one is fed through in software.

74HC4051 has a >100Ohm on-resistance (vs. 5 Ohm for ADG16xx), so ok if you can afford a voltage drop of 2V at 20mA.   It seems you have to pay much more if you want a very low on resistance.

i think another problem is that it swings with temperature or varies from chip to another?

-------------------------------------
 

Offline hsn93Topic starter

  • Regular Contributor
  • *
  • Posts: 114
  • Country: bh
Re: better way for adc multiplexing
« Reply #6 on: January 21, 2020, 12:31:17 pm »
If one does not have a higher supply at hand, one may not be able to use the simple CMOS switches. These are limited to signals inside there supply. One could still use CMOS switches after the divider.  It should be OK to always have the divider (possibly higher resistors) connected. So one could likely get away without a switch there.  So it would be mainly about connecting the 150 Ohms or similar resistor for the 20 mA signal.

If the signals are only positive, one could use just a single divider chain of some 25 K , 10 K and 150 Ohms and have a N-Channel MOSFET  (e.g. 2N7000) in parallel to the 25 K and 10 K resistors. The control off the FET would however need some 8-10 V to turn it on.  A low R Photomos could be an option here.



i guess this will make it from 4 switches to 3 ?:

-------------------------------------
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14217
  • Country: de
Re: better way for adc multiplexing
« Reply #7 on: January 21, 2020, 12:44:14 pm »
Have the 150 Ohms at the low side, and 1 switch is enough.  A 2 nd switch may help to reduce the effect of the switch resistance.

One point to keep in mind is possibly protection for the 150 Ohms - it may not like 10 V.

Depending on the circuit that follows, one could also just switch at the low side. This 150 Ohms resistor would than need differential sensing or a very low R FET to switch.
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 614
Re: better way for adc multiplexing
« Reply #8 on: January 21, 2020, 03:39:00 pm »
74HC4051 has a >100Ohm on-resistance (vs. 5 Ohm for ADG16xx), so ok if you can afford a voltage drop of 2V at 20mA.
Yes, of course you use mux in a feedback of an opamp. Then it does not matter if it is 100R or 110R when feedback resistors are 100k.

I am not sure how many switched ranges OP wants to have. If that is 4 or less then alternatively 74HC4052 can be used and then two channels can be serviced simultaneously.
 

Offline Vovk_Z

  • Super Contributor
  • ***
  • Posts: 1419
  • Country: ua
Re: better way for adc multiplexing
« Reply #9 on: January 21, 2020, 04:18:09 pm »
I think there is a possibility to use only one switch to connect-disconnect 150 R shunt from circuit if accuracy doesn't matter that much. ("Curent/Voltage mode").
It can consist of several physical electronic switches to decrease their resistance.
« Last Edit: January 21, 2020, 04:44:30 pm by Vovk_Z »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16868
  • Country: lv
Re: better way for adc multiplexing
« Reply #10 on: January 21, 2020, 04:34:01 pm »
hi,

im trying to build industrial analog front end that can be configured by software to accept (4-20mA) or (0-10V / 1-5V / etc) on same connector pin

where accuracy doesnt matter that much
IMHO just connect 150R resistor with MOSFET for 4-20mA. For voltage ranges, simply use maximum range for everything and scale (ADC data) in software only. Or use different VREF voltage for different ranges for better accuracy. SSR makes little sense since ADC won't be isolated anyway.
« Last Edit: January 21, 2020, 04:42:22 pm by wraper »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16868
  • Country: lv
Re: better way for adc multiplexing
« Reply #11 on: January 21, 2020, 05:32:28 pm »
Oh, BTW even if you want full range of ADC for every voltage range, you don't need switches. Simply make several voltage dividers in parallel and connect them to separate ADC inputs. Again simply select in firmware which ADC input (divider) you want to use instead of switching anything.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf