I have been going through many similar threads and trying to piece together a solution with bits and pieces of information from them, but I am still having huge swings in temperature.
Raspberry pi 1
Arduino Uno with Rev C shield connected to two SSRs
An old fridge and a 150W infrared heating bulb.
Currently I have a beer carbonating in a keg. The beer-temperature probe is taped to the side (I know, not the best, but this keg doesn’t have a thermowell) and the fridge-probe is taped to the upper back wall of the fridge, behind the keg. The heating bulb is on the righ side of the keg midway in.
At the time of the screenshots I had disabled the temperature control after waking up and seeing the huge swings that have been going on all night. As you can see I had a similar story the day before, and the steady rise in temperature in the middle of the first screenshot happens while I have the brewpi turned off. Then I decide to cool it down again, and while cooling down I was ok with the progress, but after it gets close to the set temperature it start swinging wildly up and down.
Yes, it is heating the minimum time, which is indicated by the bright red bit at the bottom of the graph.
On BrewPi 0.2, the minimum heat time is not user configurable in the web interface. With your powerful heater, even heating for a few minutes is too much, especially at low temperatures.
As a quick fix, uninstall the heater. You won’t need it for the kegs anyway. For keeping kegs cool, I would also just use fridge constant mode. With the beer sensor taped to the side of the keg, your sensor is influenced by the fridge air temperature too much for the cascaded control algorithm to work well.
I just tried putting a fresh batch of beer into the fridge. Now the beer temperature probe is in a thermowell. This looks much better. Still only 12 hours in and it doesn’t look like fermentation has started. Hope the heat from fermentation doesn’t throw brewpi out of balance.
Im new to the community and picking up things quickly, but please be patient.
Looks like I having similar issues when operating in profile mode. It could be an issue where the heater is too large for the system or just that heating gets stuck running too long. I could be both. I’ve attached a graph detailing the issue. It looks like the chamber temp spikes really badly when going into heat mode. I’ve tried resting the EEPROM and checked wiring and everyone looks great. The heater is a 900 watt unit or so that is on low mode.
Elco. Thanks for your quick reply and thanks for all your work on the project. As a fellow IT pro I really can appreciate the skill and time it takes to make such a big contribution. Im looking forward to contribiting to the project as well.
Good questions. It seems like the heating is happening but the temp is not being recorded right away since it looks like when I login to check on things, the heating timer has been going on for a long time, but maybe the chamber probe isn’t registering right away? Once I restart the brew script, then I see the temperature ramping up (logging)?? Could it be a bad sensor?
As far as the relay config and inverted goes are you referring to the pin type? If so yes. According to the instructions listed at brew talk, the wiring setup requires this?? If not then maybe this is the issue??
Problem solved! The setting was “not inverted”! You we’re right Elco. My oversight. As far as the heater, would you have any recommendations? Seems like 120F at times is pretty much over kill. It was the smallest one I could get locally is there anyway to lower the wattage safely? Guess I could use a light… Has anyone successfully reused the carboy heater wraps? Just mounted in the chamber and not on the fermenter?
Thanks again. After correcting the misconfig, looks like heating is happening very rarely and only running long enough to heat chamber temps to 70F. I think that’s acceptable. As far as relays go, mechanical relays are slightly less reliable than ssr’s. I see the concerns of the ground so that’s something I’ve changed to get ground from the outlet ground…although less reliable they’ve been used for years. I’m not too concerned. If it fails the SSRs will be the next investment.
I installed a heater mid-fermentation yesterday (65W tubular heater + fan) and it does the job well, it’s not too powerful as was the issue with the problem described above. I now see the graph saw-toothing badly; it doesn’t seem to stabilise. As I said I installed it mid-fermentation, should I reset some (or all) parameters? I am on legacy as I am using a Rpi+Arduino.
Can someone point me in the right direction? What should I change to avoid below behaviour?
The beer temp is not fluctuating that much but I guess there is no practical reason for the system to behave in this wasteful way.
From looking at your chart, this is the Arduino version. The Arduino version cannot heat with PWM, it is fully on or fully off. That will make it a bit more sensitive to overshooting. With the sensor taped to the side, you will get some overshoot.
Your screenshot of the PID settings is useless like this. You need to hit update control variables until values show.
I think your main concern is to prevent heating after cooling. You can increase the ‘dead time’ in advanced settings to set a minimum time between switching from heating to cooling and vice versa.