Cov txheej txheem:

HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial: 5 Kauj Ruam
HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial: 5 Kauj Ruam

Video: HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial: 5 Kauj Ruam

Video: HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial: 5 Kauj Ruam
Video: HiFive1 Rev B: An open source, RISC-V development platform with wireless 2024, Kaum ib hlis
Anonim
HiFive1 Arduino Board Nrog ESP-01 WiFi Module Tutorial
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 pawg thawj coj, nws tsis muaj kev sib txuas wireless.

Hmoov zoo, muaj ntau qhov qauv tsis kim ntawm kev ua lag luam txhawm rau txo qhov kev txwv no. Cov ntawv qhia no piav qhia yuav ua li cas txhawm rau txuas WiFi rau HiFive1 siv ESP-01.

Rau HiFive1 nrog ESP32 lossis ESP8266 cov qauv saib WEB thiab MQTT cov lus qhia.

Txog Hifive1 Bluetooth piv txwv, saib cov ntawv qhia no.

Cov ntaub ntawv xav tau rau txoj haujlwm no:

  • HiFive1 (Yuav tuaj yeem yuav ntawm no)
  • ESP-01
  • 2 * 10k resistors
  • 1 k resistor
  • Cov qhob cij
  • 9 jumper kab

Kauj Ruam 1: Teeb Ib puag ncig

Teeb ib puag ncig
Teeb ib puag ncig
Teeb ib puag ncig
Teeb ib puag ncig
Teeb ib puag ncig
Teeb ib puag ncig
  1. Nruab Arduino IDE yog tias nws tsis tau teeb tsa hauv koj lub khoos phis tawj.
  2. Ua raws cov lus qhia hauv https://github.com/westerndigitalcorporation/CincoWinPkg ntxiv HiFive1 kev txhawb nqa rau Arduino IDE.

Tsis tas yuav teeb tsa ESP-01 pawg thawj coj pob hauv Arduino IDE txij li ESP-01 los txog qhov kev npaj ua ntej nrog lub sijhawm dhau los (saib lub vijtsam) tab sis muaj peev xwm los teb rau AT cov lus txib ntawm cov ntawv txuas txuas txuas txuas.

Kauj Ruam 2: Txuas ESP-01 Module rau HiFive1 Board

Txuas ESP-01 Module rau HiFive1 Board
Txuas ESP-01 Module rau HiFive1 Board
Txuas ESP-01 Module rau HiFive1 Board
Txuas ESP-01 Module rau HiFive1 Board
Txuas ESP-01 Module rau HiFive1 Board
Txuas ESP-01 Module rau HiFive1 Board

Txuas ESP-01 tus qauv rau HiFive1 pawg thawj coj raws li qhia hauv Fritzing Schematics thiab Breadboard views.

Nco ntsoov tias IOREF jumper tau teeb tsa rau 3.3V raws li qhia hauv daim duab los ntawm lub voj voog liab.

Kauj Ruam 3: Tham nrog ESP-01 Module Via Serial Monitor

Tham nrog ESP-01 Module Via Serial Monitor
Tham nrog ESP-01 Module Via Serial Monitor
Tham nrog ESP-01 Module Via Serial Monitor
Tham nrog ESP-01 Module Via Serial Monitor

Tom qab txuas txhua yam ua ke peb tuaj yeem sim tham nrog ESP-01 ntawm Arduino Serial Monitor. Rau qhov no, peb yuav tsum tau teeb tsa cov duab kos yooj yim txuas hauv qab no. Nws tau mloog AT cov lus txib los ntawm Tus Saib Xyuas ntawm HW Serial channel thiab xa lawv mus rau ESP-01 ntawm SoftwareSerial32 channel. Nws tau mloog ESP-01 cov lus teb los ntawm SoftwareSerial32 channel thiab tau xa lawv mus rau Saib Xyuas ntawm HW Serial channel.

  1. Ua ntej kev teeb tsa ua kom ntseeg tau tias "Cov Cuab Yeej-> Pawg" tau teeb tsa rau HiFive1 pawg thawj coj, "Cuab Yeej-> CPU Clock Zaus" rau "256MHz PLL" thiab "Cuab Yeej-> Tus Kws Ua Haujlwm" rau "SiFive OpenOCD".
  2. Muab cov duab kos rau hauv HiFive1.
  3. Nco ntsoov tias koj tau xaiv qhov chaw nres nkoj Serial tseeb hauv "Cuab Yeej-> Chaw Nres Nkoj".
  4. Qhib "Tools-> Serial Monitor" thiab xaiv 115200 baud tus nqi thiab "Ob NL & CR".
  5. Ntaus AT hauv Tus Saib Xyuas. Koj yuav tsum tau txais OK los ntawm ESP-01.
  6. Tam sim no koj tuaj yeem sim ntau yam AT cov lus txib los ntawm qhov txuas no.

Kauj Ruam 4: Tham nrog ESP Module Los Ntawm Sketch

Tam sim no cia muab AT cov lus txib rau ESP-01 los ntawm hauv daim duab HiFive1.

Cov duab kos txuas nrog txuas ntxiv ua haujlwm CWLAP+AT cov lus txib uas xa rov qab muaj WiFi Cov Ntsiab Lus, lawv lub zog teeb liab thiab lawv MAC Chaw Nyob. Lub voj tau luam tawm cov txiaj ntsig kom txog rau ob qho ESP-01 rov qab ua haujlwm zoo li AT cov lus txiav txim lossis qee lub sijhawm tau dhau mus txij li lub cim kawg tau luam tawm (Lub neej ntawd yog 2 vib nas this).

  1. Nco ntsoov tias "Cov Cuab Yeej-> Pawg Thawj Coj" tau teeb tsa rau HiFive1 pawg thawj coj, "Cuab Yeej-> CPU Clock Zaus" rau "256MHz PLL" thiab "Cuab Yeej-> Tus Kws Ua Haujlwm" rau "SiFive OpenOCD".
  2. Muab cov duab kos rau hauv HiFive1.
  3. Nco ntsoov tias koj tau xaiv qhov chaw nres nkoj Serial tseeb hauv "Cuab Yeej-> Chaw Nres Nkoj".
  4. Qhib "Tools-> Serial Monitor" thiab xaiv 115200 baud tus nqi thiab "Ob NL & CR".

CWLAP+AT cov lus txib tuaj yeem hloov pauv hauv daim duab rau ib qho AT Command. Ntau cov lus txib tuaj yeem pom ntawm no.

Kauj Ruam 5: Qhov Kawg

Zaum Kawg
Zaum Kawg
Zaum Kawg
Zaum Kawg

Yog tias koj tau txuas lub xov tooj hluav taws xob kom raug thiab xa cov duab kos uas tau muab rau koj koj yuav tsum tau txais daim ntawv teev npe ntawm Cov Chaw Nkag Nkag Muaj nyob hauv koj thaj chaw xws li ib qho hauv daim duab txuas.

Pom zoo: