<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: ESP8266]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?esp8266</link>
<description></description>
<pubDate>Thu, 05 Aug 2021 10:26:52 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[ESP8266]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?esp8266</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] links} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial_port">Dobrica Pavlinušić's random unstructured stuff (serial port)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] serial port} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#esp_201">Dobrica Pavlinušić's random unstructured stuff (ESP-201)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ESP-=201} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#nodemcu">Dobrica Pavlinušić's random unstructured stuff (nodemcu)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] nodemcu} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#esptool_py">Dobrica Pavlinušić's random unstructured stuff (esptool.py)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] esptool.py} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#flash_firmware">Dobrica Pavlinušić's random unstructured stuff (flash firmware)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] flash firmware} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#build_from_source">Dobrica Pavlinušić's random unstructured stuff (build from source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] build from source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#a_library_for_the_microchip_mcp3021_a_d_converter_for_use_with_the_esp8266">Dobrica Pavlinušić's random unstructured stuff (A library for the Microchip MCP3021 A/D converter for use with the ESP8266.)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] A library for the Microchip MCP3021 A/D converter for use with the ESP8266.} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#nodemcu_uploader">Dobrica Pavlinušić's random unstructured stuff (nodemcu-uploader)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] nodemcu-=uploader} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#openocd_jtag">Dobrica Pavlinušić's random unstructured stuff (OpenOCD JTAG)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] OpenOCD JTAG} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#esp8266_as_wireless_jtag_programmer">Dobrica Pavlinušić's random unstructured stuff (ESP8266 as wireless JTAG Programmer)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ESP8266 as wireless JTAG Programmer} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#wifi">Dobrica Pavlinušić's random unstructured stuff (WIFI)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] WIFI} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#software_serial">Dobrica Pavlinušić's random unstructured stuff (software serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] software serial} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#sonoff">Dobrica Pavlinušić's random unstructured stuff (Sonoff)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Sonoff} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#pinout">Dobrica Pavlinušić's random unstructured stuff (pinout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] pinout} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#programming">Dobrica Pavlinušić's random unstructured stuff (Programming)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Programming} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ch340_usb_to_esp8266_esp_01_wifi_module_adapter">Dobrica Pavlinušić's random unstructured stuff (CH340 USB to ESP8266 ESP-01 Wifi Module Adapter)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] CH340 USB to ESP8266 ESP-=01 Wifi Module Adapter} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#esp_01s_dht11_board">Dobrica Pavlinušić's random unstructured stuff (ESP-01S DHT11 board)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ESP-=01S DHT11 board} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#adding_ir_led">Dobrica Pavlinušić's random unstructured stuff (adding IR led)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] adding IR led} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#keyestudio_esp8266_esp_12f_ch340g_wifi_module_board_for_arduino_nodemcu">Dobrica Pavlinušić's random unstructured stuff (KEYESTUDIO ESP8266 ESP-12F CH340G WiFi Module Board for Arduino NodeMcu)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] KEYESTUDIO ESP8266 ESP-=12F CH340G WiFi Module Board for Arduino NodeMcu} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="links">links</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.esp8266.com/">http://www.esp8266.com/</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/esp8266/esp8266-wiki/wiki">https://github.com/esp8266/esp8266-wiki/wiki</a></li>
<li><a target="_blank" title="(external link)" href="http://www.electrodragon.com/w/Wi07c">http://www.electrodragon.com/w/Wi07c</a></li>
<li><a target="_blank" title="(external link)" href="https://nurdspace.nl/ESP8266">https://nurdspace.nl/ESP8266</a></li>
</ul>
<ul>
<li>Documentation, tools, firmwares <a target="_blank" title="(external link)" href="https://onedrive.live.com/?cid=C4DDF72E6EEA3826&amp;id=C4DDF72E6EEA3826%21631">https://onedrive.live.com/?cid=C4DDF72E6EEA3826&amp;id=C4DDF72E6EEA3826%21631</a></li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/esp8266/arduino">https://github.com/esp8266/arduino</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/igrr/esptool-ck">https://github.com/igrr/esptool-ck</a> (with reset support)</li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="http://tim.jagenberg.info/2015/01/18/low-power-esp8266/">http://tim.jagenberg.info/2015/01/18/low-power-esp8266/</a></li>
</ul>
<span class="nlw_phrase"><img alt="module_v2.png" src="https://saturn.ffzg.hr/rot13/index.cgi/module_v2.png?action=attachments_download;page_name=esp8266;id=20141106202319-0-682" /><!-- wiki: {image: module_v2.png} --></span><br /><br /><ul>
<li>all IO is 3.3V (3.6V max)</li>
<li>CH_PD i chip-enable and has to be connected to VCC (3.3V)</li>
<li>RST, GPIO0, GPIO2 should be pulled up to VCC for normal operation (GPIO0 at minumum!)</li>
<li>GPIO0 pull to ground for firmware update</li>
<li>make sure that 3.3V VCC power supply can support 300-400mA or there <strong>WILL</strong> be problems!</li>
</ul>
<h1 id="serial_port">serial port</h1>
<p>
baud rate 115200</p>
<pre>
AT+GMR
00160901

