Skip to main content

Using Arduino IDE to Program NodeMCU

Arduino IDE which may be a great starting point for Arduino lovers to familiarize themselves with the technologies surrounding the IoT.Note that when you use the NodeMCU board with the Arduino IDE ,it will write directly to the firmware, erasing the NodeMCU firmware.So if you want to back to Lua SDK,use the “flasher” to re-install the firmware.

The NodeMCU programming can be as easy as in Arduino,the main difference is the distribution of pins in the nodemcu board.Following below operations and enjoy your first NodeMCU & Arduino IDE travel!

Step 1: Connect Your NodeMCU to the Computer

Use the USB cable to connect your NodeMCU to the computer,you will see the blue onboard LED flicker when powered up, but they will not stay lit.

Step 2: Install the COM/Serial Port Driver

In order to upload code to the ESP8266 and use the serial console, connect any data-capable micro USB cable to ESP8266 IOT Board and the other side to your computer’s USB port.

The new version NodeMCUv1.0 comes with the CP2102 serial chip,you can download and install the driver from:https://www.silabs.com/products/development-tools/.... The NodeMCUv0.9 comes with the CH340 serial chip,you can download and install the driver from:https://github.com/nodemcu/nodemcu-devkit/tree/mas...

Step 3: ​Install the Arduino IDE 1.6.4 or Greater

Download Arduino IDE from Arduino.cc (1.6.4 or greater) – don’t use 1.6.2! You can use your existing IDE if you have already installed it. You can also try downloading the ready-to-go package from the ESP8266-Arduino project, if the proxy is giving you problems.

Step 4: ​Install the ESP8266 Board Package




Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager URLs field in the Arduino v1.6.4+ preferences (Open Arduino IDE–>File–>Perferences–>Settings). Enter the link and click “OK” to save your changes. Next, use the Board Manager to install the ESP8266 package Enter the Boards Manager and find the board type as below: Scroll the Broads Manager screen down to the bottom, you will see A module called “esp8266 by esp8266 Community” (see following picture), select the latest version and click “Install“. The ESP8266 package has benn installed successfully. Note: You’d better close the Arduino IDE and restart it again.

Step 5: Setup ESP8266 Support



When you’ve restarted, select NodeMCU 0.9 (or NodeMCU 1.0) from the Tools->Board dropdown Config the Board menu and choose the right Port for your device. CPU Frequency:80MHz,Flash Size:4M(3M SPIFFS),Upload Speed:115200 Now just proceed as the Arduino: Start your sketching! Note: 115200 baud upload speed is a good place to start – later on you can try higher speeds but 115200 is a good safe place to start.

Comments

Popular posts from this blog

Building a Complete Website with Groq API: A Step-by-Step Guide

Building a Complete Website using Groq API: A Step-by-Step Guide Introduction: In today's digital age, having a website is no longer a luxury, but a necessity for businesses, individuals, and organizations. With the rise of API-first development, it's now possible to build a complete website using APIs like Groq. In this blog post, we'll explore how to use Groq API to build a complete website from scratch. What is Groq API? Groq API is a powerful API that allows developers to build, manage, and deploy websites, applications, and services with ease. It provides a wide range of features, including data storage, authentication, and integration with third-party services. Getting Started with Groq API To get started with Groq API, you'll need to create an account on the Groq website. Once you've signed up, you'll receive an API key that you can use to make requests to the API. Step 1: Setting up the Project Structure Before we start building our website, we need to s...

Build your own Wi-Fi Repeater or Range extender using NodeMCU

We are in the Internet of Things (IoT) generation! These days, you can control your home gadgets/devices like air-conditioner, room heater, water heater, etc. remotely from anywhere and the device to do this can easily be built or purchased off the shelf. Over the course, we have also built a few IoT based home automation projects  using  Arduino ,  ESP , and  Raspberry Pi .

DIY GPS Speedometer using Arduino and OLED

  Speedometers are used to measure the travelling speed of a vehicle.  Today we will use GPS to measure the speed of a moving vehicle. GPS speedometers are more accurate than standard  speedometers  because it can continuously locate the vehicle and can calculate the speed.  GPS technology  is widely used in smartphones and vehicles for navigation and traffic alerts.