Cov txheej txheem:

Txaus Siab Rau Koj Lub Caij Ntuj Sov Nrog M5StickC ESP32 Ntxuam - Kho Kom Ceev: 8 Kauj Ruam
Txaus Siab Rau Koj Lub Caij Ntuj Sov Nrog M5StickC ESP32 Ntxuam - Kho Kom Ceev: 8 Kauj Ruam
Anonim
Txaus siab rau koj lub caij ntuj sov nrog M5StickC ESP32 Ntxuam - Kho kom nrawm
Txaus siab rau koj lub caij ntuj sov nrog M5StickC ESP32 Ntxuam - Kho kom nrawm

Hauv qhov haujlwm no peb yuav kawm paub tswj FAN nrawm siv M5StickC ESP32 pawg thawj coj thiab L9110 tus kiv cua module.

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
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 G0 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
Hauv Visuino Ntxiv & Teeb Khoom
Hauv Visuino Ntxiv & Teeb Khoom
  • Ntxiv "Counter" tivthaiv
  • Ntxiv "Ntug Ntug" tivthaiv
  • Ntxiv "Integer To Analog" tivthaiv
  • Ntxiv "Rho Tawm Los Ntawm Analog Tus Nqi" tivthaiv
  • Xaiv "Counter1" thiab hauv lub qhov rai khoom: teeb tsa Max> Tus nqi rau 10, teeb Min> Tus Nqi rau 0
  • Xaiv "IntegerToAnalog1" thiab hauv cov khoom qhov rai teeb tsa Nplai rau 0.1
  • Xaiv "SubtractFromValue1" thiab hauv cov khoom qhov rai teeb tus nqi rau 1
  • 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:

      • luag "Kos Cov Ntawv:" mus rau sab laug thiab hauv cov khoom qhov rai teeb tsa me me rau 2 thiab sau ntawv mus rau "FAN SPEED"
      • luag "Cov Ntawv: Teb" mus rau sab laug thiab hauv cov khoom vaj khoom tsev teeb tsa qhov loj me rau 3 thiab Y txog 30

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
  1. Txuas "M5 Stack Stick C" khawm tus pin A (M5) rau "DetectEdge1" tus pin Hauv
  2. Txuas "DetectEdge1" pin Out to "Counter1" pin In
  3. Txuas "Counter1" pin Out to "IntegerToAnalog1" pin In and "M5 Stack Stick C"> Text Field1> pin In
  4. Txuas "IntegerToAnalog1" tus pin tawm mus rau "SubtractFromValue1" tus pin Hauv
  5. Connect "SubtractFromValue1" pin Out to "M5 Stack Stick C" to GPIO [0] pin Analog PWM

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 ua lub zog M5StickC tus qauv FAN yuav pib tig thiab koj tuaj yeem hloov nws qhov nrawm siv Cov Txiv Kab Ntxwv M5, kuj koj yuav pom qhov nrawm ntawm cov 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: