Cov txheej txheem:

Taw qhia rau Visuino - Visuino rau Pib: 6 Kauj Ruam
Taw qhia rau Visuino - Visuino rau Pib: 6 Kauj Ruam

Video: Taw qhia rau Visuino - Visuino rau Pib: 6 Kauj Ruam

Video: Taw qhia rau Visuino - Visuino rau Pib: 6 Kauj Ruam
Video: Saib 9 hom ntiv taw qhia neeg tus yam ntxwv 2024, Hlis ntuj nqeg
Anonim
Taw qhia rau Visuino | Visuino rau Beginners
Taw qhia rau Visuino | Visuino rau Beginners

Hauv kab lus no kuv xav tham txog Visuino, Uas yog lwm qhov kev teeb tsa software rau Arduino thiab cov tswj hwm zoo ib yam. Yog tias koj yog tus nyiam siv tshuab hluav taws xob uas xav nkag mus rau hauv lub ntiaj teb ntawm Arduino tab sis tsis muaj kev paub ua haujlwm yav dhau los, qhov no yog qhov kev xaiv zoo tshaj plaws rau koj.

Ntawm no peb yuav pom tias Visuino yog dab tsi, teeb tsa nws li cas thiab pom ob txoj hauv kev yooj yim thiab yooj yim kom ua rau koj pib.

Khoom siv

Nov yog cov npe khoom siv uas peb yuav xav tau kom pib thiab ua peb thawj qhov haujlwm siv Visuino.

  1. Arduino Nano Cov. (Amazon / Banggood)
  2. Momentary Push Button. (Amazon / Banggood)
  3. LED (Yeem raws li peb yuav siv Builtin LED rau qhov kev sim no)

Nrog rau kho vajtse peb kuj xav tau cov software hauv qab no:

  1. Arduino IDE Cov.
  2. Visuino Software.

Kauj Ruam 1: Visuino yog dab tsi?

Visuino yog dab tsi?
Visuino yog dab tsi?

Ua ntej peb pib siv nws, peb xub nkag siab tias Visuino yog dab tsi.

Visuino yog lub khoos phis tawj sib xyaw ua ke ib puag ncig ib puag ncig uas pab cov neeg siv program Microcontrollers thiab Microprocessors nrog kev pab ntawm kev yooj yim siv qhov muag pom. Nws yog software them nyiaj tab sis koj tuaj yeem rub tawm dawb version uas txaus ntawm qib pib. Tsuas yog thim rov qab yog tias koj txwv tsis pub siv 20 Cheeb Tsam hauv ib qhov haujlwm. Koj tuaj yeem rub tawm cov software los ntawm no. Nrog Visuino koj tuaj yeem tsim ntau txoj haujlwm, thiab nws txhawb txhua tus npua nrov xws li Arduino thiab txhua qhov nws sib xws, ESP series thiab txawm tias SBCs zoo li Raspberry Pi. Nrog tus hwm version koj tuaj yeem tsim cov phiaj xwm nyuaj uas tsis tas yuav kawm coding.

Kauj ruam 2: Teeb

Teeb
Teeb

Tam sim no uas peb paub nrog Visuino cia peb ua qhov teeb tsa.

Kev teeb tsa yog ncaj ncaj rau pem hauv ntej. Ua ntej peb yuav tsum rub tawm thiab teeb tsa qhov tseeb Arduino IDE. Tom qab ntawd peb tuaj yeem hla mus rau Visuino thiab rub tawm nws qhov hloov tshiab kawg. Tom qab kev teeb tsa thiab pib Visuino, peb yuav tau txais kev cuam tshuam zoo li hauv daim duab saum toj no.

  • Hauv nruab nrab peb pom lub ntsiab thaiv uas sawv cev rau lub microcontroller tiag.
  • Ntawm sab xis peb pom txhua qhov kev tiv thaiv zoo li Lej, Logic, Digital, Analog thiab lwm yam.
  • Ntawm sab laug peb tuaj yeem hloov kho cov khoom ntawm cov khoom xaiv.

Kauj Ruam 3: Xaiv Pawg Thawj Coj

Xaiv Pawg Thawj Coj
Xaiv Pawg Thawj Coj
Xaiv Pawg Thawj Coj
Xaiv Pawg Thawj Coj

Txog qhov kev qhia no kuv tau siv Arduino Nano rau lub hom phiaj ua piv txwv yog li kuv yuav hloov lub ntsiab thaiv rau Arduino Nano. Koj tuaj yeem siv UNO lossis lwm yam Arduino board koj muaj kev nkag tau.

  1. Txhawm rau hloov lub rooj tsavxwm, thawj zaug nyem rau ntawm xub xub ntawm lub rooj tsavxwm thiab nyem rau ntawm "Xaiv lub rooj tsavxwm".
  2. Los ntawm cov npe xaiv pawg thawj coj uas koj muaj, Ntawm no kuv tau xaiv "Arduino Nano".

