Fail Fast

Starting to dry run the brew-controller and realised there was a very important piece of code missing.
@@ -299,14 +301,31 @@ if self.zoneTemp < self.zoneTarget: - if self.useZoneA: + if self.useZoneA and self.useZoneB: self.ssrZoneA=True + self.ssrZoneB=True + elif self.useZoneA: + self.ssrZoneA=True + self.ssrZoneB=False else: self.ssrZoneB=True + self.ssrZoneA=False else: self.ssrZoneA=False self.ssrZoneB=False - + + if self.ssrZoneA: + self.gpio.output('ssrZoneA',1) + print "BOIL: ssrZoneA = 1" + else: + self.gpio.output('ssrZoneA',0) + print "BOIL: ssrZoneA = 0" + if self.ssrZoneB: + self.gpio.output('ssrZoneB',1) + print "BOIL: ssrZoneB = 1" + else: + self.gpio.output('ssrZoneB',0) + print "BOIL: ssrZoneB = 0"
When testing on a bench there was just enough current leaking through the SSR's to light up the panel indicators, took a while to realise that I wasn't actually firing the SSR

Comments

Popular Posts