Cov txheej txheem:

Txuas 4 Game Siv Arduino thiab Neopixel: 7 Kauj Ruam (nrog Duab)
Txuas 4 Game Siv Arduino thiab Neopixel: 7 Kauj Ruam (nrog Duab)

Video: Txuas 4 Game Siv Arduino thiab Neopixel: 7 Kauj Ruam (nrog Duab)

Video: Txuas 4 Game Siv Arduino thiab Neopixel: 7 Kauj Ruam (nrog Duab)
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Image
Image
Qhov
Qhov

Ntau dua li tsuas yog muab khoom plig ua khoom plig tawm ntawm lub txee, Kuv xav muab rau kuv cov tub xeeb ntxwv qhov khoom plig tshwj xeeb uas lawv tuaj yeem tso ua ke thiab (vam tias) txaus siab. Thaum tus lej Arduino rau txoj haujlwm no yuav nyuaj rau lawv nkag siab, cov hauv paus ntsiab lus ntawm kev tawm tswv yim, kev tso tawm, lub voj, thiab cov xwm txheej uas siv hauv txoj cai no tuaj yeem piav qhia qhov muag pom thaum lawv ua si ntawm Txuas 4.

Hauv Cov Lus Qhia no, kuv yuav qhia koj yuav ua li cas tso ua ke Arduino cov khoom siv uas koj tuaj yeem sib sau ua ke thiab ua haujlwm nrog koj cov menyuam ua si Txuas 4. Tsis tas yuav siv cov laug rau qhov haujlwm no; cia li ntsaws thiab ua si.

Kauj Ruam 1: Qhov Chaw

Rau qhov haujlwm no, koj yuav xav tau:

  • Arduino Uno lossis sib npaug
  • 8x8 Neopixel RGB LED
  • Cov qhob cij
  • 3 khawm hloov
  • Jumper xov hlau
  • Ntsia Hlau
  • Case - baseboard & cardboard sawv ntsug

Cov Cuab Yeej: Ntsia tus tsav tsheb, rab yaj phom

Kauj Ruam 2: Npaj Neopixel Display Stand Unit

Npaj Neopixel Display Stand Unit
Npaj Neopixel Display Stand Unit
Npaj Neopixel Display Stand Unit
Npaj Neopixel Display Stand Unit
Npaj Neopixel Display Stand Unit
Npaj Neopixel Display Stand Unit

Ua ntej, txuas 3 jumper xov hlau rau Neopixel. Kuv tab tom siv cov xim txuas xov tooj hauv qab no:

Dawb: GND

Grey: 5V Ntshav: Cov Ntaub Ntawv Hauv

Tom qab ntawd, txuas Nelpixel rau lub rooj tsav xwm nrog cov kua nplaum kub.

Kauj Ruam 3: Npaj Khawm Hloov Chaw

Npaj khawm Hloov Chaw
Npaj khawm Hloov Chaw
Npaj khawm Hloov Chaw
Npaj khawm Hloov Chaw
Npaj khawm Hloov Chav
Npaj khawm Hloov Chav
Npaj khawm Hloov Chaw
Npaj khawm Hloov Chaw

Muab lub pob khawm hloov ntawm lub khob cij thiab txuas cov xov hlau txuas uas siv cov kab xim hauv qab no:

Xim av: Sab laug khawm

Liab: Liab Khawm Txiv Kab Ntxoog: Qhov Nruab Nrab Kab Daj: Qhov Nruab Nrab Ntsuab: Txoj Cai Khawm Hloov Xiav: Txoj Cai Khawm Hloov

Cov xim av, txiv kab ntxwv, ntsuab txuas nrog lub (-) kev tsheb nqaj hlau nrog rau cov xaim dub tshiab.

Nco tseg: Koj yuav pom tias kuv tsis siv cov tshuaj tiv thaiv rau cov khawm no. Qhov ntawd yog vim kuv yuav siv tus lej Arduino los siv built-in 20K Arduino tus pin resistors. Saib kuv lwm qhov haujlwm ntawm yuav ua li cas siv sab hauv resistors siv koj cov lej kom yooj yim rau koj lub Circuit Court.

www.instructables.com/id/Simon-Whack-a-Mol…

Kauj Ruam 4: Txuas Arduino thiab Lub Roj Teeb Nrog rau Baseboard

Txuas Arduino thiab Lub Roj Teeb Nrog rau Baseboard
Txuas Arduino thiab Lub Roj Teeb Nrog rau Baseboard

Siv cov ntsia hlau (lossis kua nplaum kub) txhawm rau txuas Arduino thiab lub roj teeb rau lub hauv paus.

Kauj Ruam 5: Tshaj Tawm Cov Khoom Siv rau Baseboard

Muab cov khoom tso rau hauv Baseboard
Muab cov khoom tso rau hauv Baseboard

Siv cov kua nplaum kub txhawm rau txhawm rau tso saib chav rau lub hauv paus raws li qhia.

Kauj Ruam 6: Txuas Jumper Wires rau Arduino

Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino
Txuas Jumper Wires rau Arduino

Txuas txhua lub xov hlau jumper mus rau Arduino raws li txoj haujlwm txuas hauv qab no:

Liab -> 2

Daj -> 3 Xiav -> 4 Ntshav -> 5 Dub -> GND Dawb -> GND Grey -> 5V

Kauj ruam 7: Upload Code & Ua Si

Kuv pre-loaded Arduino nrog cov lej txuas kom sai li sai tau lub 9V roj teeb tau txuas nrog Arduino, nws tau pib ua si game. Cov nyees khawm xiav yog txav koj txoj haujlwm nti mus rau sab laug lossis sab xis ua ntej nias lub pob daj kom tso lub nti. (Saib daim vis dis aus)

Txhawm rau nkag mus rau hom kev ua yeeb yam, tsuas yog nyem lub pob thiab nias & tso tawm pib dua. Thaum lub vijtsam pom tseeb, tso lub pob thiab koj yuav pom liab thiab xiav ua si tau. Koj yuav pom tias nyob rau hauv hom demo, cov neeg ua si liab thiab xiav tsuas yog xaiv cov kab sib dhos thiab tsis siv lub tswv yim yeej yeej lwm tus neeg ua si.

Txhawm rau tawm ntawm qhov ua qauv qhia, tsuas yog pib dua Arduino.

Kuv tab tom npaj yuav ntxiv ib tus neeg ua si vs Arduino hom yav tom ntej yog li yog tias koj paub txog cov txheej txheem yooj yim rau Txuas 4, qhia rau kuv paub.

Pom zoo: