node-pid-controller icon indicating copy to clipboard operation
node-pid-controller copied to clipboard

Multiple sensors

Open cveld opened this issue 4 years ago • 2 comments

Does this library support inputs from multiple sensors? The use case is a house with 7 rooms and with each a temperature sensor. We would like to provide an effective signal to the boiler. Additionally we need to adjust the thermostats optimistically as well.

cveld avatar Nov 30 '21 21:11 cveld

Hey Carl,

That's a great question. This library only uses a single input variable, but you could transform your 7 temperatures into a single variable, depending on your goal:

  • if you want to reach an average temperature across all the rooms, average these 7 sensors values
  • if you want a minimum temperature, pass the minimum temperature to this library
  • ...

Does that make sense?

Philmod avatar Dec 04 '21 13:12 Philmod

Hey Phil,

Thanks for your clear reply, there might be some opportunities for us to make this work but we'd have to be creative about it! I will consider actually giving one of the creative solutions a try or maybe look for something that can handle some more inputs.

Regards,

Lars

LarsMudde avatar Dec 04 '21 20:12 LarsMudde