Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PID algorithm in pic microcontroller

Status
Not open for further replies.

--BawA--

Advanced Member level 1
Advanced Member level 1
Joined
Nov 28, 2012
Messages
479
Helped
43
Reputation
86
Reaction score
42
Trophy points
1,318
Location
Noida, INDIA
Visit site
Activity points
4,931
hey, i want to implement PID algorithm to keep the output of DC DC converter stable, i am using PIC mcu . i use mikroc for coding. i know the fundamentals of PID algo ,but didn't know how to code the PID in C language. my refrence voltage is 3v and the dynamic voltage may vary from 1 to 4 v. according to the the dynamic voltage , i have to set a dutycycle such that the dynamic voltage should be equal to 3v, an anyone tell me a sample code or algo to proceed?
 

PID is simply multiplications and additions. In a digital system it's a little more complicated because you need to convert your continuous function to a discrete-time one. There's lots of stuff on the web, I mean LOTS, about how to do this.
 

thanx barry ,i have searched web alot but didn't find any c code. can u give me any link where i can find some sample code of PID written in C language?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top