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 programming for MSP430, need advice.

Status
Not open for further replies.

l1n0x

Newbie level 1
Joined
Oct 31, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
Dear all members :)
I'm about to program a PID code for the msp430. I already programmed the Analog-to-digital convert, so all i need is the last pid part.
Since both "timers" on the PID i reserved for other items. I have another idea on how to solve the problem, but i'm totally lost.

The adc stores 3 values from the temperature sensor. I want the PID to compare those 3 values with out set point. And if it's not equal, do the P-regulation..
If the actual point don't reach the set point within 3 times, i want the PI-regulation..
The system should always compare to the latest value from the ADC.
How am i suppose to program this in C?
Please any advice will be appriciatet.
Thanks in advance
:)
 

Here is a PID program used for LEGO Robotics. You can follow the PID programiing guide using the Pseudo codes. Hope this helps. The pseudo codes have been used for other projects involving microcontrollers like the PID controller temperature controller etc.
 

Attachments

  • A PID Controller For Lego Mindstorms Robots.pdf
    294.7 KB · Views: 249
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top