ESP8266 ESP-12E NodeMCU V3 Lua – First steps

esp8266

Introduction

In this tutorial we gona make the NodeMCU devboard to work and create a simple led blinking example.

Let’s see what components do we need:

nodemcu_all_component

1 x NodeMCU V3 Lua devboard ~3-4 USD (ebay link)
1 x Breadboard ~2 USD (ebay link)
2 x breadboard jumper wires (f-m) ~2-4 USD 3 x 40pcs (ebay link)
1 x micro USB cabel (most phone data cabel is ok for it) ~1 USD (ebay link)
1 x 10K resistor ~1 USD 50 pcs (ebay link)
1 x LED ~1 USD 100 pcs (ebay link)

I only bought 3 pcs NodeMCU V3 because I already own the other components from other arduino projects.

nodemcu_board

Install drivers

Before we start, you need to install the proper CH340 driver for your system.

Windows 8, 8.1, 10 link

Windows 7 link

At the first time when I connected to my PC nothing happened, because the USB cable what I used was an only charger cable, and can’t be used as a data sync cable… spent some time till I found the problem. Switched the cable to another one and after that everything was ok.

Flash firmware and connecting IDE

Download the Esplorer IDE (link) (Arduino IDE also can be used, but I didn’t tried yet, maybe in a later post) and the NodeMCU Flasher (link).

I needed to flash firmware for all three device because they wasn’t boot properly.

nodemcu_firmware_issue

Flashing the firmware is really simple just start the NodeMCUFlasher. select the proper COM port and click on flash. If the progress bar reach the end a green symbol will show up on the left-bottom corner of the window, indicating it’s done.nodemcu_firmware_flashed

It’s worked fine for me with the default settings, but many people suggest to reduce the baudrate to 9600 it will be a bit slower but more secure. I think if there were no error during the flash and the board boot up no need to reduce it.

nodemcu_firmware_flasher_config

Start ESPlorer and select the proper COM port, then click open. Sometimes the connection is hang with this screen and nothing happen:nodemcu_waiting_for_deviceJust hit the reset button on the NodeMCU and it will connect nicely.nodemcu_proper_boot

Put the things together

Connect D2 to the breadboard + and the ground to the -, put the resistor between the + and any inside line then put the LED longer pin to the same line as the resistor and the shorter pin to the -.

nodemcu_wireing

Create the program

Here is our code:

pin=2
gpio.mode(pin,gpio.OUTPUT)
aux=0
function blink ()
  if aux==0 then
   gpio.write(pin,gpio.HIGH)
   aux=1
  else
   gpio.write(pin,gpio.LOW)
   aux=0
  end
end
tmr.alarm(0, 500, 1, blink)

Save it as init.lua and then click on the save to ESP button, if it’s finished the program start to run immediately, if not you need to reset.

nodemcu_upload_file

I hope it’s helped you to getting started with NodeMCU, I will create additional posts with more stuff as I have time.

Záby

Facebook Comments

