vitotai / BrewManiacEsp8266

BrewManiac on ESP8266. Only ESP8266 needed.
158 stars 71 forks source link

Inverted Logic for Heater (using relay module in gas system) #39

Open gilson18 opened 5 years ago

gilson18 commented 5 years ago

Hi Vito, is it possible to have “inverted logic” option for heater, like for pump? I am using the same relay module, with inverted logic, but just pump works well

vitotai commented 5 years ago

Relay modules are not recommended for heating control. Heating control switches faster and more frequent than pump control. Mechanical relays might react slowly and fail quickly.

If you still insist, change the line@ https://github.com/vitotai/BrewManiacEsp8266/blob/37abaa4f665191833882669f77456036f338f21d/src/pins.h#L118

from digitalWrite (HeatControlPin, v);

to digitalWrite (HeatControlPin, (v==LOW)? HIGH:LOW);

gilson18 commented 5 years ago

Thank you very much. I am using relay because I have a gas system, using valve instead of heater, ssr doesn’t work well with valve. I have changed pid windows time. If you have any other tip for this kind of system, would be great

Thank you again

Em ter, 12 de fev de 2019 às 23:04, vitotai notifications@github.com escreveu:

Relay modules are not recommended for heating control. Heating control switches faster and more frequent than pump control. Mechanical relays might react slowly and fail quickly.

If you still insist, change the line@

https://github.com/vitotai/BrewManiacEsp8266/blob/37abaa4f665191833882669f77456036f338f21d/src/pins.h#L118

from digitalWrite (HeatControlPin, v);

to digitalWrite (HeatControlPin, (v==LOW)? HIGH:LOW);

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vitotai/BrewManiacEsp8266/issues/39#issuecomment-463010769, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap72Hj6YnRLekfXCJNZBYl9Kjo4fSmZ6ks5vM2SggaJpZM4a1QBE .

vitotai commented 5 years ago

Someone has done that, check this out: https://www.homebrewtalk.com/forum/threads/yabc-yet-a-brew-controller-brewmaniacex.596907/page-5