Skip to main content

Featured Post

Kerala's First 3D Printed Building

Created as a showcase project, AMAZE-28, the single-room summer house, was successfully constructed within 28 days on the grounds of the Kerala State Nirmithi Kendra. The 3D-printed building at the Kerala State Nirmithi Kendra in Thiruvananthapuram. (Photo: Shekunj)  The inauguration of Kerala's inaugural 3D-printed structure, a 380-square-foot single-room summer house, is scheduled to take place on October 10 at the Kerala State Nirmithi Kendra (Kesnik) campus located in PTP Nagar, Thiruvananthapuram.  Conceived as a showcase initiative, the summer house named AMAZE-28 was successfully finished within a mere 28 days. This impressive project was executed by Tvasta, a construction technology startup based in Chennai, founded by alumni of IIT-Madras, who have entered into a memorandum of understanding (MoU) with Kesnik.  AMAZE-28 is perched upon a concrete foundation atop a gentle elevation within the Kesnik campus. Febi Varghese, the Director and Chief Executive Officer of...

How to Know the NodeMCU IP Address for Your Next IoT Project

 NodeMCU IP Address: The NodeMCU is a popular development board for IoT projects. It’s small, affordable, and comes with built-in Wi-Fi connectivity, making it the perfect choice for creating connected devices. But before you can start building your NodeMCU projects, you need to know the IP address of your device.

This IP address is essential for communicating with the NodeMCU from another device, such as a computer or smartphone. In this article, we’ll show you how to find the NodeMCU IP address, so you can get started with your next IoT project.

Method 1: To Know the NodeMCU IP Address

One of the easiest ways to find the NodeMCU IP address is by using the serial monitor in the Arduino IDE. First, connect your NodeMCU board to your computer using a micro-USB cable. Then, upload the following code to the NodeMCU:

#include <ESP8266WiFi.h>

void setup() {
  Serial.begin(115200);
  Serial.println();
  Serial.print("Connecting to ");
  Serial.println("<WiFi SSID>");

  WiFi.begin("<WiFi SSID>", "<WiFi Password>");
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.print(".");
  }

  Serial.println();
  Serial.print("Connected, IP address: ");
  Serial.println(WiFi.localIP());
}

void loop() {
}

Replace <WiFi SSID> and <WiFi Password> with the credentials for your Wi-Fi network. After uploading the code, open the serial monitor in the Arduino IDE. You should see the NodeMCU connecting to your Wi-Fi network and printing its IP address.

Also Read: Controlling LEDs over WiFi using NodeMCU and Blynk App.

Know NodeMCU IP Adrees Method 2: Using the Router

Another way to find the NodeMCU IP address is by logging into your router. Most routers have a list of connected devices, and you can find the NodeMCU IP address by looking for its MAC address.

To find the MAC address of the NodeMCU, upload the following code to the board:

#include <ESP8266WiFi.h>

void setup() {
  Serial.begin(115200);
  Serial.println(WiFi.macAddress());
}

void loop() {
}

Open the serial monitor in the Arduino IDE and take note of the MAC address. Then, log into your router and look for a list of connected devices. You should be able to find the NodeMCU IP address by matching its MAC address to the list of connected devices.

Also Read: Controlling an LED using Arduino and Python GUI: Arduino Projects

Conclusion

Knowing the IP address of your NodeMCU board is essential for communicating with it and building IoT projects. By using either the serial monitor or your router, you can easily find the IP address of your NodeMCU and get started with your next project.

We hope this article has helped you understand how to find the NodeMCU IP address. If you have any questions or comments, feel free to leave them in the section below. And if you're looking for more information on NodeMCU projects, be sure to check out our blog for more tips and tutorials!

Comments

Popular posts from this blog

Seven Segment LED Display With Arduino : Part - I

Hi!!! In this tutorial, we are going to learn how to use a seven segment LED display with Arduino. We will learn to interface seven segment display with Arduino and how to start and glow LEDs in a sequence. So, let's start - COMPONENTS REQUIRED -    Arduino UNO (1) Breadboard (1) Jumper Wires Seven Segment LED Display (1) [Here we are using Common Anode Display] Resistor 220 Ohm (2) 5V Power supply Components used in this tutorial. Lets see some details about Seven Segment LED display -    Seven Segment display is an electronic device which is generally used to display 0 - 9 decimal numbers. It has seven segment made up of LEDs and one LED as decimal point. These displays are of two types - 1 - Common Anode type 2 - Common Cathode type

Python GUI and Arduino: Controlling LED using a Python based Graphics User Interface (GUI)

Python is popular language due to its simple syntax and user friendly properties. It is used in almost every domain form web development to scientific research and development applications. In this article python has been used to develop a simple GUI which used to control some hardware using a micro-controller. Video below shows the working of that GUI.   Components Needed Arduino UNO LED Breadboard Jumper wires Power supply Laptop with python installed Schematic and Circuit User have to command the controller using GUI. Controller will accept the command and  process it to give the out put. Schematic given below shows the process flow. Figure given below shows the circuit diagram of this article. GUI is run on the computer screen and a serial communication connection between Arduino and Computer is established using USB. The command from GUI send to Arduino using this connection. A 5V DC power supply is used to power up the Arduino as well as LED. However it should be noted t...