From 46b7138d818f16500bf5b81e287fad301a139d27 Mon Sep 17 00:00:00 2001 From: Cris <41168719+CrisBu@users.noreply.github.com> Date: Fri, 13 Jul 2018 21:21:51 +0200 Subject: [PATCH] Updated Sonoff T1 UK and T1 EU (markdown) --- Sonoff-T1-UK-and-T1-EU.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Sonoff-T1-UK-and-T1-EU.md b/Sonoff-T1-UK-and-T1-EU.md index 6c22b950..0094e9c4 100644 --- a/Sonoff-T1-UK-and-T1-EU.md +++ b/Sonoff-T1-UK-and-T1-EU.md @@ -146,14 +146,14 @@ I tried to reverse engineer the circuit and I noticed: ESP8285 ``` -GPIO0 EFM8BB1 P1,3 (Goes low when first touch button is pressed) +GPIO0 EFM8BB1 P1,3 Switch 1 input (Goes low when first touch button is pressed) GPIO04 is connected to the small (soft) reset button on the front. -GPIO09 EFM8BB1 P1,4 -GPIO10 EFM8BB1 P1,5 +GPIO09 EFM8BB1 P1,4 - Switch 3 input (Goes low when third touch button is pressed) +GPIO10 EFM8BB1 P1,5 - Switch 2 input GPIO13 is connected to status LED D3. -GPIO12 Relay 1 Status -GPIO5 Relay 2 Status -GPIO4 Relay 3 Status +GPIO12 Relay 1 +GPIO5 Relay 2 +GPIO4 Relay 3 GPIO2 is connected on J3 pin 5 (LOG) ``` @@ -177,15 +177,15 @@ P1,6 ESP8285 EXT_RSTB (RESET) ``` ## Known so far -* It seems that the state of the 3 relays are saved inside the EFM8BB1, and not inside the ESP8285. * When pushing a button, the touch chip lift the power high to the EFM8BB1, and the EFM8BB1 chip ties the signal line for each button low, for the full duration of the keypress. * 433MHz remotes are compatible with the Tasmota firmware * DO NOT attempt to power the device from your programmer when connected to the relay board. This draws too much power and will cause the ESP to reboot frequently and will reset all the configured settings. -* The relay state can be read on the above mentioned GPIO's. +* The relays state can be set on the GPIO's 12, 5 and 4. +* The switch status can be read on GPIO's 0, 10 and 9. Push button active low. ## Unknown so far -* How does the ESP8285 change the state inside EFM8BB1. We only know that the ESP8285 can read if button is pressed or not, but now how the ESP8285 changes the state. The communication is probably on the ports GPIO0, 9 and 10 and must be serial. +* Where GPIO15 is connected? Over R18 10kOhm pull-down only? New model, PCB looks like https://photos.google.com/share/AF1QipM1zLb_7_2SkFFfRWgVAL75VhNBYn3hvkkeMLeLkXOfQvsnIUuK9D5nzLNwrKg-Gw/photo/AF1QipMuZaw48dtqAuP1Ibk1dVZfBIwMPFnkN3kjNseb?key=UWsyS3VrZHBpaldyUnl3Zmh0c2hqNDRmM2wyaDRB