top of page
Search
Writer's pictureAlex Noyanov

NodeMcu: "Hello, world!" server fast setup

Updated: Mar 30, 2018

NodeMcu is an open source #IoT platform for making cool projects. It includes firmware which runs on #esp8266 #wifi SoC. Let's set it up!





Where can it be programed ?

The most simple solution here is the standart Arduino #IDE

Open Arduino IDE preference with <Comand> + <,> or go to the Arduino - > Preference :


Just copy and paste this link to the Aditional board manager:

http://arduino.esp8266.com/stable/package_esp8266com_index.json


Then go to the Tools - > Boards - > Board Manager

Choose and install esp8266 by ESP8266 Community

Now there are a lot of new boards added, to program NodeMCU Amica you need this:




The one final step before connecting OLED screen is the libraries. It's so easy to find a lot of different open source libraries on GitHub. This is an official library pack from NodeMcu GitHub Community:

https://github.com/esp8266/Arduino/tree/master/libraries


As the other Arduino libraries just copy all this folders to Arduino - > libraries . All library need its own folder.

Then close the Arduino IDE with <Command>+<Q> and open it again.

Check File - > Examples . If there no new examples from all libraries check where is all your last libraries situated.

Now all what you need is to write your WI-FI name and password in this two strings:

After connecting the OLED screen (SCL - > D1; SDA -> D2) download the code from the link down here. And let's test it!

Firstly tab <Command>+<Shift>+<M> or go to the Tools -> Serial monitor. The speed of the data transmitting should be 115200 boud. If board can connect to your wi-fi, you will see the message with server IP address. The other way it is better to just turn on modem mode on your smartphone and waiting for connection.


Copy IP address of your WI-FI server and paste it on the browser to connect to it. If everything work fine then you will see the this label on the blue background:



That's all what you need to create simple WI-FI server for IoT project!


Final code link:

Find more about NodeMcu projects in this book: https://www.amazon.com/Nodemcu-dev-kit-using-Arduino-ebook/dp/B01A1R31K2/ref=sr_1_5?ie=UTF8&qid=1455259307&sr=8-5&keywords=esp8266+book

31 views0 comments

Recent Posts

See All

コメント


bottom of page