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

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

Arduino and Gizwits reached a strategic cooperation to jointly serve IoT developers
Beijing, September 20, 2016 /PRNewswire/ – On September 19, Arduino, a world-renowned open source hardware www.gizwits.com) officially reached an in-depth strategic cooperation. The two parties announced that they will carry out in-depth cooperation in the field of Internet of Things development and jointly provide tools, products and technical services for third-party developers. Arduino will provide Gizwits IoT hardware and related technical materials based on Arduino, and Gizwits will provide Arduino with self-service development platform tools and cloud services based on "Gizwits Cloud", as well as corresponding technical support and operation and maintenance guarantee.

The two parties have initially cooperated as early as 2014. The second-generation open source kit Gokit2.0 launched by Gizwits is already compatible with the Arduino Uno development board, and has widely served Arduino developers. With the growing demand for IoT development technology, Arduino has successively launched a series of new and upgraded products with built-in WiFi modules, such as Uno WiFi, Arduino Yun, Arduino Tian, ​​Arduino Primo, and Star OTTO. The in-depth cooperation between the two parties this time is based on the common goal of helping IoT development enthusiasts quickly enter into IoT development.

The two parties will start with the Arduino Uno WiFi, and gradually realize the cooperation of the whole line of products. Gizwits will provide Arduino with free development tools and cloud services needed by its developers. Developers can not only define the function data points of devices developed through Arduino through the Gizwits self-service development platform, but also realize the statistical analysis of Arduino devices’ networking data. Intelligent functions such as upgrade and remote control can also make full use of the full development capabilities of the Gizwits Cloud 4.0 platform such as the Gizwits Cloud 4.0 rule engine to configure device operating logic, develop cloud applications, and develop APPs. The two parties will jointly provide developers with one-stop IoT development tools and technical services.

Arduino focuses on the development of open source hardware, while Gizwits focuses on the cloud service development of intelligent hardware. Cooperation with Gizwits can expand the extension of Arduino at the product application level, allowing users to enjoy more data-based application services. Chen Yurong, managing director of Arduino China, said: "The Internet of Things will be the standard configuration of all smart hardware in the future. Arduino has been exploring how to provide an easy-to-use yet flexible and powerful IoT solution, so that makers and developers can easily integrate Connect your own works to the Internet and enjoy more possibilities brought by big data. This strategic cooperation between Arduino and Gizwits will combine their respective advantages and uphold the spirit of open source, so that this goal can be quickly realized.”

The cooperation between Gizwits and Arduino shows that the two teams are accelerating their strategic deployment in IoT. In this regard, Huang Zhuo, CEO of Gizwits Cloud, said that the next few years will be a period of rapid development in the field of IoT, and multi-party cooperation can promote the creation of an ecosystem of IoT developers. Resources and technological advantages, the conclusion of this cooperation will help both parties jointly develop IoT developers in the future, with mutual benefit and synergy.

insert image description here
Cloud Services
Cloud services are the growth, usage, and interaction patterns of Internet-based related services, usually involving the provision of dynamically scalable and often virtualized resources over the Internet. Cloud is a metaphor for network, internet. In the past, the cloud was often used to represent the telecommunications network in the figure, and later it was also used to represent the abstraction of the Internet and the underlying infrastructure. Cloud services refer to obtaining required services through the network in an on-demand and easy-to-expand manner. Such services can be IT and software, Internet related, or other services. It means that computing power can also be circulated as a commodity through the Internet. By having computation distributed across a large number of distributed computers rather than local computers or remote servers, enterprise data centers will behave more like the Internet. This enables enterprises to switch resources to required applications and access computers and storage systems as needed. It's like changing from the ancient single generator mode to the centralized power supply mode of the power plant. It means that computing power can also be circulated as a commodity, just like gas, water and electricity, easy to access and low cost. The biggest difference is that it is transmitted over the Internet.

insert image description here

Advantages and disadvantages of cloud services

Advantages
One of the advantages of cloud service development is economies of scale. Using the infrastructure provided by cloud computing providers, developers can deliver better, cheaper and more reliable applications than those developed within a single enterprise. Applications can utilize the full resources of the cloud if needed without requiring companies to invest in similar physical resources. When it comes to cost, since cloud services follow a one-to-many model, costs are greatly reduced compared to individual desktop program deployments. Cloud applications are typically "rented," priced on a per-user basis, rather than purchasing or licensing a physical copy of a software program (one per desktop). It's more of a subscription model than an asset purchase (and consequent depreciation) model, meaning less upfront investment and a more predictable stream of monthly business expenses. Departments like cloud applications because all administrative activities are managed through a central location rather than from individual sites or workstations. This enables employees to remotely access applications via the Web. Other benefits include quickly provisioning users with needed software (known as "rapid provisioning"), and adding more computing resources when more users overload the system (autoscaling). When you need more storage or bandwidth, companies just add another virtual server from the cloud. This is much easier than buying, installing and configuring a new server in your own data center. It is easier for developers to upgrade a cloud application than traditional desktop software. Application features can be updated quickly and smoothly by only upgrading the centralized application, rather than manually upgrading individual applications on every desktop in the organization. With cloud services, a change can affect every user running the application, which greatly reduces the workload of developers.

