Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Visuino yog dab tsi?
- Kauj ruam 2: Teeb
- Kauj Ruam 3: Xaiv Pawg Thawj Coj
- Kauj ruam 4: Blink hauv Visuino
- Kauj Ruam 5: Qhib LED nrog Lub Laub Khawm
- Kauj Ruam 6: Xaus
Video: Taw qhia rau Visuino - Visuino rau Pib: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
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.
- Arduino Nano Cov. (Amazon / Banggood)
- Momentary Push Button. (Amazon / Banggood)
- 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:
- Arduino IDE Cov.
- Visuino Software.
Kauj Ruam 1: 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
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
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.
- 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".
- 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
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
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:
LED Qhov Taw Qhia Qhov Taw Qhia Tus Menyuam: 5 Kauj Ruam (nrog Duab)
LED Qhov Taw Qhia Qhov Taw Qhia Tus dev: Kuv ib txwm coj kuv tus dev Rusio mus taug kev thaum lub hnub poob qis kom nws tuaj yeem ua si yam tsis tau kub heev. Qhov teeb meem yog tias thaum nws tawm ntawm txoj hlua qee zaum nws tau zoo siab heev thiab ua haujlwm ntau dua li nws yuav tsum thiab nrog lub teeb qis thiab lwm tus dev
DC Lub Cev Pib Pib, Ceev thiab Kev Taw Qhia Siv Tus Kheej Potentiometer, OLED Zaub & Khawm: 6 Cov Kauj Ruam
DC Motor Smooth Start, Speed and Direction Siv Tus Kheej Potentiometer, OLED Display & Buttons: Hauv qhov kev qhia no peb yuav kawm paub siv L298N DC MOTOR CONTROL tus tsav tsheb thiab lub hwj chim kom tswj tau DC lub zog pib zoo, nrawm thiab qhia nrog ob lub khawm thiab tso saib tus nqi potentiometer ntawm OLED Zaub. Saib cov yeeb yaj kiab
Yuav Ua Li Cas Thiaj Li Taw Qhia Qhov Taw Qhia: 6 Kauj Ruam
Yuav Ua Li Cas Thiaj Li Qhia Tus Kheej: Lub hom phiaj tseem ceeb ntawm daim ntawv thov no yog txhawm rau ntsuas qhov hnyav ntawm ib yam khoom tom qab ntawd qhia nrog lub tswb nrov thaum muaj qhov hnyav dhau. Cov tswv yim ntawm lub kaw lus los ntawm lub xov tooj ntawm tes. Kev tawm tswv yim yog lub teeb liab sib piv uas tau nthuav dav los ntawm qhov sib txawv
Taw qhia rau ADC hauv AVR Microcontroller - rau Pib: 14 Kauj Ruam
Taw qhia rau ADC hauv AVR Microcontroller | rau Pib: Hauv thid qhia koj yuav paub txhua yam ADC hauv avr microcontroller
Taw qhia txog qhov hluav taws xob, Tam sim no, Kev Tiv Thaiv thiab Lub Hwj Chim piav qhia rau Pib: 3 Kauj Ruam
Taw qhia txog qhov hluav taws xob, Tam sim no, Kev Tiv Thaiv thiab Lub Hwj Chim piav qhia rau Tus Pib: Cov vis dis aus no cuam tshuam txog cov ntsiab lus siv hluav taws xob yooj yim, thiab nkag siab yooj yim, kuv yuav sim piav qhia yooj yim nrog cov lus piv txwv dej, yog li nws tau pab kom nkag siab txog batter li kev xav, yog li thov saib daim vis dis aus no los qhia meej koj lub tswv yim txog Tam sim no, Voltage