Cov txheej txheem:
- Kauj Ruam 1: Npaj Txhua Lub Cheeb Tsam Npaj
- Kauj Ruam 2: Txuas Cov Khoom Siv
- Kauj Ruam 3: Sau Txoj Cai
- Kauj ruam 4: Demo
Video: Laub Hloov mus Tswj Led (Arduino): 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tinkercad Cov Haujlwm »
Nyob zoo !, Hnub no kuv yuav qhia siv lub laub-khawm rau kev tswj hwm ON/OFF lub xeev ntawm LED hauv Arduino.
Txog qhov no, Kuv yuav siv TinkerCAD, uas yog qhov yooj yim siv thiab ua haujlwm rau peb lub hom phiaj thaum nws los txog rau cov khoom zoo li no.
Yog tias koj xav paub siv TinkerCAD li cas, koj tuaj yeem tshawb xyuas kuv cov ntawv ntawm kev siv yooj yim ntawm TinkerCAD rau Cov Haujlwm Hauv Hluav Taws Xob.
Txuas:
Kauj Ruam 1: Npaj Txhua Lub Cheeb Tsam Npaj
Tam sim no tau txais tag nrho cov khoom xav tau rau peb qhov kev xeem:
1) Arduino Uno
2) Me me Breadboard
3) LED
4) Laub-khawm
5) Resistor (10K-ohms) (tus nqi tuaj yeem hloov pauv hauv cov ntawv qhia zaub mov xaiv, los ntawm txhaj nws)
6) Resistor (220 ohms)
Kauj Ruam 2: Txuas Cov Khoom Siv
Tam sim no peb yuav tsum txuas tag nrho cov khoom siv raws li peb xav tau. Yog li rau qhov no, peb yuav tsum xav txog cov laj thawj yooj yim. Thaum peb tau txais cov teeb liab nkag los ntawm laub-khawm, tsuas yog tom qab ntawd peb yuav tsum siv lub teeb liab tso rau LED txuas nrog Arduino.
Txog qhov no, tso lub laub khawm rau hauv tus choj ntawm lub khob cij (raws li qhia), thiab rub tawm xaim los ntawm ib qho ntawm tus pin ntawm lub laub khawm thiab txuas nws mus rau qhov zoo ntawm lub khob cij. Tom qab ntawd txuas 10k-ohms resistor rau lwm tus pin ntawm tus tiv thaiv (raws li qhia). Tam sim no qhov no yuav ua qhov hloov pauv ntawm ntu zoo thiab ntu ntu tiv thaiv.
Luag tawm xaim los ntawm tib lub davhlau ya nyob twg ntawm lub laub-khawm txuas nrog tus tiv thaiv thiab txuas nws mus rau tus pin 2 ntawm Arduino. Qhov no yuav ua raws li cov tswv yim los ntawm lub laub-khawm. Txuas lwm qhov kawg ntawm tus tiv thaiv mus rau ntu av (-ve) ntawm lub khob cij. Txuas ntu zoo rau 5V kev xa khoom ntawm Arduino thiab ntu tsis zoo rau GND (hauv av) ntawm Arduino.
Tam sim no peb yuav tsum txuas LED mus rau tus pin 13 (koj tuaj yeem xaiv ib qho) ntawm Arduino los ntawm 220 ohms resistor.
Kauj Ruam 3: Sau Txoj Cai
Qhib Code tab ntawm sab xis ntawm lub vijtsam thiab xaiv hom coding raws li cov ntawv thiab rho tawm cov cai uas twb muaj lawm hauv nws.
Ua ntej tshaj tawm, khawm thiab LED pins txuas nrog Arduino. Tam sim no peb xav tau qhov sib txawv uas tuaj yeem khaws lub xeev khawm (ua cim xeeb). Yog li tshaj tawm qhov sib txawv ntawm qhov sib txawv rau qhov no thiab muab tus nqi ua ntej li 0 (raug OFF lub xeev piv rau 0).
Tam sim no hauv teeb tsa muaj nuj nqi tshaj tawm tus coj tus pin hom li OUTPUT thiab khawm tus pin hom li INPUT.
Hauv qhov tsis muaj dab tsi ua haujlwm tau nyeem lub xeev khawm siv digitalRead thiab khaws nws hauv qhov sib txawv.
Tam sim no txheeb xyuas yog lub xeev khawm yog HIG H, siv qhov hluav taws xob siab rau coj tus pin lwm qhov qis qis.
Kuaj cov cai los ntawm txhaj qhov simulation.
Kauj ruam 4: Demo
Yog tias muaj teeb meem, thov qhia rau kuv paub
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Hloov Kho Cov Khoom Ua Si: WolVol Tsheb ciav hlau Ua Hloov Mus Tau yooj yim!: 7 Cov kauj ruam
Hloov Kho Cov Qho Khoom Ua Si: WolVol Tsheb ciav hlau Ua Hloov Mus Tau! Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev -- Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: 4 Cov Kauj Ruam
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev || Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: Nov Yog Qhov Tuchless Hloov Rau Cov Khoom Siv Hauv Tsev. Koj Siv Tau Qhov No Mus Rau Txhua Qhov Chaw Hauv Pej Xeem Kom Pab Tau Tawm Tsam Ib Yam Kab Mob. Lub Circuit Court Raws Li Tsaus Sensor Circuit Ua Los Ntawm Op-Amp Thiab LDR. Qhov Tseem Ceeb Thib Ob Ntawm Qhov Circuit Court SR Flip-Flop Nrog Sequencell
Hloov-Hloov Cov Khoom Ua Si: Qes Chaw Taws Teeb Tswj Cov Nab Ua Tau!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Qes Chaw Taws Teeb Tswj Cov Nab Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Txhim Kho Cov Hloov Pauv Hloov Rau Hauv Ntse Kov Hloov Nrog Temp Monitoring: 4 Cov Kauj Ruam
Txhim Kho Qhov Hloov Pauv Hloov Mus Rau Ntse Kov Hloov Nrog Lub Sijhawm Saib Xyuas: Kuv paub txhua tus ntawm koj ntsib qhov teeb meem no tsawg kawg ib qho hauv koj lub neej lub rooj hloov pauv tau tawg los ntawm kev siv tas mus li. ntau lub sijhawm yog lub caij nplooj ntoo hlav sab hauv hloov pauv los yog m