Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze NodeMCU and get started

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to analyze NodeMCU and get started. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

NodeMCU is the firmware engine that runs LUA on the microcontroller. At present, ESP8266Ex chip and its modules are supported.

NodeMCU is an open source microcontroller that can run scripts, directly supports WiFi links and GPIO, and is cheap. It is the best choice for the development of the Internet of things.

1. Hardware

NodeMCU Devkit: http://www.nodemcu.com

ResourceLocationDeveloper Wiki https://github.com/nodemcu/nodemcu-firmware/wikiAPI docsNodeMCU apiHomenodemcu.comBBSChinese BBSDocsNodeMCU docsTencent QQ group309957875Windows flash toolnodemcu-flasherLinux flash toolEsptoolESPlorer GUI https://github.com/4refr0nt/ESPlorerNodeMCU Studio GUI https://github.com/nodemcu/nodemcu-studio-csharp2, software

Firmware source code:

Https://github.com/nodemcu/nodemcu-firmware

API documentation:

Https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_cn

If you develop through LUA, you can link the terminal directly through the serial protocol.

Different from ordinary serial port devices, the control instruction used is not ATA, but LUA script.

In theory, the instruction set of multiple devices can be simulated through ATA scripts, and can be remotely controlled by WiFi.

Interactive debugging and bulk writing of LUA scripts can use xconsole or other tools.

If you compile the firmware yourself, you also need to use:

Esp-open-sdk (https://github.com/pfalcon/esp-open-sdk)

Brush fastening tool esptool.py (Note: esp-open-sdk also has an esptool for generating firmware, the two are different)

The source code for NodeMCU can be compiled using either esp-open-sdk or sdk provided by the Espressif vendor.

3. Brushing machine

On linux: esptool.py

On windows: tools written by Vowstar are easy to use.

4. LUA console

Minicom

Xconsole

5. Run the test minicom, the standard console program

Install on linux: sudo apt-get install minicom

Get help: minicom-h

Direct operation: minicom-b 9600-D / dev/ttyUSB0

Xconsole, a console program based on Python and PySerial, can be modified by yourself

Http://git.oschina.net/supergis/ESP8266App

6. Use in Mac and Ubuntu virtual machines

Because some NodeMCU boards use CH341's USB serial port chip, there will be driver problems in Mac and Ubuntu.

On how to analyze NodeMCU and quick start to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report