This content has been marked as final.
Show 2 replies
-
1. Re: PSoC PID
WangS_81Dec 23, 2018 5:19 PM (in response to CaDu_3933941)
Maybe you can refer to community thread PSoC 5LP PID Control and let me know if it helps.
-
2. Re: PSoC PID
BoTa_264741 Dec 24, 2018 1:14 AM (in response to CaDu_3933941)molinac5,
Since you are operating in slow-time domain (60Hz), there is no need for fast math; do PID using float or double precision. Divide project into independent sections: (1) RMS measurement, (2) PID control, (3) PWM output with sine modulation.
1. RMS measurement project example:
Measuring an RMS signal on a PSoC5 - Hackster.io
Planet Analog - Aubrey Kagan - Measuring an RMS value on a PSoC5 ...
2. for PID code example, check links in this thread
3. PSoC is able to produce modulated PWM digitally - no need for using a comparator and triangulation of analog sine.
Finally, you should estimate the time budget for this endeavor realistically - this is not a weekend project.
/odissey1