Skip to content

基于ESP8266芯片,使用NodeMCU固件,简单的智能硬件原型

Notifications You must be signed in to change notification settings

huanghyw/node-mcu-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-mcu-example

基于 ESP8266 芯片,使用 NodeMCU 固件,简单的智能硬件原型

NodeMCU DevKit

NodeMCU DevKit

GPIO与针脚的对应关系

IO index ESP8266 pin IO index ESP8266 pin
0[*] GPIO16 7 GPIO13
1 GPIO5 8 GPIO15
2 GPIO4 9 GPIO3
3 GPIO0 10 GPIO1
4 GPIO2 11 GPIO9
5 GPIO14 12 GPIO10
6 GPIO12

可使用http协议控制LED灯开启与关闭,明暗的调节。
其中使用了基本的IO操作,也涉及了可调占空比相关知识。

使用HC-SR501模块进行移动生物红外检测,当检测到目标时,模块out pin输出高电平,否则为低电平。
将pin设置为读模式,即可通过读取电平状态判断是否检测到移动生物。

About

基于ESP8266芯片,使用NodeMCU固件,简单的智能硬件原型

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published