Hi all, I’ve just revamped my brewpi setup slightly by adding a thermowell in the FV which now sits in the beer (rather than having a pocked of bubblewrap on the side that I used to have.
I now need to tune Brewpi by the looks of it!
I have a fridge for cooling and a 60w tube heater in the bottom of it for heating. Beer temp is recorded from the thermowell and fridge temp is recorded from the sensor towards the top of the fridge along one of the walls.
I am testing with just tap water. To begin with the fridge was around 20c and the water was sitting at around 11.5c. I set the beer temp to be 14c and let it go. As you can see, it hasn’t been running for long but there are definite swings there.
{
"kind": "Control",
"pids": [
{
"kind": "Pid",
"name": "heater1",
"enabled": true,
"setPoint": {
"kind": "SetPointSimple",
"name": "fridgeset",
"value": 20
},
"inputSensor": {
"kind": "TempSensorFallback",
"onBackupSensor": false,
"sensor": {
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 18.375,
"connected": true,
"address": "28FF7DB26B14030E",
"calibrationOffset": 0
}
}
},
"inputError": -1.6211,
"Kp": 10,
"Ti": 600,
"Td": 60,
"p": 16.2109,
"i": 0.5156,
"d": 0,
"actuatorIsNegative": false,
"outputActuator": {
"kind": "ActuatorPwm",
"value": 16.7266,
"period": 4,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"waitTime": 1798845
},
"target": {
"kind": "ActuatorPin",
"state": false,
"pin": 16,
"invert": false
}
}
}
},
{
"kind": "Pid",
"name": "heater2",
"enabled": true,
"setPoint": {
"kind": "SetPointSimple",
"name": "beer2set",
"value": null
},
"inputSensor": {
"kind": "TempSensor",
"name": "beer2",
"sensor": {
"kind": "OneWireTempSensor",
"value": 11.6875,
"connected": true,
"address": "28FFDAC86B1403DF",
"calibrationOffset": 0
}
},
"inputError": null,
"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,
"waitTime": 1798774
},
"target": {
"kind": "ActuatorNop",
"state": false
}
}
}
},
{
"kind": "Pid",
"name": "cooler",
"enabled": true,
"setPoint": {
"kind": "SetPointSimple",
"name": "fridgeset",
"value": 20
},
"inputSensor": {
"kind": "TempSensorFallback",
"onBackupSensor": false,
"sensor": {
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 18.375,
"connected": true,
"address": "28FF7DB26B14030E",
"calibrationOffset": 0
}
}
},
"inputError": -1.6211,
"Kp": 30,
"Ti": 2400,
"Td": 20,
"p": 48.6328,
"i": 0,
"d": 0,
"actuatorIsNegative": true,
"outputActuator": {
"kind": "ActuatorPwm",
"value": 0,
"period": 1800,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"waitTime": 1798699
},
"target": {
"kind": "ActuatorTimeLimited",
"minOnTime": 120,
"minOffTime": 180,
"maxOnTime": 65535,
"state": false,
"target": {
"kind": "ActuatorPin",
"state": false,
"pin": 10,
"invert": false
}
}
}
}
},
{
"kind": "Pid",
"name": "beer2fridge",
"enabled": false,
"setPoint": {
"kind": "SetPointSimple",
"name": "beer1set",
"value": null
},
"inputSensor": {
"kind": "TempSensor",
"name": "beer1",
"sensor": {
"kind": "OneWireTempSensor",
"value": null,
"connected": false,
"address": "28FFB7976B140360",
"calibrationOffset": 0
}
},
"inputError": null,
"Kp": 2,
"Ti": 7200,
"Td": 1200,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": false,
"outputActuator": {
"kind": "ActuatorSetPoint",
"targetSetPoint": {
"kind": "SetPointSimple",
"name": "fridgeset",
"value": 20
},
"targetSensor": {
"kind": "TempSensor",
"name": "fridge",
"sensor": {
"kind": "OneWireTempSensor",
"value": 18.375,
"connected": true,
"address": "28FF7DB26B14030E",
"calibrationOffset": 0
}
},
"referenceSetPoint": {
"kind": "SetPointSimple",
"name": "beer1set",
"value": null
},
"output": 127.9961,
"achieved": 127.9961,
"minimum": -10,
"maximum": 10
}
}
]
}
Any pointers from @Elco especially. It’s mostly default brewpi settings at the minute. I tweaked a couple of things to enable the heater to be on for longer and allow the fridge to run for longer a while back but that’s it I think.