The compressor shutting off might be an explanation. I think I’ll have to go sit next to it for a while when it’s cooling or heating. Fortunately, I’m brewing right now so the fridge will be in action the next few weeks.
Firmware on the Spark is 0.5.10 (most recent) with the latest BrewPi docker image.
Inside of the fridge with fan, temperature sensors and tube heater. The fan switches on when the heater is triggered. The flip switch controls the fan’s bevaviour: Always on, on when heating or off.
Inside of the fermentation vat with the temperature sensor in situ.
Script
{
"kind": "Control",
"pids": [
{
"kind": "Pid",
"name": "heater1pid",
"enabled": false,
"input": {
"kind": "SensorSetPointPair",
"sensor": {
"kind": "TempSensorFallback",
"onBackupSensor": false,
"sensor": {
"kind": "TempSensorDelegate",
"name": "fridge",
"delegate": {
"kind": "OneWireTempSensor",
"value": 18.5,
"connected": true,
"address": "28C8B37F08000036",
"settings.calibrationOffset": 0
}
}
},
"setPoint": {
"kind": "SetPointSimple",
"name": "fridgeset",
"value": null
}
},
"output": {
"kind": "ActuatorPwm",
"dutySetting": 0,
"period": 12,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"waitTime": 0
},
"target": {
"kind": "ActuatorDigitalDelegate",
"name": "heater1",
"delegate": {
"state": 0,
"kind": "ActuatorPin",
"pin": 25,
"invert": false
}
}
}
},
"inputError": null,
"Kp": 30,
"Ti": 1800,
"Td": 60,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": false
},
{
"kind": "Pid",
"name": "heater2pid",
"enabled": true,
"input": {
"kind": "SensorSetPointPair",
"sensor": {
"kind": "TempSensorDelegate",
"name": "beer2",
"delegate": {
"kind": "TempSensorDisconnected",
"value": null,
"connected": false
}
},
"setPoint": {
"kind": "SetPointSimple",
"name": "beer2set",
"value": null
}
},
"output": {
"kind": "ActuatorPwm",
"dutySetting": 0,
"period": 4,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"waitTime": 0
},
"target": {
"kind": "ActuatorDigitalDelegate",
"name": "heater2",
"delegate": {
"kind": "ActuatorNop",
"state": 0
}
}
}
},
"inputError": null,
"Kp": 30,
"Ti": 1800,
"Td": 60,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": false
},
{
"kind": "Pid",
"name": "coolerpid",
"enabled": false,
"input": {
"kind": "SensorSetPointPair",
"sensor": {
"kind": "TempSensorFallback",
"onBackupSensor": false,
"sensor": {
"kind": "TempSensorDelegate",
"name": "fridge",
"delegate": {
"kind": "OneWireTempSensor",
"value": 18.5,
"connected": true,
"address": "28C8B37F08000036",
"settings.calibrationOffset": 0
}
}
},
"setPoint": {
"kind": "SetPointSimple",
"name": "fridgeset",
"value": null
}
},
"output": {
"kind": "ActuatorPwm",
"dutySetting": 0,
"period": 1200,
"minVal": 0,
"maxVal": 100,
"target": {
"kind": "ActuatorMutexDriver",
"mutexGroup": {
"kind": "ActuatorMutexGroup",
"deadTime": 1800000,
"waitTime": 0
},
"target": {
"kind": "ActuatorTimeLimited",
"minOnTime": 300,
"minOffTime": 300,
"maxOnTime": 65535,
"state": 0,
"target": {
"kind": "ActuatorDigitalDelegate",
"name": "cooler",
"delegate": {
"state": 0,
"kind": "ActuatorPin",
"pin": 24,
"invert": false
}
}
}
}
},
"inputError": null,
"Kp": 20,
"Ti": 3600,
"Td": 300,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": true
},
{
"kind": "Pid",
"name": "beer2fridgepid",
"enabled": false,
"input": {
"kind": "SensorSetPointPair",
"sensor": {
"kind": "TempSensorDelegate",
"name": "beer1",
"delegate": {
"kind": "OneWireTempSensor",
"value": null,
"connected": false,
"address": "28179F6209000001",
"settings.calibrationOffset": 0
}
},
"setPoint": {
"kind": "SetPointSimple",
"name": "beer1set",
"value": null
}
},
"output": {
"kind": "ActuatorOffset",
"target": {
"kind": "SensorSetPointPair",
"sensor": {
"kind": "TempSensorFallback",
"onBackupSensor": false,
"sensor": {
"kind": "TempSensorDelegate",
"name": "fridge",
"delegate": {
"kind": "OneWireTempSensor",
"value": 18.5,
"connected": true,
"address": "28C8B37F08000036",
"settings.calibrationOffset": 0
}
}
},
"setPoint": {
"kind": "SetPointSimple",
"name": "fridgeset",
"value": null
}
},
"reference": {
"kind": "SensorSetPointPair",
"sensor": {
"kind": "TempSensorDelegate",
"name": "beer1",
"delegate": {
"kind": "OneWireTempSensor",
"value": null,
"connected": false,
"address": "28179F6209000001",
"settings.calibrationOffset": 0
}
},
"setPoint": {
"kind": "SetPointSimple",
"name": "beer1set",
"value": null
}
},
"useReferenceValue": false,
"setting": 0,
"achieved": null,
"minimum": -6,
"maximum": 6
},
"inputError": null,
"Kp": 5,
"Ti": 10800,
"Td": 600,
"p": 0,
"i": 0,
"d": 0,
"actuatorIsNegative": false
}
]
}