Closed alexmc1510 closed 4 years ago
GPIO0 - Sonoff 4CH Pro does not start (it seems it remains in flash mode).
Flash mode is decided before the user code even runs. GPIO0 works fine on all ESP8266 modules I have.
Please
Hi @alexmc1510 The 4CH pro have special modes for inputs which are not connected directly to the ESP. There are some hardwired functions like delay, toogle, etc. You can configure it with 3 DIP switchs.
Let's try the config here, it works with Tasmota firmware. I have a 4CH pro iworking at home, if you struggle I can check its DIP config and the YAML.
https://github.com/arendst/Tasmota/wiki/sonoff-4ch-pro
EDIT: Every inputs buttons are workink with
Hello,
Thanks for your support. I have modified my code with the GPIO's indicated by @ng-galien and implemented it in the following devices, with the following results:
SONOFF DUAL R2 With config:
Result: Works perfectly.
SONOFF 4CH R2 With config:
Result: Works perfectly.
SONOFF 4CH PRO
With config:
And DIP config: S6: 1 K5: all 1 K6: all 0
Result: Sometimes button push is not recognized. It seems like a type of freezing but at least, reset has dissapeared. I will continue testing it if you consider necessary but from my point of view it's not a problem in the code because same code in other devices works like a charm.
Thank you.
@alexmc1510 Hi Alex, great if that helps. I install this device few months ago and I remenber that buttons "does not works" always as expected. I remenber that rely exclusively with wrong DIP settings. It's not easy to take of the device for the moment, so I'm not able to check the DIP positions, and I didn't write it anywhere...
Have a look here for DIP config https://www.itead.cc/wiki/Sonoff_4CH_Pro
And DIP config:
S6: 1
K5: all 1
K6: all 0
As I remenber I struggle a little bit in this part, because we don't realy know how the original firmware handle it. I had tried the 2^3 configs to find the good one with a simple toggle test, keep in mind to turn off the device before any changes ;)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Hass.io ESP (ESP32/ESP8266, Board/Sonoff):
ESP8266 Board Sonoff 4CH Pro Affected component:
Description of problem: If I confugure GPIO0 and GPIO10 as PULLUP INPUT for external push buttons, behavior of the module is different from expected. GPIO0 - Sonoff 4CH Pro does not start (it seems it remains in flash mode). GPIO10 - Sonoff 4CH Pro resets. The aim of the configuration is to open and close 1 cover so I need 2 external push buttons.
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: I have tried GPIO9 and GPIO14 with success.