Nrog qhov no peb tam sim no tau teeb tsa pib siv Visuino los ua peb thawj qhov haujlwm.

Kauj ruam 4: Blink hauv Visuino

Blink hauv Visuino
Blink hauv Visuino
Blink hauv Visuino
Blink hauv Visuino

Raws li ib txwm peb yuav sim qhov teeb tsa no nrog qhov qub ntsais ntsais chaws. Peb yuav pom tias nws yooj yim npaum li cas rau ntsais lub LED nrog Visuino. Ua raws cov theem hauv qab no thiab xa mus rau cov duab kom nkag siab zoo dua.

1. Ua ntej los ntawm cov ntawv qhia zaub mov zoo peb yuav tshawb rau "Pulse Generator".

2. Luag "Digital pulse generator" hauv thaj chaw ua haujlwm.

Peb yuav txuas tus tivthaiv no rau tus lej tus lej 13 ntawm peb lub rooj tsavxwm vim nws txuas nrog lub on-board LED. To txuas tus tivthaiv:

3. Nyem thiab tuav ntawm lub xwm fab xwm meem sib tham thiab nyem rau ntawm Digital pin 13 kev sib cuag.

Thiab qhov ntawd yog, peb muaj qhov piv txwv ntsais muag npaj. Los ntawm lub neej ntawd zaus ntawm Pulse Generator yog 1. piv txwv li LED yuav qhib rau ib pliag thiab tawm rau ib pliag tam sim no peb yuav tsum txuas peb lub rooj tsav xwm mus rau lub khoos phis tawj ntawm USB thiab xa cov lej.

Txhawm rau qhib cov cai hauv Arduino IDE, peb tsuas yog yuav tsum nias "F9" ntawm cov keyboard. Xwb, peb tseem tuaj yeem nyem rau ntawm Arduino lub cim nyob rau sab saum toj ntawv qhia zaub mov bar. Qhov no yuav qhib txoj cai hauv Arduino IDE thiab koj tuaj yeem nyeem thiab kho cov cai ntawm no. Thiab upload nws los ntawm kev txuas cov arduino rau koj lub khoos phis tawj ntawm USB cable thiab nyem lub pob upload.

Kauj Ruam 5: Qhib LED nrog Lub Laub Khawm

Qhib LED nrog Lub Laub Khawm
Qhib LED nrog Lub Laub Khawm
Qhib LED nrog Lub Laub Khawm
Qhib LED nrog Lub Laub Khawm
Qhib LED nrog Lub Laub Khawm
Qhib LED nrog Lub Laub Khawm

1. Nyem rau ntawm "Pulse Generator" thiab nias Delete ntawm koj cov keyboard vim peb tsis xav tau lawm.

2. Txuas txuas txuas ntxiv tom ntej ntawm ib tus lej digital rau cov tswv yim ntawm tus pin 13.

Piv txwv li, Kuv tau siv tus pin 7 rau lub pob nyem yog li kuv yuav txuas qhov Output ntawm tus pin 7 mus rau Tus lej ntawm tus pin 13 (Xa daim duab saum toj no).

Qhov ntawd zoo nkauj heev, tam sim no nias 'F9' ntawm cov keyboard thiab cov lej yuav qhib rau hauv IDE. Tshaj tawm cov cai rau Arduino. Tab sis ua ntej txuas lub laub khawm rau tus pin 7. Siv tus tiv thaiv hauv thaj tsam 220ohm txog 10K ohm.

Tam sim no koj yuav pom tias lub hauv paus LED nyob qis thiab tua thaum lub pob nyem. Tab sis peb xav tau cov txiaj ntsig tsis zoo, piv txwv li LED yuav tsum qhib thaum lub laub khawm raug nias. Txhawm rau ua tiav qhov ntawd peb tsuas yog yuav tsum tau thim cov zis ntawm tus pin 7, kom ua li ntawd peb yuav ntxiv ib qho inverter nyob nruab nrab ntawm qhov txuas. Tom ntej txuas cov zis rau cov tswv yim ntawm Inverter tivthaiv thiab txuas cov Output ntawm Invert tivthaiv rau Input ntawm tus pin 13 raws li qhia hauv daim duab saum toj no.

Qhov tivthaiv no yuav thim cov zis ntawm tus pin 7, yog li High yuav tawm los li qis thiab vise versa. Tam sim no nias F9 thiab xa cov cai. Tam sim no koj yuav pom tias nias lub pob kom teeb LED.

Kauj Ruam 6: Xaus

Kab lus no tsuas yog qhia rau Visuino. Tam sim no koj tau paub txog software thiab muaj lub tswv yim yuav siv nws li cas, koj tuaj yeem pib sim koj tus kheej. Yav tom ntej peb yuav pom ntau txoj haujlwm nyuaj siv cov software zoo kawg no.

Thaum koj nyob ntawm no txheeb xyuas kuv lub vev xaib: ProjectHub.in Muaj Kuv tshaj tawm blog thiab muab cov phiaj xwm kev cai.

Pom zoo: