Simple custom firmware for KTNNKG wifi 30A High Power WIFI Relay Switch.
Connects as client to the provided wifi hotspot (must be IEEE802.11 b/g/n (2.4MHz)) with a hardcoded ip address.
Simple - does not need extra servers or smartphone app.
Not secure.
Code pieces are taken from here and there while looking through ESP8266 programming guides and tutorials.
- WIFI module is marked as PSF-B01
- The pinout matches with this one. Note the bottom view.
- Soldering is required: TX, RX, GPIO0, GND and 3V3
- Programming cable - this one with 3.3V used for VCC
Arduino 1.8.9 (download libs for ESP32):
- Board: Generic ESP8285 Module
- Upload speed: 921600
- CPU frequency: 80 MHz
- Crystal frequency: 26 MHz
- Flash size: 1M (No SPIFFs)
- Reset method: ck
Short GPIO0 to GND and power on to boot in the programming mode.
Upload the sketch. Check the serial output.
Power off, disconnect the programming cable, connect input wires, power on.