[Diao Ye learns programming] Arduino hands-on (175) --- Gizwits ESP8266 development board module 8

The reference to 37 sensors and actuators 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 practicing true knowledge (must be done), for the purpose of learning and communication, I am going to try a series of experiments one by one, regardless of success (the program goes through) or not, They will be recorded - small progress or unsolvable problems, hoping to inspire others.

[Arduino] 168 kinds of sensor module series experiments (data code + simulation programming + graphics programming)
Experiment 175: ESP8266 Gizwits Cloud Development Board ESP12F wifi module (intelligent hardware development kit supporting cloud)

insert image description here
Knowledge points: Gizwits (www.gizwits.com)
Gizwits is the largest self-service development and cloud service platform for intelligent hardware in Asia. Its products and services cover main functions such as terminal management, connection management, application support and business analysis. Developers of the Internet of Things provide one-stop development tools for smart hardware and cloud operation and maintenance services, and provide IoT open source embedded code libraries, cloud API interfaces, and APP-side SDKs to facilitate secondary development for developers, and support public clouds and private clouds at the same time , hybrid cloud, and global deployment. It is currently the most mature IoT technology, the most complete cloud application function, the most mass-produced customers in the world, and the most popular mass-production-level intelligent hardware development and cloud service platform for IoT developers. It is recognized by the industry and the media. The first brand of third-party cloud services for the Internet of Things.

insert image description here
ESP8266 Gizwits Cloud Development Board Module
(Official Introduction) This is a smart hardware development kit that supports the cloud. It is the simplest and most cost-effective IoT development board in history. It does not require you to understand the underlying complex knowledge of network, TCP/IP, HTP, and MQTT , as long as you know C voice, you can use Anxinke's Gizwits SDK to quickly realize secondary development. This DEMO board can use the mobile phone traffic to control the onboard RGB colorful lights, and the mobile APP can display the ambient brightness through the photoresistor. You only need to modify the code for half an hour to make a remote control device of your own. The system generates APP (Android, IOS) for free and opens the SDK. You only need to do the UI interface of the APP to develop a finished product .

insert image description here
insert image description here
insert image description here
ESP8266
1. Low power consumption, highly integrated Wi-Fi chip
2. Only 7 components are required
3. Ultra-wide operating temperature range: -40°C to +125°C
4. ESP8285 - ESP8266 internally encapsulated 8 Mbit Flash
5. Highly integrated——ESP8266EX is the most integrated Wi-Fi chip in the industry, with a minimum package size of only 5mm x 5mm. ESP8266EX is highly integrated antenna switch, RF balun, power amplifier, low noise amplifier, filter and power management module, requiring only a few
circuits, which can minimize the occupied PCB space.
6. 32-bit Tensilica MCU - ESP8266EX built-in Tensilica L106 32-bit microcontroller (MCU), with ultra-low power consumption and 16-bit RSIC, the clock speed can reach up to 160 MHz. Support real-time operating system (RTOS), currently Wi-Fi protocol stack only uses 20% of MIPS, the rest can be used for user programming and development.
7. Low power consumption - ESP8266EX is specially designed for mobile devices, wearable electronic products and Internet of Things applications, and achieves the lowest power consumption through a number of proprietary technologies. ESP8266EX has three operating modes: active mode, sleep mode and deep sleep mode, which can prolong battery life.
8. Stable performance - ESP8266EX integrates more components, stable performance, easy to manufacture, and the operating temperature range reaches -40°C to +125°C.

insert image description here

Burning scheme for the second configuration

insert image description here
The burning scheme configured for the third time is simplified, and it is easy to make mistakes if there are too many bins. This time it is a single-bin burning (only use Gizwits Cloud firmware compilation)

insert image description here
The output of the serial port is finally no longer garbled

insert image description here

The burning scheme of the fourth configuration (still 8M)

insert image description here

Serial return status

insert image description here

The burning scheme of the fifth configuration, try the merged firmware of 32M

insert image description here

Serial output

insert image description here

[Arduino] 168 kinds of sensor module series experiments (data code + simulation programming + graphics programming)
Experiment 175: ESP8266 Witty Cloud ESP-12F WiFi module Witty Cloud development board ESP Witty
Project 11: Test whether the flash memory settings of the IDE match the hardware

Experimental open source code

/*
  【Arduino】168种传感器模块系列实验(资料代码+仿真编程+图形编程)
  实验一百三十五: ESP8266 Witty Cloud ESP-12F WiFi模块 机智云开发板 ESP Witty
  项目十一:测试IDE的闪存设置是否与硬件匹配
*/

void setup(void) {
    
    
  Serial.begin(115200);
}

void loop() {
    
    
  uint32_t realSize = ESP.getFlashChipRealSize();
  uint32_t ideSize = ESP.getFlashChipSize();
  FlashMode_t ideMode = ESP.getFlashChipMode();
  Serial.println("测试IDE的闪存设置是否与硬件匹配");
  Serial.printf("闪存真实ID:  %08X\n", ESP.getFlashChipId());
  Serial.printf("Flash 实际大小: %u bytes\n\n", realSize);

  Serial.printf("Flash IDE 大小: %u bytes\n", ideSize);
  Serial.printf("闪存速度: %u Hz\n", ESP.getFlashChipSpeed());
  Serial.printf("闪存模式: %s\n", (ideMode == FM_QIO ? "QIO" : ideMode == FM_QOUT ? "QOUT" : ideMode == FM_DIO ? "DIO" : ideMode == FM_DOUT ? "DOUT" : "UNKNOWN"));

  if (ideSize != realSize) {
    
    
    Serial.println("Flash Chip configuration wrong!\n");
  } else {
    
    
    Serial.println("Flash 芯片配置正常。\n");
  }
  delay(5000);
}

Project Eleven: Test whether the flash settings of the IDE match the hardware

Project serial port return status

insert image description here

Board data map found on foreign websites

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
Based on the IoT development method of ESP8266 on the arduino platform, the Blinker library and cloud server are used,
so the whole process is quite simple. Add the following link to the development board: http://arduino.esp8266.com/stable/package_esp8266com_index.json
library l link : https://diandeng.tech/doc/getting-start-8266
code link: https://pan.baidu.com/s/1WdL_9k5Z8OQzd_Oas3in3w
extraction code: d2dm

https://www.bilibili.com/video/BV19q4y1J7Ro?from=search&seid=9787966718464974632&spm_id_from=333.337.0.0

Key points of smart IoT hardware access to Gizwits Cloud course: ① IoT smart hardware data upload to cloud ② Hardware principle introduction ③ Gizwits development ④ stm32cubeMX

https://www.bilibili.com/video/BV1qT4y1R7vX?from=search&seid=10804815941747965082&spm_id_from=333.337.0.0

Guess you like

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