There seem to be many versions of this board. I have confirmed the one labeled as v3 (marking on back) works out of the box with no module modification (outside custom ESP code).
- Also identifed by dual row of pins on side
- ESP8266 WiFi 5V 1 Channel Relay Delay
- There may be one version labeled HW-655, that looks to work out
of the box as well.
- UPDATE 2020-07 just recieved one, and it did not work out of the box in either digital or serial modes.
May try the controller flash (below) to OCD all the things. - Does appear that the Flashing is needed for this version to work as well
- UPDATE 2020-07 just recieved one, and it did not work out of the box in either digital or serial modes.
- Finally, many knock-offs of this board exist. One idenitifcation of a knock-off is a continual LED flashing on the module but the relay code does not work. There is a very in-depth conversation about this, as well as all over the rest of the internet. There is a fix to flash the onboard-mcu (STC15F104W). The referenced HEX code there does not appear to work, but another user posted an updated version that does work. Additionally, you can follow that thread on how to modify the board (remove the micrcontroler, solder some jumpers) and control it with one of the GPIO - this process is hard for the novice solderer.
-
Install
- python3 -m pip install stcgal
- ls /dev/tty.*
-
Flash
- stcgal -D -p /dev/tty.DEVICE -P stc15 -t 11057 -b 1200 /path/to/file.hex
- trimming (-t) may not be needed
- baud (-b) seeems to be required at 1200
- fauxmoesp: ESP8266/ESP32-based devices that emulates Philips Hue lights
- ESPAsyncTCP: Async TCP Library for ESP8266 Arduino
- Update constants
- Flash the ESP 8266 Chip
- Once it connects to WIFI (blue light goes off), have alexa discover
- Connect your device
- Enjoy
The relay is controlled by sending serial commands to the on-board microprocessor. The commands are:
byte relON[] = {0xA0, 0x01, 0x01, 0xA2};
byte relOFF[] = {0xA0, 0x01, 0x00, 0xA1};
Serial.begin(9600);
Serial.write(relON, sizeof(relON));
Serial.flush();
Serial.end();
- Code currently working
- fauxmoesp is no longer supported
- Built-in web based configuration and relay-control
- Requires ConfigManager
- Only rely on HTTP requests
- No more Faux Amazon Devices