This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P401R: MSP432P401R

Part Number: MSP432P401R

hi, i trying to write a code that set the output voltage to a fix level. and i want to keep it at that level, whatever happens. So when the i connects a heavy load, this shouldn't affect the output. I know To get that working, you need to change the input signals to the circuit. I know that arduino have a library called PID library that does that, what that library does is to crate a stable control of the output, by measuring the difference with the desired output (error), using other factors (such as history) and changing the input signal (feedback) until balance is achieved ad the difference between the desired output and the actual current value is called the error. P stands for proportional, I for Integral, D for differential. These are the mathematical terms that play a role in the calculations inside the PID library, is there any library that act like that or is there any PID library for MSP 432 that i can use

thank you.

When you build a power supply, you want to set the output voltage to a fixed level. And you want to keep it at that level, whatever happens.

When the user connects a heavy load, this shouldn't affect the output.

To get that working, you need to change the input signals to the circuit.

But how do you do that? How much change? How fast? How to prevent that the change pushes the output above the level?

And what if the load is removed?

That's a problem that the PID mechanism tries to resolve:

a stable control of the output, by measuring the difference with the desired output (error), using other factors (such as history) and changing the input signal (feedback) until balance is achieved.

The difference between the desired output and the actual current value is called the error.

P stands for proportional, I for Integral, D for differential. These are the mathematical terms that play a role in the calculations inside the PID library

  • You can try to get the arduino library and adapt it to the MSP432P401R.

    Or alternately, if you use energia - which supports the MSP432P401R - you may be able to use it directly.

**Attention** This is a public forum