Author Topic: setting reference value using DAC  (Read 3454 times)

0 Members and 1 Guest are viewing this topic.

Offline electros6Topic starter

  • Regular Contributor
  • *
  • Posts: 110
setting reference value using DAC
« on: January 07, 2015, 08:10:06 am »
Hi guys,
           I am working on DC electronic load. I used MCP4921 12bit DAC to set the set value of current,power. when I set the value in the DAC and run the load I found that there is some variation about 3% then the set value. I used 1% resistance for current sense. My question is whether in commercial instruments the set value is set  based on the calculated value or feedback loop is used to set the DAC value. Why am I asking this because , in agilent E3631 power supply SINGLE DAC used to set 7 different values with a reference rate of 13ms , if feedback loop is used how it is possible to do refresh in 13ms, OR if value is set based on the calculation then if the DAC is drif due to aging how it is compensated. 
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7938
  • Country: nl
  • Current job: ATEX product design
Re: setting reference value using DAC
« Reply #1 on: January 07, 2015, 04:35:22 pm »
You cannot compensate any (open loop) drift because it is unpredictible. The E3631 uses sample and hold circuits very hard low pass filtering, like R26, C25 U10 (please find it on the schematic).
If you would post a schematic of your circuit, it would be easier to help. My suggestion in the blind> calibrate and use precision parts.
« Last Edit: January 07, 2015, 04:42:49 pm by NANDBlog »
 

Offline electros6Topic starter

  • Regular Contributor
  • *
  • Posts: 110
Re: setting reference value using DAC
« Reply #2 on: January 08, 2015, 06:39:05 am »
I have attached the power part of my schematics
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4193
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: setting reference value using DAC
« Reply #3 on: January 08, 2015, 06:45:34 am »
You should compensate the analog setpoint by running amplified current sensing back to the ADC.
Using an ina225 for example (it has programmable gain).

Making it a closed control loop.
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7938
  • Country: nl
  • Current job: ATEX product design
Re: setting reference value using DAC
« Reply #4 on: January 08, 2015, 09:13:27 am »
Is this running stable? Have you looked at the load current with a scope?
There are a lot of parts on this schematic which can make 3% error.
R33,R37 can divide the voltage to a different factor than 0.5. Is R37 required?
The same way,  the small errors in R13-R16 could have a different amplification than 20. Maybe the common mode rejection is not good enought, creating an offset voltage.
And then there is R10-R11. If you are not using proper 4 wire routing, thatcan lead to errors, or the resistor itself can have big tempco, or it is just not precise enought for your application. If you want anything like more than 1% precision for this circuit, you need to calibrate it, and use components from trusted sources, reputable manufacturers, well defined datasheets.
If you need help choosing components, include the BOM, I'll try to help.
 

Offline void_error

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: ro
  • I can transistor...
Re: setting reference value using DAC
« Reply #5 on: January 08, 2015, 10:00:20 am »
There are a few things that will affect accuracy: opamp input offset voltage, DAC errors (DNL,INL), imbalance between the resistors in U4 and U5 feedback loop (I suggest using an integrated difference amplifier if you don't want to hand pick resistors). Feeding the DAC output back to an ADC will allow you to tweak the output voltage and possibly minimize the DAC related errors.
Trust me, I'm NOT an engineer.
 

Offline electros6Topic starter

  • Regular Contributor
  • *
  • Posts: 110
Re: setting reference value using DAC
« Reply #6 on: January 10, 2015, 03:11:00 pm »
Hi NANDBlog ,
           Thanks for your reply. I have prototype my design and looks to be works fine expect the issue that I told. If I need to choose components(resistors for amplification)  how to match the resistors. I have some offset errors due to bias current as the current increases. If I need to implement the feedback what type of control strategy ( eg PID ) should I use in this type of application. Also if possible please give me name of the good books in control systems.
 

Offline SteveyG

  • Supporter
  • ****
  • Posts: 997
  • Country: gb
  • Soldering Equipment Guru
Re: setting reference value using DAC
« Reply #7 on: January 10, 2015, 06:00:18 pm »
That is one badly drawn schematic. It would be worth spending a bit of time making it more readable so if you come back to it in a few years you can understand it.
YouTube Channel: https://www.youtube.com/user/sdgelectronics/
Use code: “SDG5” to get 5% off JBC Equipment at Kaisertech
 

Offline electros6Topic starter

  • Regular Contributor
  • *
  • Posts: 110
Re: setting reference value using DAC
« Reply #8 on: January 11, 2015, 02:43:39 am »
 I know it is bit messy.The schematic is drawn in proteus for simulation purpose. In that schematic the digital part is not shown.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf