2EHeqzAIMi

#FirstLichuangContest#Based on the cost-effective ESP8266 wifi control board IoT cloud platform mobile phone monitoring

 
Overview
**1: Introduction to the work** **1: Foreword:** Since the ESP8266wifi module was launched, it has attracted more and more attention from various companies due to its low cost and high performance. In the early days, I also spent a lot of time on it. Learn how to write wifi firmware for ESP8266. Since I have been doing outsourcing design for a long time, I have been exposed to many related companies that need to customize and develop wifi firmware, so I have accumulated a certain amount of resources and development experience. I found that there are many companies developing wifi switches recently, so I came into contact with them. Developing a WIFI development board can be used for beginners to learn, or it can be used as a demo prototype for companies that need to develop wifi sockets or temperature and humidity detection. Therefore, this wifi development kit was designed. Through this control board, you can quickly learn the secondary development of ESP8266 SDK firmware based on the Ecpipse compilation platform, and you can also learn the recently popular Ardunio platform programming development. It comes with project source code and video tutorials. Based on this WIFI control board, a set of temperature and humidity, light intensity, remote control relay switches has been written to implement the MQTT protocol interface. Currently, it can be connected to the third-party [www.tlink.io cloud server platform (as needed, it can also be implemented with Remote monitoring of other IoT cloud platforms). You can use this source code to learn more about the development of intelligent software and hardware products for the Internet of Things. At the same time, you can also use this source code to commercialize your own products, shorten the research and development cycle, and quickly bring your products to the market. It comes with schematic diagrams, engineering source code, video tutorials, etc. It allows WiFi developers without relevant development experience to get started quickly. Implement your own wifi communication functional requirements. ](http://www.tlink.io cloud server platform (remote monitoring with other IoT cloud platforms can also be implemented as needed). You can use this source code to learn in depth about the development of IoT intelligent software and hardware products, and at the same time use this The source code can also realize the commercial use of your own products, shorten the research and development cycle, and quickly bring your products to the market. It comes with schematic diagrams, engineering source codes, video tutorials, etc. It allows WiFi developers without relevant development experience to get started quickly. Implement your own wifi communication function requirements.) **2****: Examples of usage scenarios: farms, indoors, etc.** The WIFI communication control board integrates a temperature and humidity sensor, a light sensor, and a relay switch signal to place the WiFi module In the vegetable greenhouse, you can use the mobile APP or the mobile WeChat public account to remotely check whether the current temperature, humidity, and lighting environment in the vegetable greenhouse meet the normal growth of vegetables. For example, when the humidity in the environment is low and dry, you can use The mobile phone remote control turns on the relay switch on the control panel, and the relay switch controls the small motor to automatically spray water on the vegetables. When the humidity meets the requirements, the water spray motor is automatically or manually turned off by remote mobile phone operation, realizing intelligent greenhouse vegetable planting management. The above are only individual use cases, and there are many similar requirements for intelligent management of the Internet of Things. **3: Introduction to hardware peripherals:** This module is designed using ESP8266 Wifi module. The peripheral functions are as shown in the figure below: ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10- 25/0D8FB696EF14464885965CEB77C0A681_986.bmp) **_Hardware part_** **This WIFI control board uses the ESP8266-12F module. In addition to the peripherals welded on the module, the rest of the ESP8266 expandable interfaces are pinned out. , to facilitate subsequent expansion of peripherals. ** **_ WIFI firmware part: _** **(1): Based on the Eclipse development platform, a complete set of C language routine source code, more than a dozen routines, covering common functions of ESP8266 core development. ** ** Commonly used **** mainly include: ** ** WIFI works in AP mode: ESP8266 communicates as Tcp Client client mode, and ESP8266 communicates as Tcp Server server mode. Realize the development of WIFI communication firmware in point-to-point AP mode** ** ****WIFI works in station mode (added to the router): ESP8266 acts as Tcp Client client mode communication, ESP8266 acts as Tcp Server server mode communication, ESP8266 acts as UDP Communication, as well as usage routines of 8266 general peripherals, etc. ** **(2): The IoT mobile phone cloud platform based on the Arduino development platform implements the engineering source code for temperature, humidity, lighting, and remote relay control, and integrates the MQTT protocol. ** **_ Mobile APP and WeChat public account_** ** Mobile APP and WeChat public account software support android and apple mobile phones and computer monitoring and control. ****Two: System Architecture Diagram** **![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/44C0CF01F50844FF81951A0E182B5C4E_620.bmp)** **Three: Principle Picture** **![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/3903B09223C345DDAFB1A20280BB026E_649.png)** **Four: PCB circuit board diagram and physical diagram** **![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/61E07C82DBA74812A3406901690819F1_172.png)** ![](http://club.szlcsc.com/upload/ postuploadimage/bigImage/2016-10-26/FFBA604DDB1A401F9B24205F77BDCB3E_658.bmp) ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/A417D7EE828F471AB20371F0956C4 2C7_752.png) ![](http: //club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/9D2ACCBA9B0F4E8E9333FDAAA9E1F318_511.bmp) ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/ 98C484522A564C6688058C5FB24B1368_354.bmp) ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/DDF05F89B892497A87D9A28DF7851555_32.png) ![](http ://club.szlcsc.com/upload/ postuploadimage/bigImage/2016-10-25/74430F3BCC004E4F9A83BEAA73128212_180.png) **Five: Description of the software part** ** Equipped with complete development environment information, source code, video tutorials, etc.** ![](http://club. szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/81A5D02C04634B51943B59E2D3994330_177.bmp) Eclipse platform project source code developed based on SDK: ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10 -25/6CB5BCC798E8436EA800BEC94308F356_467.bmp) **Supporting Arduino project source code:** This project source code can collect temperature and humidity, light intensity, remotely control relay switches, implements the MQTT protocol interface, and can connect to third parties [www.tlink.io]( http://www.tlink.io) cloud server platform. You can use this source code to learn more about the development of intelligent software and hardware products for the Internet of Things. At the same time, you can also use this source code to commercialize your own products, shorten the research and development cycle, and quickly bring your products to the market. ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/1A5DFE38C48D47D4BDCA69C56239D035_927.bmp) ** Mobile APP, WeChat, computer remote monitoring** This wifi development board supports MQTT protocol , supports three monitoring and control methods: mobile App, WeChat, and computer web page. The interface display of the three methods is unified, and remote monitoring and control can be achieved through any method **Six: Work Demonstration** The following is the actual monitoring interface on the mobile phone, with screenshots from the mobile phone: ![](http://club.szlcsc. com/upload/postuploadimage/bigImage/2016-10-25/9FBB03C9CB8440AFB796E1F6655CC517_129.bmp) 1: The monitoring interface implemented on the mobile phone of the IoT module is as follows. Therefore, the current temperature, current ambient humidity, and current light intensity can be displayed, and the mobile phone can realize remote switching. Control, you can control the electrical equipment in your home through switches. ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/8959422413F6495BBAB437542C3F6E5C_454.bmp) 2: You can view the temperature curve remotely![](http://club.szlcsc. com/upload/postuploadimage/bigImage/2016-10-25/10EDF9B183514EC9B0563891A675457F_646.bmp) 3: You can view the ambient humidity change curve![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10 -25/95BE7BFD962E4ACDA6FD28CC91B6C120_393.bmp) 4: You can view the light intensity change curve![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/80C0F50673944AC59CB20949BB6D137E_393.bmp ) 5: Can be remote Control the relay to turn on and off to realize remote control of home appliances![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/6AC8DA715E5B4968B7F7D9EE91023D5B_278.bmp) 6: Control Center![]( http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/D610883CF1DF4879AB2958FA6630EFD4_283.bmp) 7: You can add a trigger, and the trigger can choose WeChat, email or SMS. When the trigger condition is reached, a message will be sent to the mobile phone according to your choice (WeChat, email or SMS)![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10- 25/284313710EFC4EC78A8096C9E0B5B842_925.bmp) 8: If the added trigger is a temperature value alarm, when the temperature exceeds the set value, a WeChat message will be sent to the mobile phone, as shown below: ![](http://club. szlcsc.com/upload/postuploadimage/bigImage/2016-10-25/A884326F70E1433EA5EA2309283ED392_40.bmp) **Six: Summary** I have been engaged in embedded software and hardware development for nearly 10 years. From the schematic diagram of the board to the PCB design, it is still very smooth for a veteran. The PCB is a model created by Jiali Chuang , the first time I made ten pieces, and they were all manually welded into finished products. All the tests passed. Most of the components were purchased from the Jialichuang platform. For the software part, the workload was very heavy. I spent a lot of time studying the firmware development of ESP8266 in the early stage and took many detours. The main reason was that the chip was not long after it was launched, and many of the materials were not complete at the time. It was very painful to learn. After two months of intermittent learning, I am now familiar with the entire set of development. This wifi kit has just been developed. I am very grateful to Jialichuang for providing such a good PCB production and component mall platform, which provides convenience for our engineers to design products. The patch business provided by the platform has also been used by the company's prototypes, which has greatly improved efficiency. Many boards will be patched on the platform in the future. Seven: **_ Acknowledgments: _** **_ I am very grateful to Jiali Chuang Platform for hosting this event. I hope that this technical forum will slowly develop and expand and provide domestic engineers with a good platform for technical exchanges and mutual learning. _** ########################################**I am the dividing line **########################################## #### ###################################**I am the dividing line**##### ##################################### ** Based on this development board, another A set of esp8266 serial port WiFi transparent transmission firmware that works in station mode and AP mode respectively (this firmware has been commercially used by many companies and multiple products), **** is shown here: ** ** _ This version of the firmware Advantages: _** Based on 8266, this block implements a set of system-level serial port to WIFI perfect transparent transmission firmware. This firmware is independently developed, mainly to enable any device with a serial port to realize wireless networking function through the wifi module. The data packets received by the serial port of this firmware are sent to the wifi end as they are, and the data packets received by wifi are directly forwarded to the serial port end, realizing the true transparent transmission of serial port and wifi communication data packets, and being perfectly compatible with serial port communication-based For any hardware product, as long as the wifi module is connected to any product with a serial port, wireless communication can be easily achieved without modifying the previous communication protocol, so that old products can achieve wireless communication without any modification of the serial port communication protocol. The networking function greatly reduces R&D costs and quickly realizes the Internet of Things. *******************Working mode****************** **One: Module as station (module added to Router) ** ** The module as STA is the most commonly used networking method, consisting of a router AP and many STAs, as shown in the figure below. Its characteristic is that the AP is in the central position, and the mutual communication between STAs is completed through AP forwarding. ** ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/7020E80774C843FEBB18CB948E098268_649.bmp) ** In this mode, data transparent transmission between the serial port and the wifi end is realized, as demonstrated below: * * ** ![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/315E804CD74E4F37B1E8F4E84A3AF1D1_386.bmp)** **Two: The module works as AP mode (mobile computer and wifi direct Connect) ** ** The module works as AP mode. Mobile phones/PADs/computers can quickly establish connections with the module. Through HTTP, you can log in to the built-in web page of the module to set parameters** **![](http://club.szlcsc .com/upload/postuploadimage/bigImage/2016-10-26/775062C16C35405992617F0B5015101D_443.bmp)** ** In this mode, the HTTP communication protocol is integrated internally and the WEB web page is embedded. You can quickly and easily view and set the module through the browser. Related configuration parameters** **![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/47C8749D04E6478595919E64F425105E_969.bmp)** ** Administrator login interface, you need to enter the administrator Account and password. Only after entering can you modify the configuration parameters related to the module** **![](http://club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/1DB1EEB0EBF34BC4B1F2551D1B6C5F39_904.bmp)** # #### **For more project details, please see the link: **[http://club.szlcsc.com/article/details\_654\_1.html](http://club.szlcsc.com/article/details_654_1 .html) ##### **This project is owned by Lichuang Community "**Escort Mavericks**"**//club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/1DB1EEB0EBF34BC4B1F2551D1B6C5F39_904.bmp)** ##### **For more project details, please see the link: **[http://club.szlcsc .com/article/details\_654\_1.html](http://club.szlcsc.com/article/details_654_1.html) ##### **This project belongs to Lichuang Community "**Escort Mavericks* *"all**//club.szlcsc.com/upload/postuploadimage/bigImage/2016-10-26/1DB1EEB0EBF34BC4B1F2551D1B6C5F39_904.bmp)** ##### **For more project details, please see the link: **[http://club.szlcsc .com/article/details\_654\_1.html](http://club.szlcsc.com/article/details_654_1.html) ##### **This project belongs to Lichuang Community "**Escort Mavericks* *"all**
参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-22 17:08:02

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号