{"id":1772,"date":"2019-01-19T13:35:43","date_gmt":"2019-01-19T21:35:43","guid":{"rendered":"http:\/\/www.donluc.com\/?p=1772"},"modified":"2019-01-19T13:35:45","modified_gmt":"2019-01-19T21:35:45","slug":"project-10-esp8266-thing-blink-mk02","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=1772","title":{"rendered":"Project #10: ESP8266 Thing \u2013 Blink &#8211; Mk02"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video height=\"406\" style=\"aspect-ratio: 720 \/ 406;\" width=\"720\" controls src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01.mp4\"><\/video><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"616\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01a.png\" alt=\"\" class=\"wp-image-1770\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01a-300x257.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"540\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01b.jpg\" alt=\"\" class=\"wp-image-1771\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01b.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/01\/DL1901Mk01b-300x225.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p><strong>Soldering<\/strong><\/p>\n\n\n\n<p>Plated through-hole soldering (PTH), flux-core solder alloys commonly used for electrical soldering are 60\/40 Sn-Pb used principally in electrical\/electronic work and TENMA soldering station temperature controlled digital.<\/p>\n\n\n\n<p><strong>Hardware Assembly<\/strong><\/p>\n\n\n\n<p>We\u2019re getting ahead of ourselves. To connect the FTDI programmer to your Thing you\u2019ll need to solder something to the Thing. What, exactly, you solder to the board depends both on how you\u2019ll use it in your project, and how you\u2019ll interface it with the programmer. When it comes to selecting a header (or wire) to solder, there are a variety of options. We\u2019ve tried a lot of them with the Thing:<\/p>\n\n\n\n<p>Or you can mix and match headers to best fit your needs. Right-angle male headers may help to interface between the FTDI and the Thing. Straight male headers are a good choice for low-profile connections. Straight female headers may help with connecting to I2C sensors. And, of course, wire can be soldered to any of the pins that have a long way to connect to something.<\/p>\n\n\n\n<p>10 pin &#8211; Break Away Headers &#8211; Straight<br>\n4 pin &#8211; Break Away Headers &#8211; Straight<br>\n6 pin &#8211; Break Away Male Headers &#8211; Right Angle<\/p>\n\n\n\n<p>Once you\u2019ve soldered up at least the programming port, you\u2019re ready to load some code onto the Thing.<\/p>\n\n\n\n<p><strong>Programming the Thing<\/strong><\/p>\n\n\n\n<p>The ESP8266 has a built-in serial bootloader, which allows for easy programming and re-programming. You don\u2019t need a specialized, expensive programmer \u2013 just a simple, USB-to-Serial converter. The FTDI Basic\u2019s 6-pin header matches up exactly to the Thing\u2019s 6-pin serial port header. To set up for programming, simply connect the FTDI directly to this port \u2013 take care to match up the DTR and GND pins.<\/p>\n\n\n\n<p><strong>Blink<\/strong><\/p>\n\n\n\n<p>Let\u2019s blink some LEDs and IoT (Internet our Thing). To verify that everything works Blink: toggle pin 5, which is attached to the onboard LED Green, toggle pin 4 which is LED Green.<\/p>\n\n\n\n<p><strong>DonLuc1901Mk01<\/strong><\/p>\n\n\n\n<p>1 x SparkFun ESP8266 Thing<br>\n1 x SparkFun FTDI Basic Breakout &#8211; 3.3V<br>\n1 x LED Green<br>\n1 x 100 Ohm<br>\n4 x Jumper Wires 3&#8243; M\/M<br>\n1 x Full-Size Breadboard<br>\n1 x USB Cable A to Mini-B<\/p>\n\n\n\n<p><strong>SparkFun ESP8266 Thing<\/strong><\/p>\n\n\n\n<p>LG1 &#8211; Digital 5<br>\nLG2 &#8211; Digital 4<br>\nGND &#8211; GND<br>\nVIN &#8211; +3.3V<\/p>\n\n\n\n<p><p><strong>DonLuc1901Mk01p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"DonLuc1901Mk01p.ino\">\n\/\/ ***** Don Luc Electronics *****\n\/\/ Software Version Information\n\/\/ Project #10: SparkFun ESP8266 Thing \u2013 Blink - Mk02\n\/\/ 01-01\n\/\/ DonLuc1901Mk01p.ino 01-01\n\/\/ SparkFun ESP8266 Thing\n\/\/ Blink\n\n\/\/ Include Library Code\n\n#define ESP8266_LED 5      \/\/ LED Green\nint iLEDGreen = 4;         \/\/ LED Green\n\nvoid loop() \n{\n\n  \/\/ ESP8266_LED, iLEDGreen\n  digitalWrite(ESP8266_LED, LOW);\n  digitalWrite(iLEDGreen, LOW);\n  delay(2000);\n  digitalWrite(ESP8266_LED, HIGH);\n  delay(2000);\n  digitalWrite(ESP8266_LED, LOW);\n  delay(2000);\n  digitalWrite(iLEDGreen, HIGH);\n  delay(2000);\n  \n}\n<\/pre><\/p>\n\n\n\n<p><p><br><strong> setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"setup.ino\">\n\/\/ Setup\nvoid setup() \n{\n\n  \/\/ LED\n  pinMode(ESP8266_LED, OUTPUT);                 \/\/ ESP8266_LED Green\n  pinMode(iLEDGreen, OUTPUT);                   \/\/ LED Green\n      \n}\n<\/pre><\/p>\n\n\n\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Soldering Plated through-hole soldering (PTH), flux-core solder alloys commonly used for electrical soldering are 60\/40 Sn-Pb used principally in electrical\/electronic work and TENMA soldering station temperature controlled digital. Hardware Assembly We\u2019re getting ahead of ourselves. To connect the FTDI programmer to your Thing you\u2019ll need to solder something to the Thing. What, exactly, you solder &#8230; <a title=\"Project #10: ESP8266 Thing \u2013 Blink &#8211; Mk02\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=1772\" aria-label=\"Read more about Project #10: ESP8266 Thing \u2013 Blink &#8211; Mk02\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,38,78,59,5,79,10,43],"tags":[],"class_list":["post-1772","post","type-post","status-publish","format-standard","hentry","category-esp8266","category-digitalelectronics","category-esp8266-microcontrollers","category-fritzing","category-microcontrollers","category-program_esp8266","category-projects","category-sparkfun"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1772"}],"version-history":[{"count":11,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1772\/revisions"}],"predecessor-version":[{"id":1783,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1772\/revisions\/1783"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}