ESP-01
1.1. Basic wiring
• TXD (goes to the 3.3V RxI of the UART USB adapter to the PC)
• CH_PD (enable/power down, must be pulled to 3.3v directly or via resistor)
• RST (reset, must be pulled to 3.3v)
• “To enable ESP8266 firmware flashing GPIO0 pin must be
pulled low before the device is reset. Conversely, for
a normal boot, GPIO0 must be pulled high or floating.”
Und GPIO2 must be high or floating (during boot)
Hinweis: Beim ESP-12F muss zusätzlich GPIO15 auf GND
sein (sowohl beim firmware flashing mode wie auch für
normal boot)
(Info: GND Potential auf RST Pin für Reset des Controllers (Button))
Die Pins 9 bis 14 (CS0, MISO, GPIO9, GPIO10, MOSI und SCLK) werden für die Kommunikation mit dem
Quad-SPI Flash Memory verwendet und sollten daher nicht für eigene Anwendungen genutzt werden.
GPIO2 wird für die Ansteuerung der blauen LED auf dem ESP8266 ESP-12F Moduls verwendet.
GPIO15 (D8) is used by the boot mode process, most of the boards have this pin pulled down by an external
resistor, which is stronger than internal weak pullup.
1.2. Flashen
• Esptool.py Version 1.3 (Upgrade mittels pip install esptool --upgrade möglich)
• Determine flash size: python esptool.py --port COM4 flash_id
Connecting...
Manufacturer: e0
Device: 4016 (4MB)
Chip ID gibt Rückschlüsse auf Speichergröße (https://nodemcu.readthedocs.io/en/master/en/flash/)
• Speicher löschen: python esptool.py --port COM4 erase_flash
• Image aufspielen: python esptool.py --port COM6 write_flash -fm dio 0x00000
“D:\EigeneDateien\eBooks Howtos\Mikrocontroller\ESP8266\MicroPython\esp8266-20170823-
v1.9.2.bin"
Info: mode is qio for 512 kByte modules and dio for >=4 MByte modules ( qio might work as well,
YMMV).
esp-12f erfolgreich getestet: python esptool.py --port COM4 --baud 460800 write_flash --
flash_size=detect 0 "D:\EigeneDateien\eBooks
Howtos\Mikrocontroller\ESP8266\MicroPython\esp8266-20170612-v1.9.1.bin"
Wichtig: Board umbedingt mit Netzteil versorgen (FTDI 3,3 USB Adapter reicht nicht aus!!). The 3.3V
power supply for the ESP8266 and ESP32 has to supply large amounts of current (up to 70mA
continuous, 200-300mA peak, slightly higher for ESP32). You also need sufficient capacitance on the
power circuit to meet large spikes of power demand.
2. NodeMCU
1.3. Pinout
• Es kann über den Seriellen Port eine Verbindung aufgebaut werden (Nach Verbindungsaufbau
mehrmals Enter drücken (You should see the Python REPL prompt, indicated by >>>.):
• Anschließend kann REPL über WLAN aktiviert werden über den Assistenten:
import webrepl_setup
Passwort: default ohne „-43“
• Nach wenigen Sekunden wird vom ESP ein WLAN Netzwerk erstellt („MicroPython-XXX“, Passwort:
„MicroPythoN“). Hinweis: REPL über WLAN defaultmäßig deaktiviert
4. MicroPython
1.4. Download Micropython
http://micropython.org/download#esp8266
1.9. Wakeup
Ein Wakeup aus dem Deep-Sleep wird durchgeführt, indem ein Reset durchgeführt wird (PIN RST
kurzzeitig auf GND Potential) oder nach einer Parametrisierten Zeit (RTC ist während Deep-Sleep aktiv)
Soll ein Taster für den Reset genutzt werden kommen zwei Möglichkeiten in Frage:
Möglichkeit 1:
Möglichkeit 2) monostable flip flop
5. Messungen zur Leistungsaufnahme:
esp8266-12f:
Standby + WIFI connected: 77mA
DeepSleep (GPIO16 mit GND verbunden): 18,5uA
6. Arduiono Studio
Zusätzliche Boardverwalter URL für ESP eintragen:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
Anschließend:
1.13. Blynk
Sketch: http://arduino.esp8266.com/stable/package_esp8266com_index.json