Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #491911 > unrolled thread
| Started by | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| First post | 2018-01-20 01:45 -0800 |
| Last post | 2018-01-22 14:31 -0800 |
| Articles | 12 — 7 participants |
Back to article view | Back to sci.electronics.design
Opinion on Semi predictive feedback control Klaus Kragelund <klauskvik@hotmail.com> - 2018-01-20 01:45 -0800
Re: Opinion on Semi predictive feedback control whit3rd <whit3rd@gmail.com> - 2018-01-20 02:32 -0800
Re: Opinion on Semi predictive feedback control Klaus Kragelund <klauskvik@hotmail.com> - 2018-01-20 05:25 -0800
Re: Opinion on Semi predictive feedback control "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-01-20 07:35 -0600
Re: Opinion on Semi predictive feedback control bitrex <bitrex@de.lete.earthlink.net> - 2018-01-22 18:09 -0500
Re: Opinion on Semi predictive feedback control M Philbrook <jamie_ka1lpa@charter.net> - 2018-01-20 10:47 -0500
Re: Opinion on Semi predictive feedback control Klaus Kragelund <klauskvik@hotmail.com> - 2018-01-20 10:21 -0800
Re: Opinion on Semi predictive feedback control M Philbrook <jamie_ka1lpa@charter.net> - 2018-01-20 20:25 -0500
Re: Opinion on Semi predictive feedback control Klaus Kragelund <klauskvik@hotmail.com> - 2018-01-21 08:22 -0800
Re: Opinion on Semi predictive feedback control Joerg <news@analogconsultants.com> - 2018-01-21 10:02 -0800
Re: Opinion on Semi predictive feedback control makolber@yahoo.com - 2018-01-22 09:16 -0800
Re: Opinion on Semi predictive feedback control Klaus Kragelund <klauskvik@hotmail.com> - 2018-01-22 14:31 -0800
| From | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| Date | 2018-01-20 01:45 -0800 |
| Subject | Opinion on Semi predictive feedback control |
| Message-ID | <dfafb3ba-aed0-4b52-ab49-98873f41b93c@googlegroups.com> |
Hi I got a power supply working in hysteresis mode with a not very precise reference So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value It works, but it will have a small ripple around the target value since that is the way it functions So I was thinking about predictive control. I have a model of the plant, so I know how much to modify the DAC to get it back on track from an error voltage. So I could just measure how much I am off target, and program the DAC with the correct correction including the model information This would let the output swing back to target very fast and very precise. I should then add logic so the DAC is not moved if the measured output is inside a certain error band. That would stop the ripple around the target value Any opinions on this? Stability issues? Thanks Klaus
[toc] | [next] | [standalone]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2018-01-20 02:32 -0800 |
| Message-ID | <08c26373-9905-4abc-b7e5-7d4b0fd89389@googlegroups.com> |
| In reply to | #491911 |
On Saturday, January 20, 2018 at 1:45:55 AM UTC-8, Klaus Kragelund wrote: > I got a power supply working in hysteresis mode with a not very precise reference > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value But, isn't that now a PI loop? And, with 'hysteresis mode'? > It works, but it will have a small ripple around the target value since that is the way it functions > > So I was thinking about predictive control. So, that's going to be PID control? With embedded hysteresis? Safest thing to do, is let it be noisy, because it's just a supply of POWER, and keep a highly-tweaked accurate secondary reference outside the loop. It's beyond me to know what would stabilize (or even accurately characterize) that feedback. Even if the feedback can be made to work under normal operation, the startup and shutdown transients are capable of unpleasant surprises. Disclaimer: I've debugged bunches of power supplies, but don't know much about fine tuning 'em.
[toc] | [prev] | [next] | [standalone]
| From | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| Date | 2018-01-20 05:25 -0800 |
| Message-ID | <a636aa7b-552d-464c-9b8e-b640e45663bd@googlegroups.com> |
| In reply to | #491912 |
On Saturday, January 20, 2018 at 11:32:27 AM UTC+1, whit3rd wrote: > On Saturday, January 20, 2018 at 1:45:55 AM UTC-8, Klaus Kragelund wrote: > > > I got a power supply working in hysteresis mode with a not very precise reference > > > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > > > Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value > > But, isn't that now a PI loop? And, with 'hysteresis mode'? > Well, I don't think it's either because no matter how far the target is away, the speed is still just 1 LSB of the DAC per timeframe. A P term and a I term relates to the size of the error signal, which I do not here The hysteresis is the control of the SMPS, not the outside loop control. Cheers Klaus
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tiwill@seventransistorlabs.com> |
|---|---|
| Date | 2018-01-20 07:35 -0600 |
| Message-ID | <p3vgi3$c3k$1@dont-email.me> |
| In reply to | #491912 |
"whit3rd" <whit3rd@gmail.com> wrote in message news:08c26373-9905-4abc-b7e5-7d4b0fd89389@googlegroups.com... > But, isn't that now a PI loop? And, with 'hysteresis mode'? No, that's nonlinear (constant slew rate), and also unstable. Seems to me, following a hysteretic control with a hysteretic control has a certain poetic awfulness to it. ;-) A linear process has the output change proportional to the error. Multiply the input error by a coefficient (and the error sum over time -- the integral term) and set the output to that. Keep track of fractional bits (say, using a 32 bit register, 16 of which feed the output) so that the output still changes (slowly, i.e. an LSB every however-many samples) when the input error is very small (a few LSBs). You might as well strip it back further, replacing the outside hysteretic controller with a PWM channel so you can do average current mode control. (Peak current mode control isn't practical on most MCUs.) I'm guessing you need to add a current shunt to do this, but it is well worth doing. Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: https://www.seventransistorlabs.com/
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2018-01-22 18:09 -0500 |
| Message-ID | <Zau9C.150$cW2.16@fx16.iad> |
| In reply to | #491912 |
On 01/20/2018 05:32 AM, whit3rd wrote: > On Saturday, January 20, 2018 at 1:45:55 AM UTC-8, Klaus Kragelund wrote: > >> I got a power supply working in hysteresis mode with a not very precise reference >> >> So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value >> >> Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value > > But, isn't that now a PI loop? And, with 'hysteresis mode'? > >> It works, but it will have a small ripple around the target value since that is the way it functions >> >> So I was thinking about predictive control. > > So, that's going to be PID control? With embedded hysteresis? Safest thing to do, is let it > be noisy, because it's just a supply of POWER, and keep a highly-tweaked accurate secondary reference > outside the loop. It's beyond me to know what would stabilize (or even accurately characterize) > that feedback. Unpopular opinions: fuzzy logic could work
[toc] | [prev] | [next] | [standalone]
| From | M Philbrook <jamie_ka1lpa@charter.net> |
|---|---|
| Date | 2018-01-20 10:47 -0500 |
| Message-ID | <MPG.34cd2ea44a9a1c9b98a096@news.eternal-september.org> |
| In reply to | #491911 |
In article <dfafb3ba-aed0-4b52-ab49-98873f41b93c@googlegroups.com>, klauskvik@hotmail.com says... > > Hi > > I got a power supply working in hysteresis mode with a not very precise reference > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value > > It works, but it will have a small ripple around the target value since that is the way it functions > > So I was thinking about predictive control. I have a model of the plant, so I know how much to modify the DAC to get it back on track from an error voltage. So I could just measure how much I am off target, and program the DAC with the correct correction including the model information > > This would let the output swing back to target very fast and very precise. I should then add logic so the DAC is not moved if the measured output is inside a certain error band. That would stop the ripple around the target value > > Any opinions on this? Stability issues? > > Thanks > > Klaus why not simply force the DAC to use close to its full range output and do an analgo scale to the power supply to correct it? If moving the DAC 1 bit is causing a ripple then you have way too much gain on it. scale the DAC output to the power supply reg circuits which will allow you to use a broad range of the DAC and tuhs have very little ripple. Jamie
[toc] | [prev] | [next] | [standalone]
| From | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| Date | 2018-01-20 10:21 -0800 |
| Message-ID | <b0dfb337-e23c-4691-98e1-0c952c2eb5b4@googlegroups.com> |
| In reply to | #491931 |
On Saturday, January 20, 2018 at 4:46:39 PM UTC+1, M Philbrook wrote: > In article <dfafb3ba-aed0-4b52-ab49-98873f41b93c@googlegroups.com>, > klauskvik@hotmail.com says... > > > > Hi > > > > I got a power supply working in hysteresis mode with a not very precise reference > > > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > > > Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value > > > > It works, but it will have a small ripple around the target value since that is the way it functions > > > > So I was thinking about predictive control. I have a model of the plant, so I know how much to modify the DAC to get it back on track from an error voltage. So I could just measure how much I am off target, and program the DAC with the correct correction including the model information > > > > This would let the output swing back to target very fast and very precise. I should then add logic so the DAC is not moved if the measured output is inside a certain error band. That would stop the ripple around the target value > > > > Any opinions on this? Stability issues? > > > > Thanks > > > > Klaus > > why not simply force the DAC to use close to its full range output and > do an analgo scale to the power supply to correct it? > > If moving the DAC 1 bit is causing a ripple then you have way too much > gain on it. scale the DAC output to the power supply reg circuits which > will allow you to use a broad range of the DAC and tuhs have very little > ripple. I want to get the best performance possible, just to see how far I can go I have 3V on the SMPS output, 12 bit DAC, so that is about 0.75mV/LSB. The DAC output has a 1 to 1 ratio to the output, so 1 LSB moves the output with 0.75mV The ADC is also 12 bit, so the same 0.75mV resolution. Off course I have some LSB jitter, but some of that is fixed by a moving average of the ADC counts. If I really wanted to push it further, I could jitter the DAC also to get higher resolution, but I really don't need to go that far I cannot add a lot of stuff due to cost reasons Cheers Klaus
[toc] | [prev] | [next] | [standalone]
| From | M Philbrook <jamie_ka1lpa@charter.net> |
|---|---|
| Date | 2018-01-20 20:25 -0500 |
| Message-ID | <MPG.34cdb60cd3da417698a099@news.eternal-september.org> |
| In reply to | #491958 |
In article <b0dfb337-e23c-4691-98e1-0c952c2eb5b4@googlegroups.com>, klauskvik@hotmail.com says... > > On Saturday, January 20, 2018 at 4:46:39 PM UTC+1, M Philbrook wrote: > > In article <dfafb3ba-aed0-4b52-ab49-98873f41b93c@googlegroups.com>, > > klauskvik@hotmail.com says... > > > > > > Hi > > > > > > I got a power supply working in hysteresis mode with a not very precise reference > > > > > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > > > > > Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value > > > > > > It works, but it will have a small ripple around the target value since that is the way it functions > > > > > > So I was thinking about predictive control. I have a model of the plant, so I know how much to modify the DAC to get it back on track from an error voltage. So I could just measure how much I am off target, and program the DAC with the correct correction including the model information > > > > > > This would let the output swing back to target very fast and very precise. I should then add logic so the DAC is not moved if the measured output is inside a certain error band. That would stop the ripple around the target value > > > > > > Any opinions on this? Stability issues? > > > > > > Thanks > > > > > > Klaus > > > > why not simply force the DAC to use close to its full range output and > > do an analgo scale to the power supply to correct it? > > > > If moving the DAC 1 bit is causing a ripple then you have way too much > > gain on it. scale the DAC output to the power supply reg circuits which > > will allow you to use a broad range of the DAC and tuhs have very little > > ripple. > > I want to get the best performance possible, just to see how far I can go > > I have 3V on the SMPS output, 12 bit DAC, so that is about 0.75mV/LSB. > > The DAC output has a 1 to 1 ratio to the output, so 1 LSB moves the output with 0.75mV > > The ADC is also 12 bit, so the same 0.75mV resolution. Off course I have some LSB jitter, but some of that is fixed by a moving average of the ADC counts. If I really wanted to push it further, I could jitter the DAC also to get higher resolution, but I really don't need to go that far > > I cannot add a lot of stuff due to cost reasons > > Cheers > > Klaus do you have an additional DAC to play with ? if so you can use that one to increase your resolution with a summing circuit. Of course you'll need to use some high precision R's to make that work out.
[toc] | [prev] | [next] | [standalone]
| From | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| Date | 2018-01-21 08:22 -0800 |
| Message-ID | <ad6a74cd-222b-4c9a-be2b-2e0bc5c1ff5e@googlegroups.com> |
| In reply to | #491992 |
On Sunday, January 21, 2018 at 2:24:29 AM UTC+1, M Philbrook wrote: > In article <b0dfb337-e23c-4691-98e1-0c952c2eb5b4@googlegroups.com>, > klauskvik@hotmail.com says... > > > > On Saturday, January 20, 2018 at 4:46:39 PM UTC+1, M Philbrook wrote: > > > In article <dfafb3ba-aed0-4b52-ab49-98873f41b93c@googlegroups.com>, > > > klauskvik@hotmail.com says... > > > > > > > > Hi > > > > > > > > I got a power supply working in hysteresis mode with a not very precise reference > > > > > > > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > > > > > > > Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value > > > > > > > > It works, but it will have a small ripple around the target value since that is the way it functions > > > > > > > > So I was thinking about predictive control. I have a model of the plant, so I know how much to modify the DAC to get it back on track from an error voltage. So I could just measure how much I am off target, and program the DAC with the correct correction including the model information > > > > > > > > This would let the output swing back to target very fast and very precise. I should then add logic so the DAC is not moved if the measured output is inside a certain error band. That would stop the ripple around the target value > > > > > > > > Any opinions on this? Stability issues? > > > > > > > > Thanks > > > > > > > > Klaus > > > > > > why not simply force the DAC to use close to its full range output and > > > do an analgo scale to the power supply to correct it? > > > > > > If moving the DAC 1 bit is causing a ripple then you have way too much > > > gain on it. scale the DAC output to the power supply reg circuits which > > > will allow you to use a broad range of the DAC and tuhs have very little > > > ripple. > > > > I want to get the best performance possible, just to see how far I can go > > > > I have 3V on the SMPS output, 12 bit DAC, so that is about 0.75mV/LSB. > > > > The DAC output has a 1 to 1 ratio to the output, so 1 LSB moves the output with 0.75mV > > > > The ADC is also 12 bit, so the same 0.75mV resolution. Off course I have some LSB jitter, but some of that is fixed by a moving average of the ADC counts. If I really wanted to push it further, I could jitter the DAC also to get higher resolution, but I really don't need to go that far > > > > I cannot add a lot of stuff due to cost reasons > > > > Cheers > > > > Klaus > > do you have an additional DAC to play with ? if so you can use that one > to increase your resolution with a summing circuit. Of course you'll > need to use some high precision R's to make that work out. I think I have enough resolution, I just need it not to dance around the target value On a side note, the microcontroller that controls the outer loop knows the exact loading of the 3V supply, and when a potential load shift is happening In a normal supply regulator, a load step would cause the 3V to either overshoot or undershoot. It may be going a little over the top for this supply, but for sake of experiment, I could shift the DAC with 50% of the expected over/undershoot, to reduce the overall overshoot by 50% I guess this kind of stuff is patented heavily, so I need to do a patent survey Cheers Klaus
[toc] | [prev] | [next] | [standalone]
| From | Joerg <news@analogconsultants.com> |
|---|---|
| Date | 2018-01-21 10:02 -0800 |
| Message-ID | <fck2u4Fp878U1@mid.individual.net> |
| In reply to | #491911 |
On 2018-01-20 01:45, Klaus Kragelund wrote: > Hi > > I got a power supply working in hysteresis mode with a not very > precise reference > > So I am wrapping a digital loop with a microcontroller around it > using a DAC output to tune the reference and thus the output to a > precise value > > Right now I have it working with a very simple P regulator, so if the > value measured by the ADC is off target, I just move the DAC control > one LSB to move the output back to the target value > > It works, but it will have a small ripple around the target value > since that is the way it functions > > So I was thinking about predictive control. I have a model of the > plant, so I know how much to modify the DAC to get it back on track > from an error voltage. So I could just measure how much I am off > target, and program the DAC with the correct correction including the > model information > > This would let the output swing back to target very fast and very > precise. I should then add logic so the DAC is not moved if the > measured output is inside a certain error band. That would stop the > ripple around the target value > > Any opinions on this? Stability issues? > I have designed a system that used this approach except there was no internal hysteric hardware loop and it wasn't a power supply. It was a multi-channel phase adjuster where several receivers had to be "phased together" at exactly xx degrees towards each other. The errors were measured, the processor looked at it, grabbed the required correction magnitudes from a look-up table and applied those. It worked very well and fast but you must know the plant (which you probably do if you have a model). If there is any chance that your plant could come back with an unforeseen fast load change reaction this method could become unstable. Long story short the client had a DSP on the board for a previous method that they couldn't get to converge properly. This DSP became largely unemployed and could have been replaced with a cheap 8-bitter or less. -- Regards, Joerg http://www.analogconsultants.com/
[toc] | [prev] | [next] | [standalone]
| From | makolber@yahoo.com |
|---|---|
| Date | 2018-01-22 09:16 -0800 |
| Message-ID | <2d7d959b-6c0a-4b9f-9d92-5f14549a890f@googlegroups.com> |
| In reply to | #491911 |
On Saturday, January 20, 2018 at 4:45:55 AM UTC-5, Klaus Kragelund wrote: > Hi > > I got a power supply working in hysteresis mode with a not very precise reference > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > then you have ANOTHER reference to compare the results of the not precise reference against? then why not just use the more precise reference in the first place? without another reference, I don't see how you can improve the results? mark
[toc] | [prev] | [next] | [standalone]
| From | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| Date | 2018-01-22 14:31 -0800 |
| Message-ID | <967e7d41-e94e-4c0f-b3f0-2466dbe49dc5@googlegroups.com> |
| In reply to | #492133 |
On Monday, January 22, 2018 at 6:16:23 PM UTC+1, mako...@yahoo.com wrote: > On Saturday, January 20, 2018 at 4:45:55 AM UTC-5, Klaus Kragelund wrote: > > Hi > > > > I got a power supply working in hysteresis mode with a not very precise reference > > > > So I am wrapping a digital loop with a microcontroller around it using a DAC output to tune the reference and thus the output to a precise value > > > > then you have ANOTHER reference to compare the results of the not precise reference against? > > then why not just use the more precise reference in the first place? > > without another reference, I don't see how you can improve the results? > The funny thing about this microcontroller is that the internal voltage reference is better than a garden variety TL431. That is the reason I am wrapping the microcontroller around the outer feedback loop Cheers Klaus
[toc] | [prev] | [standalone]
Back to top | Article view | sci.electronics.design
csiph-web