Author Topic: Help with ADC Input Protection  (Read 11627 times)

0 Members and 1 Guest are viewing this topic.

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21658
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Help with ADC Input Protection
« Reply #25 on: July 18, 2014, 05:36:32 am »
20k looks awfully low just for a sensor, that's 15mA and 4.5W at full voltage!  You want to reach a suitable compromise between accuracy, leakage and tolerable loading (dissipation).  That's what engineering is, optimization. ;)

Ah, the 5V source has a diode and a 400k resistor?  Then that diode can be very small as well; I don't think you'll find a 1N4148 in 400V+ ratings (aside from specialty high voltage rectifiers), so a UF4004 or better would be fine.  Or if you don't care about having 400k loading the circuit under test, just leave it hooked up all the time, no diode whatsoever... 1mA backflow into the 5V source probably isn't the worst that can happen, and might do nothing at all, or need only a little work to be reliable (like the zener to keep the supply voltage from running away in case of excess current).  You could just as well bias the ADC input with a resistor and connect that, in turn, to the load; even use just one diode, so the ADC measures the "high" end of the diode.  You lose a diode drop, but I'm guessing now that you're not going for 10+ bit accuracy or anything.

Again, you're counting on everything settling to the expected voltage; I don't know what exactly you're looking to get from it, but the accuracy isn't looking good.  You might just use a comparator instead of the ADC (well, technically it's still a 1-bit ADC) to do a dumb go/no-go condition, for instance.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline TrinityTopic starter

  • Contributor
  • Posts: 35
Re: Help with ADC Input Protection
« Reply #26 on: July 18, 2014, 05:54:24 am »

20k looks awfully low just for a sensor, that's 15mA and 4.5W at full voltage!  You want to reach a suitable compromise between accuracy, leakage and tolerable loading (dissipation).  That's what engineering is, optimization. ;)



Good point.  I brought it up to 100k, and that puts the current through it at about 3 mA, and the power at about 870 mW.



Ah, the 5V source has a diode and a 400k resistor?  Then that diode can be very small as well; I don't think you'll find a 1N4148 in 400V+ ratings (aside from specialty high voltage rectifiers), so a UF4004 or better would be fine.  Or if you don't care about having 400k loading the circuit under test, just leave it hooked up all the time, no diode whatsoever... 1mA backflow into the 5V source probably isn't the worst that can happen, and might do nothing at all, or need only a little work to be reliable (like the zener to keep the supply voltage from running away in case of excess current).  You could just as well bias the ADC input with a resistor and connect that, in turn, to the load; even use just one diode, so the ADC measures the "high" end of the diode.  You lose a diode drop, but I'm guessing now that you're not going for 10+ bit accuracy or anything.



The 400k resistor needs to be there for the test as it controls the range that's measured.



Again, you're counting on everything settling to the expected voltage; I don't know what exactly you're looking to get from it, but the accuracy isn't looking good.  You might just use a comparator instead of the ADC (well, technically it's still a 1-bit ADC) to do a dumb go/no-go condition, for instance.

Tim



Well, the accuracy for this purpose is somewhat flexible.  However, is improving the accuracy a matter of optimizing the component parameters, or does it require a different circuit?

Also, is the accuracy going to be off by a constant bias?  If the error response is linear, it should be easy enough to account for it.

Remember that during the test routine, the 300V source is shut off and will present as an open.
 

Offline TrinityTopic starter

  • Contributor
  • Posts: 35
Re: Help with ADC Input Protection
« Reply #27 on: July 19, 2014, 01:18:31 am »
Alright, so if the current design isn't suitable, let's talk op-amps.

If I put an op-amp in unity gain configuration to drop the input impedance into the ADC, I still need to protect the input to the op-amp.

But the solutions we've discussed still all introduce a bias current into R2.  Does that not degrade the accuracy anyway?  If I use an op amp, what's the best way to protect the input?
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21658
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Help with ADC Input Protection
« Reply #28 on: July 19, 2014, 06:24:20 pm »
Alright, what are you actually doing?
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline TrinityTopic starter

  • Contributor
  • Posts: 35
Re: Help with ADC Input Protection
« Reply #29 on: July 19, 2014, 06:58:59 pm »
Alright, what are you actually doing?


Replied by PM.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf