I was looking for a transformer from 230v to 5v. Although I found multiple options, the price per unit seemed a little to expensive about €3.00. While that does not look to expensive per unit, remember we also need a switch and an ESP module for WiFi connectivity so as an alterative i looked into these SonOff devices.
After learning that these are powered by ESP8266, I knew i can flash them to a custom firmware to get rid of the more complex software pre-installed (in addition i am not looking for a pre-packaged ready to go product).
So the SonOff cost me €4.55 with free postage from our friends in China.
The first thing i always do when purchasing from China is to flash the firmware. I don’t know what is pre-installed and well i prefer to have more control.
- Download new firmware from https://nodemcu-build.com/ .
- Upload firware
- Jobs done upload code as normal via Arduino IDE
Remember you will need to solder those pins, I prefer a pin head
The four serial pins (3V3, Rx, Tx, GND, GPIO 14) .
Looks like i may end up sticking with the SonOff with my own coded software.