Cov txheej txheem:

Fais Magic Yim Pob: 5 Kauj Ruam
Fais Magic Yim Pob: 5 Kauj Ruam

Video: Fais Magic Yim Pob: 5 Kauj Ruam

Video: Fais Magic Yim Pob: 5 Kauj Ruam
Video: FOOM XAIS YOB II HMONG DUBBED JET LI MOVIE 2024, Kaum ib hlis
Anonim
Hluav Taws Xob Yim Yim Pob
Hluav Taws Xob Yim Yim Pob
Hluav Taws Xob Yim Yim Pob
Hluav Taws Xob Yim Yim Pob

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

Code
Code
Code
Code
Code
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

Tsim Arduino Teeb
Tsim Arduino Teeb
Tsim Arduino Teeb
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

Khawm
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

LED cov
LED cov

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

Kev txhim kho/Kev hloov pauv
Kev txhim kho/Kev 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: