npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-easy-pid-controller

v1.2.1

Published

A Node-RED node for implementing an easy PID controller

Downloads

87

Readme

Easy PID Controller Node for Node-RED

The easy-pid-controller is a simple-to-use Node-RED node that provides Proportional-Integral-Derivative (PID) control functionalities. This node is designed to integrate easily with various control systems and offers configuration options for 0-10V and 4-20mA control signals.

Features

  • Easy to configure PID parameters: Kp, Ki, Kd.
  • Setpoint (SV) input for desired control level.
  • Process Variable (PV) input to feedback the current state.
  • Output values for PID components (P, I, D), final output signal, and mapped value signal.
  • Choice of control signal types: 0-10V or 4-20mA.
  • Real-time status updates during runtime for easier debugging and monitoring.

Installation

npm install node-red-contrib-easy-pid-controller

Usage

  1. Drag and drop the easy-pid-controller node into your Node-RED flow.
  2. Double click on the node to configure its parameters.
  3. Connect it to other nodes to provide PV and SV inputs and get the output signals.
  4. Deploy and monitor the control signal in real-time.

Inputs

  • SV: The desired setpoint value for the controller. Previously was part of the node's configuration, now can be sent as a msg.payload with the topic SV.
  • PV: The process variable or the current state of the system.
  • auto: Boolean signal. If set to true, the PID loop starts.

Outputs

The node outputs an object payload containing:

  • PV: The current process variable.
  • SV: The setpoint.
  • P, I, D: PID component values.
  • Output: The final PID calculated signal.
  • Value: The mapped control signal according to the sensor type (0-10V or 4-20mA).

Changelog

v1.2.1

  • Added: Node status updates during runtime to display relevant information like current PV, PID activation state, and more.

v1.2.0

  • Changed: Moved the Setpoint (SV) from node configuration to msg.payload with the topic SV.

v1.1.0

  • Added: New output value Value that provides the direct control signal based on the sensor type configuration.
  • Improved: Code documentation and error handling for invalid inputs.

v1.0.0

  • Initial release with basic PID functionalities.
  • Support for 0-10V and 4-20mA signal types.

Contributing

Contributions to improve the node or fix any issues are always welcome. Please submit a pull request on the GitHub repository.

License

GPL-3.0 License. See LICENSE file for details.

Example

Visit the examples/ directory for a sample flow illustrating the usage of the node.

Author

Harshad Joshi @ Bufferstack.IO Analytics Technology LLP, Pune