- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to create a auto tuning PID function for a RH controller. Any ideas?
Thnak You,
Philip Nielsen
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a PSOC 1 project you could adopt / port to PSOC 3 -
http://www.psocdeveloper.com/docs/appnotes/an-mode/detail/an-pointer/an2208.html
This is not auto tune, but you could always modify.
What are the requirements for the autotune functionality ?
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a RH controller. I am using a 100 ohm RTD sensor with a 300 pF humidity sensor. The sensor is compensated with temp.
Now I want to try and auto tune the output. I don't know the response time for the SES heater and cooler.
Thank You for replying to my email.
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was an excelent link. Thank you very much for showing me the link. I need to study the PDF file allot more.
Thanks
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Auto-tuning is difficult. Since we don't know how your control loop should look like, it is difficult to auto-tune the parameters (esp. when you don't know the parameters of the loop).
It might be better to measure the behavior of your control loop when it is oscillating, and then use the Ziegler-Nichols-method: http://en.wikipedia.org/wiki/Ziegler%E2%80%93Nichols_method .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@hli, interesting reference.
This seems to state in a degenerative way, if I can't get the loop to oscillate, eg. not
enough gain, just use, what is in effect a step response, to characterize the T(s). If
you take the response at two different time points, and you know the order of the PID,
then the rest falls out.
Or a test cycle, breaking the loop, to characterize the feed forward paths and feedback
paths.
Quite a few ways to at at this I suspect.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Everyones input is correct. I have built analog PIDS a long time ago. But it may be simpler to buy an off the shelf PID controler.
I am looking at PID controlers on the Web. I have seen them form $80 to $300. The only problem that I face is the PSoC 3 has a DAC that is only 8 bits. I am looking at adding an external DAQ and control it with SPI. I would like at least a 12 bit DAC.
Thanks For the great feedback. I deal PIDS all the time at work. And they are very tricky to tune.
Philip Nielsen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Expanding DAC resolution, but may be too slow for PID -
http://www.cypress.com/?rID=47478
You could also use a PWM as a DAC. You would have to take into account
settling time of its mandatory LPF or Integrator on its output. Ap notes from
some other vendors -
http://www.ti.com/lit/an/slaa497/slaa497.pdf
http://documentation.renesas.com/doc/products/region/rtas/mpumcu/apn/dac.pdf
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dana,
There has been quite a bit of re-organisation in the PSOC sites and the following link does not work anymore.
http://www.psocdeveloper.com/docs/appnotes/an-mode/detail/an-pointer/an2208.html
Can you provide a new working link or send me the PSOC Project? we are doing something similar and would like to save some time.
Regards,
C.Cheng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi HL,
Thanks for the link to the AN2208 Appnote (in PDF).
Do you happen to know where is the PSOC Project (code etc) located? Modifying existing Project Codes will be much easier.
Regards,
Ccheng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry, Can find the zip file. you can submit a case to cypress, they should be able to find it for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are PID project examples also for PSOC4 devices using PSOC creator components? Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, Roby!
There are no examples for PID on a PSoC4 yet, but all components needed are provided in a PSoC4 chip. Some external connections will be needed for the opamps, but ADC, comparator, PWM and UART are all available in PSoC4.
Bob
PS: Just a hint: Do not hijack a two year old thread, rather create a new one.