PDA

View Full Version : Pid Algorithm with Picbasic



Desperate
- 12th April 2004, 13:15
Hi Everyone..
I want to control an ac motor driver with PID algorithm. The driver needs 0-10V contol voltage. I get the control voltage by an 8bit DAC that is conneted to one of the ports of 16f877. I use a takogenerator for feedback. The problem is that : I couldn't succeed writing the codes in PBP. Can anyone help me about that or send me the picbasic codes of a similar PID project? Thanks...

jurie
- 15th April 2004, 20:58
You can find PID example code in the Industrial Controls Tutorial from Parallax

Regards

Jurie

vsingh
- 25th April 2004, 16:47
Really useful code examples for PID on www.jashaw.com. Buy his book too.

- V

Darrel Taylor
- 5th May 2008, 00:35
Update:

I sit in the Who's Online page a lot, and I keep seeing people reading this thread ...

So I just wanted to say that about 3 years later HenrikOlsson posted a nice implementation of the Parallax PID routines for PicBasic Pro.

PID-filter routine (2nd try).
http://www.picbasic.co.uk/forum/showthread.php?t=5874

hth,