2015-04-23 15:31:08 +02:00
|
|
|
node-red-node-pidcontrol
|
|
|
|
========================
|
|
|
|
|
|
|
|
A <a href="http://nodered.org" target="_new">Node-RED</a> node that provides a simple PID controller.
|
|
|
|
|
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
2015-04-23 15:31:08 +02:00
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
npm i node-red-node-pidcontrol
|
2015-04-23 15:31:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
PID controller node.
|
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
This node ONLY expects a numeric `msg.payload` containing the current reading.
|
2015-04-23 15:31:08 +02:00
|
|
|
|
|
|
|
It will output the correction that needs to be applied in order to move to the preset **set point** value.
|
|
|
|
|
|
|
|
The damping factors are typically in the range 0 - 1.
|
|
|
|
See <a href="https://en.wikipedia.org/wiki/PID_controller" target="_new">Wikipedia</a> for more details on PID controllers.
|
|
|
|
|
2016-03-02 14:24:56 +01:00
|
|
|
The **set point** may be overridden by `msg.setpoint`. If you do so the edit box value can be used as the initial value.
|