[Diao Ye learns programming] Arduino hands-on (166)---ESP-01S wireless WIFI module

The reference to 37 sensors and modules has been widely circulated on the Internet. In fact, there must be more than 37 sensor modules compatible with Arduino. In view of the fact that I have accumulated some sensor and actuator modules on hand, according to the concept of true knowledge (must be hands-on), for the purpose of learning and communication, here I am going to try and do more experiments one by one.

[Arduino] 168 sensor module series experiments (data code + simulation programming + graphic programming)
Experiment 166: ESP-01/01S/Wireless Internet of Things ESP8266 serial port WIFI module long-distance development board

insert image description here
Knowledge point: Established in 2008, Espressif Systems
is a professional fabless semiconductor company, dedicated to the R&D and design of wireless system-on-chips for WiFi and Bluetooth technology, and providing solutions for mobile communications and the Internet of Things. The ESP826 launched in the first half of 2014 made Espressif the dark horse of IoT chips. In September 2016, Espressif launched a new product——ESP32, which brought a new trend to the 32-bit MCU market with thousands of "chips". The ESP32 chip combines bgn WiFi and Bluetooth BLE into one, and is equipped with a dual-core 32-bit Tensilica L108 MCU with a maximum frequency of 250MHz, and has multiple sleep modes such as low power consumption for different IoT application scenarios.

insert image description here
Anxinke Technology
was established in 2012 and has been focusing on the Internet of Things (IOT) field. It is a technology-intensive high-tech enterprise integrating design, R&D and production, and a leading supplier of wireless module related solutions. Since the establishment of the company, it has maintained a steady and rapid growth, and has been fully affirmed by customers in the three core areas of "serial port to Ethernet", "serial port to WIFI", and "serial port to GPRS". ESP8266 series modules are a series of ultra-low power consumption UART-WiFi modules based on Espressif Espressif’s ESP8266, which can be easily used for secondary development, access to cloud services, and realize mobile phone 3/4G global control anytime and anywhere, and accelerate product prototype design.

insert image description here
ESP8266
ESP8266 is an IoT chip produced by Espressif, which has received great attention because of its low price and stable performance. It is a relatively general WiFi chip, its core is a highly integrated chip of Diamond Standard 106Micro controller. The chip was the most integrated WiFi MCU chip in the industry at that time. It integrated 32-bit MCU, WiFi radio frequency, baseband, MAC, and TCP/IP on a single SoC, which minimized the space occupied on the board. At the same time, ESP8266 only has 7 peripheral devices, which greatly reduces the module BOM cost of ESP8266. Because of this, the chip caters to the price requirements of the smart home market. In addition, the chip's WLAN has a leading power control algorithm, which can work in power saving mode to meet the harsh power supply requirements of batteries and power devices.

insert image description here

Internal Structure
insert image description here
Pin Diagram

insert image description here
insert image description here
insert image description here
ESP8266特性
  *802.11 b/g/n
  *内置低功耗32位CPU:可以兼作应用处理器
  *内置10 bit高精度ADC
  *内置TCP/IP协议栈
  *内置TR开关、balun、LNA、功率放大器和匹配网络
  *内置PLL、稳压器和电源管理组件
  *支持天线分集
  *STBC、1x1 MIMO、2x1 MIMO
  *A-MPDU、A-MSDU的聚合和0.4 s的保护间隔
  *WiFi @ 2.4 GHz,支持 WPA/WPA2 安全模式
  *支持STA/AP/STA+AP工作模式
  *支持Smart Config功能(包括Android和iOS设备)
  *SDIO 2.0、(H) SPI、UART、I2C、I2S、IR Remote Control、PWM、GPIO
  *深度睡眠保持电流为10 uA,关断电流小于5 uA
  *2 ms之内唤醒、连接并传递数据包
  *802.11b模式下+20 dBm的输出功率
  *待机状态消耗功率小于1.0 mW (DTIM3)
  *工作温度范围:-40°C - 125°C
  *通过 FCC, CE, TELEC, WiFi Alliance 及 SRRC 认证

insert image description here
ESP-01S wireless WIFI module

insert image description here
insert image description here
Advantages of ESP-01S wireless WIFI module:
1) The price is low, and basically only earns a small profit. I hope this move can lead to the rapid development of the Internet of Things
2) The smallest size is about 11*10 mm, the size of a fingernail. Easy to embed into any product
3) Powerful and internally run LWIP protocol
4) Support three modes: AP, STA, AP+STA coexistence mode
5) Perfect concise and efficient AT commands, making your development easier.

insert image description here
The experiment is stuck... This module is quite complicated, and it is a bit difficult for newcomers

When doing the software simulation serial communication experiment, I tried many times, but the compilation failed all the time. The error message is ----

Error compiling for the development board Generic ESP8266 Module

Currently trying to re-download the development board library

Download is slow and wrong...

insert image description here

Insist on downloading, until the seventh time, finally installed version 2.5.2

insert image description here
This is the board I chose, I don’t know if it’s correct

insert image description here
Re-do the "Arduino UNO soft serial communication" upload, still "Error during compilation"

insert image description here
The received serial port data is estimated to be the program on the original board, and there is no light on the board...

insert image description here
Later, I tried to use simulation programming (current version Linkboy V5.33) to try

insert image description here
download successful

insert image description here
insert image description here
insert image description here
Experimental open source graphics programming (Mind+, programming while learning)

insert image description here
Module Reference Circuit Schematic

insert image description here
insert image description here

Wiring diagram of Arduino experiment

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_41659040/article/details/131821339