Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Circuit Court
- Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type
- Kauj Ruam 4: Hauv Visuino Ntxiv thiab Txuas Txuas
- Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 6: Ua si
Video: SW -520D Kev co Sensor Hlau Pob Tilt Hloov - Visuino: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Qhov SW-520D qhov yooj yim qaij hloov tuaj yeem siv tau yooj yim txhawm rau txheeb xyuas kev taw qhia. Sab hauv lub peev xwm yog lub pob uas ua rau sib cuag nrog cov pins thaum rooj plaub ncaj. Qaij cov ntaub ntawv dhau thiab cov pob tsis kov, yog li tsis ua kev sib txuas.
Lub qaij sensor tso cai rau pom kev taw qhia lossis kev nyiam. Nws kuaj pom yog tias lub ntsuas hluav taws xob ncaj ncaj lossis yog tias nws tau qaij, Hauv qhov kev qhia no, peb yuav kawm paub Tilt Sensor ua haujlwm li cas thiab yuav siv nws li cas nrog Arduino Board txhawm rau txheeb xyuas cov lus tsa suab. Peb yuav siv tus qauv piezo los ua suab nrov txhua lub sijhawm hloov pauv ua kev sib cuag.
Saib daim vis dis aus.
Kauj ruam 1: Yam Koj Yuav Tsum Tau
Arduino UNO (lossis lwm yam Arduino)
SW-520D Qaij Sensor
Piezo module
Liab LED
1K ohm tiv thaiv
Jumper xov hlau
Cov qhob cij
Visuino program: Rub tawm Visuino
Kauj ruam 2: Circuit Court
- Txuas Piezo module tus pin [-] rau Arduino tus pin [GND]
- Txuas Piezo module tus pin [+] rau Arduino tus pin [5V]
- Txuas Piezo module tus pin [S] rau Arduino tus pin [7]
- Txuas Tilt sesnsor tus pin [1] rau Arduino tus pin [5V]
- Txuas Tilt sesnsor tus pin [1] rau Arduino tus lej digital [8] thiab rau tus tiv thaiv.
- Txuas lwm sab ntawm tus tiv thaiv rau Arduino tus pin [GND]
- Txuas LED tus pin zoo rau Arduino tus pin [7]
- Txuas LED tsis zoo tus pin rau Arduino tus pin [GND]
Kauj Ruam 3: 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 Ntxiv thiab Txuas Txuas
- Ntxiv "Digital (Boolean) Inverter (Tsis)" tivthaiv
- Txuas Arduino tus pin tawm [8] rau "Inverter1" tiv thaiv tus pin [Hauv]
- Txuas "Inverter1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [7]
Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE
Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)
Kauj ruam 6: Ua si
Yog tias koj ua lub zog Arduino UNO module, thiab nias lub zog ntsuas qhov ntsuas koj yuav tsum pom tus lej hloov pauv ntawm OLED zaub thiab LED ntsuab yuav tsum pom tab sis thaum koj tsoo qhov txwv liab liab yuav tsum ci.
Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:
Pom zoo:
Hloov Lub Pob Ntseg Pob Ntseg Pob Ntseg: 7 Cov Kauj Ruam
Hloov Lub Pob Ntseg Pob Ntseg Pob: Hloov koj lub pob ntseg tuaj yeem ua pa lub neej tshiab rau hauv lub mloog pob ntseg qub. Qhov zoo tshaj plaws txhua qhov koj tuaj yeem ua nws koj tus kheej nrog cov qauv kev lom zem sab hauv ntawm lub pob ntseg. Kuv tau muaj lub mloog pob ntseg no txog 8 xyoo thiab cov tawv faux tau pib tawg
Tig Ib Lub Pob Ntseg Rau Hauv Lub Pob Ntseg Pob Ntseg (tsis cuam tshuam) Tsis tas ua kom lub mloog pob ntseg puas: 9 kauj ruam
Tig Ib Lub Pob Ntseg Rau Hauv Lub Pob Ntseg (tsis cuam tshuam) Tsis Ua Lub Pob Ntseg: Qhov no yog lub tswv yim kuv tau tawm ntawm xiav tom qab ib tus phooj ywg muab rau kuv qee lub pob ntseg supercheap tawg. Nws yog lub khoos phis tawj microphone uas tuaj yeem txuas nrog lub mloog pob ntseg yuav luag txhua lub mloog pob ntseg (Kuv nyiam qhov no vim tias kuv tuaj yeem ua game nrog lub mloog pob ntseg siab thiab
Hloov Dav Hlau Dav Hlau Tshem Tawm Lub Pob Ntseg Rau Lub Pob Ntseg Pob Ntseg: 6 Cov Kauj Ruam (nrog Duab)
Hloov Lub Suab nrov Tshem Tawm Lub Pob Ntseg rau Lub Pob Ntseg Lub Pob Ntseg: Puas tau muaj lub sijhawm los muaj qee lub suab nrov no tshem tawm lub mloog pob ntseg los ntawm lub dav hlau? portable li xws li ce
Txhim Kho Hauv Pob Ntseg Pob Ntseg (Pob Ntseg-Pob Nyiaj): 6 Cov Kauj Ruam
Txhim Kho Pob Ntseg Hauv Pob Ntseg (Pob Ntseg Pob Ntseg): Cov pob ntseg pob ntseg tsis haum rau kuv pob ntseg. Tab sis muaj kev daws teeb meem yooj yim rau qhov ntawd
Ib txoj hauv kev yooj yim dua los Siv Cov Hlau Hlau Hlau Hlau rau SMD LEDs: 5 Kauj Ruam
Ib txoj hauv kev yooj yim dua los Siv Cov Hlau Hlau Hlau Hlau rau SMD LEDs: Cov lus qhia no piav qhia txoj hauv kev yooj yim dua ntawm kev txuas cov hlau nplaum hlau zoo rau saum npoo LEDs. Nws yog nyob rau hauv cov lus teb rau lub Rag ntawm Fireflies qhia uas qhia pom siv "pab txhais tes" clip los ua txoj haujlwm no. Kuv xav tias kuv txoj kev yooj yim dua