Cov txheej txheem:

DIY Ntxuam Nrog ON -OFF Khawm - M5StickC ESP32: 8 Cov Kauj Ruam
DIY Ntxuam Nrog ON -OFF Khawm - M5StickC ESP32: 8 Cov Kauj Ruam

Video: DIY Ntxuam Nrog ON -OFF Khawm - M5StickC ESP32: 8 Cov Kauj Ruam

Video: DIY Ntxuam Nrog ON -OFF Khawm - M5StickC ESP32: 8 Cov Kauj Ruam
Video: Neng (vs) Chu Thao#ncaws pob tawb 2021-2022 2024, Kaum ib hlis
Anonim

Hauv qhov haujlwm no peb yuav kawm paub siv FAN L9110 module siv M5StickC ESP32 pawg thawj coj.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • M5StickC ESP32
  • FAN module L9110
  • Visuino software: Rub tawm Visuino ntawm no:

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas StickC tus pin 5V rau FAN module tus pin VCC
  • Txuas StickC tus pin GND rau FAN module tus pin GND
  • Txuas StickC tus pin G26 rau FAN module tus pin INA

Kauj Ruam 3: Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cuab Yeej" khawm ntawm Arduino tivthaiv (Daim duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "M5 Stack Stick C" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv & Teeb Khoom

Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
  • Ntxiv "Ntug Ntug" tivthaiv
  • Ntxiv "Toggle (T) Flip-Flop" tivthaiv
  • Ntxiv "Digital Multi Source" tivthaiv
  • Ntxiv "Text Value" tivthaiv
  • Ob npaug nias rau ntawm "TextValue1" thiab hauv Elments window:
  • luag "Teeb Tus Nqi" rau sab laug thiab hauv lub qhov rai khoom teeb Tus nqi rau "FAN ON"
  • luag "Teeb Tus Nqi" rau sab laug thiab hauv lub qhov rai khoom teeb Tus nqi rau "FAN OFF"
  • Kaw lub Elements window
  • Xaiv "M5 Stack Stick C" board thiab hauv cov khoom qhov rai nthuav dav Modules> Zaub ST7735 thiab:

    • teeb Orientation rau goRight
    • Xaiv Cov Ntsiab Lus thiab nyem rau ntawm 3 dots khawm thiab hauv lub qhov rai ntsiab lus

      luag "Cov Ntawv: Teb" mus rau sab laug thiab hauv cov khoom vaj khoom tsev teeb tsa qhov loj me rau 3 thiab Thawj Tus Nqi rau "FAN OFF"

  • Kaw lub Elements window

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "M5 Stack Stick C" khawm tus pin A (M5) rau "DetectEdge1" tus pin Hauv
  • Txuas "DetectEdge1" tus pin tawm mus rau "TFlipFlop1" tus pin moos
  • Txuas "TFlipFlop1" tus pin tawm mus rau "DigitalMultiSource1" tus pin Hauv
  • Txuas "TFlipFlop1" tus pin hloov mus rau "TextValue1"> Teeb Tus Nqi2> tus pin moos
  • Txuas "DigitalMultiSource1" tus pin [0] rau "TextValue1"> Teeb Tus Nqi1> tus pin moos
  • Txuas "DigitalMultiSource1" tus pin [1] rau "M5 Stack Stick C" tus pin GPPIO26
  • Txuas "TextValue1" pin Out to "M5 Stack Stick C" pin Text Field1 pin Clock
  • Txuas "TextValue1" pin Out to "M5 Stack Stick C" pin Text Field1 pin In

Kauj Ruam 6: Tsim, Sau, thiab Tshaj Tawm Txoj Cai

Tsim, Sau, thiab Tshaj Tawm Txoj Cai
Tsim, Sau, thiab Tshaj Tawm Txoj Cai

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 7: Ua si

Yog tias koj siv lub zog M5StickC tus FAN yuav pib tig thiab koj tuaj yeem tig nws OFF lossis ON siv Lub Pob Khawm M5, kuj koj yuav pom cov xwm txheej ntawm Zaub.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub nws thiab qhib nws hauv Visuino:

Kauj ruam 8: Troubleshooting

Teeb meem
Teeb meem
  • Nco ntsoov tias koj tau xaiv txoj cai StickC board, txheeb xyuas koj tus qauv
  • Qee lub sij hawm koj yuav tsum tau OFF/ON rau StickC module ua ntej siv, koj tuaj yeem ua li ntawd los ntawm kev tuav lub khawm ib sab rau 5+ vib nas this.

Pom zoo: