logo elektroda
logo elektroda
X
logo elektroda

Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering

p.kaczmarek2 204 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering
    Do IoT manufacturers want to help us change firmware? The Refoss Switch R10 is a single relay module capable of controlling both a classic switch and from the Refoss mobile app. The device is based on the ESP8266 chip and is distinguished by an easily accessible programming connector that allows the firmware to be changed without soldering. What's more, this connector is even externally accessible, although here you have to be careful - the device has no galvanic separation, so you ABSOLUTELY cannot plug anything in there when it is connected to the mains. I will show here the whole process of changing the firmware and give its template for the Tasmota software.

    Let's start with the packaging. Nothing here stands out about this product, maybe possibly that warranty. Two years? Anyone respect that?
    Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering
    Inside is the module, instructions and additional cables.
    Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering
    The module itself is distinguished by two features:
    - there is a "window" for programming, now obscured
    - the module can operate on 100-240 V AC or on 12 V DC
    Above the window is a valid note - do not open when power is connected.
    Refoss Switch R10 Wi-Fi interior and simple ESP8266 firmware change without soldering Top view of Refoss R10 relay module housing with terminal labels visible

    Time to look inside . We simply lift the lid. The first thing that catches the eye is the state of the PCB. Is it dirty from flux?
    Close-up of Refoss R10 PCB with visible components and programming header J1
    PCB designation: R10-V1_1_2 2023/06/15 This is a fairly new design for a chip with ESP8266. You can also immediately see the programming connector. Next to it is a BoyMicro flash bone with firmware and a BL0937 for energy measurement.
    Refoss R10 PCB with programming header J1 and 2023/06/15 marking, cover removed
    On the other side of the board is an ESP8266. In the power supply section I see a BP2525.
    Close-up of Refoss R10 PCB with ESP8266 chip and labeled GND and 3V3 pins
    A varistor is available in the power section:
    Close-up of capacitors and screw terminals inside the Refoss R10 module

    Changing the firmware is very simple . This is an ESP8266, so you will need an esptool. We connect 3.3V, ground, RX, TX and GPIO 0, which must be in the low state. We only turn the power on when everything is connected. When the ESP8266 boots with GPIO 0 at ground potential, it will enter bootloader mode.
    You can follow my detailed material on the relay:
    ESP8266 and Tasmota - step by step WiFi relay control
    In my case it worked out like this:
    Refoss R10 module with UART wires connected for firmware flashing
    Note: the product must be disconnected from the mains before any operation with the programming connector! There is a BP2525-based step-down converter inside, there is no galvanic isolation, so connecting the product to the mains and to the computer at the same time may result in a short circuit!
    Now the GPIO still needs to be configured. In OpenBeken we would have automatic configuration detection, but here it is done manually. Fortunately, someone has done this for us before:
    https://templates.blakadder.com/refoss_R10.html
    Refoss R10 relay module with GPIO pinout and Tasmota configuration shown
    I also learned from this site that this relay is more dangerous than I thought:
    Quote:

    SAFETY HAZARD: The digital GND is connected directly to mains voltage "L", so the GPIOs become LIVE during normal operation.

    I haven't tested this in practice - it's just absolutely impossible to operate on its GPIO when it's powered from the mains.
    Tasmota template:
    Code: JSON
    Log in, to see the code

    GPIO mapping table for the Refoss R10 module based on ESP8266

    Summary
    It's been a long time since I've seen something on the ESP8266. Tuya has rather completely moved on to other chips, such as the older BK7231T in particular, the newer BK7231N and the latest BK7238. Here, however, the ESP is still in the middle - and the design is also fresh, from 2023, just 2 years ago. Well, more than 2.
    So much so that this is not "just an ESP product" - here you don't even have to solder to upload a new batch. In addition, the whole thing works on two voltages. Very convenient.
    The only downside I can see is the danger associated with the lack of galvanic isolation, but this is nothing as long as you follow the basic rules. Virtually every Wi-Fi controlled relay module has this affliction.
    Do you know of another product of this type, where the manufacturer leaves a gateway for us to change the firmware and this without soldering? Maybe someone is able to recommend something?
    My feelings here are very positive.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 13784 posts with rating 11579, helped 625 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21809480
    Adam-T
    Level 41  
    p.kaczmarek2 wrote:
    Do you know of another product of this type where the manufacturer leaves a gateway for us to change the firmware and without soldering? Maybe someone is able to recommend something?

    And do you know/see this? 🤔

    Green Shelly Dimmer 2 module on wooden surface with visible screw terminals

    Electronic circuit board with capacitors, screw terminals, and SMD components

    Close-up of a green PCB with electronic components and labeled pin headers.

    Green adapter labeled as Shelly Europe Ltd. product on wooden surface
  • #3 21809487
    p.kaczmarek2
    Moderator Smart Home
    I also have Shelly, waiting in the queue for publication:
    Red Shelly Plus 1PM module held in a hand, showing technical info on back
    It pairs nicely with Home Assistant too.
    Helpful post? Buy me a coffee.
📢 Listen (AI):
ADVERTISEMENT