In this post, we will see, getting started with NodeMcu and interfacing it. Basically, NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. The term “NodeMCU” by default refers to the firmware rather than the dev kits. The firmware uses the Lua scripting language.
To code for NodeMCU, we can use the Arduino IDE, you can download the Arduino IDE. For NodeMCU, we need to add ESP8266 board, to do it, go to file, preferences, under additional boards, paste the below URL,
Now, click ok. We have added the NodeMCU (Esp8266) Board URL in the repositories, we can now change the board. To do so, go to Tools, then Board, then open board manager. Now in search type ESP8266, you will be getting the below screen.
Once downloaded, the board and the tools, choose, NodeMCU board from the Board list, under ESP8266 section. Choose the version depending on your board information. i.e. whether it is NodeMCU 1.0 or NodeMCU 0.9 or any other esp8266 board.
Now you can see setup() as well as loop() function, there you can do your coding part. Well, now you have finished interfacing, now you can go with it. If this post helped you, share with your friends and help us make grow.