Friday, August 31, 2018

NodeMCU - ES8266 Board

The NodeMCU ES8266 board is probably the most affordable method making use of the Arduino IDE to have WiFi capability in a microcontroller package.  It is as simple to use as an Arduino, although I have found that there is a great limit in using it like an Arduino in terms of what pins are available.  


Wiring

The pinout of the NodeMcu can be found here (i don't own this image): https://pradeepsinghblog.files.wordpress.com/2016/04/nodemcu_pins.png?w=616


However, from my own testing, there are only really 5 GPIO pins that are available (in all contexts) for general use.  They are shown in black text in the table below.  The table also shows the mapping of the pin reference you would use in the code to the reference shown on the link above.



Early on in my first project I found this out the hard way that I was using pins I couldn't.  Doing so, upon load yielded the following error in the IDE.


Coding


  • If you haven't already, install the board manager for the NodeMCU ES8266
  • Make sure to select the NodeMcu 1.0 board when loading (check com port as well)
  • Examples > ES8266*
  • Example UDP .ino file

No comments:

Post a Comment