README.md 1.17 KB
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1 2
# ktnn-wifi-30a

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
3
Simple custom firmware for KTNNKG wifi 30A High Power WIFI Relay Switch. 
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
4 5 6

Connects as client to the provided wifi hotspot (must be IEEE802.11 b/g/n (2.4MHz)) with a hardcoded ip address.

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
7 8 9 10
Simple - does not need extra servers or smartphone app.

Not secure.

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
11
Code pieces are taken from here and there while looking through ESP8266 programming guides and tutorials.
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
12

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
13 14 15 16
## hardware setup

* WIFI module is marked as PSF-B01
* The pinout matches with [this one](https://www.itead.cc/wiki/PSF-B85). **Note the bottom view.**
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
17
* **Soldering is required**: TX, RX, GPIO0, GND and 3V3
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
18 19 20
* Programming cable - [this one](https://www.amazon.com/gp/product/B07784SHF7/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) with 3.3V used for VCC

## build and upload
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
21
Arduino 1.8.9 (download libs for ESP32):
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
* 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.

http://ip/on

http://ip/off