OK

AT+RST

OK

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 24444, room 16 
tail 12
chksum 0xe0
ho 0 tail 12 room 4
load 0x3ffe8000, len 3168, room 12 
tail 4
chksum 0x93
load 0x3ffe8c60, len 4956, room 4 
tail 8
chksum 0xbd
csum 0xbd

ready

</pre>
<br /><h1 id="esp_201">ESP-201</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.banggood.com/ESP8266-ESP-201-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-964288.html">http://www.banggood.com/ESP8266-ESP-201-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-964288.html</a></p>
<span class="nlw_phrase"><img alt="ESP8266-ESP-201-pin-reference-v01.png" src="https://saturn.ffzg.hr/rot13/index.cgi/ESP8266-ESP-201-pin-reference-v01.png?action=attachments_download;page_name=esp8266;id=20150217210636-0-23853" /><!-- wiki: {image: ESP8266-=ESP-=201-=pin-=reference-=v01.png} --></span><br /><br /><p>
from <a target="_blank" title="(external link)" href="http://smarpl.com/content/esp8266-esp-201-module-first-impressions">http://smarpl.com/content/esp8266-esp-201-module-first-impressions</a></p>
<ul>
<li><a target="_blank" title="(external link)" href="http://jas-hacks.blogspot.com/2015/04/iot-esp8266-esp-201-cc1110-xrf.html">http://jas-hacks.blogspot.com/2015/04/iot-esp8266-esp-201-cc1110-xrf.html</a></li>
</ul>
<blockquote>
One quirk with the ESP-201 is that is IO15 has to be grounded for the device to function. To flash the device IO00 has to be grounded.</blockquote>
<br /><pre>
AT+RST

OK

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 212, room 16 
tail 4
chksum 0x5e
load 0x3ffe8000, len 788, room 4 
tail 0
chksum 0x1c
load 0x3ffe8314, len 72, room 8 
tail 0
chksum 0x55
csum 0x55
jump to user1

</pre>
<br /><p>
modify flash for dio instead of qio: <a target="_blank" title="(external link)" href="http://smarpl.com/content/esp8266-esp-201-module-freeing-gpio9-and-gpio10">http://smarpl.com/content/esp8266-esp-201-module-freeing-gpio9-and-gpio10</a></p>
<h1 id="nodemcu">nodemcu</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/nodemcu/nodemcu-firmware">https://github.com/nodemcu/nodemcu-firmware</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en">https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en</a></li>
</ul>
<h2 id="esptool_py">esptool.py</h2>
<pre>
dpavlin@x200:/rest/cvs/esptool$ git remote -v
origin  https://github.com/themadinventor/esptool (fetch)
origin  https://github.com/themadinventor/esptool (push)

dpavlin@x200:/rest/cvs/esptool$ ./esptool.py --port /dev/ttyUSB2 read_mac
Connecting...
MAC: 18:fe:34:a0:38:72
</pre>
<br /><h2 id="flash_firmware">flash firmware</h2>
<pre>
dpavlin@blue:/opt/Espressif/esptool$ ./esptool.py read_mac
Connecting...
MAC: 18:fe:34:a0:38:72
dpavlin@blue:/opt/Espressif/esptool$ ./esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../nodemcu-firmware/pre_build/latest/nodemcu_latest.bin 
Connecting...
Erasing flash...
Writing at 0x00010800... (17 %) 
</pre>
<br /><p>
Get latest build from <a target="_blank" title="(external link)" href="https://github.com/nodemcu/nodemcu-firmware/releases">https://github.com/nodemcu/nodemcu-firmware/releases</a></p>
<pre>
dpavlin@x200:/rest/cvs/esptool$ ./esptool.py --port /dev/ttyUSB2 write_flash 0x00000 ./nodemcu_float_0.9.6-dev_20150406.bin

