Relays are not switching
Posted: Sun May 08, 2022 5:31 pm
I am in the process of setting up BierBot for the first time and I have hit a snag where my relays wont actuate via the BierBot software. They work when I run the test script provided with the software but they wont do anything via either the automatic or manual process of configuring a fermentation controller. In either case, ive gotten the GUI to indicate that the system is in cooling mode, but my relays fail to switch. In fact, as soon as the software starts to run, the lights for the two relay channels i have configured with the software turn off. If i dont run the GUI, the lights for the two relay channels remain lit, indicating they are receiving power. I will add that i configured the relays to be "inverted" and i do not have a load on the relays. Not sure if either of these are causing me to have issue when running my test. Also, here is a snapshot of the logs.... To me, it looks like the software is attempting to active relay 1 (GPIO16) but for some reason, that relay, when checked for continuity has not switched from normally closed over to the normally open position.
INFO:root:set relay 1 to 0
INFO:root:set tempsensor 0 with id 3c51f6491cbd to 17.9375
INFO:root:received new target state 1 for epower_0_state
INFO:root:setting relay 1 (GPIO 16) to 1...
INFO:root:received new target state 0 for epower_1_state
INFO:root:setting relay 2 (GPIO 18) to 0...
INFO:root:sleeping for 15000ms
INFO:root:starting request
INFO:root:set relay 0 to 1
INFO:root:set relay 1 to 0
INFO:root:set tempsensor 0 with id 3c51f6491cbd to 17.9375
INFO:root:received new target state 1 for epower_0_state
INFO:root:setting relay 1 (GPIO 16) to 1...
INFO:root:received new target state 0 for epower_1_state
INFO:root:setting relay 2 (GPIO 18) to 0...
INFO:root:sleeping for 15000ms
INFO:root:starting request
INFO:root:set relay 0 to 1
INFO:root:set relay 1 to 0
INFO:root:set relay 1 to 0
INFO:root:set tempsensor 0 with id 3c51f6491cbd to 17.9375
INFO:root:received new target state 1 for epower_0_state
INFO:root:setting relay 1 (GPIO 16) to 1...
INFO:root:received new target state 0 for epower_1_state
INFO:root:setting relay 2 (GPIO 18) to 0...
INFO:root:sleeping for 15000ms
INFO:root:starting request
INFO:root:set relay 0 to 1
INFO:root:set relay 1 to 0
INFO:root:set tempsensor 0 with id 3c51f6491cbd to 17.9375
INFO:root:received new target state 1 for epower_0_state
INFO:root:setting relay 1 (GPIO 16) to 1...
INFO:root:received new target state 0 for epower_1_state
INFO:root:setting relay 2 (GPIO 18) to 0...
INFO:root:sleeping for 15000ms
INFO:root:starting request
INFO:root:set relay 0 to 1
INFO:root:set relay 1 to 0