Cov txheej txheem:
- Kauj Ruam 1: Txhim Kho Kos rau Arduino
- Kauj ruam 2: Cov ntaub ntawv
- Kauj Ruam 3: Xaiv Sprites
- Kauj Ruam 4: Kho Qhov Loj ntawm Sprites Loj
- Kauj Ruam 5: Tom Qab
- Kauj Ruam 6: Obstacle Sprites
- Kauj Ruam 7: Upload Arduino Block Code
- Kauj Ruam 8: Dog Sprite Code
- Kauj Ruam 9: Upload Obstacle Ball Code
- Kauj Ruam 10: Luam Obstacle
- Kauj Ruam 11: Kho Kev Tawm Tsam Tawm Tsam Ntawm Obstacle Sprite
- Kauj Ruam 12: Kev Sib Txuas Kho Vajtse
- Kauj Ruam 13: Kauj Ruam Kawg
Video: Gaming Siv Arduino: 13 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Feem ntau ntawm cov uas tuaj xyuas ntawm no yuav tau ua cov haujlwm siv arduino, tab sis tsawg leej paub paub siv nws li cas rau kev ua si. Cov lus qhia no yuav coj koj los ntawm kos ntawm yuav ua li cas ua yeeb yaj kiab game uas tuaj yeem tswj hwm siv Arduino.
Cov lus qhia no yuav qhib daim ntawv thov tshiab ntawm kev siv Arduino thiab ua rau koj cov phiaj xwm zoo dua li ua ntej.
Kauj Ruam 1: Txhim Kho Kos rau Arduino
Thov mus saib lub xaib
Txog S4A S4A yog Scratch kev hloov kho uas tso cai rau kev yooj yim programming ntawm Arduino qhib qhov chaw kho vajtse platform. Nws muab cov thaiv tshiab rau kev tswj hwm cov ntsuas thiab tus ua haujlwm txuas nrog Arduino. Kuj tseem muaj cov ntawv ceeb toom sensor zoo ib yam li PicoBoard ib qho. Lub hom phiaj tseem ceeb ntawm txoj haujlwm yog ua kom tib neeg nyiam mus rau lub ntiaj teb txoj haujlwm. Lub hom phiaj tseem yog txhawm rau muab qib sib cuam tshuam rau Arduino cov programmer nrog kev ua haujlwm xws li cuam tshuam nrog cov pawg ntawm pawg los ntawm cov xwm txheej ntawm cov neeg siv.
Txhim kho Firmware rau hauv koj li Arduino3 cov kauj ruam
Qhov firmware no yog ib qho software uas koj xav tau los nruab rau hauv koj lub Rooj Tswjhwm Saib Arduino kom tuaj yeem sib txuas lus nrog nws los ntawm S4A. Rub tawm thiab teeb tsa Arduino ib puag ncig los ntawm kev ua raws cov lus qhia ntawm https://arduino.cc/en/Main/Software. Coj mus rau hauv tus account Arduino Uno xav tau yam tsawg kawg version 0022. Rub peb cov firmware los ntawm no Txuas koj li Arduino board rau USB chaw nres nkoj hauv koj lub computer Qhib cov ntaub ntawv firmware (S4AFirmware16.ino) los ntawm Arduino ib puag ncig Hauv Cov cuab yeej ntawv qhia zaub mov, xaiv pawg thawj coj thiab ntu chaw nres nkoj uas lub rooj tsav xwm tau txuas nrog thauj khoom firmware rau hauv koj lub rooj tsavxwm los ntawm File> Upload
Kauj ruam 2: Cov ntaub ntawv
Txhawm rau ua kom yooj yim rau cov nyeem peb yuav ua tsuas yog ib lub khawm tswj cov vis dis aus game.
Koj yuav xav tau:
Lub siab xav;)
1 Pawg Arduino
jumper cov xov hlau
1 khob cij
Momentary Pushbutton Hloov
1 tus tiv thaiv 220 ohms (lossis ze rau qhov no)
Kauj Ruam 3: Xaiv Sprites
Koj tuaj yeem xaiv ib qho sprite los ntawm qhov tsis xav tau sprites uas koj xav tau los ntawm kev xaiv tshiab sprites tam sim no nyob rau hauv qab txoj cai vaj huam sib luag ntawm lub interface.
Txhawm rau ua kom nws muaj zog koj yuav tsum tau mus rau khaub ncaws thiab ntxiv cov ris tsho rau hauv sprite xaiv
Kuv xaiv tus dev xiav vim nws muaj peb qho khaub ncaws.
Koj tseem tuaj yeem rub tawm sprites tshiab los ntawm ntau lub vev xaib online.
Kauj Ruam 4: Kho Qhov Loj ntawm Sprites Loj
Sprites thiab arduino board pom ntawm cov zaub zaub ntawm sab saum toj txoj cai vaj huam sib luag ntawm lub interface tuaj yeem raug txo los ntawm qhov loj me thiab txav los siv siv qhov me me tab nyob rau sab saum toj ntawm lub vaj huam sib luag.
Kauj Ruam 5: Tom Qab
Lub keeb kwm yav dhau yuav muab cov txiaj ntsig zoo rau koj cov vis dis aus.
Mus rau hauv qab vaj huam sib luag sab xis thiab xaiv theem kev xaiv thiab xaiv ib theem los ntawm theem pib lossis koj tuaj yeem ntxiv koj tus kheej.
Kauj Ruam 6: Obstacle Sprites
Txhua qhov vis dis aus muaj cov nyom rau cov neeg ua si kom tau txais kev zoo siab txog.
Yog li ntawm no peb yuav xaiv ntau sprites rau cov nyom.
Kuv xaiv cov pob raws li kuv cov nyom sprites los ntawm kev xaiv sprites tshiab.
Kauj Ruam 7: Upload Arduino Block Code
Xaiv cov arduino los ntawm lub vaj huam sib luag hauv qab thiab tso cov block thaiv los ntawm rub thiab poob los ntawm sab laug feem ntau thaiv cov cai vaj huam sib luag raws li qhia hauv daim duab.
Kauj Ruam 8: Dog Sprite Code
Xaiv Tus dev sprite los ntawm lub vaj huam sib luag hauv qab hauv qab thiab rub cov block thaiv los ntawm rub thiab poob los ntawm sab laug feem ntau thaiv cov cai vaj huam sib luag raws li qhia hauv daim duab.
Kauj Ruam 9: Upload Obstacle Ball Code
Xaiv Obstacle sprite los ntawm lub vaj huam sib luag hauv qab thiab rub cov block thaiv los ntawm rub thiab poob los ntawm sab laug feem ntau thaiv txoj cai vaj huam sib luag raws li qhia hauv daim duab.
Kauj Ruam 10: Luam Obstacle
Tsuas yog txoj cai ntawm qhov teeb meem sprite ntawm lub vaj huam sib luag zaub thiab xaiv theej tawm thiab koj mus, koj muaj koj qhov teeb meem theej tawm.
Kauj Ruam 11: Kho Kev Tawm Tsam Tawm Tsam Ntawm Obstacle Sprite
Xaiv lub pob sprite thiab mus rau lub vaj huam sib luag sab saum toj raws li cim hauv daim duab thiab hloov nws txoj kev taw qhia kom nce.
Kauj Ruam 12: Kev Sib Txuas Kho Vajtse
txuas cov khoom siv kho vajtse raws li qhia
Kauj Ruam 13: Kauj Ruam Kawg
Txuas lub arduino board rau lub khoos phis tawj nrog lub xov tooj cua thiab nias tus chij ntsuab ntawm sab xis ntawm lub interface thiab nyob ntawd koj tau txais koj qhov kev ua si tau npaj tiav.
Pom zoo:
Cov Khoom Siv Teeb Meem Siv Chaw Taws Teeb Siv Arduino: 7 Kauj Ruam
Cov Khoom Siv Teeb Meem Siv Khoom Siv Hluav Taws Xob Siv Arduino: Tam sim no, Cov Tsim, Cov tsim tawm tau nyiam Arduino rau kev txhim kho sai ntawm cov qauv ntawm cov phiaj xwm. Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Arduino muaj zej zog cov neeg siv zoo heev. Hauv qhov no
Saib Xyuas Kev Siv Sijhawm Siv Raspberry Pi thiab AIS328DQTR Siv Python: 6 Cov Kauj Ruam
Saib Xyuas Kev Siv Sijhawm Siv Raspberry Pi thiab AIS328DQTR Siv Python: Kev nrawm yog qhov kawg, Kuv xav raws li qee txoj cai ntawm Physics.- Terry Riley Tus cheetah siv qhov nrawm nrawm thiab hloov pauv sai thaum caum. Tus tsiaj nrawm tshaj plaws nyob ntawm ntug hiav txwv ib zaug hauv ib lub sijhawm siv nws qhov nrawm tshaj plaws kom ntes tau cov tsiaj txhu. Qhov
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Nkag Platform: 9 Cov Kauj Ruam
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Siab Platform: Christmas tsuas yog ib lub lim tiam xwb! Txhua leej txhua tus tibneeg hu tauj coob nrog kev ua koob tsheej thiab tau txais khoom plig, uas, los ntawm txoj kev, tau txais txhua qhov nyuaj dua kom tau nrog qhov tsis muaj peev xwm nyob ib puag ncig peb. Yuav ua li cas mus los ntawm khoom plig qub thiab ntxiv qhov kov ntawm DIY rau
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Tsiv Tawm Sijhawm Siv Arduino + DS1307 + Neopixel: Rov Siv Qee Cov Khoom Siv: 5 Kauj Ruam
Tawm Tawm Sijhawm Siv Arduino + DS1307 + Neopixel: Rov Siv Qee Cov Khoom Siv: Los ntawm cov phiaj xwm yav dhau los Kuv muaj Arduino UNO thiab Neopixel LED sawb sab laug, thiab xav ua qee yam txawv. Vim tias Neopixel sawb muaj 60 LED teeb, xav siv nws los ua lub moos loj. Txhawm rau qhia Lub Sijhawm, liab 5-LED ntu tau siv (60 LED