当前位置:网站首页>Nodemcu-esp8266 development board to build Arduino ide development environment
Nodemcu-esp8266 development board to build Arduino ide development environment
2022-07-03 09:35:00 【Taodream】
The first 1 Step : install ardunio 1.8.13.
Download address :https://www.arduino.cn/thread-5838-1-1.html
The first 2 Step : Install serial driver CP210x_Windows_Drivers.
Download address :https://cn.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
The first 3 Step : install ESP8266 plug-in unit , It is recommended to use method 2 for installation .
1) Method 1 :
open ardunio IDE, file -> Preferences -> Additional development board management website , Fill in address :http://arduino.esp8266.com/stable/package_esp8266com_index.json, Then determine .
Next tool -> Development board XXX->“ Development board Manager ” Enter... In the search field of “esp8266”, If the previous management website prompts that there is an error in downloading , Then input. ESP8266 It can't be found .
2) Method 2 :
On the website https://www.arduino.cn/thread-76029-1-1.html, Download plug-ins 8266_package_2.6.4, Double click to install .
If you have installed other versions esp8266sdk, Please delete first. , Reuse this installation package , Delete method : Enter... In the file manager address field %LOCALAPPDATA%/Arduino15/packages, Enter by car , Then delete the esp8266 Folder .
The first 4 Step : Tools -> Development board -> choice NodeMCU1.0(ESP-12E Module).
The first 5 Step : Tools -> Select port COMxx.
The first 6 Step : Run the example , file -> Example ->ESP8266->Blink.
The first 7 Step : Compile and download , You can see on the development board LED Light flashing (LED Light at ESP-12E On module ), If the prompt cannot be opened COM mouth , There may be COM The port is occupied by the serial port .
Pin mapping :
Write pins in the program "D4" And write pin 2(GPIO2) The effect is the same .
for example :digitalWrite(D4, LOW) And digitalWrite(2, LOW) It's the same .
Schematic diagram download :https://download.csdn.net/download/felix_tao/14946194
ESP8266->Blink Routine code :
/*
ESP8266 Blink by Simon Peter
Blink the blue LED on the ESP-01 module
This example code is in the public domain
The blue LED on the ESP-01 module is connected to GPIO1
(which is also the TXD pin; so we cannot use Serial.print() at the same time)
Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/
// Use the development board :nodemcu-esp8266(ESP-12E modular )
// Download port : Tools -> port COM9
// Program function : Flash two LED The lamp
#define LED_BUILTIN 2 //ESP-12E The module itself LED, Corresponding GPIO2, Low level light
#define LED_BUILTIN_AUX 16 //nodemcu-esp8266 The development board extends LED, Corresponding GPIO16, Low level light
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
pinMode(LED_BUILTIN_AUX, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
digitalWrite(LED_BUILTIN_AUX, LOW);
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
digitalWrite(LED_BUILTIN_AUX, HIGH);
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
References Chapter :
1. Taiji maker :http://www.taichi-maker.com/homepage/esp8266-nodemcu-iot/iot-c/nodemcu-arduino-ide/
2. Lighting technology :https://diandeng.tech/doc/getting-start-8266
边栏推荐
- LeetCode每日一题(2109. Adding Spaces to a String)
- Hudi 数据管理和存储概述
- Solve the problem of disordered code in vscode development, output Chinese and open source code
- [kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions
- Win10安装ELK
- Trial of the combination of RDS and crawler
- 专利查询网站
- Leetcode daily question (968. binary tree cameras)
- IDEA 中使用 Hudi
- Temper cattle ranking problem
猜你喜欢
Hudi 数据管理和存储概述
Win10 install elk
小王叔叔的博客目录【持续更新中】
LeetCode每日一题(2090. K Radius Subarray Averages)
Alibaba cloud notes for the first time
【Kotlin学习】类、对象和接口——带非默认构造方法或属性的类、数据类和类委托、object关键字
Leetcode daily question (2212. maximum points in an archery competition)
Beego learning - Tencent cloud upload pictures
LeetCode每日一题(2212. Maximum Points in an Archery Competition)
Spark structured stream writing Hudi practice
随机推荐
从0开始使用pnpm构建一个Monorepo方式管理的demo
Windows安装Redis详细步骤
NPM install installation dependency package error reporting solution
Word segmentation in full-text indexing
Database execution error: SQL_ mode only_ full_ group_ by:
【Kotlin学习】类、对象和接口——带非默认构造方法或属性的类、数据类和类委托、object关键字
Spark 结构化流写入Hudi 实践
Detailed steps of windows installation redis
Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)
Using Hudi in idea
Uncle Wang's blog directory [constantly updating]
Flink-CDC实践(含实操步骤与截图)
Logstash+jdbc data synchronization +head display problems
Powerdesign reverse wizard such as SQL and generates name and comment
1922. Count Good Numbers
Leetcode daily question (2305. fair distribution of cookies)
Leetcode daily question (2212. maximum points in an archery competition)
LeetCode每日一题(968. Binary Tree Cameras)
Leetcode daily question (1856. maximum subarray min product)
unbuntu(debian)下TFTP服务器搭建及测试