Cov txheej txheem:
- Kauj Ruam 1: Teeb tsa Ib puag ncig
- Kauj Ruam 2: Txuas ESP32
- Kauj Ruam 3: Txuas ESP8266
- Kauj ruam 4: Programming
- Kauj Ruam 5: Qhov Kawg
Video: HiFive1 Web Server Nrog ESP32 / ESP8266 WiFi Modules Tutorial: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
HiFive1 yog thawj Arduino-tshaj RISC-V raws lub rooj tsavxwm ua nrog FE310 CPU los ntawm SiFive. Lub rooj tsavxwm yog kwv yees li 20 zaug sai dua Arduino UNO tseem tsis tau zoo li UNO board HiFive1 tsis muaj wireless txuas. Hmoov zoo, muaj ntau qhov qauv tsis kim ntawm kev ua lag luam txhawm rau txo qhov kev txwv no.
Hauv kuv cov kev qhia yav dhau los, peb tau pom yuav ua li cas ntxiv qhov sib txuas me me WiFi sib txuas ntawm AT cov lus txib lossis ua tiav kev mus cuag thoob ntiaj teb nrog MQTT tus tswv lag luam.
Hauv qhov kev qhia no, peb yuav ntxiv lub peev xwm Web Server rau HiFive1. Anyiaj rau ntawm lub network hauv zej zog yuav tuaj yeem sib txuas lus nrog Web Server siv Web Browser.
Txoj haujlwm no qhia pom yuav ua li cas tswj hwm HiFive1 built-in RGB LED ntawm nplooj ntawv yooj yim.
Cov Ntaub Ntawv Xav Tau Rau Txoj Haujlwm no:
- HiFive1 board (tuaj yeem yuav ntawm no)
- ESP32 Dev Module lossis ESP8266 NodeMCU 1.0
- 4 jumper xov
Kauj Ruam 1: Teeb tsa Ib puag ncig
Ua ntej, koj xav tau Arduino IDE
1. Ua raws cov lus qhia txhawm rau teeb tsa HiFive1 board Arduino pob thiab USB tsav tsheb.
2. Nruab ESP32 lossis ESP8266 pawg pob los ntawm kev ntxiv qhov URL tsim nyog rau "File-> Preferences-> Tus Thawj Saib Xyuas Ntxiv":
ESP8266 -
ESP32 -
Kauj Ruam 2: Txuas ESP32
Yog tias koj siv ESP8266 hla mus rau qib 3.
Txuas cov xov hlau jumper raws li hauv qab no:
GPIO 10 (HiFive1) -> Tx (ESP32)
GPIO 11 (HiFive1) -> Rx (ESP32)
Nco ntsoov tias IOREF jumper tau teeb tsa rau 3.3v.
Kauj Ruam 3: Txuas ESP8266
Txuas cov xov hlau jumper raws li hauv qab no:
GPIO 10 (HiFive1) -> Tx (ESP8266)
GPIO 11 (HiFive1) -> Rx (ESP8266)
Nco ntsoov tias IOREF jumper tau teeb tsa rau 3.3v.
Kauj ruam 4: Programming
Txoj Cai HiFive1:
Ua ntej kev teeb tsa teeb tsa "Cov Cuab Yeej-> Pawg Thawj Coj" rau "HiFive1", "Cuab Yeej-> CPU Clock Zaus" rau "256MHz PLL", "Cov Cuab Yeej-> Tus Kws Ua Haujlwm" mus rau "SiFive OpenOCD" thiab teeb tsa qhov chaw nres nkoj raug.
ESP32/8266 Txoj Cai:
Thaum lub sijhawm ua haujlwm, ESP pawg thawj coj yuav tsum muaj kho vajtse Rx thiab Tx pins txuas.
Tom qab tus lej tau ua tiav xa rov qab, txuas dua Rx thiab Tx pins ntawm ESP kom ntseeg tau kev sib txuas lus ntawm HiFive1 thiab ESP.
Rau ESP32-Teeb tsa "Tools-> Board" mus rau "ESP32 Dev Module", "Tools-> Programmer" mus rau "AVRISP mkll" thiab teeb tsa Qhov Tseeb Serial Port.
Rau ESP8266-Teeb tsa "Tools-> Board" mus rau "NodeMCU 1.0 (ESP-12E Module)", "Tools-> Programmer" mus rau "AVRISP mkll" thiab teeb tsa Qhov Tseeb Serial Port.
Kauj Ruam 5: Qhov Kawg
Txhawm rau txuas mus rau ESP Lub Vev Xaib, qhib qhov browser ntawm koj lub PC lossis lub xov tooj ntawm tes thiab nkag mus rau IP Chaw Nyob (Koj tuaj yeem pom tus IP Chaw Nyob los ntawm tsis ua raws kab nrog WiFi.localIP () hauv kev teeb tsa ua haujlwm. Nco ntsoov rov ua dua tawm tswv yim kab tom qab nrhiav tus IP txhawm rau kos duab ua haujlwm kom raug).
Hauv kuv qhov xwm txheej, tus IP yog: ESP32 - 10.0.49.94 thiab ESP8266 - 10.0.51.252.
Teem koj Serial Monitor's Baud Rate rau 115200 siv hauv daim duab.
Koj nplooj ntawv kawg yuav tsum zoo li hauv cov duab txuas.
Pom zoo:
Tutorial: Yuav Siv ESP32-CAM hauv Video Streaming Web Server: 3 Kauj Ruam
Tutorial: Yuav Siv ESP32-CAM hauv Video Streaming Web Server: Nqe lus piav qhia: ESP32-CAM yog ESP32 Wireless IoT Vision Development Board hauv daim ntawv me me, tsim los siv hauv ntau yam IoT cov haujlwm, xws li cov cuab yeej ntse hauv tsev, kev lag luam wireless tswj, saib xyuas wireless, QR wireless tus cim
HiFive1 Arduino Nrog HC-05 Bluetooth Module Tutorial: 7 Kauj Ruam
HiFive1 Arduino Nrog HC-05 Bluetooth Module Tutorial: HiFive1 yog thawj Arduino-tshaj RISC-V raws lub rooj tsavxwm ua nrog FE310 CPU los ntawm SiFive. Lub rooj tsavxwm yog kwv yees li 20 zaug sai dua li Arduino UNO thiab vim UNO tsis muaj kev sib txuas wireless. Hmoov zoo, muaj ntau qhov qauv tsis kim
ESP8266 Nrog Thingspeak thiab DHT11 Tutorial - Web Server: 7 Kauj Ruam
ESP8266 Nrog Thingspeak thiab DHT11 Tutorial | Web Server: Hav, ua li cas, Cov Menyuam! Akarsh nov los ntawm CETech. Txoj haujlwm no ntawm kuv yog qhov kev kawm nkhaus kom nkag siab lub ntsiab lus ntawm lub platform nrog rau lub tswv yim ntawm MQTT thiab tom qab ntawd siv Thingspeak nrog ESP8266
HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial: 5 Kauj Ruam
HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial: HiFive1 yog thawj Arduino-tshaj RISC-V raws lub rooj tsavxwm ua nrog FE310 CPU los ntawm SiFive. Lub rooj tsavxwm yog kwv yees li 20 zaug sai dua li Arduino UNO tseem tsis tau zoo li UNO lub rooj tsavxwm, nws tsis muaj kev sib txuas wireless.Qhov zoo, muaj ntau qhov tsis raug
Wifi Teeb Hloov Raspberry Pi Web Server: 8 Kauj Ruam (nrog Duab)
Wifi Teeb Hloov Raspberry Pi Web Server: Kuv xav tswj lub teeb hloov hauv kuv chav pw yam tsis tas yuav tawm ntawm txaj, yog li kuv xav kom tuaj yeem tswj nws los ntawm kuv lub xov tooj. Kuv muaj qee qhov kev txwv ntxiv, Kuv xav kom tuaj yeem tswj nws los ntawm cov cuab yeej yooj yim, Kuv xav kom muaj peev xwm