Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff Basic R2 - Button with GPIO 3 (RX Pin) #1710

Open
pabloalcantara opened this issue Apr 30, 2019 · 4 comments
Open

Sonoff Basic R2 - Button with GPIO 3 (RX Pin) #1710

pabloalcantara opened this issue Apr 30, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@pabloalcantara
Copy link

We already Know that the Sonoff Basic R2 does not expose the GPIO 14 and that the GPIO 2 (dificult to solder) can´t be pressed on boot,
So It´s possible to create a version for the Basic R2 that uses the GPIO 3 (RX pin) as a button? It could be an alternative compiled version, or just an option inside the basic version to select the gpio (14 for the original Basic, 3 for the R2).
I have compiled using the base of the Basic just changing the gpio from 14 to 3 and is working perfectly.
Thanks

@pabloalcantara pabloalcantara added the enhancement New feature or request label Apr 30, 2019
@mcspr
Copy link
Collaborator

mcspr commented May 1, 2019

IMO right now it is better to do the second option, "select the gpio", by using this approach: #1680
You can try building from that PR and see how it goes. btnGPIO0 setting will control the pin, configured at boot (and not exposed in UI yet).

If you have any idea about where to put configuration presets (generated from hardware.h) to change from WebUI / Terminal, please share :)

@pabloalcantara
Copy link
Author

The option tô select is the best option. Because we can use just one firmware.

@davebuk
Copy link
Contributor

davebuk commented May 16, 2019

IMG_20190511_154209
I have found that the soldered through holes, mainly 'K_P' are connected to GPIO2. This gives an easier way of attaching wires or header pins WRT ground. You still have the boot failure if held low at start so no good for a toggle switch, but push button works fine. As stated above you also need to set GPIO 2 rather than 14.

@davebuk
Copy link
Contributor

davebuk commented Jun 12, 2019

The article here: https://www.forward.com.au/pfod/ESP8266/GPIOpins/index.html
describes a way of using GPIO 2 with GPIO 0 and a switch and does not effect boot as it sets GPIO 0 as an output after boot.

Can this, or does this option appear in espurna for the basic R2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants