I was wondering if anyone knew the pin numbers of the,
Button PIN // touch Button
Led //blue led
Relay //relay pins accordingly (1 gang, 2 gang, 3 gang)
I could not find any information about this anywhere.
Thanks in advance!
Been looking myself, though not found anything yet - please do update this if you find the info out, can update the Sonoff Touch page then :)
How about having a look at file sonoff_template.h....
Aye they are there, I was (poorly) meaning reference to the GPIO breakout locations on the touch its self (want to add sensors) :)
I found the details,
Button - GPIO01
Relay and LED - GPIO12
LED - GPIO13
Button 1 - GPIO01
Button 2 - GPIO09
Relay 1 and LED - GPIO12
Relay 2 and LED - GPIO05
LED - GPIO13
Button 1 - GPIO01
Button 2 - GPIO09
Button 3 - GPIO10
Relay 1 and LED - GPIO12
Relay 2 and LED - GPIO05
Relay 3 and LED - GPIO04
LED - GPIO13
Thanks for the GPIO layout. This got me straight to the next problem : GPIO1 = TX... In full development it's pretty hard to get feedback without serial output. Anyone has an idea on how to get around this ?
UPDATE
change pin 1 from TX to GPIO > pinMode(1, FUNCTION_3)
change pin 2 from GPIO to TX > pinMode(2, FUNCTION_4)
Just finished uploading my own custom firmware to my 3 gang sonoff after much frustration found the following otherwise all the othe info is correct thanks a million
Button 1 - GPIO00 not GPIO1
Button 2 - GPIO09
Button 3 - GPIO10
Relay 1 and LED - GPIO12
Relay 2 and LED - GPIO05
Relay 3 and LED - GPIO04
LED - GPIO13
Hi thanks for your information, so there's no way to power on the button led without the relay?
I was hoping for an answer to this as I think the button led should be inverted, on when the relay is off, so it is visible in the dark before putting the light on. Or just permanently on.
This has been answered a year ago.
The led is connected to the relay. When relay on / led is on. If you want the inverted situation you will have to rewire the led.
For what you want the wifi led has been selected as that's the only one under software control; when all relays are off the led is on to find the switch in the dark.
Thanks @arendst, I had seen the information earlier that GPIO12 controlled the relay and the LED but I was not certain that meant that this was the _only_ way to control the LED. I see from the wiki page for the device [1] that the relay and button led are connected to different pins on the EFM8BB1 so there might have been the opportunity to drive them separately.
Thanks again.
[1] https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-T1-UK-and-T1-EU
Does this mean it is not possible to have the unit completely dark when led power is off.
In a bedroom I cannot handle the brightness of the device when the switches are off.
Is it possible to make the unit dark until switches are on ?
i stuck paper over the touch buttons, this darkened it enough :-)
Most helpful comment
Just finished uploading my own custom firmware to my 3 gang sonoff after much frustration found the following otherwise all the othe info is correct thanks a million
Sonoff Touch T1 (3 Gang)
Button 1 - GPIO00 not GPIO1
Button 2 - GPIO09
Button 3 - GPIO10
Relay 1 and LED - GPIO12
Relay 2 and LED - GPIO05
Relay 3 and LED - GPIO04
LED - GPIO13