From 7034065b86e8fae60dc45040f21d51b2942e88d6 Mon Sep 17 00:00:00 2001 From: zandegran Date: Mon, 28 Oct 2024 20:42:04 +0100 Subject: [PATCH 1/4] fix: Adjust actuator pins for 20A versions Sonoff ESP32 devices Adjust actuator pins for 20A version Sonoff ESP32 devices --- src/Config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.h b/src/Config.h index 8d73fc7b..524cc90e 100644 --- a/src/Config.h +++ b/src/Config.h @@ -356,11 +356,11 @@ #define oneWirePin 25 -#define actuatorPin1 21 // This is relay 1 +#define actuatorPin1 21 // Relay 1 in 16A versions #define actuatorPin2 23 // TM1621 RD #define actuatorPin3 5 // TM1621 DAT -#define actuatorPin4 24 -#define actuatorPin5 26 +#define actuatorPin4 19 // Relay 1 in 20A versions +#define actuatorPin5 22 // Relay 2 in 20A versions #else // SONOFF_NEWGEN ends #define PIN_SDA 21 From 0f6188bb3dc567857d686a6a6c5cdff9dff3f122 Mon Sep 17 00:00:00 2001 From: zandegran Date: Mon, 28 Oct 2024 21:36:44 +0100 Subject: [PATCH 2/4] Update 12.HardwareSONOFF.md --- docs/12.HardwareSONOFF.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/12.HardwareSONOFF.md b/docs/12.HardwareSONOFF.md index 6cf62a3e..ca95d6f3 100644 --- a/docs/12.HardwareSONOFF.md +++ b/docs/12.HardwareSONOFF.md @@ -16,8 +16,12 @@ The sensor that has the RJ9 connector comes with a controller in the wire that n Option 1: Remove the controller and reconntect the wires (not tested). Option 2: Use `Sonoff AL010 2.5mm Audio Jack to RJ9 Adapter` with the old sensor using the audio jack conntector. -##### Connecting OLED LCD (optional) +#### Connecting OLED LCD (optional) * Connect SDA to WR solder pad * Connect SCL to CS solder pad * Use hotglue over soldered contacts so that you don't ripoff the solder pads accidentally. * Connect 3v and Gnd to corresponding solderpads + +#### 🚧 Workaround for 20A Sonoff Origin and Elite + +20A Sonoff devices use bi-stable or latching relays controlled by 2 pins. One pin need to be assigned as Chamber heater even though there is no heater.. In that way when the cooler pin turns off and the fridge is not really off. But soon the algorithm would kick in and start the heater that does not exist and that would turn the fridge off. From af2173a2921b3de8138433dc92b346064e217867 Mon Sep 17 00:00:00 2001 From: zandegran Date: Mon, 28 Oct 2024 21:44:45 +0100 Subject: [PATCH 3/4] Update 12.HardwareSONOFF.md --- docs/12.HardwareSONOFF.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/12.HardwareSONOFF.md b/docs/12.HardwareSONOFF.md index ca95d6f3..f79fbcb7 100644 --- a/docs/12.HardwareSONOFF.md +++ b/docs/12.HardwareSONOFF.md @@ -11,6 +11,10 @@ Please note that some older SONOFFs, maybe before 2018, use ESP8266 while new on For Sonoff TH Elite the built-in lcd display can be removed and a OLED LCD screen can be connected in it's place.. Use electrical tape to make sure that the LCD pcb is not touching the main pcb. The front glass is a thin plastic be gentle with it. +##### Relay Pins +16A devices: 21 +20A devices: 19 and 22 for the latching relay + #### Conntecting sensor The sensor that has the RJ9 connector comes with a controller in the wire that needs to be removed Option 1: Remove the controller and reconntect the wires (not tested). From e28000475532189bbf9b66d2f1eff43c2b451851 Mon Sep 17 00:00:00 2001 From: zandegran Date: Mon, 28 Oct 2024 21:46:04 +0100 Subject: [PATCH 4/4] Update Config.h --- src/Config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config.h b/src/Config.h index 524cc90e..92d7e5da 100644 --- a/src/Config.h +++ b/src/Config.h @@ -359,8 +359,8 @@ #define actuatorPin1 21 // Relay 1 in 16A versions #define actuatorPin2 23 // TM1621 RD #define actuatorPin3 5 // TM1621 DAT -#define actuatorPin4 19 // Relay 1 in 20A versions -#define actuatorPin5 22 // Relay 2 in 20A versions +#define actuatorPin4 19 // Relay 1 in 20A versions. Latching relay needs 2 pins +#define actuatorPin5 22 // Relay 1 in 20A versions #else // SONOFF_NEWGEN ends #define PIN_SDA 21