{"id":169,"date":"2015-04-13T22:11:08","date_gmt":"2015-04-13T22:11:08","guid":{"rendered":"http:\/\/parablog-wordpress.dockerbox.rei.moe\/?p=169"},"modified":"2015-04-13T22:31:01","modified_gmt":"2015-04-13T22:31:01","slug":"neopixels-esp8266-nodemcu-and-arduino-ide","status":"publish","type":"post","link":"https:\/\/blog.lewys.eu\/?p=169","title":{"rendered":"Neopixels, ESP8266, NodeMCU and Arduino IDE"},"content":{"rendered":"<p>Hello everyone!<\/p>\n<p>Another update on the ESP8266!<\/p>\n<p>Recently, an Arduino compatible IDE was released for the ESP and I&#8217;m super keen to try it out. I&#8217;ll download it later today and give it a go, ideally I want the adafruit neopixel library to work as then I can connect my coaster to the internet!<br \/>\nMore on that in a minute. <\/p>\n<p>Yesterday two things arrived in the post, my 16 neopixel ring, and my NodeMCU dev board. <\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962387935.jpg\"><img decoding=\"async\" title=\"wp-1428962387935.jpg\" class=\"alignnone size-full\"  alt=\"image\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962387935.jpg\" \/><\/a><\/p>\n<p>Both very exciting!<br \/>\nMaybe I can combine the two? \ud83d\ude09<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962659058.png\"><img decoding=\"async\" title=\"wp-1428962659058\" class=\"alignnone size-full\"  alt=\"image\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962659058.png\" \/><\/a><\/p>\n<p>The dev board is because ive had difficulty flashing the ESP chips in the past so I was hoping to have better luck with a breakout board with inbuilt USB TTL and a flash button. I did! It flashed the latest NodeMCU firmware right away!<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962357552.jpg\"><img decoding=\"async\" title=\"wp-1428962357552.jpg\" class=\"alignnone size-full\"  alt=\"image\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962357552.jpg\" \/><\/a><\/p>\n<p>Node MCU is an alternate firmware for the ESP that has a runtime for Lua 5.1.4 inbuilt! So this is the excuse I&#8217;ve needed to learn a bit of lua!<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962724843.png\"><img decoding=\"async\" title=\"wp-1428962724843\" class=\"alignnone size-full\"  alt=\"image\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962724843.png\" \/><\/a><\/p>\n<p>I&#8217;ll also be using this later with the Arduino IDE and I&#8217;ll make up an image for cross referencing pins. <\/p>\n<p>The neopixel ring is to be used in my ongoing quest for the most amazing coaster ever. <\/p>\n<p>It will make my drink disco!<\/p>\n<p>I&#8217;ve had a prototype in the past using a single RGB LED, then another using a disc of them, and this one is a ring, but they&#8217;re addressable!<\/p>\n<p>What I&#8217;m hoping to get is a sort of rainbow flowing effect happening. <\/p>\n<p><video width=\"\" height=\"\" controls=\"controls\"><source src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962527230.mp4\" type=\"video\/mp4\" \/><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962527230.mp4\">Click to view video<\/a>.<\/video><\/p>\n<p><video width=\"\" height=\"\" controls=\"controls\"><source src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962533623.mp4\" type=\"video\/mp4\" \/><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962533623.mp4\">Click to view video<\/a>.<\/video><\/p>\n<p><video width=\"\" height=\"\" controls=\"controls\"><source src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962541652.mp4\" type=\"video\/mp4\" \/><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962541652.mp4\">Click to view video<\/a>.<\/video><\/p>\n<p>Ive got the code at a good starting point, for effect testing.<br \/>\nAll I did was modify the example sketch that goes through a bunch of possible modes \ud83d\ude00<\/p>\n<p>I&#8217;m driving it from a digispark board, and in the final build it will use a 3.7v lipo for power. <\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962609034.jpg\"><img decoding=\"async\" title=\"wp-1428962609034.jpg\" class=\"alignnone size-full\"  alt=\"image\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2015\/04\/wpid-wp-1428962609034.jpg\" \/><\/a><\/p>\n<p>The LED ring does seem extremely bright, and gets a little hot during normal operation so I better look at dimming the LEDs as I only need enough light to light up my drink! Not the room Hahaha<\/p>\n<p>There&#8217;s a few different sized ones too. The one with 16 and the one with 60 LEDs cost the same! D: sadly I don&#8217;t need that many though it&#8217;s far too big for my purpose hahaa<\/p>\n<p>Maybe I can find a use for 60&#8230; Hehehhhh..<br \/>\nOh and they come in strips too and individual of course! And boards&#8230; THERES LOTS OF CHOICES OK? <\/p>\n<p>Anyway, <\/p>\n<p>That&#8217;s all for now, I&#8217;ll keep y&#8217;all posted!<\/p>\n<p>Bonus: it sticks to the wall of the train lol<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone! Another update on the ESP8266! Recently, an Arduino compatible IDE was released for the ESP and I&#8217;m super keen to try it out. I&#8217;ll download it later today and give it a go, ideally I want the adafruit neopixel library to work as then I can connect my coaster to the internet! More &hellip; <a href=\"https:\/\/blog.lewys.eu\/?p=169\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Neopixels, ESP8266, NodeMCU and Arduino IDE<\/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":[20,23,26,27,18,25],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-arduino-2","category-esp8266","category-networking","category-programming","category-projects","category-wireless"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/169","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=169"}],"version-history":[{"count":2,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}