Shortcomings
Perhaps the biggest perceived shortcoming of cloud development is the question that plagues all web-based applications: Is it secure? Web-based applications have long been considered a potential security risk. For this reason, many companies prefer to keep applications, data and IT operations under their control. That said, utilizing cloud-hosted applications and storage can result in data loss in rare cases. Although arguably, a large cloud hosting company probably has better data security and backup tools than the average enterprise. In any case, however, even perceived security threats from off-site hosting of critical data and services may deter some companies from doing so. Another potential disadvantage is the event that the cloud computing host goes offline. Although most companies say this is impossible, it did happen, and Amazon's EC2 business experienced a massive service outage on February 15, 2008, wiping some customer application data. (The outage was caused by a software deployment that mistakenly terminated an unknown number of user instances.) For customers who demand a reliable and secure platform, platform failure and data disappearing can feel like a rude wake-up call. Taking this a step further, if a company relies on a third-party cloud platform to house data without other physical backups, that data could be at risk.

insert image description here

The Internet of Things
(The Internet of Things, referred to as IOT) refers to the real-time collection of any information that needs to be monitored, Connected and interacted objects or processes, collect various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, location, etc., and realize the connection between objects and objects, and between objects and people through various possible network accesses. Ubiquitous connection enables intelligent perception, identification and management of items and processes. The Internet of Things is an information carrier based on the Internet, traditional telecommunication networks, etc. It allows all ordinary physical objects that can be independently addressed to form an interconnected network.

The concept of the Internet of Things first appeared in Bill Gates' 1995 book "The Road to the Future". In "The Road to the Future", Bill Gates already mentioned the concept of the Internet of Things, but it was limited by wireless networks, hardware and sensing devices at that time. The development has not attracted the attention of the world. In 1998, the Massachusetts Institute of Technology creatively proposed the idea of ​​the "Internet of Things", which was then called the EPC system. In 1999, Auto-ID of the United States first proposed the concept of "Internet of Things", which was mainly based on item coding, RFID technology and the Internet. In the past in China, the Internet of Things was called the sensor network. The Chinese Academy of Sciences started the research on sensor networks as early as 1999, and has achieved some scientific research results and established some applicable sensor networks. In the same year, the International Conference on Mobile Computing and Networks held in the United States proposed that "the sensor network is another development opportunity for mankind in the next century." In 2003, the US "Technology Review" proposed that sensor network technology will be the top ten technologies that will change people's lives in the future. On November 17, 2005, at the World Summit on the Information Society (WSIS) held in Tunis, the International Telecommunication Union (ITU) released the "ITU Internet Report 2005: Internet of Things", formally proposing the concept of "Internet of Things". The report pointed out that the ubiquitous "Internet of Things" communication era is coming, and all objects in the world, from tires to toothbrushes, from houses to paper towels, can be actively exchanged through the Internet. Radio frequency identification technology (RFID), sensor technology, nanotechnology, and intelligent embedded technology will be more widely used.

The "Internet of Everything Connected" is an extended and expanded network based on the Internet. It is a huge network formed by combining various information sensing devices with the Internet. interconnection. The Internet of Things is an important part of the new generation of information technology. The IT industry is also called: Pan-Internet, which means that everything is connected, and everything is connected. Therefore, "the Internet of Things is the Internet of things connected". This has two meanings: first, the core and foundation of the Internet of Things is still the Internet, which is an extended and expanded network based on the Internet; exchange and communication. Therefore, the definition of the Internet of Things is to connect any item to the Internet according to the agreed agreement through information sensing equipment such as radio frequency identification, infrared sensors, global positioning systems, and laser scanners, for information exchange and communication, so as to realize A network for intelligent identification, positioning, tracking, monitoring and management of items.

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

The core processor ESP8266EX of this hardware platform integrates the industry-leading Tensilica L106 ultra-low power consumption 32-bit micro MCU in a smaller package, with a 16-bit simplified mode, the main frequency supports 80 MHz and 160 MHz, and supports RTOS. Integrated Wi-Fi MAC/BB/RF/PA/LNA, onboard antenna. This module supports standard IEEE802.11 b/g/n protocol and complete TCP/IP protocol stack. Users can use this module to add networking capabilities to existing devices, or to build a stand-alone network controller. It is a development board developed by Anxinke based on ESP8266. It is equipped with a three-color RGB LED, a photoresistor, a 3.3V LDO power module, and a touch button.

insert image description here

Module electrical schematic diagram

insert image description here

Function of each pin

insert image description here
Factory firmware
Do not burn the firmware of the Gizwits development board that you have got. The factory firmware is demo firmware, which is not open source and does not provide re-download. After burning other firmware, it cannot be burned back. Therefore, please follow the demo of the factory firmware tutorial first. After completing the operation, you can refer to the Gizwits Firmware Tutorial, and then flash the AT firmware or the Gizwits Open Source Firmware provided separately.
insert image description here
insert image description here

insert image description here
insert image description here

Register developer account
Gizwits developer account is used for product access, device management, OTA service, MCU development and other functions.
Registration link: http://dev.gizwits.com/zh-cn/developer/

insert image description here

After the registration of the new product
is completed, log in to the background of the Gizwits Developer Center, click the "Create New Product" menu in the upper right corner of the developer center background, create a new product named "eagler8" on the jump page, and select "Wi-Fi /Mobile Network Solution" to access and complete product creation.

insert image description here

Create data points
Data points are the abstraction of the functions of equipment products, which are used to describe product functions and their parameters. After the data point is created, the data format of the communication between the device and the cloud can be determined, and the device and Gizwits Cloud can mutually identify the interconnection data between the device and the Gizwits Cloud.

insert image description here
insert image description here

Guess you like

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