Cov txheej txheem:

Arduino Yuav Tswj Li Cas Teeb Teeb: 7 Kauj Ruam
Arduino Yuav Tswj Li Cas Teeb Teeb: 7 Kauj Ruam

Video: Arduino Yuav Tswj Li Cas Teeb Teeb: 7 Kauj Ruam

Video: Arduino Yuav Tswj Li Cas Teeb Teeb: 7 Kauj Ruam
Video: 🤞8 YAM COV NEEG TXAWJ NTSE ZAM TSIS UA YOG DAB TSI?🚫 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tswj tau cov teeb pom kev zoo siv arduino thiab Visuino. Qhov kev qhia no zoo rau cov pib tshiab.

Saib cov yees duab.

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
  • Arduino UNO (lossis lwm yam Arduino)
  • Tsheb teeb pom kev zoo
  • Jumper xov hlau
  • Cov qhob cij
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas "Cov teeb hluav taws xob teeb pom kev zoo" tus pin [GND] rau Arduino tus pin [GND]
  • Txuas "Cov teeb hluav taws xob teeb pom kev zoo" tus pin [R] rau Arduino tus lej digital [2]
  • Txuas "Cov teeb hluav taws xob teeb pom kev zoo" tus pin [Y] rau Arduino tus lej digital [3]
  • Txuas "Cov teeb hluav taws xob teeb pom kev zoo" tus pin [G] rau Arduino tus lej digital [4]

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino ADD Cheebtsam

Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
  • Ntxiv "Sequence" tivthaiv
  • Xaiv "Sequence1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Rov Ua Dua" rau: Tseeb, qhov no yuav ua kom rov ua tiav tag nrho cov txheej txheem dhau thiab dhau lub ntsiab lus lub teeb yuav txuas ntxiv mus
  • Nyem ob npaug rau "Sequence1" tivthaiv
  • hauv "Elements" qhov rai rub 3X "Digital Period" mus rau sab laug
  • Ntawm sab laug ntawm "Elements" qhov rai xaiv "Digital Period1" thiab hauv cov khoom qhov rai teeb tsa "Ncua" rau 3000 << Nov yog lub sijhawm tom qab (3s) rau thawj lub teeb nyem
  • Ntawm sab laug ntawm "Elements" qhov rai xaiv "Digital Period2" thiab hauv cov khoom qhov rai teeb tsa "Ncua" rau 6000 << Nov yog lub sijhawm tom qab pib (6s) rau lub teeb thib ob kom nyem
  • Ntawm sab laug ntawm "Elements" qhov rai xaiv "Digital Period3" thiab hauv cov khoom qhov rai teeb tsa "Ncua" mus rau 9000 << Nov yog lub sijhawm tom qab pib (9s) rau lub teeb thib peb kom nyem
  • Kaw lub qhov rai "Elements"

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "Sequence1"> "Digital Period1" pin [Tawm] rau Arduino board digital pin [2]
  • Txuas "Sequence1"> "Digital Period2" pin [Tawm] rau Arduino board digital pin [3]
  • Txuas "Sequence1"> "Digital Period3" pin [Tawm] rau Arduino board digital pin [4]

Kauj Ruam 6: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

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 zog Arduino UNO module, cov teeb pom kev zoo yuav pib hloov xim nyob rau hauv ib ntu.

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:

Pom zoo: