Is it possible to use TX and/or RX serial port pins as additional input/output for push-on switch in ESPEasy FW?
If so, whats are GPIO numbers of TX and RX pins?
Serial port is disabled in ESP setup.
I can not use already present onboard solder plates labelled as Button1 and Button2 because I use it for I2C bus for BME680 sensor.
Another question about Sonnoff DUAL R2
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 533
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Another question about Sonnoff DUAL R2
It is more common to do that the other way around, so use RX/TX for (I2C) sensors, and leave the buttons as is. I'd try to avoid bringing the buttons of a Sonoff outside the housing, for reasons already mentioned, electrical (un)safety, because any connection inside is relative to mains.mackowiakp wrote: ↑16 Mar 2022, 03:54 I can not use already present onboard solder plates labelled as Button1 and Button2 because I use it for I2C bus for BME680 sensor.
This is how I've setup my Sonoff S20's that have a BME280 built in, connected to RX/TX: It's also quite easy to disconnect for updates because I've just pushed the (short) Dupont wires on the header I installed for the serial connection.
/Ton (PayPal.me)
-
- Normal user
- Posts: 533
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Another question about Sonnoff DUAL R2
Thanks a lot for your quick reply.
However, I would like to clarify one thing.
But my copy of Sonnoff DUAL R2 has onboard "ordinary" power supply circuit which totally isolate from live main (230V) any internal parts or externally connected sensor or so. (see picture).
Even it is possible to buy additional housing for Sonnoff DUAL R2 which meats IP65 waterproof class.
However, I would like to clarify one thing.
It is true in case of single channel Sonoff, POW ver and many others.because any connection inside is relative to mains.
But my copy of Sonnoff DUAL R2 has onboard "ordinary" power supply circuit which totally isolate from live main (230V) any internal parts or externally connected sensor or so. (see picture).
Even it is possible to buy additional housing for Sonnoff DUAL R2 which meats IP65 waterproof class.
Re: Another question about Sonnoff DUAL R2
The PCB design is quite close to other Sonoff designs I've seen so far, so I don't have much confidence in their claim of isolation (the distance between the traces and mains/high-voltage components isn't that wide, it appears). That's why I keep warning for these risks. Better safe than sorry
/Ton (PayPal.me)
-
- Normal user
- Posts: 533
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Another question about Sonnoff DUAL R2
Yep. Security first !
Who is online
Users browsing this forum: No registered users and 2 guests