esp8266-12f introduction and use

nodemcu relatively bulky and the price is relatively high
at this time can be used instead of using esp12f
nodemcu (v2 v3) using esp12e with only some differences esp12f wiring
is an enhanced version of esp8266-12

enter description here

esp-12F

Pin Figure

enter description here

Each pin function

A total of 22 pins
enter description here
enter description here
enter description here

Start mode is still a low level is still the same GPIO0
enter description here

Function pins

GPIO6 ~ GPIO 11 is used for a flash memory (Flash Memory) development board connector is therefore not recommended GPIO6 ~ GPIO 11. Please use caution GPIO10, do not use GPIO9.

  1. The PWM
    the PWM interface has four channels, but the user can extend the channels according to their needs. PWM interface can be controlled to control the LED, buzzer, relays, motors, etc.

GPIO12®,GPIO15(G), GPIO13(B)

  1. HSPI
    be used HSPI interface SPI Flash, display and MCU

GPIO12 (MISO), GPIO13 (MOSI), GPIO14 (CLK), GPIO15 (CS)

  1. IR Remote control
    function infrared remote control interface can be implemented in software programming. The interface uses NEC coding, modulation and demodulation. The frequency of the modulated carrier signal is 38KHz.

GPIO14(IR_T), GPIO5(IR_R)

  1. The ADC
    ESP8266EX integrates a 10-bit analog ADC. Can be used to test VDD3P3 (Pin3 and Pin4 of) the power supply voltage and the input voltage TOUT (Pin 6) a. However, these two functions can not be used simultaneously. This interface is typically used sensors.

  2. The I2C
    12C interface for connecting external sensors and displays.

GPIO5(SCL),GPIO4(SDA)

  1. 串口
    用于打印出一些信息 进行调试等,也可以进行数据的发送与接收。

UARTO: )TX(GPIO1)和RX(GPIO3)
UART1:TX(GPIO2)和RX(GPIO8)

尺寸与转接板

尺寸也是非常的小
enter description here

使用时可以在淘宝上买一种转接板
enter description here
跟模块焊上去引脚 然后使用

使用arduino IDE开发

环境搭建

  1. 在项目 加载库 库管理中 搜索dht 下载DHT sensor by Adafruit (1.30)
    enter description here

2.打开工具 开发板 开发板管理器 搜索esp8266 下载esp8266 by ESP8266 Community (2.4.2)
enter description here

3.选择配置esp8266-12f
enter description here

4.使用示例
enter description here
上传会看到灯一亮一灭

联合mqtt使用
打开示例 pubsubclient中的mqtt_esp8266
enter description here

(如果没有这个库 可以到 项目–> 加载库 —> 管理库里面 进行下载)

else

可参考文章 :
ESP8266开发之旅 基础篇
Basics: ESP8266 Types and Boards

更多学习教程

ESP开发学习基础知识

基础知识包括对esp模块的认识与了解 mqtt协议的了解,arduino IDE运用代码编写等等。

  1. arduino基础学习
  2. esp系列模块的介绍
  3. mqtt协议的介绍与使用
  4. 利用mqtt esp模块 基于arduino IDE开发方法
  5. esp模块的AT指令 刷固件
  6. esp模块睡眠模式使用
  7. esp8266-01s介绍与使用
  8. esp8266-12f介绍与使用
  9. NodeMcu介绍与使用
esp开发IOT应用

基于esp8266的模块以及其他模块根据实际的应用场景与需求制作的物联网应用

  1. 基于FRID arduino 继电器 电磁锁开发的FRID门禁系统
  2. esp32-cam video stream acquired image processing
  3. Stepping motor esp8266 mqtt developed automatic curtain control
  4. Gets indoor temperature and humidity based on DHT11 Esp8266 mqtt
  5. Gets indoor air quality based on CCS811 esp8266 mqtt
  6. Based on infrared remote control intelligent module esp8266 mqtt development
  7. Based ws2812 esp8266 mqtt development of intelligent multi-level lighting
  8. Based ws2812 esp8266 mqtt development of intelligent multi-mode light atmosphere
  9. Broadcast System Intelligent Voice mp3player esp8266 mqtt based development
  10. The wisdom of the comprehensive application of IOT classroom project development
Published 46 original articles · won praise 59 · views 70000 +

Guess you like

Origin blog.csdn.net/Nirvana_6174/article/details/104486311