1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/function/PID
2015-05-29 14:58:34 +01:00
..
LICENSE Add PID Controller node 2015-04-23 14:31:08 +01:00
package.json Update Package.json file for all node-red-nodes to be Apache-2.0 2015-05-29 14:58:34 +01:00
pidcontrol.html Add PID Controller node 2015-04-23 14:31:08 +01:00
pidcontrol.js Add PID Controller node 2015-04-23 14:31:08 +01:00
README.md Add PID Controller node 2015-04-23 14:31:08 +01:00

node-red-node-pidcontrol

A Node-RED node that provides a simple PID controller.

Install

Run the following command in the root directory of your Node-RED install - usually ~/.node-red

    npm install node-red-node-pidcontrol

Usage

PID controller node.

This node ONLY expects a numeric msg.payload containing the current reading.

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 Wikipedia for more details on PID controllers.

The set point may be overridden by msg.setpoint. If you do so the edit box value can be used as the initial value.