Cov txheej txheem:

Yuav Ua Li Cas Ua Game Card Ntawm Raspberry Pi: 8 Kauj Ruam
Yuav Ua Li Cas Ua Game Card Ntawm Raspberry Pi: 8 Kauj Ruam

Video: Yuav Ua Li Cas Ua Game Card Ntawm Raspberry Pi: 8 Kauj Ruam

Video: Yuav Ua Li Cas Ua Game Card Ntawm Raspberry Pi: 8 Kauj Ruam
Video: yuav coj li cas kom luag nyiam 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Ua Game Card Ntawm Raspberry Pi
Yuav Ua Li Cas Ua Game Card Ntawm Raspberry Pi

Lub hom phiaj ntawm qhov no yog tsim kev ua si ntawm raspberry pi siv suab paj nruag, khawm, teeb thiab lub suab nrov! qhov kev ua si hu ua Aces thiab lub hom phiaj yog kom tau ze li sai tau mus rau 21 yam tsis tas yuav hla

Kauj Ruam 1: Npaj Raspberry Pi Tau txais raspberry pi thiab ntsaws rau hauv cov keyboard, nas, ethernet cable thiab saib xyuas

Tam sim no ntsaws rau hauv lub hwj chim cable

Tam sim no txuas daim kab xev thiab daim ntawv qhia zaub mov

Khoom siv

Khoom siv

1 liab LED

1 daj LED 1 ntsuab LED 1 Buzzer 1 raspberry pi Saib Mouse Keyboard Speaker 6 tus txiv neej/txiv neej xov hlau

Kauj Ruam 1: Kauj Ruam 2: Npaj Cov Khawm

Kauj Ruam 2: Npaj Cov Khawm
Kauj Ruam 2: Npaj Cov Khawm

Nqa 3 lub nyees khawm thiab kho qhov kawg ntawm koj daim ntawv qhia zaub mov

Tom qab ntawd txuas tus tiv thaiv txhua tus ntawm cov nyees khawm thiab ua rau tus tiv thaiv mus rau hauv av Tom qab ntawd txuas cov xaim rau txhua lub khawm (Cov xov tooj yuav tsum txuas nrog GPIO pins)

Kauj Ruam 2: Kauj Ruam 3: Npaj LED

Kauj Ruam 3: Npaj LED
Kauj Ruam 3: Npaj LED

Koj teeb tsa cov LEDs ua ke

Nco ntsoov tias cov leds liab, daj, ntsuab los ua kom pom kev zoo dua

Txuas tus resistor rau txhua qhov Circuit Court

Txuas cov xov hlau rau hauv gpio pins thiab tom qab ntawd nkag mus rau tus tiv thaiv/Led (yog tias tsim nyog rau hauv av pins)

Kauj Ruam 3: Kauj Ruam 4: Npaj Buzzer/suab paj nruag

Kauj Ruam 4: Npaj Buzzer/suab paj nruag
Kauj Ruam 4: Npaj Buzzer/suab paj nruag

Saib hauv qab ntawm lub buzzer thiab txiav txim siab qhov zoo thiab tsis zoo cable

Txuas cov kab zoo rau hauv gpio thiab qhov tsis zoo rau hauv tus pin hauv av

Yog xav tau ntxiv cov txiv neej/poj niam txuas ntxiv

(Tsis teb los tau)

-Txuas lub cuab yeej Bluetooth rau raspberry pi hauv ntu Bluetooth kom hnov suab paj nruag

Kauj Ruam 4: Kauj Ruam 5: Npaj Txoj Cai

Kauj Ruam 5: Npaj Txoj Cai
Kauj Ruam 5: Npaj Txoj Cai

Ntshuam cov tsev qiv ntawv uas xav tau qhia hauv qab no hauv daim duab

Muab rau koj LEDS, cov nyees khawm thiab buzzer tus lej gpio tus lej

Npaj cov duab koj xav siv los ntawm kev txuag lawv hauv tib qhov chaw koj tau khaws koj tus lej nab npawb

Ntxiv cov duab rau hauv cov cai los ntawm kev siv pygame.image.load thiab muab nws hloov pauv

Kauj Ruam 5: Kauj Ruam 6: Tsim Lub Vev Xaib Zoo Siab Tos Txais

Kauj Ruam 6: Tsim Lub Vev Xaib Zoo Siab Tos Txais
Kauj Ruam 6: Tsim Lub Vev Xaib Zoo Siab Tos Txais

Luam cov cai uas tau qhia hauv thiab nyeem cov lus pom ntawm txhua kab ua

Kho qhov chaw nyob hauv qhov chaw.blit hais kom mus rau txhua qhov chaw koj xav tso koj cov duab. (lub tswv yim zoo sib xws yuav ua haujlwm zoo tshaj)

Kauj Ruam 6: Kauj Ruam 7: Tsim Thaum Hais Cov Lus Tseeb

Kauj Ruam 7: Tsim Thaum Cov Nqe Lus Tseeb
Kauj Ruam 7: Tsim Thaum Cov Nqe Lus Tseeb
Kauj Ruam 7: Tsim Thaum Cov Nqe Lus Tseeb
Kauj Ruam 7: Tsim Thaum Cov Nqe Lus Tseeb

Thaum cov lus muaj tseeb yuav tsum tau ib txwm tshuaj xyuas yog tias lub pob nyem

Lub sijhawm cov lus tseeb hauv qab no qhia run2 uas tsim lub thawv rau lub vijtsam txais tos uas tso cai rau cov neeg siv txuas mus rau hauv daim npav game

Tsis quav ntsej qhov pib () rau tam sim no peb yuav xav tau tom qab

Thaum lub khawm digital tau raug nias peb txav mus rau lub ntsiab thaum cov lus tseeb

Hauv qab no yog qhov tseem ceeb thaum cov lus hais tseeb koj yuav tsum luam uas cuam tshuam nrog cov nyees khawm thiab kev ua haujlwm

Kauj Ruam 7: Kauj Ruam 8: Tsim Kev Ua Haujlwm

Kauj Ruam 8: Tsim Kev Ua Haujlwm
Kauj Ruam 8: Tsim Kev Ua Haujlwm
Kauj Ruam 8: Tsim Kev Ua Haujlwm
Kauj Ruam 8: Tsim Kev Ua Haujlwm
Kauj Ruam 8: Tsim Kev Ua Haujlwm
Kauj Ruam 8: Tsim Kev Ua Haujlwm

Koj yuav tsum tsim ntau txoj haujlwm uas suav nrog pib, txheej txheem _bz, txheej txheem_symbol, ploj_bz, yeej_bz, Dealcard, Compcard thiab kawg

Cov haujlwm no yog nyob hauv cov duab hauv qab no thiab tuaj nrog cov lus pom

Luam cov cai thiab tso nws siab dua qhov chaw tos txais tos tus lej code tab sis qis dua cov lej sib txawv

-Copy TXHUA ntawm cov haujlwm saum toj no raws li lawv txhua tus ua qhov tseem ceeb hauv kev ua si. -Txhua txoj haujlwm los nrog cov lus los piav qhia qhov chaws ua haujlwm li cas

Kauj Ruam 8: Kauj Ruam 10: Khiav

Kauj ruam 10: Khiav !!
Kauj ruam 10: Khiav !!

Khiav qhov kev ua si thiab txaus siab rau nws

Pom zoo: