"Speaking of esp8266, who knows? Who doesn't know? The hottest WiFi module in 2016 is undoubtedly esp8266.
How hot is esp8266 in 2016 and esp32 in 2017. To put it bluntly, today I put my body here to attract hatred. Esp32 is hard to buy even if you spend money, but I got an esp32 in hand_ Core_ board_ V2 is the standard official product of Lexin. All envy, jealousy and hatred are allowed here!!!
ESP32_ Core_ board_ V2
ESP32_ Core_ board_ V2 includes a core esp-wroom-32 module and an extended functional backplane. The core module is a single-chip SOC module based on Lexin esp32 WiFi / dual-mode Bluetooth. This module has undergone a lot of verification tests. Therefore, if you are interested in this esp32 SOC chip, it is recommended to purchase ready-made modules for development first; The extended functional backplane is mainly used to expand the IO pin of the core module esp-wroom-32, which is convenient for engineers to develop and debug. In addition, the backplane is also responsible for USB to serial port and supplying power to WiFi module.
Let's take a look at some onboard resources on this small board. The only microusb interface on the board can be used for module power supply. USB to serial port function. The board has two mechanical keys. It should be noted that the reset key marked en and the download key marked boot.
On the back of the development board, there are no devices. Two rows of pins lead out most of the IO ports of the esp32 module, which is convenient for engineers to connect peripherals according to their own needs.
ESP-WROOM-32
Esp-wroom-32 module is based on Lexin esp32 WiFi / dual-mode Bluetooth SOC chip. It is a general WiFi BT / ble MCU module with very powerful functions, not to mention its uses: Wi Fi supports a wide range of communication connections and direct Internet connection through routers; Bluetooth allows users to connect mobile phones or broadcast ble beacon to facilitate signal detection.
The detailed specification parameters of esp-wroom-32 module are as follows:
Internet of things development board recommendations:
W7500 evaluation board A single-chip solution based on Cortex-M0 kernel, which is suitable for various embedded application platforms, especially the Internet of things.
Esquilo air development board A fully functional IOT development system based on cortex-m4f core, with the function of creating independent Internet devices, simplifies the development process of the Internet of things.
Udoo quad is an Internet of things solution for multi-functional development platforms such as Android, Linux, Arduino and Google adk2012.
ESP32
Since there is no hot-air gun on hand, the devices inside the shield of esp-wroom-32 module will not be disassembled for everyone to see. In fact, there is nothing else inside. It is mainly Lexin's esp32 chip (pin diagram is as follows) and a 4MB SPI flash, which supports the storage of users' application programs.
Esp32 is a single-chip solution integrating 2.4 GHz Wi Fi and Bluetooth dual-mode. It adopts the ultra-low power consumption 40 nm process of TSMC and has the best power consumption performance, RF performance, stability, universality and reliability. Its internal hardware system block diagram is as follows:
It can be seen that esp32 not only integrates 2.4 GHz Wi Fi and Bluetooth dual-mode, xtensar 32-bit lx6 dual-core processor, but also includes antenna switch, RF balun, power amplifier, low-noise amplifier, filter, power management module and advanced self calibration circuit, which can greatly reduce the area of PCB design. In particular, the self calibration circuit of esp32 realizes dynamic automatic adjustment to eliminate the defects of external circuits and better adapt to the changes of external environment. In other words, the mass production of esp32 may not need the support of expensive special Wi Fi test equipment, and the development cost is really low. For more detailed specification parameters of esp32 SOC, please refer to the table below.
(click the picture to enlarge)
After understanding the basic situation of esp32, you can actually experience it by electricity.
Internet of things development board recommendations:
W7500 evaluation board A single-chip solution based on Cortex-M0 kernel, which is suitable for various embedded application platforms, especially the Internet of things.
Esquilo air development board A fully functional IOT development system based on cortex-m4f core, with the function of creating independent Internet devices, simplifies the development process of the Internet of things.
Udoo quad is an Internet of things solution for multi-functional development platforms such as Android, Linux, Arduino and Google adk2012.
ESP32_ Core_ board_ V2 power on
Connect the computer via a microusb cable
Looking at the development board alone, you can't see anything, and you don't know what the built-in software is. You can see the uncompleted serial port driver through the device manager of the PC section
Install CP2102 driver, search Baidu online and download it directly
After installation, you can see the information printed by the serial port through the serial port. You can basically understand the AP mode of running WiFi on the development board.
You can successfully connect to this hotspot with your mobile phone.
The serial port also prints the log on the relevant connection
In addition, after checking the use documents of esp32, we also found some other operations of this board, such as long pressing the boot button of the board and pressing the en reset button at the same time. The development board enters the download mode. The printing information is as follows.
After knowing the basic situation of the factory firmware of the board, let's take a look at the development tool and how to develop esp32_ Core_ board_ V2 board.
Internet of things development board recommendations:
W7500 evaluation board A single-chip solution based on Cortex-M0 kernel, which is suitable for various embedded application platforms, especially the Internet of things.
Esquilo air development board A fully functional IOT development system based on cortex-m4f core, with the function of creating independent Internet devices, simplifies the development process of the Internet of things.
Udoo quad is an Internet of things solution for multi-functional development platforms such as Android, Linux, Arduino and Google adk2012.
development environment
Lexin officially doesn't have a special ide tool. At this time, you need both a compilation environment and IDE tools. Do you feel busy? If engineers have their own third-party ide tools that they are good at using, they should use which one they like. However, for beginners or beginners who are not too familiar with how to develop, it is recommended to use the integrated development environment of Anxin. The reason is that it is relatively simple and easy to use, and it is developed on the windows platform.
First, you need to download three tools, as shown in the figure below, cygwin.exe, eclipse and esp_ IDE。
Cygwin is a UNIX like simulation environment running on Windows platform. It is very useful for learning UNIX / Linux operating environment, or porting applications from UNIX to windows, or carrying out some special development work, especially embedded system development on windows using GNU tool set. Eclipse, yes, is a third-party ide tool commonly used by everyone. If some engineers are using it themselves, they don't need it directly; And ESP_ IDE, an environment configuration tool, is used to select the path of the corresponding program.
After the installation of the three software, we first open cygwin.exe. It is better not to install the three software in the Chinese directory. Download the SDK package of Lexin to the project folder in the local computer through GIT.
After downloading the SDK package, we can use esp_ Ide.exe configuration path. These three paths are modified according to the actual installation address.
When the configuration is complete, open the elipse ide tool.
Import the SDK package you just downloaded.
Check existing code as makefile project.
Internet of things development board recommendations:
W7500 evaluation board A single-chip solution based on Cortex-M0 kernel, which is suitable for various embedded application platforms, especially the Internet of things.
Esquilo air development board A fully functional IOT development system based on cortex-m4f core, with the function of creating independent Internet devices, simplifies the development process of the Internet of things.
Udoo quad is an Internet of things solution for multi-functional development platforms such as Android, Linux, Arduino and Google adk2012.
Create a new project name and select the corresponding locale. Select Cygwin GCC
Click Finish to complete the import. The project list is as follows:
The default app code is a station mode of WiFi. At this time, to make esp32 connect to the router correctly, you need to configure SSID and password, as shown in the figure below.
After making simple changes to the code, we also need to set the location of your whole project build, because make needs to be started from the app directory.
Right click ESP IDF project → properties, and click C / C + + build. The modification is shown in the figure below
At this point, we have the compilation foundation, and then we need to configure the make menuconfig and make flash instructions 。
Right click the ESP IDF project, click make targets, and select Create.
Internet of things development board recommendations:
W7500 evaluation board A single-chip solution based on Cortex-M0 kernel, which is suitable for various embedded application platforms, especially the Internet of things.
Esquilo air development board A fully functional IOT development system based on cortex-m4f core, with the function of creating independent Internet devices, simplifies the development process of the Internet of things.
Udoo quad is an Internet of things solution for multi-functional development platforms such as Android, Linux, Arduino and Google adk2012.
Make menuconfig configuration
Make flash configuration
Click OK to save, click your ESP IDF project, and then the shortcut keys Shift + F9 will pop up the two newly created targets
Select the target to be compiled and click build to download and configure IDF in eclipse. For the first time, we need to configure menuconfig. If you choose the elipse ide to download, most of them choose the default
The downloaded serial port needs to be set according to the USB to serial port number of eps32 on your computer
After saving, we can see the correct compilation output of elipse's control window.
To download, click the ESP IDF project, press the shortcut key shift + F9, and select download.
Of course, in addition to downloading through the elipse ide tool, Lexin has also launched an official download tool, which is equally feasible. Here you need to configure the downloaded files, as follows
Bootloader.bin Burn in 0x1000
User app Burn at 0x10000
partitions_ singleapp.bin Burn in 0x4000
After downloading, reset the board. We can see the printout of the serial port and connect it to the newly configured router correctly.
You can also see the connected esp32 WiFi module in the management background of the router
And we can connect to esp32 WiFi through the PC end in the router LAN.
In addition to the WiFi AP / sta mode, the SDK provided by Lexin also includes various basic routines, as follows
These routines are believed to have been contacted by engineers who have played esp8266. Of course, esp32 also has a special place, that is, Bluetooth. Don't forget that an important improvement of esp32 over esp8266 is the integration of dual-mode Bluetooth. Unfortunately, I see a ble routine in the SDK. There are still some problems. Anyway, the author hasn't debugged it for the time being, The first person to eat crabs will always encounter this kind of problem. Surprise. Take your time and update it when there are new developments in the follow-up.
Summary
If 2016 shows you the great power of esp8266 and dominates the market every second, I can't imagine that in 2017, if you still only need WiFi function, esp8266 is still your first choice to measure the cost when the scheme is feasible. If you need WiFi / Bluetooth function, esp32 is the best choice for you. Don't forget, In addition to the WiFi / dual-mode Bluetooth mentioned in the article, esp32 also integrates a powerful Tensilica lx6 dual-core processor, the maximum dominant frequency of 240mhz, and 520kb SRAM. Even if it handles some complex tasks, it is no longer necessary. Besides, the most powerful weapon of Lexin esp32 is still powerful integration, coupled with the price that can shake the industry. Well, just say so much, Why not say the price? Because now it's basically hard to buy money. Partners who want to try and so on. Just enjoy the little partners you've got. You've been ahead of most people. Finally, I want to talk about his st, Ti, NXP, microchip, etc. in China, when Lexin esp8266 and esp32 modules come out, who will compete!!!
Original statement: This article is original by Aiban. Reprint is declined!
Internet of things development board recommendations:
W7500 evaluation board A single-chip solution based on Cortex-M0 kernel, which is suitable for various embedded application platforms, especially the Internet of things.
Esquilo air development board A fully functional IOT development system based on cortex-m4f core, with the function of creating independent Internet devices, simplifies the development process of the Internet of things.
Udoo quad is an Internet of things solution for multi-functional development platforms such as Android, Linux, Arduino and Google adk2012“
Our other product: