Good evening, Elco.
My BrewPi was corrupted after an electrical outage. I had re-installed the package and need some help with the tuning parameters. What should P&ID parameters would be more appropriate? Thank you very much. -Maciej
Parameters here:
{
"kind": "Control",
"pids": [
{
"kind": "Pid",
"name": "heater1",
"enabled": true,
"setPoint": {
"kind": "SetPointSimple",
"value": 4.4453
},
"inputSensor": {
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 14.0625,
"connected": false,
"address": "28E16BA20600001E",
"calibrationOffset": 0
}
},
"inputError": 9.6367,
"Kp": 10,
"Ti": 600,
"Td": 60,
"p": -96.3672,
"i": 0,
"d": -0.1172,
"actuatorIsNegative": false,
"outputActuator": {
"kind": "ActuatorPwm",
"value": 0,
"period": 4,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"lastActiveTime": 4293167296
},
"target": {
"kind": "ActuatorPin",
"state": false,
"pin": 16,
"invert": false
}
}
}
},
{
"kind": "Pid",
"name": "heater2",
"enabled": true,
"setPoint": {
"kind": "SetPointSimple",
"value": null
},
"inputSensor": {
"kind": "TempSensor",
"name": "beer2",
"sensor": {
"kind": "OneWireTempSensor",
"value": 12.3125,
"connected": false,
"address": "28ABD0A106000013",
"calibrationOffset": 0
}
},
"inputError": 0,
"Kp": 10,
"Ti": 600,
"Td": 60,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": false,
"outputActuator": {
"kind": "ActuatorPwm",
"value": 0,
"period": 4,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"lastActiveTime": 4293167296
},
"target": {
"kind": "ActuatorNop",
"state": false
}
}
}
},
{
"kind": "Pid",
"name": "cooler",
"enabled": true,
"setPoint": {
"kind": "SetPointSimple",
"value": 4.4453
},
"inputSensor": {
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 14.0625,
"connected": false,
"address": "28E16BA20600001E",
"calibrationOffset": 0
}
},
"inputError": 9.6367,
"Kp": 10,
"Ti": 1800,
"Td": 200,
"p": -96.3672,
"i": 0,
"d": -0.4688,
"actuatorIsNegative": true,
"outputActuator": {
"kind": "ActuatorPwm",
"value": 96.8359,
"period": 1200,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"lastActiveTime": 4293167296
},
"target": {
"kind": "ActuatorTimeLimited",
"minOnTime": 120,
"minOffTime": 180,
"maxOnTime": 65535,
"active": false,
"target": {
"kind": "ActuatorPin",
"state": false,
"pin": 17,
"invert": false
}
}
}
}
},
{
"kind": "Pid",
"name": "beer2fridge",
"enabled": false,
"setPoint": {
"kind": "SetPointSimple",
"value": null
},
"inputSensor": {
"kind": "TempSensor",
"name": "beer1",
"sensor": {
"kind": "OneWireTempSensor",
"value": 18.375,
"connected": false,
"address": "28EEDA30231500EC",
"calibrationOffset": 0
}
},
"inputError": 0,
"Kp": 2,
"Ti": 7200,
"Td": 1200,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": false,
"outputActuator": {
"kind": "ActuatorSetPoint",
"targetSetPoint": {
"kind": "SetPointSimple",
"value": 4.4453
},
"targetSensor": {
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 14.0625,
"connected": false,
"address": "28E16BA20600001E",
"calibrationOffset": 0
}
},
"referenceSetPoint": {
"kind": "SetPointSimple",
"value": null
},
"output": 127.9961,
"achieved": 127.9961,
"minimum": -10,
"maximum": 10
}
}
],
"sensors": [
{
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 14.0625,
"connected": false,
"address": "28E16BA20600001E",
"calibrationOffset": 0
}
},
{
"kind": "TempSensor",
"name": "beer1",
"sensor": {
"kind": "OneWireTempSensor",
"value": 18.375,
"connected": false,
"address": "28EEDA30231500EC",
"calibrationOffset": 0
}
},
{
"kind": "TempSensor",
"name": "beer2",
"sensor": {
"kind": "OneWireTempSensor",
"value": 12.3125,
"connected": false,
"address": "28ABD0A106000013",
"calibrationOffset": 0
}
}
],
"actuators": [
{
"kind": "ActuatorPwm",
"value": 96.8359,
"period": 1200,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"lastActiveTime": 4293167296
},
"target": {
"kind": "ActuatorTimeLimited",
"minOnTime": 120,
"minOffTime": 180,
"maxOnTime": 65535,
"active": false,
"target": {
"kind": "ActuatorPin",
"state": false,
"pin": 17,
"invert": false
}
}
}
},
{
"kind": "ActuatorPwm",
"value": 0,
"period": 4,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"lastActiveTime": 4293167296
},
"target": {
"kind": "ActuatorPin",
"state": false,
"pin": 16,
"invert": false
}
}
},
{
"kind": "ActuatorPwm",
"value": 0,
"period": 4,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"lastActiveTime": 4293167296
},
"target": {
"kind": "ActuatorNop",
"state": false
}
}
}
],
"setpoints": [
{
"kind": "SetPointNamed",
"name": "beer1set",
"setPoint": {
"kind": "SetPointSimple",
"value": null
}
},
{
"kind": "SetPointNamed",
"name": "beer2set",
"setPoint": {
"kind": "SetPointSimple",
"value": null
}
},
{
"kind": "SetPointNamed",
"name": "fridgeset",
"setPoint": {
"kind": "SetPointSimple",
"value": 4.4453
}
}
]
}