Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20577

BASCOM-AVR : PID Closed Loop Control of PURE SINE WAVE DC to AC inverter : REPLY

$
0
0
If you are only interested in OP voltage regulation, why current control? I also get the impression you wish to achieve high speed cycle by cycle voltage a control? I would be tempted to sample the O/P voltage with a voltage divider or small TFMR, divide it down to a manageable lo voltage & fw rectify it so your A/D can sample it safely. You probaly need a cap to slow down the response a bit. I would look to control the input over a few seconds not cycle by cycle. Then use this to PI control your drive controller. You don't need the D term - it is only for startup. P + I is what you need. P takes care of the short term error and I takes care of the long term error. P by itself will never get the output right to the target because as the Op gets closer and closer to to the target the P error ( and therefor the correction) gets smaller and smaller so the OP never actually gets right to the target. But P+I will, because I looks at that small error over time, and keeps on building the correction over a short time period until the I correction finally gets the OP right to the target. There are several PI routines on this forum or in the application notes as i recall, and it is quite straight forward with bascom. I would start with P only, get that working and get the P gain sorted out then add the I term and get the I steps and I timing sorted but only after you have the P correction running nicely by itself.

Viewing all articles
Browse latest Browse all 20577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>