node-red-nodes/function/PID
snyk-bot ee4f75b9a9
fix: upgrade node-pid-controller from 0.0.3 to 0.1.2
Snyk has created this PR to upgrade node-pid-controller from 0.0.3 to 0.1.2.

See this package in npm:
https://www.npmjs.com/package/node-pid-controller

See this project in Snyk:
https://app.snyk.io/org/dceejay/project/f255a748-4d5a-4b65-b259-b130c2263855?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-05-13 08:46:19 +00:00
..
locales/en-US cleanup some old x-red label - no new node versions 2021-03-13 14:25:45 +00:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
README.md update analysis and utility nodes info style 2016-03-02 13:27:52 +00:00
package.json fix: upgrade node-pid-controller from 0.0.3 to 0.1.2 2022-05-13 08:46:19 +00:00
pidcontrol.html cleanup some old x-red label - no new node versions 2021-03-13 14:25:45 +00:00
pidcontrol.js Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00

README.md

node-red-node-pidcontrol

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

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm i 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.