Dobrica Pavlinušić's random unstructured stuff
Teckin SP22: Revision 8

Photos: https://photos.app.goo.gl/JBW4wv51Eb6RX1ej8



Board markings

PLD-PZ005-V1.9.
12/13/2018

wifi module

LA_WF3_08.png

TYWE2S

pins on flat side (bottom)

3v3
gnd
rx
tx
12
14

pins on side with components

rst
ad
13
04
05

sonoff tasmota

{"NAME":"Teckin","GPIO":[0,17,0,53,134,132,0,0,131,56,21,0,0],"FLAG":0,"BASE":52}


enable user config

dpavlin@nuc:/nuc/esp8266/Sonoff-Tasmota$ git diff
diff --git a/platformio.ini b/platformio.ini
index 59fab723..98d285fc 100755
--- a/platformio.ini
+++ b/platformio.ini
@@ -193,7 +193,7 @@ build_flags               = ${core_active.build_flags}
 ;                            -DFIRMWARE_BASIC
 ;                            -DFIRMWARE_KNX_NO_EMULATION
 ;                            -DFIRMWARE_DISPLAYS
-;                            -DUSE_CONFIG_OVERRIDE
+                            -DUSE_CONFIG_OVERRIDE
 
 ; *** Fix espressif8266@1.7.0 induced undesired all warnings
 build_unflags             = -Wall

dpavlin@nuc:/nuc/esp8266/Sonoff-Tasmota$ vi sonoff/user_config_override.h

Configure defaults for your device and build only sonoff firmware (we don't need all variants)

build

dpavlin@nuc:/nuc/esp8266/Sonoff-Tasmota$ platformio run -e sonoff

flashing

dpavlin@x200:/mnt/nuc/esp8266/esptool$ ./esptool.py --port /dev/ttyUSB2 write_flash 0x0 ../Sonoff-Tasmota/.pioenvs/sonoff/firmware.bin 
esptool.py v2.8-dev
Serial port /dev/ttyUSB2
Connecting....
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: dc:4f:22:ee:a2:4a
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 565472 bytes to 388329...
Wrote 565472 bytes (388329 compressed) at 0x00000000 in 34.3 seconds (effective 131.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...



Remove bridge from IO0 to GND and test module.