347 thoughts on “ESP8266 ESP-12E NodeMCU V3 Lua – First steps”

  1. Pingback: mamba3
  2. Pingback: Cialis 5 mg
  3. Pingback: Cialis uk
  4. Pingback: Discount viagra
  5. Pingback: Cialis 5mg
  6. Pingback: Discount cialis
  7. Pingback: Cheap viagra
  8. Pingback: Buy cialis
  9. Pingback: read more
  10. Pingback: go to the page
  11. Pingback: more info
  12. Pingback: click
  13. Pingback: on this page
  14. Pingback: continue
  15. Pingback: read completely
  16. Pingback: Buy cialis
  17. Pingback: Cialis generic
  18. Pingback: essayforme
  19. Pingback: Buy cialis online
  20. Pingback: Cialis prices
  21. Pingback: notehub.org
  22. Pingback: notehub.org
  23. Pingback: check this out
  24. Pingback: notehub.org
  25. Pingback: on this page
  26. Pingback: notehub.org
  27. Pingback: notehub.org
  28. Pingback: notehub.org
  29. Pingback: here is the link
  30. Pingback: notehub.org go
  31. Pingback: notehub.org
  32. Pingback: notehub.org
  33. Pingback: notehub.org
  34. Pingback: notehub.org
  35. Pingback: here is the link
  36. Pingback: link to the page
  37. Pingback: visit the page
  38. Pingback: article source
  39. Pingback: Google
  40. Pingback: FS 19 mods
  41. Pingback: MILF Porn Online
  42. Pingback: yoyo media
  43. Pingback: Box games
  44. Pingback: sex
  45. Pingback: digital music
  46. Pingback: best hotel offers
  47. Pingback: djkhan
  48. Pingback: IT Support
  49. Pingback: djkhan
  50. Pingback: jesus christ quiz
  51. Pingback: german rottweiler
  52. Pingback: my mp3 converter
  53. Pingback: Dance Lessons
  54. Pingback: Goddelijk Wonen
  55. Pingback: fun
  56. Pingback: celine
  57. Pingback: Free Shipping
  58. Pingback: vr forum
  59. Pingback: beauty courses
  60. Pingback: nail art academy
  61. Pingback: prazniki katolic
  62. Pingback: افلام سكس
  63. Pingback: outdoors
  64. Pingback: adam male prostate
  65. Pingback: Valentino Garavani
  66. Pingback: Prada
  67. Pingback: YSL
  68. Pingback: Stella Mccartney
  69. Pingback: vídeos xxx
  70. Pingback: cialisvi.com
  71. Pingback: Interracial Porn
  72. Pingback: Pet Painting
  73. Pingback: ixxx porn
  74. Pingback: garden
  75. Pingback: dagje uit
  76. Pingback: Outdoor Lighting
  77. Pingback: سكس عربي
  78. Pingback: uv resin
  79. Pingback: prazniki segodnya
  80. Pingback: Anal Plug
  81. Pingback: voyance pas cher
  82. Pingback: judi online
  83. Pingback: Alexander McQueen
  84. Pingback: american air
  85. Pingback: Balenciaga
  86. Pingback: Bottega Veneta
  87. Pingback: Burberry
  88. Pingback: Tom Ford
  89. Pingback: lésbico
  90. Pingback: prazdnici rf
  91. Pingback: xmobile pro
  92. Pingback: beeg sex
  93. Pingback: Adult SEO
  94. Pingback: Bvlgari
  95. Pingback: Fendi
  96. Pingback: Chloe
  97. Pingback: cialisonla.com
  98. Pingback: sex balls
  99. Pingback: FS19 mods
  100. Pingback: sex
  101. Pingback: xxnxx
  102. Pingback: Dolce and Gabbana
  103. Pingback: Givenchy
  104. Pingback: Jimmy Choo
  105. Pingback: lego kopen
  106. Pingback: Parfum Vergelijk
  107. Pingback: erotica
  108. Pingback: youtube to mp4
  109. Pingback: سکس
  110. Pingback: ww88
  111. Pingback: best sex toys
  112. Pingback: male masturbators
  113. Pingback: computer-arts.info
  114. Pingback: probes impedance
  115. Pingback: reflow oven
  116. Pingback: solars.biz
  117. Pingback: flyer delivery
  118. Pingback: w88thai
  119. Pingback: Admit Card
  120. Pingback: Furniture Assembly
  121. Pingback: naga poker
  122. Pingback: strap-on
  123. Pingback: strap on dildo
  124. Pingback: סקס
  125. Pingback: cialis 20mg
  126. Pingback: Recovery Center
  127. Pingback: افلام سكس
  128. Pingback: otvaracie hodiny
  129. Pingback: branding
  130. Pingback: Joop Parfum
  131. Pingback: adam and eve
  132. Pingback: wand vibrator
  133. Pingback: tadalafil 40 mg
  134. Pingback: cialis pills
  135. Pingback: cost cialis 20mg
  136. Pingback: tadalafil generic
  137. Pingback: cialis generic
  138. Pingback: hollywood
  139. Pingback: levitra generic
  140. Pingback: sildenafil citrate
  141. Pingback: viagra 100mg
  142. Pingback: sildenafil 100mg
  143. Pingback: augmentin 875 mg
  144. Pingback: amiodarone 200 mg
  145. Pingback: lipitor generic
  146. Pingback: simvastatin 20 mg
  147. Pingback: diflucan 150 mg
  148. Pingback: levitra 20 mg
  149. Pingback: Lego city 60174
  150. Pingback: beast tv
  151. Pingback: viagra pills
  152. Pingback: biaxin generic
  153. Pingback: biaxin antibiotic
  154. Pingback: biaxin coupon
  155. Pingback: biaxin coupons
  156. Pingback: fluoxetine hcl
  157. Pingback: fluoxetine 20 mg
  158. Pingback: prozac generic
  159. Pingback: prozac medication
  160. Pingback: fluoxetine 10 mg
  161. Pingback: alprostadil
  162. Pingback: alprostadil price
  163. Pingback: buy cialis
  164. Pingback: cialis oral jelly

Leave a Reply