Espressif Systems EK057 Wi-Fi ma Bluetooth Initaneti o Mea Module

E uiga i le Pepa Lenei
O lenei tusi fa'aoga o lo'o fa'aalia ai le auala e amata ai le EK057 module.
Fa'amatalaga Fa'amatalaga
Fa'amolemole fa'afeso'ota'i i taimi uma le fa'amatalaga fou i luga https://www.espressif.com/en/support/download/documents.
Toe Iloilo Tala'aga
Mo tala fa'asolopito o lenei pepa, fa'amolemole tagai ile itulau mulimuli.
Fa'asilasilaga o Suiga o Fa'amaumauga
E tuʻuina atu e Espressif faʻamatalaga imeli e faʻafou ai tagata faʻatau i suiga i faʻamaumauga faʻapitoa. Fa'amolemole lesitala ile www.espressif.com/en/subscribe. Manatua e te manaʻomia le faʻafouina o lau saofaga e maua ai faʻamatalaga o oloa fou e te le o lesitala i le taimi nei.
Tusipasi
La'u mai tusi pasi mo oloa Espressif mai www.espressif.com/en/certificates.
Fa'asilasilaga ma Puletaofia Fa'asilasilaga
Fa'amatalaga i lenei pepa, e aofia ai URL fa'asinomaga, e mafai ona suia e aunoa ma se fa'aaliga. O LENEI FAAMAOGA E TUUINA E PEI E LEAI SE FAAMANUIAGA, E AOFIA AI SO'O SE FA'AALIGA O LE FA'AFO'A'I, LE'I SULIAGA, LAVA MO SO'O se fa'amoemoega fa'apitoa, po'o so'o se fa'amaoniga e tula'i mai i so'o se fa'amoemoega, fa'apitoa.AMPLE.
O noataga uma, e aofia ai noataga mo le solia o soʻo se aia tatau, e faʻatatau i le faʻaogaina o faʻamatalaga i totonu o lenei pepa faʻamaonia e le mafai. E leai ni laisene fa'aalia pe fa'auigaina, e ala i le estoppel po'o se isi mea, i so'o se aia tatau tau le atamai o lo'o tu'uina atu iinei. O le fa'ailoga a le Sui Usufono o le Wi-Fi Alliance o se fa'ailoga fa'ailoga a le Wi-Fi Alliance. Ole logo Bluetooth ole fa'ailoga fa'amaufa'ailoga ole Bluetooth SIG. O igoa tau fefa'ataua'iga uma, fa'ailoga tau fefa'ataua'iga ma fa'ailoga fa'amaufa'ailoga o lo'o ta'ua i totonu o lenei pepa o mea totino a latou tagata, ma o lo'o fa'ailoaina. Puletaofia © 2020 Espressif Systems (Shanghai) Co., Ltd. Ua taofia aia tatau uma.
Ua umaview
Ua uma le Moduleview
EK057 o se mamana, lautele Wi-Fi+Bluetooth®+Bluetooth® LE MCU module lea e taulaʻi i le tele o ituaiga o talosaga, e amata mai i fesoʻotaʻiga puʻe eletise maualalo i galuega sili ona faigata, e pei o le faʻaogaina o leo, faʻafefe musika ma le MP3 fa'avasegaina.
Laulau 1: EK057 Fa'amatalaga
| Vaega | Aitema | Fa'amatalaga |
|
Wi-Fi |
Polokalama | 802.11 b/g/n (802.11n e oo i le 150 Mbps) |
| A-MPDU ma A-MSDU faʻatasi ma 0.4 µs leoleo
lagolago vaeluaga |
||
| Fa'asologa o taimi | 2412~2484MHz | |
|
Bluetooth® |
Polokalama | Protocols v4.2 BR/EDR ma le Bluetooth® LE fa'apitoa-
faʻaiuga |
| Leitio | Vasega-1, vasega-2 ma le vasega-3 transmitter | |
| AFH | ||
| Leo | CVSD ma SBC | |
|
Meafaigaluega |
Fa'aoga fa'aoga | UART, SPI, I2C, I2S, GPIO, ADC |
| tioata tu'ufa'atasi | 40 MHz tioata | |
| SPI fa'atasi | 8 MB | |
| Faʻagaioiga voltage/Sapalai eletise | 3.0 V ~ 3.6 V | |
| Fa'agaoioi le taimi nei | Averesi: 80 mA | |
| La'ititi la'ititi o lo'o fa'aolaina e le mana
sapalai |
500 mA | |
| Fautuaina le fa'aogaina o le vevela-
tulaga lautele |
–40 °C ~ +85 °C | |
| Tulaga maaleale o le susu (MSL) | Laasaga 3 |
Fa'amatalaga Pin
O le module e 14 pine ma 7 su'ega togi. Va'ai fa'auigaina pine ile Laulau 2.
| Igoa | Leai. | Ituaiga | Galuega |
| IO32 | A1 | I/O | GPIO32, XTAL_32K_P (32.768 kHz fa'aoga oscillator tioata), ADC1_CH4,
TOUCH9, RTC_GPIO9 |
| IO16 | A2 | I/O | GPIO16, HS1_DATA4, U2RXD, EMAC_CLK_OUT |
| IO17 | A3 | I/O | GPIO17, HS1_DATA5, U2TXD, EMAC_CLK_OUT_180 |
| IO5 | A4 | I/O | GPIO5, VSPICS0, HS1_DATA6, EMAC_RX_CLK |
| 3V3 | A5 | P | Paoa sapalai |
| GND | A6 | P | eleele |
| Igoa | Leai. | Ituaiga | Galuega |
| GND | A7 | P | eleele |
| GND | A8 | P | eleele |
| GND | A9 | P | eleele |
| IO18 | A10 | I/O | GPIO18, VSPICLK, HS1_DATA7 |
| IO23 | A11 | I/O | GPIO23, VSPID, HS1_STROBE |
| IO19 | A12 | I/O | GPIO19, VSPIQ, U0CTS, EMAC_TXD0 |
| IO33 | A13 | I/O | GPIO33, XTAL_32K_N (32.768 kHz oscillator tioata),
ADC1_CH5, TOUCH8, RTC_GPIO8 |
|
EN |
A14 |
I |
Maualuluga: I luga; mafai ai le va'a Maulalo: Pepe; ua pe le pu
Manatua: Aua le tuua le pine e opeopea. |
| IO14 | TP22 | I/O | GPIO14, ADC2_CH6, TOUCH6, RTC_GPIO16, MTMS, HSPICLK,
HS2_CLK, SD_CLK, EMAC_TXD2 |
| IO15 | TP21 | I/O | GPIO15, ADC2_CH3, TOUCH3, MTDO, HSPICS0, RTC_GPIO13,
HS2_CMD, SD_CMD, EMAC_RXD3 |
| IO13 | TP18 | I/O | GPIO13, ADC2_CH4, TOUCH4, RTC_GPIO14, MTCK, HSPID,
HS2_DATA3, SD_DATA3, EMAC_RX_ER |
| IO12 | TP17 | I/O | GPIO12, ADC2_CH5, TOUCH5, RTC_GPIO15, MTDI, HSPIQ,
HS2_DATA2, SD_DATA2, EMAC_TXD3 |
| IO0 | TP19 | I/O | GPIO0, ADC2_CH1, TOUCH1, RTC_GPIO11, CLK_OUT1,
EMAC_TX_CLK |
| RXD | TP16 | I/O | GPIO3, U0RXD, CLK_OUT2 |
| TXD | TP20 | I/O | GPIO1, U0TXD, CLK_OUT3, EMAC_RXD2 |
Amata ile EK057
Mea e te Manaomia
Ina ia atiaʻe talosaga mo le EK057 module e te manaʻomia:
- 1 x EK057 module
- 1 x Espressif RF su'ega laupapa
- 1 x USB-i-Serial laupapa
- 1 x Laiti-USB uaea
- 1 x PC faʻaogaina Linux
I totonu o lenei taʻiala faʻaoga, matou te faʻaaogaina le Linux operating system e pei o se example. Mo nisi fa'amatalaga e uiga i le fa'atulagaina o Windows ma macOS, fa'amolemole va'ai ile ESP-IDF Polokalama Ta'iala.
So'oga Meafaigaluega
- Faʻapipiʻi le module EK057 i le laupapa suʻega RF e pei ona faʻaalia i le Ata 1.

- Faʻafesoʻotaʻi le laupapa suʻega RF i le USB-to-Serial board e ala i le TXD, RXD, ma le GND.
- Faʻafesoʻotaʻi le USB-i-Serial board i le PC.
- Fa'afeso'ota'i le laupapa su'esu'e RF i le PC po'o se mea fa'apipi'i eletise e mafai ai ona maua le eletise 5 V, e ala i le Micro-USB cable.
- A'o la'uina i lalo, fa'afeso'ota'i le IO0 ile GND e ala ile osooso. Ona, ki "ON" le laupapa su'ega.
- La'u le firmware ile flash. Mo fa'amatalaga, va'ai vaega o lo'o i lalo.
- A maeʻa ona sii mai, aveese le osooso ile IO0 ma le GND.
- Toe fa'aola le laupapa su'ega RF. EK057 o le a sui i le faiga galue. O le pu o le a faitau polokalame mai le moli i le amataga.
Fa'aaliga:
O le IO0 e maualuga le fa'alotoifale. Afai ua seti le IO0 e toso i luga, ua filifilia le faiga Boot. Afai o le pine lea e toso i lalo po'o le fa'afefete'e, ua filifilia le ala o le Download. Mo nisi fa'amatalaga ile EK057, fa'amolemole va'ai ile Pepa Fa'amaumauga EK057.
Seti Atina'e Siosiomaga
O le Espressif IoT Development Framework (ESP-IDF mo le pupuu) o se faʻavae mo le atinaʻeina o talosaga e faʻavae i luga ole ESP32 ESP32. E mafai e tagata fa'aoga ona atia'e tusi talosaga ma le ESPXNUMX ile Windows/Linux/macOS fa'avae ile ESP-IDF. O iinei matou te ave ai le Linux operating system e pei o se example.
Faʻatulaga mea e manaʻomia
Ina ia tuufaatasia ma le ESP-IDF e te manaʻomia le mauaina o afifi nei:
- CentOS 7:
sudo yum install git wget flex bison gperf python cmake ninja−build ccache dfu−util - Ubuntu ma Debian (e tasi le poloaiga e vaeluaina i laina e lua):
sudo apt−mau fa'apipi'i git wget flex bison gperf python python−pip python−setuptools cmake ninja −fausia ccache libffi −dev libssl −dev dfu−util - Ava:
sudo pacman −S −−mana'omia gcc git fai flex bison gperf python−pip cmake ninja ccache dfu−util - Fa'aaliga:
- E fa'aogaina e lenei ta'iala le lisi ~/esp i luga o Linux e fai ma faila fa'apipi'i mo le ESP-IDF.
- Ia manatua e le lagolagoina e le ESP-IDF avanoa i ala.
Maua le ESP-IDF
Mo le fausiaina o talosaga mo le EK057 module, e te manaʻomia le faletusi faakomepiuta na saunia e Espressif i le faleoloa ESP-IDF.
Ina ia maua le ESP-IDF, fai se lisi faʻapipiʻi (~ / esp) e sii mai ai le ESP-IDF ma faʻapipiʻi le faleoloa ma le 'git clone':
- mkdir −p ~/esp
- cd ~/esp
- git clone −−recursive https://github.com/espressif/esp−idf. git
ESP-IDF o le a la'u mai i totonu ~/esp/esp-idf. Fa'afeso'ota'i Fa'aliliuga ESP-IDF mo fa'amatalaga po'o fea le fa'aliliuga ESP-IDF e fa'aoga i se tulaga.
Seti Meafaigaluega
E ese mai le ESP-IDF, e te manaʻomia foʻi le faʻapipiʻiina o meafaigaluega e faʻaaogaina e le ESP-IDF, e pei o le compiler, debugger, Python packages, ma isi. ESP-IDF e tuʻuina atu se faʻamatalaga e igoa 'install.sh' e fesoasoani i le setiina o meafaigaluega. i le tasi alu.
cd ~/esp/esp−idf
Seti Su'esu'ega Si'osi'omaga
O meafaigaluega faʻapipiʻi e leʻi faʻaopoopoina i le PATH environment variable. Ina ia faʻaaogaina meafaigaluega mai le laina faʻatonu, e tatau ona setiina nisi o fesuiaiga o le siosiomaga. ESP-IDF o lo'o tu'uina atu se isi fa'amatalaga 'export.sh' e faia ai lena mea. I le laina o loʻo e faʻaogaina ai le ESP-IDF, tamoe: faʻapipiʻi .sh. $HOME/esp/esp−idf/export.sh
O lea ua saunia mea uma, e mafai ona e fausia lau galuega muamua i luga o le module EK057.
Fausia Lau Poloketi Muamua
Amata se Poloketi
O lea ua e sauni e saunia lau talosaga mo le EK057 module. E mafai ona e amata ile galuega amata/hello_world mai le examples directory i le ESP-IDF.
Kopi le amataga/hello_world ile ~/esp directory:
cd ~/esp
cp −r $IDF_PATH/examples/get−started/hello_world .
O lo'o i ai le tele o fa'atasiample galuega faatino i le examples directory i le ESP-IDF. E mafai ona e kopiina soʻo se poloketi i le auala lava e tasi e pei ona tuʻuina atu i luga ma faʻatautaia. E mafai foi ona fausia examples in-place, e aunoa ma le kopiina muamua.
Fesoʻotaʻi lau masini
Faʻafesoʻotaʻi nei lau module EK057 i le komepiuta ma siaki i lalo o le a le telefoni faʻasologa o loʻo iloa ai le module. Se-rial ports i Linux amata ile '/dev/tty' io latou igoa. Fa'aauau le fa'atonuga i lalo fa'alua fa'alua, muamua ma le laupapa e tatala, ona fa'apipi'i lea.
ls /dev/tty*
Fa'aaliga:
Taofi le igoa o le taulaga aua e te manaʻomia ile isi laasaga.
Fa'atonu
Su'e i lau 'hello_world' directory mai le Laasaga 2.4.1. Amata se Poloketi, seti le ESP32 chip e fai ma faʻamoemoe ma faʻatautaia le faʻaogaina o le faʻaogaina o le 'menu config'.
- cd ~/esp/hello_world
- IDF .py seti−target esp32
- IDF .py menuconfig
Fa'atulaga le sini i le 'idf.py set-target esp32' e tatau ona faia tasi, pe a uma ona tatalaina se galuega fou. Afai o le poloketi o loʻo i ai nisi o mea o loʻo i ai nei ma faʻatulagaga, o le a faʻamama ma amataina. E mafai ona fa'asaoina le fa'amoemoe ile suiga ole si'osi'omaga e fa'ase'e ai le la'asaga lenei. Va'ai Filifilia le Taulaga mo fa'amatalaga faaopoopo. Afai na faia sa'o laasaga muamua, o le lisi lea e aliali mai:
Ata 2: Fa'atulagaina o Poloketi - Fa'amalama o le Fale
O lanu o le lisi e mafai ona ese i lau laina. E mafai ona e suia foliga i le filifiliga '--style'. Fa'amolemole fa'agasolo 'idf.py menuconfig --help'mo nisi fa'amatalaga.
Fausia le Poloketi
Fausia le poloketi e ala i le taʻavale:
idf .py fausia
O lenei poloaiga o le a tuʻufaʻatasia ai le talosaga ma vaega uma o le ESP-IDF, ona faʻatupuina ai lea o le bootloader, laulau vaeluaga, ma binaries talosaga.
- $ idf .py fausia
- Fa'asolo cmake i le directory /path/to/hello_world/build
- Fa'atinoina o le "cmake −G Ninja −−warn−uninitialized /path/to/hello_world”… Lapata'i e uiga i tulaga faatauaina e le'i amataina .
- Maua Git: /usr/bin/git (maua lomiga "2.17.0")
- Fausia le vaega aws_iot gaogao ona o le faʻatulagaina
- Igoa vaega:…
- Vaega ala: …
- (sili atu laina o galuega faufale)
- [527/527] Fausiaina talofa −world.bin
- esptool .py v2.3.1
Ua mae'a le fausiaina o le poloketi. Ina ia moli, taʻavale le poloaiga lenei: - vaega/esptool_py/esptool/esptool.py −p (PORT) −b 921600 write_flash −−flash_mode dio−−flash_size iloa −−flash_freq 40m 0x10000 build.0 build.1000 build/binXNUMX−
- fausia/bootloader/bootloader. talone 0x8000 fau/vaega_ laulau/vaega −table.bin
- pe ta'e 'idf .py −p PORT flash'
Afai e leai ni mea sese, o le a maeʻa le fausiaina e ala i le fausiaina o le firmware binary .bin file.
Kimo i luga ole Masini
Fa'amalama le binaries na e fausia i luga o lau EK057 module e ala i le tamoe:
idf .py −p PORT [−b BAUD] moli
Suia le PORT ile igoa ole uafu o lau module mai le Laasaga: Feso'ota'i lau Meafaigaluega. E mafai fo'i ona e suia le fua o le pa'u moli e ala i le suiina o le BAUD i le fua o le pa'u e te mana'omia. Ole fua ole baud ole 460800.Mo nisi fa'amatalaga ile idf.py finauga, va'ai idf.py.
Fa'aaliga:
O le filifiliga 'flash' e otometi lava ona fausia ma fa'aola le poloketi, o lea e le mana'omia ai le 'idf.py build'.
- O loʻo taʻavale esptool.py i le lisi [...]/ esp/hello_world
- Fa'atino "python [...]/ esp−idf/components/esptool_py/esptool/esptool.py −b 460800 write_flash @flash_project_args…
- esptool .py −b 460800 write_flash −−flash_mode dio −−flash_size iloa −−flash_freq 40m 0x1000
- fa'apipi'i/fa'auta. bin 0x8000 partition_table / vaeluaga −table.bin 0x10000 hello−world.bin esptool .py v2.3.1
Feso'ota'i .... - Su'esu'eina le ituaiga va'a ... ESP32 Chip o le ESP32D0WDQ6 (toe iloiloga 1)
- Fa'aaliga: WiFi, BT, lua Core Uploading stub ...
- Manu'a tamo'e…
- Fa'ato'a tamo'e…
- Suia le paud rate i le 460800 Suia.
- Espressif Systems
- Fa'atonu le tele o le moli…
- Otometi ona iloa le tele o le Flash: 4MB
- Fa'ailoga moli ua seti ile 0x0220
- Fa'amauina 22992 paita i le 13019…
- Tusia le 22992 bytes (13019 compressed) i le 0x00001000 i le 0.3 sekone (e aoga 558.9 kbit/s)… Ua fa'amaonia fa'amaumauga.
- Fa'amauina 3072 paita i le 82…
- Tusia le 3072 bytes (82 compressed) i le 0x00008000 i le 0.0 sekone (e aoga 5789.3 kbit/s)… Ua fa'amaonia fa'amaumauga.
- Fa'amauina 136672 paita i le 67544…
- Tusia le 136672 bytes (67544 compressed) i le 0x00010000 i le 1.9 sekone (e aoga 567.5 kbit/s)… Ua fa'amaonia fa'amaumauga.
Tu'ua…
Toe fai faigata e ala ile pine RTS...
Afai e sologa lelei mea uma, o le talosaga "hello_world" e amata ona tamoʻe pe a uma ona e aveese le osooso ile IO0 ma le GND, ma toe faʻamalosia le laupapa suʻega.
Mataitu
Ina ia siaki pe o "hello_world" o loʻo tamoʻe moni, faʻapipiʻi 'idf.py -p PORT monitor' (Aua nei galo e sui le PORT i lou igoa tau telefoni).
O lenei poloaiga e faʻalauiloa ai le talosaga IDF Monitor:
- $ idf .py −p /dev/ttyUSB0 mataitu
- O loʻo taʻavale idf_monitor i le lisi [...]/ esp/hello_world/build
- Fa'atino "python [...]/ esp−idf/tools/idf_monitor.py −b 115200 [...]/ esp/hello_world/build/hello −world. elf…−−− idf_monitor i luga /dev/ttyUSB0 115200 −−−
- Tu'u: Ctrl+] | Menu: Ctrl+T | Fesoasoani: Ctrl+T sosoo ai Ctrl+H
- ma Iuni 8 2016 00:22:57
- muamua :0x1 (POWERON_RESET),fa'a:0x13 (SPI_FAST_FLASH_BOOT)
- ma Iuni 8 2016 00:22:57
A maeʻa le amataga ma faʻamaumauga faʻataʻitaʻi tusi i luga, e tatau ona e vaʻai i le "Talofa lalolagi!" lolomi e le talosaga.
- Talofa lalolagi!
- Toe amata ile 10 sekone…
- Ole mea lea ole esp32 chip ma 2 CPU cores, WiFi / BT / BLE, suʻesuʻega silicon 1, 2MB moli fafo Toe amata ile 9 sekone ...
- Toe amata ile 8 sekone…
- Toe amata ile 7 sekone…
Pau lava na mea e te manaʻomia e amata ai ile EK057 module! O lea ua e sauni e fa'ata'ita'i se isi examples i le ESP-IDF, pe alu sa'o e atia'e au lava talosaga.
Punaoa Aoao
Pepa e Tatau Ona Faitau
Ole feso'ota'iga o lo'o tu'uina atu fa'amaumauga e feso'ota'i ile ESP32.
Pepa / Punaoa
![]() |
Espressif Systems EK057 Wi-Fi ma Bluetooth Initaneti o Mea Module [pdf] Tusi Taiala EK057, 2AC7Z-EK057, 2AC7ZEK057, EK057 Wi-Fi ma Bluetooth Initaneti o Mea Module, Wi-Fi ma Bluetooth Initaneti o Mea Module |





