Cov txheej txheem:
- Kauj ruam 1: Code
- Kauj ruam 2: Tsim Arduino Teeb
- Kauj ruam 3: Khawm
- Kauj ruam 4: LED
- Kauj Ruam 5: Kev txhim kho/Hloov pauv
Video: Fais Magic Yim Pob: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Koj puas xav paub txog qhov zais ntawm lub Ntiaj Teb? Zoo, Magic Yim Pob yuav tsis yog rau koj!
Muaj peev xwm teb tau lossis tsis muaj lus nug, nrog qee zaum qee zaum, Khawv koob yim pob tuaj yeem teb tag nrho koj cov lus nug nrog 100% lav!
Siv Atmega328P Arduino, qee qhov LED, Khawm, thiab ntau tus tiv thaiv, koj ib yam tuaj yeem tsim koj tus kheej Magic Yim Pob!
Yog tias Arduino Uno tsis muaj rau koj, tab sis koj tshwm sim muaj qhov ntsuas hluav taws xob thiab lub sijhawm siv lead ua dag txog, koj ib yam tuaj yeem tsim koj tus kheej Magic Yim Pob!
*Khawv Koob Yim Yim Pob tsis muaj lub luag haujlwm rau qhov tshwm sim rau koj qhov kev ua raws li koj qhov kev txiav txim siab los ua qhov uas Magic Eight Ball tau txiav txim.
Daim Ntawv Teev Npe:
1 ZPO 328 p
4 LED liab
11 K Ohm Resistor
4560 Ohm Cov neeg tiv taus
1 Momentary Pushbutton
1 LM7805 Tus Tswj Hluav Taws Xob
1 16 MHz Lub Sijhawm Siv Crystal
2.022 uF Capacitors
2 10 uF Capacitors
1 Cov qhob cij
Kauj ruam 1: Code
Qhov nyuaj tshaj plaws ntawm txoj cai yog taug qab qhov twg hloov pauv tau tsim thiab qhov twg lawv tuaj yeem hloov kho. Cov kev hloov hauv zos xws li kev txiav txim siab tsuas yog tuaj yeem hloov kho hauv lawv txoj hauv kev thaum cov chav kawm hloov pauv xws li delayLoop tuaj yeem hloov kho nyob txhua qhov chaw. Nws tseem yog ib qho tseem ceeb kom nkag siab tias cov kev hloov pauv tau tswj hwm koj lub voj thiab yam khoom twg raug hloov tom qab koj lub voj. Nws nyuaj rau khiav los ntawm tag nrho txoj haujlwm yog tias koj lub voj khiav ntawm LEDs tsis kawg.
Peb tau siv ArduinoUno uas twb muaj lawm los tshem peb cov cai los ntawm lub khoos phis tawj mus rau Arduino thiab sim peb cov lej ua ntej txuas nws mus rau peb qhov kawg. Qhov no tej zaum yuav yog txoj hauv kev yooj yim tshaj plaws los ua nws, tab sis txhua txoj hauv kev kom tau txais txoj cai mus rau Arduino kuj tseem yuav ua haujlwm.
Kauj ruam 2: Tsim Arduino Teeb
Txhawm rau pib, peb yuav tsum teeb tsa cov khoom tsim nyog rau arduino kom ua haujlwm. Txhawm rau ua kom lub zog arduino, peb siv lub roj teeb 9V nrog 5V tus tswj hluav taws xob. Ob 10 uF capacitors txuas nrog cov tswv yim thiab tso tawm tus pin ntawm tus tswj hwm ua rau hauv av thiab xaim los ntawm tus pin nruab nrab mus rau hauv av.
Lub sij hawm siv lead ua tau txuas rau pins cuaj thiab kaum ntawm arduino, qhov twg ob.022 uF capacitors ua rau hauv av rau ob tus pin.
Thaum kawg, tus pin 8 ntawm Arduino xav tau txuas rau hauv av.
Kauj ruam 3: Khawm
Muab lub pob tso rau hauv ib qho yooj yim nkag tau yooj yim ntawm koj lub khob cij thiab xaim nws nrog tus pin tso tawm ntawm tus tswj hluav taws xob kom muaj zog rau nws. Tsis tas li, tso koj 1 KOhm resistor rau tus pin ntawm lub pob thiab hauv av.
Ntawm qhov rov qab thiab qis ib nrab ntawm lub pob, xaim nws rau tus pin 4 ntawm arduino.
Kauj ruam 4: LED
Rau cov kauj ruam no, plaub LED xav tau txuas nrog tus pin 11, 14, 17, thiab 19. Lwm tus pin ntawm txhua LED xav tau txuas rau ib qho ntawm 560 Ohm resistors, uas txhua tus mus rau hauv av.
Rau cov cuab yeej no peb tau xaiv kom muaj plaub LED rau plaub qhov lus teb tau; thawj LED rau "yog", LED thib ob rau "tsis", LED thib peb rau "tej zaum", thiab plaub LED rau "nug dua".
Kauj Ruam 5: Kev txhim kho/Hloov pauv
Vim tias nws yog "Khawv koob" yim pob lub cuab yeej tuaj yeem zais hauv qee hom ntim khoom, piv txwv li Altoids tin. Tsuas yog muaj lub LED lo tawm ntawm lub ntim thiab nkag mus rau lub pob tuaj yeem ua rau qhov tsis pom kev uas lub thawv Altoids khawv koob no tau teb cov lus nug.
Lwm qhov kev xaiv txhawm rau txhim kho cov cuab yeej no yuav yog txhawm rau txhawm rau txhawm rau txhawm rau ua kom nws ruaj khov dua, thiab yog tias nws tau xau ntau dua nws tuaj yeem haum rau hauv cov thawv me me.
Cov cuab yeej no muaj LED's rau kev pom kev zoo, tab sis kuj tseem muaj peev xwm ntxiv cov khoom sib txuas rau lub cuab yeej. Tej zaum txuas tus neeg hais lus rau lub cuab yeej thiab ua si Jeopardy timer music tuaj yeem ntxiv rau qhov zoo nkauj ntawm lub cuab yeej. Muaj qhov pom tseeb txhim kho ntxiv LED ntau ntxiv los muab ntau txoj kev txiav txim siab uas yuav yooj yim haum.
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
99 ¢ Foppy Fais Fab Txuas Hluav Taws Xob LED Pob Pob Zeb: 8 Kauj Ruam
99 ¢ Foppy Fais Fab Txuas Hluav Taws Xob LED Pob Pob Zeb: Qhov no yog qhov kos duab me me, ua ke nrog cov qub floppy tsav lub zog txuas, lub tshuab luam ntawv USB seem, thiab tsawg dua 1 $ ntawm LED's & Resistors
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
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
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