Git Product home page Git Product logo

Comments (14)

hj91 avatar hj91 commented on August 10, 2024

It should work. Please test it.

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

I am very new in Node Red, I know what I want to do but not how to do it.

I planned to find me in your block the connection points for SV, PV, and out.

But I think they are not directly accessible, can it be?

You could help me generate a generic code and I already tried to adapt it later.

Thank you!
image

from node-red-contrib-easy-pid-controller.

hj91 avatar hj91 commented on August 10, 2024

Check here for template

https://github.com/hj91/node-red-contrib-easy-pid-controller/blob/main/examples/easy-pid-controller.json

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

Thank you!! I have been able to write the SV and PV values from the MQTT Explorer, but I am not able to connect my MQTT Solar Power to SV input.

Forgive my awkwardness!

image
flows.json

from node-red-contrib-easy-pid-controller.

hj91 avatar hj91 commented on August 10, 2024

No problem. Replace this node by real pid controller hardware in case things dont work out well as your requirement.

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

I have already managed to inject SV and PV with an external variable through MQTT.

Now I would have to scale the variables.

SV and PV from 0-2kW

And the OUT would need to be configured from 0-100%
flows.json

image

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

HI @hj91

Let's see if you can clarify for me what I'm doing wrong.

I'm messing around with your example, and I can't understand why the output VALUE value doesn't increase when PV is lower than SV. I've noticed that it takes the same value as the PV input.

The OUTPUT does increase as expected.

image
flows.json

from node-red-contrib-easy-pid-controller.

hj91 avatar hj91 commented on August 10, 2024

Adjust the values of p, I, d to suite the system.... The values I provided in sample are for theory only.

Let me add that pid tuning is another time consuming exercise one needs to do for their system. And there is no one single magic way to do it in one attempt.

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

Yes, I know that the PID issue is complex and an art to tune it, but what is happening is that I set the values I set for P I D, the Value output is always equal to the PV.

from node-red-contrib-easy-pid-controller.

hj91 avatar hj91 commented on August 10, 2024

Try adjusting the values and check the response of your system - usually it aims to make sure pv is approx equeal or close to sv.

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

Hi @hj91

Indeed, the PV must ultimately be the same or as close as possible to the SV.

But what I am commenting on is although I have tried different ways to tune the PID, the value that enters PV is as if I copied it to msg.payload.Value. It's always the same.

And the normal thing is that if the PV is below the SV, the value of msg.payload.Value should increase so that the PV gets closer to the SV.

In fact, the msg.payload.Output value does integrate and increase its value.

Thanks!!

But I understand that control output of 0-10V or 4-20mA is collected from msg.payload.Value with a range of 0-100%?

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

Hi @hj91

I have been reading this post

#2

And now I have clarified myself!! The same thing happened to this colleague as me, please you have to correct the documentation and specify that the OUTPUT is the output and not the VALUE, it gives rise to error for us "non-experts"

What I do find strange is the behavior of OUTPUT, should it be limited between 0-100%, what could I do for this?

The msg.payload.Output will be sent to the Shelly Dimmer (this expects a range of 0-100%) and then in proportion it will act with 0-10v on the regulator where the resistance that heats the water is connected.

from node-red-contrib-easy-pid-controller.

hj91 avatar hj91 commented on August 10, 2024

ok, i guess its time rewrite the code

from node-red-contrib-easy-pid-controller.

isabido avatar isabido commented on August 10, 2024

Thank you! We all wait patiently for her.

from node-red-contrib-easy-pid-controller.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.