Hey Guys!! Do you want to program nodemcu esp8266? Need a help to do it? I am here to help you out.
You can start by using :
ESP8266 NodeMCU
A computer
What is nodemcu esp8266?
NodeMCU is an open-source firmware and development kit that helps you to prototype or build IoT products. It includes firmware that runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. It is loaded with an open-source, Lua-based firmware.
It’s perfect for IoT Applications, and other wireless connectivity applications. This chip has a great deal in common with the Arduino – they’re both microcontroller-equipped prototyping boards which can be programmed using the Arduino IDE. The ESP8266 is a more recent released than the Arduino, it also has stronger specifcations. It has a 32-bit RISC processor clocked at 80MHz, along with a generous RAM complement and support for up to 16 MB of external flash storage.
Pinout of nodemcu
Features:
- Operating voltage : 2.5 to 3.3 v
- Onboard 3.3v 600mA voltage regulation
- 800mA operating current
- 20 µA during sleep mode
- You can provide voltage upto 16.6v
- A 10 bit ADC channel
- PWM output
- UART interface
- SPI ,I2C ,I2S interface : to connect all sort of sensors and devices
- I2S: to add sound to your project.
- On Board Switches and LED Indicator
For detail information about it click here
Then Lets move toward programming the nodemcu
How to program nodemcu esp8266?
Basically, NodeMCU is firmware based on Lua script. One of the best way to program NodeMCU with a well-known IDE called Arduino IDE. It makes things easy for Arduino developers than learning a new language and IDE for NodeMCU.
First thing you need to download Arduino IDE from the Arduino.cc platform and then install.
If you already have it, then it is great, the next thing to follow a path.
Open Arduino IDE
Select File and choose Preferences
http://arduino.esp8266.com/stable/package_esp8266com_index.json
Copy the above link
Paste in Additional Board Manager URLs
Like shown in the image:
Click OK
Now close Preference window and go to Tools -> Board -> Boards Manager
In Board Manager, Scroll down to the end of the window
Now esp8266 by ESP8266 Community is available
Click that package and click install by selecting latest version
After installing ESP8266 board it will appear like this
After installation of the board is complete, open Tools -> Board-> NodeMCU 1.0 (ESP-12E Module).
Now your board installed completely on Arduino IDE
Now Your Arduino IDE is ready for NodeMCU
Now you can run multi-application code on NodeMCU and upload into NodeMCU, just Ensure that you have selected the correct board as shown in the below figure. Also, make sure that you have selected the appropriate COM port
I hope this article will find useful to you if you are a beginner in the IOT platform. For more information, you can Click Here
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.