{"id":10708,"date":"2015-01-14T10:40:42","date_gmt":"2015-01-14T02:40:42","guid":{"rendered":"http:\/\/www.seeedstudio.com\/blog\/?p=10708"},"modified":"2015-01-14T10:40:42","modified_gmt":"2015-01-14T02:40:42","slug":"new-product-we-are-running-lua-on-esp8266-nodemcu","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/","title":{"rendered":"New Product &#8211; We are running #Lua on #ESP8266 #NodeMcu"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-10738\" src=\"\/wp-content\/uploads\/2015\/01\/DSC01405.jpg\" alt=\"DSC01405\" width=\"700\" height=\"467\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2015\/01\/DSC01405.jpg 700w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2015\/01\/DSC01405-300x200.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><a href=\"http:\/\/www.nodemcu.com\/index_en.html\" target=\"_blank\">NodeMcu<\/a> is an dev board enabling you use Lua script on ESP8266 on a higher Software Abstract Layer. Featuring an\u00a0open-source firmware, it is also equipped with a development toolchains helps you burn the firmware, download the codes. Currently it&#8217;s friendly to Windows system, the creators are developing the cross platform dev kits right now.<\/p>\n<p><span style=\"color: #ff0000;\">It will be in stock on 20th, only at <a style=\"color: #ff0000;\" href=\"http:\/\/www.seeedstudio.com\/depot\/\" target=\"_blank\">seeedstudio<\/a>.<\/span><\/p>\n<p>Here&#8217;s a short and dirty guide for mac users to getting started.<\/p>\n<h2>Install the driver<\/h2>\n<p>NodeMcu uses a USB 2 Serial called CH340, you have to <a href=\"http:\/\/www.wch.cn\/downloads.php?name=pro&amp;proid=178\" target=\"_blank\">download the driver<\/a>, install the package as you used to do on Mac.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-10714\" src=\"\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-08-at-2.48.03-PM.png\" alt=\"Screen Shot 2015-01-08 at 2.48.03 PM\" width=\"568\" height=\"449\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-08-at-2.48.03-PM.png 568w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-08-at-2.48.03-PM-300x237.png 300w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/p>\n<p>After the installation, you can test the serial by\u00a0filtering using simple bash:<\/p>\n<p>[bash]<\/p>\n<p>ls \/dev | grep tty | head<\/p>\n<p>[\/bash]<\/p>\n<p>In this picture the tty.wchusbserialfa130 is the right one.<\/p>\n<h2>Connect the board<\/h2>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-10713\" src=\"\/wp-content\/uploads\/2015\/01\/Screen_Shot_2015-01-08_at_3_03_20_PM.jpg\" alt=\"Screen_Shot_2015-01-08_at_3_03_20_PM\" width=\"567\" height=\"273\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2015\/01\/Screen_Shot_2015-01-08_at_3_03_20_PM.jpg 567w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2015\/01\/Screen_Shot_2015-01-08_at_3_03_20_PM-300x144.jpg 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>I&#8217;m using iterm2 on the mac as\u00a0terminal simulator, using screen command to connect the serial.<\/p>\n<p>After you logging successful, you will find the Lua\u00a0interpreter.<\/p>\n<p>The init.lua file does not exist by default, you have to download the codes with the Dev kits or using the code (file.writeline). If you are using Mac, you will meet the gap downloading the code , not supported for Mac right now.<\/p>\n<p>Here&#8217;s a <a href=\"http:\/\/www.nodemcu.com\/index_en.html#fr_54747661d775ef1a3600009e\" target=\"_blank\">listed feature<\/a> of the programming interfaces for your reference.<\/p>\n<ul>\n<li>IO<\/li>\n<li>PWM<\/li>\n<li>Wifi<\/li>\n<li>HTTP Server<\/li>\n<li>Read Sensor<\/li>\n<\/ul>\n<p>The product will be in stock in 1 week, the team is\u00a0developing the cross platform. Are you ready?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NodeMcu is an dev board enabling you use Lua script on ESP8266 on a higher<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[473,508,507],"class_list":["post-10708","post","type-post","status-publish","format-standard","hentry","category-news","tag-esp8266","tag-guide","tag-nodemcu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>New Product - We are running #Lua on #ESP8266 #NodeMcu - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Product - We are running #Lua on #ESP8266 #NodeMcu - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"NodeMcu is an dev board enabling you use Lua script on ESP8266 on a higher\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-14T02:40:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/wp-content\/uploads\/2015\/01\/DSC01405.jpg\" \/>\n<meta name=\"author\" content=\"\u884c\u653f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u884c\u653f\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/\",\"name\":\"New Product - We are running #Lua on #ESP8266 #NodeMcu - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"datePublished\":\"2015-01-14T02:40:42+00:00\",\"dateModified\":\"2015-01-14T02:40:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New Product &#8211; We are running #Lua on #ESP8266 #NodeMcu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5\",\"name\":\"\u884c\u653f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g\",\"caption\":\"\u884c\u653f\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New Product - We are running #Lua on #ESP8266 #NodeMcu - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/","og_locale":"en_US","og_type":"article","og_title":"New Product - We are running #Lua on #ESP8266 #NodeMcu - Latest News from Seeed Studio","og_description":"NodeMcu is an dev board enabling you use Lua script on ESP8266 on a higher","og_url":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2015-01-14T02:40:42+00:00","og_image":[{"url":"https:\/\/www.seeedstudio.com\/wp-content\/uploads\/2015\/01\/DSC01405.jpg","type":"","width":"","height":""}],"author":"\u884c\u653f","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u884c\u653f","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/","url":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/","name":"New Product - We are running #Lua on #ESP8266 #NodeMcu - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"datePublished":"2015-01-14T02:40:42+00:00","dateModified":"2015-01-14T02:40:42+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2015\/01\/14\/new-product-we-are-running-lua-on-esp8266-nodemcu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"New Product &#8211; We are running #Lua on #ESP8266 #NodeMcu"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5","name":"\u884c\u653f","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g","caption":"\u884c\u653f"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/"}]}},"modified_by":null,"views":27682,"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","visody_icon":"","magazine-7-slider-full":"","magazine-7-slider-center":"","magazine-7-featured":"","magazine-7-medium":"","magazine-7-medium-square":""},"author_info":{"display_name":"\u884c\u653f","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"6","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/10708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=10708"}],"version-history":[{"count":4,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/10708\/revisions"}],"predecessor-version":[{"id":10748,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/10708\/revisions\/10748"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=10708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=10708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=10708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}