dpavlin@x200:/rest/cvs/esptool$ microcom -p /dev/ttyUSB2 -s 9600
connected to /dev/ttyUSB2
Escape character: Ctrl-\
Type the escape character followed by c to get to the menu or q to quit

&gt; node.restart()

NodeMCU 0.9.6 build 20150406  powered by Lua 5.1.4
lua: cannot open init.lua
&gt; 
</pre>
<br /><h2 id="build_from_source">build from source</h2>
<p>
For latest features, you might want to rebuild software from github source</p>
<pre>
dpavlin@x200:/rest/cvs$ git clone https://github.com/pfalcon/esp-open-sdk.git

dpavlin@x200:/rest/cvs/esp-open-sdk$ export PATH=/rest/cvs/esp-open-sdk/xtensa-lx106-elf/bin:$PATH




git clone https://github.com/nodemcu/nodemcu-firmware.git
cd nodemcu-firmware

dpavlin@x200:/rest/cvs/nodemcu-firmware$ git checkout -b dev origin/dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'


make

# check that device is in boot loader mode

dpavlin@x200:/rest/cvs/nodemcu-firmware$ ../esptool/esptool.py --port /dev/ttyUSB1 read_mac
Connecting...
MAC: 18:fe:34:99:f2:83

# flash new firmware

dpavlin@x200:/rest/cvs/nodemcu-firmware$ make flash ESPPORT=/dev/ttyUSB1
make -C ./app flash
make[1]: Entering directory '/rest/cvs/nodemcu-firmware/app'
../tools/esptool.py --port /dev/ttyUSB1 write_flash 0x00000 ../bin/0x00000.bin 0x10000 ../bin/0x10000.bin
Connecting...
Erasing flash...
Writing at 0x0000c500... (100 %)
Erasing flash...
Writing at 0x00068c00... (100 %)

Leaving...
make[1]: Leaving directory '/rest/cvs/nodemcu-firmware/app'

