{"id":73,"date":"2014-12-02T21:42:08","date_gmt":"2014-12-02T21:42:08","guid":{"rendered":"http:\/\/parablog-wordpress.dockerbox.rei.moe\/?p=73"},"modified":"2015-01-11T11:51:52","modified_gmt":"2015-01-11T11:51:52","slug":"esp8266-arrives","status":"publish","type":"post","link":"https:\/\/blog.lewys.eu\/?p=73","title":{"rendered":"ESP8266 Arrives!"},"content":{"rendered":"<p>Good news everyone!<br \/>\nMy first two ESP8266 modules have arrived!<\/p>\n<p>First thing I did was hook one up to my USB serial adapter and poke around inside.<br \/>\nThey are REALLY annoying so far hahaa<\/p>\n<p>I found a good way to mount it on the breadboard is using one or two rows of stackable headers to raise\/bend so it fits.<br \/>\nThis leaves plenty of room underneath for the wires too!<br \/>\n<a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/wpid-wp-1417556621430.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-75\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/wpid-wp-1417556621430-300x225.jpeg\" alt=\"wpid-wp-1417556621430.jpeg\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/wpid-wp-1417556621430-300x225.jpeg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/wpid-wp-1417556621430-1024x768.jpeg 1024w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/wpid-wp-1417556621430.jpeg 2000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nI got one connected to my WiFi, but I can&#8217;t figure out how to do anything else haha&#8230;<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10818585_354546261385472_1682648906_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-81\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10818585_354546261385472_1682648906_n-168x300.jpg\" alt=\"10818585_354546261385472_1682648906_n\" width=\"168\" height=\"300\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10818585_354546261385472_1682648906_n-168x300.jpg 168w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10818585_354546261385472_1682648906_n.jpg 540w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10841528_354546254718806_1924527517_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-89\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10841528_354546254718806_1924527517_n-168x300.jpg\" alt=\"10841528_354546254718806_1924527517_n\" width=\"168\" height=\"300\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10841528_354546254718806_1924527517_n-168x300.jpg 168w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10841528_354546254718806_1924527517_n.jpg 540w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10834160_354546271385471_227573354_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-86\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10834160_354546271385471_227573354_n-168x300.jpg\" alt=\"10834160_354546271385471_227573354_n\" width=\"168\" height=\"300\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10834160_354546271385471_227573354_n-168x300.jpg 168w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10834160_354546271385471_227573354_n.jpg 540w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10818842_354546231385475_435118054_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10818842_354546231385475_435118054_n-300x225.jpg\" alt=\"10818842_354546231385475_435118054_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10818842_354546231385475_435118054_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10818842_354546231385475_435118054_n.jpg 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I made up a sketchy little arduino protoshield, but I think I did the voltage dividers wrong as when I monitor the tx lines I can see the arduino trying to talk, but the esp module isn&#8217;t saying anything&#8230;.<br \/>\nI think maybe I lowered the voltage too much. A friend has some things I could try, or I&#8217;m contemplating modding an arduino to 3.3v for this shield.<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10814108_354546164718815_1377251317_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-80\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10814108_354546164718815_1377251317_n-300x225.jpg\" alt=\"10814108_354546164718815_1377251317_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10814108_354546164718815_1377251317_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10814108_354546164718815_1377251317_n.jpg 480w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10822264_354546224718809_1872469390_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-84\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10822264_354546224718809_1872469390_n-300x225.jpg\" alt=\"10822264_354546224718809_1872469390_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10822264_354546224718809_1872469390_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10822264_354546224718809_1872469390_n.jpg 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10846800_354546184718813_771261920_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-90\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10846800_354546184718813_771261920_n-300x225.jpg\" alt=\"10846800_354546184718813_771261920_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10846800_354546184718813_771261920_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10846800_354546184718813_771261920_n.jpg 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I&#8217;ll post up some photos soon, I need to get a digital temp sensor today if I can, trying to make a test little data logger with thing speak. If I can get this working I&#8217;ll make one to monitor the letter box and make graphs of what time the mail arrives! \ud83d\ude00<\/p>\n<p>Will update as I do things!<br \/>\nAnd I may put a whole bunch of reference material here too.<\/p>\n<p>&nbsp;<\/p>\n<p>I GOT IT WORKING!!!<br \/>\nI did the 3.3v conversion on one of my arduino Unos, and now its uploading data!! \ud83d\ude00<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10822715_354546398052125_1390798376_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-85\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10822715_354546398052125_1390798376_n-300x225.jpg\" alt=\"10822715_354546398052125_1390798376_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10822715_354546398052125_1390798376_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10822715_354546398052125_1390798376_n.jpg 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10818677_354546354718796_937293101_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-82\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10818677_354546354718796_937293101_n-300x225.jpg\" alt=\"10818677_354546354718796_937293101_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10818677_354546354718796_937293101_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10818677_354546354718796_937293101_n.jpg 480w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/961471_354546924718739_10215617_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-79\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/961471_354546924718739_10215617_n-300x225.jpg\" alt=\"961471_354546924718739_10215617_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/961471_354546924718739_10215617_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/961471_354546924718739_10215617_n.jpg 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10836393_354546331385465_1665828002_n.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-91\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2014\/12\/10836393_354546331385465_1665828002_n-300x225.jpg\" alt=\"10836393_354546331385465_1665828002_n\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10836393_354546331385465_1665828002_n-300x225.jpg 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2014\/12\/10836393_354546331385465_1665828002_n.jpg 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>see:<br \/>\n<iframe loading=\"lazy\" style=\"border: 1px solid #cccccc;\" src=\"http:\/\/api.thingspeak.com\/channels\/19621\/charts\/1?width=450&amp;height=260&amp;results=60&amp;dynamic=true&amp;type=spline&amp;yaxis=Value&amp;xaxis=Time&amp;title=ESP8266\" width=\"450\" height=\"260\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>The code im using is:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[su_quote cite=&#8221;diy_bloke&#8221; url=&#8221;http:\/\/www.instructables.com\/id\/ESP8266-Wifi-Temperature-Logger\/&#8221;]See below for formatting.[\/su_quote]<\/p>\n<p>#define SSID &#8220;xxxxxxxx&#8221;<br \/>\n#define PASS &#8220;xxxxxxxx&#8221;<br \/>\n#define IP &#8220;184.106.153.149&#8221; \/\/ thingspeak.com<br \/>\nString GET = &#8220;GET \/update?key=xxxxxxxx&amp;field1=&#8221;;<br \/>\nvoid setup()<br \/>\n{<br \/>\ndigitalWrite(0,LOW);<br \/>\nSerial.begin(9600);<br \/>\nSerial.println(&#8220;AT&#8221;);<br \/>\ndelay(5000);<br \/>\nif(Serial.find(&#8220;OK&#8221;)){<br \/>\n\/\/ connectWiFi();<br \/>\n}<br \/>\n}<br \/>\nvoid loop(){<\/p>\n<p>int t=analogRead(0);<br \/>\nString tempC=String(t);<br \/>\nupdateTemp(tempC);<br \/>\n\/\/char buffer[10];<br \/>\n\/\/String tempF = dtostrf(tempC, 4, 1, buffer);<br \/>\n\/\/updateTemp(tempF);<br \/>\ndelay(4000);<br \/>\n}<\/p>\n<p>void updateTemp(String tenmpC){<br \/>\nString cmd = &#8220;AT+CIPSTART=\\&#8221;TCP\\&#8221;,\\&#8221;&#8221;;<br \/>\ncmd += IP;<br \/>\ncmd += &#8220;\\&#8221;,80&#8243;;<br \/>\nSerial.println(cmd);<br \/>\ndelay(2000);<br \/>\nif(Serial.find(&#8220;Error&#8221;)){<br \/>\nreturn;<br \/>\n}<br \/>\ncmd = GET;<br \/>\ncmd += tenmpC;<br \/>\ncmd += &#8220;\\r\\n&#8221;;<br \/>\nSerial.print(&#8220;AT+CIPSEND=&#8221;);<br \/>\nSerial.println(cmd.length());<br \/>\nif(Serial.find(&#8220;&gt;&#8221;)){<br \/>\nSerial.print(cmd);<br \/>\n}else{<br \/>\nSerial.println(&#8220;AT+CIPCLOSE&#8221;);<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/<br \/>\n\/\/boolean connectWiFi(){<br \/>\n\/\/ Serial.println(&#8220;AT+CWMODE=3&#8243;);<br \/>\n\/\/ delay(2000);<br \/>\n\/\/ String cmd=&#8221;AT+CWJAP=\\&#8221;&#8221;;<br \/>\n\/\/ cmd+=SSID;<br \/>\n\/\/ cmd+=&#8221;\\&#8221;,\\&#8221;&#8221;;<br \/>\n\/\/ cmd+=PASS;<br \/>\n\/\/ cmd+=&#8221;\\&#8221;&#8221;;<br \/>\n\/\/ Serial.println(cmd);<br \/>\n\/\/ delay(5000);<br \/>\n\/\/ if(Serial.find(&#8220;OK&#8221;)){<br \/>\n\/\/ return true;<br \/>\n\/\/ }else{<br \/>\n\/\/ return false;<br \/>\n\/\/ }<br \/>\n\/\/}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>reference area:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/nurdspace.nl\/ESP8266<\/p>\n<p>https:\/\/github.com\/guibom\/ESPTempLogger\/blob\/master\/ESPTempLogger.ino<\/p>\n<p>http:\/\/www.instructables.com\/id\/ESP8266-Wifi-Temperature-Logger\/?comments=all#CZEPCA4I36LFMYG<\/p>\n<p>http:\/\/www.esp8266.com\/viewtopic.php?f=8&#038;t=390<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"EWI39HkddD\"><p><a href=\"http:\/\/zeflo.com\/2014\/esp8266-weather-display\/\">ESP8266 weather display<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;ESP8266 weather display&#8221; &#8212; zeflo\" src=\"http:\/\/zeflo.com\/2014\/esp8266-weather-display\/embed\/#?secret=1oWYQTIi3J#?secret=EWI39HkddD\" data-secret=\"EWI39HkddD\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>http:\/\/www.ebay.com.au\/itm\/USB-Micro-B-Micro-Breakout-Board-For-Arduino-AVR-PIC-Prototyping-\/231367421713?pt=AU_Gadgets&#038;hash=item35de92af11<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.electrodragon.com\/w\/images\/5\/5f\/ESP8266_V091.png\" alt=\"\" width=\"371\" height=\"548\" \/><\/p>\n<p>https:\/\/learn.sparkfun.com\/tutorials\/voltage-dividers<\/p>\n<p>http:\/\/www.ebay.com.au\/itm\/Arduino-Pro-Mini-ATmega328-3-3V-8M-Compatible-Board-FAST-Shipping-SYDNEY-\/281368337443?pt=LH_DefaultDomain_15&#038;hash=item4182dc1c23<\/p>\n<p>https:\/\/anibit.com\/sites\/default\/files\/product_files\/ESP8266_Specifications_English.pdf<\/p>\n<p>http:\/\/www.seeedstudio.com\/document\/pdf\/ESP8266%20Specifications(Chinese).pdf<\/p>\n<p>https:\/\/github.com\/aabella\/ESP8266-Arduino-library\/wiki\/ESP8266-AT-Commands-Set<\/p>\n<p>&nbsp;<\/p>\n<p>http:\/\/www.esp8266.com\/viewtopic.php?f=6&#038;t=553&#038;p=2908&#038;hilit=channel#p2908<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good news everyone! My first two ESP8266 modules have arrived! First thing I did was hook one up to my USB serial adapter and poke around inside. They are REALLY annoying so far hahaa I found a good way to mount it on the breadboard is using one or two rows of stackable headers to &hellip; <a href=\"https:\/\/blog.lewys.eu\/?p=73\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ESP8266 Arrives!<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-esp8266"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73"}],"version-history":[{"count":9,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}