Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
6.0 KiB

  1. # Supported Hardware
  2. This is the official list of supported hardware for the ESPurna firmware. The hardware configuration for each of these boards can be selected by supplying the build flag (see [Firmware section](Firmware.h)).
  3. **CAUTION: Never ever connect any of these devices to your computer and to mains at the same time. Never ever manipulate them while connected to mains. Seriously. I don't want you to die. I hold no responsibility for any damage to you, your family, your house,... for any action or results derived from flashing or using these devices.**
  4. * [IteadStudio Sonoff](#iteadstudio-sonoff)
  5. * [IteadStudio Sonoff RF](#iteadstudio-sonoff-rf)
  6. * [IteadStudio Sonoff TH](#iteadstudio-sonoff-th)
  7. * [IteadStudio Sonoff POW](#iteadstudio-sonoff-pow)
  8. * [IteadStudio Slampher](#iteadstudio-slampher)
  9. * [IteadStudio S20](#iteadstudio-s20)
  10. ## IteadStudio Sonoff
  11. |Property|Value|
  12. |---|---|
  13. |Manufacturer|Itead Studio|
  14. |Web page|https://www.itead.cc/sonoff-wifi-wireless-switch.html|
  15. |Build flag|SONOFF|
  16. The [IteadStudio Sonoff][1] has an ESP8266 on board with a 8Mbit flash memory chip, a mains to 3V3 transformer and a relay (GPIO12). It also features a button (GPIO0), an LED (GPIO13) and an unpopulated header you can use to reprogram it.
  17. ### Flashing
  18. ![Sonoff - Inside front view](images/sonoff-flash.jpg)
  19. The unpopulated header in the Sonoff has all the required pins. My board has a 5 pins header in-line with the button. They are (from the button outwards) 3V3, RX, TX, GND and GPIO14.
  20. Last one is not necessary. Mind it's a **3V3 device**, if connected to 5V you will probably fry it. Button is connected to GPIO0 on the ESP8266 chip, so to enter flash mode you have to hold the button pressed while powering on the board, then you can release it again.
  21. ## IteadStudio Sonoff RF
  22. |Property|Value|
  23. |---|---|
  24. |Manufacturer|Itead Studio|
  25. |Web page|[https://www.itead.cc/sonoff-rf.html][2]|
  26. |Build flag|SONOFF_RF|
  27. ### Flashing
  28. ![Sonoff POW - Inside back view](images/sonoff-rf-flash.jpg)
  29. The Sonoff RF has the same unpopulated header as the Sonoff. It is a 5 pins header in-line with the button. They are (from the button outwards) 3V3, RX, TX, GND and GPIO14.
  30. Solder a male or female header here and connect your USB-to-UART programmer (remember **it's a 3V3 device**). This time through **the button is not connected to GPIO0** but to a EFM8BB1 microcontroller that also monitors the RF module output.
  31. There are a couple of ways to enter flash mode. Some recommend to move 0Ohm R9 resistor to R21 to connect the button directly to the ESP8266 GPIO0 and use it in the same way as for the Sonoff or Sonoff TH. The drawback is the by doing that you lose the RF capability.
  32. My recommendation is to **temporary shortcut the bottom pad of the unpopulated R21 footprint** (see the image above) and connect your USB-to-UART board at the same time. You will have to do it just once (unless there is something really wrong in the firmware) and use OTA updates from there on.
  33. ## IteadStudio Sonoff TH
  34. |Property|Value|
  35. |---|---|
  36. |Manufacturer|Itead Studio|
  37. |Web page|https://www.itead.cc/sonoff-th.html|
  38. |Build flag|SONOFF_TH|
  39. ### Flashing
  40. ![Sonoff TH - Inside back view](images/sonoff-th-flash.jpg)
  41. You have all the required pins in an unpopulated header in one of the corners of the board (see top left corner in the image above). Solder a 4 pins male or female header here and connect it to your favourite USB-to-UART module. Remember: **it's a 3V3 device**!!.
  42. As in the Sonoff the button is connected to GPIO0, so to enter flash mode press and hold the button and connect the programmer to your computer to power the board.
  43. ## IteadStudio Sonoff POW
  44. |Property|Value|
  45. |---|---|
  46. |Manufacturer|Itead Studio|
  47. |Web page|https://www.itead.cc/sonoff-pow.html|
  48. |Build flag|SONOFF_POW|
  49. ### Flashing
  50. ![Sonoff POW - Inside back view](images/sonoff-pow-flash.jpg)
  51. Same as for the [Sonoff TH](#iteadstudio-sonoff-th) above.
  52. ## IteadStudio Slampher
  53. |Property|Value|
  54. |---|---|
  55. |Manufacturer|Itead Studio|
  56. |Web page|https://www.itead.cc/slampher.html|
  57. |Build flag|SLAMPHER|
  58. ### Flashing
  59. ![Slampher - Inside front view](images/slampher-flash1.jpg)
  60. ![Slampher - Flashing short](images/slampher-flash2.jpg)
  61. There is a 4 pin unpopulated header in a border near the ESP8266 chip. Starting form the little white mark this header brings out 3V3, RX, TX and GND. Solder a male or female header here and connect your USB-to-UART programmer (remember it's a 3V3 device). This time through **the button is not connected to GPIO0** but to a EFM8BB1 microcontroller that also monitors the RF module output.
  62. There are a couple of ways to enter flash mode. Some recommend to move R21 to R20 (at the top right of the first picture above) to connect the button directly to the ESP8266 GPIO0 and use it in the same way as for the Sonoff or Sonoff TH. The drawback is the by doing that you lose the RF capability.
  63. My recommendation is to **temporary shortcut the right pad of the unpopulated R20 footprint** (see second image above) and connect your USB-to-UART board at the same time. You will have to do it just once (unless there is something really wrong in the firmware) and use OTA updates from there on.
  64. ## IteadStudio S20 Smart Socket
  65. |Property|Value|
  66. |---|---|
  67. |Manufacturer|Itead Studio|
  68. |Web page|https://www.itead.cc/smart-socket.html|
  69. |Build flag|S20|
  70. ### Flashing
  71. ![S20 Smart Socket - Inside front view](images/s20-flash.jpg)
  72. There is a labeled header in the front of the PCB and the button is connected to GPIO0, so no problems here.
  73. Solder a 4 pin male or female header and connect it to your USB-to-UART bridge. Again, remember **it's a 3V3 device**. Then press and hold the button and connect the programmer to your computer. The microcontroller will boot into flash mode and you are ready to update the firmware.
  74. [1]: https://www.itead.cc/sonoff-wifi-wireless-switch.html
  75. [2]: https://www.itead.cc/sonoff-rf.html
  76. [2]: https://www.itead.cc/sonoff-th.html
  77. [4]: https://www.itead.cc/sonoff-pow.html
  78. [5]: https://www.itead.cc/slampher.html
  79. [6]: https://www.itead.cc/smart-socket.html