</pre>
<br /><h2 id="a_library_for_the_microchip_mcp3021_a_d_converter_for_use_with_the_esp8266">A library for the Microchip MCP3021 A/D converter for use with the ESP8266.</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/AllAboutEE/ESP8266-MCP3021-Library">https://github.com/AllAboutEE/ESP8266-MCP3021-Library</a></p>
<h1 id="nodemcu_uploader">nodemcu-uploader</h1>
<pre>
dpavlin@x200:/rest/cvs$ git clone https://github.com/kmpm/nodemcu-uploader
dpavlin@x200:/rest/cvs/nodemcu-uploader$ ./nodemcu-uploader.py --port /dev/ttyUSB2 --baud 9600 file list
Listing files
for key,value in pairs(file.list()) do print(key,value) end
&gt; 
</pre>
<br /><h1 id="openocd_jtag">OpenOCD JTAG</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/projectgus/openocd">https://github.com/projectgus/openocd</a></p>
<p>
<a target="_blank" title="(external link)" href="http://www.esp8266.com/viewtopic.php?f=9&amp;t=1871#p11157">http://www.esp8266.com/viewtopic.php?f=9&amp;t=1871#p11157</a></p>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">JTAG Signal</td>
<td style="border: 1px solid black;padding: .2em;">ESP8266 GPIO Pin</td>
<td style="border: 1px solid black;padding: .2em;">JTAG Pin (standard 20 pin connector)</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">TMS</td>
<td style="border: 1px solid black;padding: .2em;">14</td>
<td style="border: 1px solid black;padding: .2em;">7</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">TDI</td>
<td style="border: 1px solid black;padding: .2em;">12</td>
<td style="border: 1px solid black;padding: .2em;">5</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">TCK</td>
<td style="border: 1px solid black;padding: .2em;">13</td>
<td style="border: 1px solid black;padding: .2em;">9</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">TDO</td>
<td style="border: 1px solid black;padding: .2em;">15</td>
<td style="border: 1px solid black;padding: .2em;">13</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">RST</td>
<td style="border: 1px solid black;padding: .2em;">RST</td>
<td style="border: 1px solid black;padding: .2em;">15</td>
</tr>
</table>
<br /><p>
verified on <a target="_blank" title="(external link)" href="https://visualgdb.com/tutorials/esp8266/nodemcu/jtag/">https://visualgdb.com/tutorials/esp8266/nodemcu/jtag/</a></p>
<h1 id="esp8266_as_wireless_jtag_programmer">ESP8266 as wireless JTAG Programmer</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/emard/wifi_jtag">https://github.com/emard/wifi_jtag</a></p>
<h1 id="wifi">WIFI</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/kripthor/WiFiBeaconJam">https://github.com/kripthor/WiFiBeaconJam</a></li>
</ul>
<h1 id="software_serial">software serial</h1>
<ul>
<li>C library <a target="_blank" title="(external link)" href="https://github.com/plieningerweb/esp8266-software-uart">https://github.com/plieningerweb/esp8266-software-uart</a></li>
<li>Arduino <a target="_blank" title="(external link)" href="https://github.com/plerup/espsoftwareserial">https://github.com/plerup/espsoftwareserial</a></li>
</ul>
<h1 id="sonoff">Sonoff</h1>
<p>
<a target="_blank" title="(external link)" href="https://www.itead.cc/sonoff-wifi-wireless-switch.html">https://www.itead.cc/sonoff-wifi-wireless-switch.html</a><br />
<a target="_blank" title="(external link)" href="http://wiki.iteadstudio.com/Sonoff">http://wiki.iteadstudio.com/Sonoff</a><br />
<a target="_blank" title="(external link)" href="https://github.com/arendst/Sonoff-MQTT-OTA">https://github.com/arendst/Sonoff-MQTT-OTA</a></p>
<h2 id="pinout">pinout</h2>
<p>
My sonoff is early model, with just 4 pins (instead of 5)</p>
<p>
1 - VCC<br />
2 - RX<br />
3 - TX<br />
4 - GND</p>
<h1 id="programming">Programming</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://tech.scargill.net/a-flashing-esp-chips-surprise/">https://tech.scargill.net/a-flashing-esp-chips-surprise/</a></li>
</ul>
<p>
use <strong>dio</strong> not <strong>qio</strong> to fix checksum errors</p>
<h2 id="ch340_usb_to_esp8266_esp_01_wifi_module_adapter">CH340 USB to ESP8266 ESP-01 Wifi Module Adapter</h2>
<p>
It doesn't have GPIO0 connected to ground, so flashing doesn't work!</p>
<p>
<a target="_blank" title="(external link)" href="http://www.esp8266.com/wiki/doku.php?id=all-in-one-esp-usb-converter">http://www.esp8266.com/wiki/doku.php?id=all-in-one-esp-usb-converter</a></p>
<h1 id="esp_01s_dht11_board">ESP-01S DHT11 board</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/IOT-MCU/ESP-01S-DHT11-v1.0">https://github.com/IOT-MCU/ESP-01S-DHT11-v1.0</a></li>
</ul>
<pre>
#define DHTTYPE DHT11
#define DHTPIN  2
DHT dht(DHTPIN, DHTTYPE, 11);
</pre>
<br /><h2 id="adding_ir_led">adding IR led</h2>
<p>
Button is connected to RST, and if you want to add IR led (with transistor and resistor) it seems that only<br />
way to make it work is to connect it to RX pin (gpio3). For more info see my blog post: <a target="_blank" title="(external link)" href="https://blog.rot13.org/2019/08/emulate-ir-remote-for-tv-or-hvac-from-command-line-using-tasmota.html">https://blog.rot13.org/2019/08/emulate-ir-remote-for-tv-or-hvac-from-command-line-using-tasmota.html</a></p>
<h1 id="keyestudio_esp8266_esp_12f_ch340g_wifi_module_board_for_arduino_nodemcu">KEYESTUDIO ESP8266 ESP-12F CH340G WiFi Module Board for Arduino NodeMcu</h1>
<p>
<a target="_blank" title="(external link)" href="https://www.keyestudio.com/products/new-keyeastudio-nodemcu-lua-esp8266-esp-12f-wifi-module-1m-usb-cable-development-board-compatible-with-networking">https://www.keyestudio.com/products/new-keyeastudio-nodemcu-lua-esp8266-esp-12f-wifi-module-1m-usb-cable-development-board-compatible-with-networking</a></p>
<span class="nlw_phrase"><img alt="keyes-esp8266-pinout.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/keyes-esp8266-pinout.jpg?action=attachments_download;page_name=esp8266;id=20210805102619-0-3627" /><!-- wiki: {image: keyes-=esp8266-=pinout.jpg} --></span><br /></div>
<hr/><div>Attachments: ESP8266-ESP-201-pin-reference-v01.png, keyes-esp8266-pinout.jpg, module_v2.png</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category></category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?esp8266</guid>
<pubDate>Thu, 05 Aug 2021 10:26:52 -0000</pubDate>
</item>
</channel>
</rss>