Cov txheej txheem:
- Kauj Ruam 1: Cuam Tshuam ntawm Headers
- Kauj Ruam 2: Txuas Cov Boards
- Kauj Ruam 3: Nruab Qhov Tsim Nyog Software
- Kauj Ruam 4: Nrhiav Txoj Cai Serial Port
- Kauj ruam 5: Nyem Firmware
- Kauj Ruam 6: Pom zoo tias txhua yam raug teeb tsa kom raug
- Kauj Ruam 7: Txuas EMG Cov Hluav Taws Xob
- Kauj Ruam 8: Ua Si Flappy Bird 2.0 (Lub Sijhawm Loj Dua)
- Kauj ruam 9: Txaus siab rau
Video: Muscle Powered Flappy Bird: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Koj yuav nco qab thaum Flappy Bird coj lub ntiaj teb los ntawm cua daj cua dub, thaum kawg nws thiaj nrov ua tus tsim tawm nws los ntawm app khw muag khoom kom tsis txhob tshaj tawm qhov tsis xav tau. Nov yog Flappy Bird zoo li koj tsis tau pom dua ua ntej; los ntawm kev sib txuas ob peb tawm ntawm cov khoom ntim koj tuaj yeem tswj hwm lub npe Flappy Bird ncaj qha los ntawm koj cov leeg nrog lub zog ntawm electromyography (EMG).
Yog tias koj xav tau txais kev sib tw nrog EMG, thov tuaj koom peb Discord thiab Peb Lub Rooj Sib Tham. Peb zoo siab tau hnov los ntawm koj thiab peb ib txwm nyob ib puag ncig los pab yog tias koj ntsib teeb meem.
Khoom siv:
Nov yog txhua yam koj xav tau:
- 1 Sparkfun nrf52840 breakout board mini
- 1 MyoWare
- ~ 3 taw ntawm xaim, muaj ob peb xim ib txwm pab
- 1 xaim hlua
- 1 khob cij
- 1 digital multimeter
- 1 pob ntawm gel electrodes
Yam khoom tom ntej yog nyob ntawm yeem. Lub MyoWare ceeb toom tiv thaiv lub hwj chim ncaj qha los ntawm lub qhov hluav taws xob, yog li koj muaj ob txoj hauv kev: ua ntej, koj tuaj yeem khiav qhov kev ua si ntawm lub khoos phis tawj thiab txiav lub charger lossis koj tuaj yeem tua lub roj teeb. Lub nrf52840 lub roj teeb txuas tau txuas rov qab, yog li koj kuj tseem yuav tau rov muag koj lub roj teeb lub dav hlau uas tuaj yeem nyuaj yog tias koj tsis muaj kev paub ntau ntxiv.
Kauj Ruam 1: Cuam Tshuam ntawm Headers
Ua ntej cia peb txuas cov headers. Txawm hais tias peb tsis siv tag nrho cov pins ntawm nrf52840 pawg thawj coj tawg nws tseem yooj yim dua los txuas lub taub hau rau hauv txhua tus pin. Xa mus rau cov duab yog tias cov lus piav qhia tsis meej txaus txog dab tsi mus qhov twg.
Ntawm ib sab ntawm lub rooj tsavxwm txuas lub taub hau los ntawm VIN nqes mus rau tus pin 2, thiab ntawm lwm sab txuas 2 tus pin header ntawm 17 thiab 15 thiab lwm lub taub hau los ntawm tus pin 19 txog 10.
Tom ntej no peb xav txuas lub taub hau rau koj MyoWare. Muab 3 tus pin header rau ntawm +, -, thiab sig pins.
Ua ntej koj tua koj cov hlau txuas nws yog lub tswv yim zoo los tshuaj xyuas ob zaug ib qho koob uas zoo ib yam li lawv nyob ze rau ib leeg (ib yam li ob qho kev tshuaj xyuas hauv av thiab lub zog). Koj tuaj yeem ua qhov no los ntawm kev siv qhov kev tshuaj xyuas txuas ntxiv ntawm koj lub digital multimeter, thiab yog tias koj tsis paub meej tias qhov kev xaiv twg uas tsuas yog txheeb xyuas daim ntawv lo rau saum toj ntawm cov kauj ruam no. Muab ib tus coj rau txhua tus pin koj xav sim, thiab yog tias koj tsis hnov lub suab nrov nrov koj tsis tas yuav txhawj. Yog tias koj hnov lub suab nrov, koj yuav xav kov qhov kev txuas ntawd kom ntseeg tau tias cov pins tsis txuas ntxiv ua ntej txav mus rau kauj ruam tom ntej.
Thaum koj ua tiav, xav tias dawb los tua koj cov hlau txuas.
Kauj Ruam 2: Txuas Cov Boards
Ua raws li cov txheej txheem thiab cov duab, txuas koj cov khoom ua ke. Koj yuav tsum muaj peb qhov txuas: + rau VCC (lub zog), - rau GND (hauv av), thiab SIG rau tus pin 4 (AIN2). Nrf52840 yuav tsum nyob ntawm lub khob cij, thiab MyoWare tsuas tuaj yeem tso dawb-ntab. Nco ntsoov muab lub MyoWare noj qab nyob zoo cov xaim kom koj tuaj yeem txav nws ncig tau yooj yim. Tom qab tag nrho, nws yuav nyob ntawm koj txhais tes sai.
Kauj Ruam 3: Nruab Qhov Tsim Nyog Software
Koj yuav xav tau ob peb pob software sib txawv los ua kom txhua yam ua haujlwm. Tej zaum koj twb muaj qee qhov ntawm cov teeb tsa no, yog li cia li rub tawm yam koj xav tau.
- Nab hab sej 3, (3.6-3.8 yuav ua haujlwm tag nrho, 3.9 tsis txhawb nqa) - Nco ntsoov tseem nruab pip, sej tus thawj tswj hwm pob
- Adafruit's nrfutil -pip3 nruab --user adafruit -nrfutil
- Bleak- pip3 nruab --user bleak
- Pygame- pip3 nruab -U pygame --user
- Flappy Bird- git clone
Kauj Ruam 4: Nrhiav Txoj Cai Serial Port
Ua ntej tshaj, ntsaws koj lub rooj tsavxwm rau hauv koj lub computer. Txhawm rau tso software mus rau nrf52840 koj yuav tsum tau ob npaug-khawm RST khawm ze ntawm micro USB chaw nres nkoj. Yog tias lub teeb xiav ntsais muag sai sai koj npaj mus. Koj kuj yuav tsum tau txais pop-up ntawm koj lub khoos phis tawj qhia tias koj tau ntsaws rau hauv USB ntaus ntawv.
Ua ntej peb tso firmware rau ntawm lub cuab yeej, peb yuav tsum txiav txim siab qhov chaw nres nkoj twg uas koj pawg thawj coj saib xyuas tau muab tso tseg, thiab txoj hauv kev peb ua qhov no yog lub platform vam khom. Tej zaum koj twb muaj txoj hauv kev nyiam ua qhov no, thiab yog tias qhov xwm txheej zoo li txav mus rau qib tom ntej.
Qhov rai
Qhib tus thawj tswj ntaus ntawv thiab saib rau USB Serial Device hauv qab cov chaw nres nkoj. Piv txwv li, hauv daim duab txuas nrog lub cuab yeej nyob ntawm COM3.
Mac
Qhib lub davhlau ya nyob twg, thiab khiav 'ls /dev /tty.*' Thiab koj yuav tsum pom lub cuab yeej ua ib qho ntawm cov kev xaiv. Yog tias koj tsis tuaj yeem qhia nws yog dab tsi, sim tshem tawm koj lub rooj tsavxwm. Tom qab ntawd khiav cov lus txib dua thiab sau tseg tias lub cuab yeej twg tsis muaj npe nyob hauv, qhov no yuav tsum yog pawg thawj coj tawg.
Ubuntu/Debian
Qhib lub davhlau ya nyob twg thiab khiav 'ls /dev /tty*'. Ib qho ntawm cov cuab yeej no yuav yog yam koj xav tau, thiab nws yuav zoo li ua raws li ib ntawm ob qhov kev pom zoo npe: /dev /ttyS# lossis /dev /ttyACM#. Yog tias nws tsis meej uas yog koj lub cuab yeej, sim tshem nws thiab rov ua cov lus txib kom pom qhov sib txawv.
Kauj ruam 5: Nyem Firmware
Nkag mus rau hauv daim nplaub tshev nrog cov firmware binary (zoo li lub npe flappy-bird-demo), thiab khiav `adafruit-nrfutil --verbose dfu serial --package dfu-package.zip -p SERIAL_PORT -b 115200 --singlebank --touch 1200 `. Nco ntsoov hloov SERIAL_PORT nrog qhov chaw nres nkoj uas koj pom hauv cov kauj ruam dhau los. Yog ua tiav, koj yuav tsum pom qee yam zoo ib yam li cov duab saum toj no, thiab kev ntsais muag yuav tsum tso tseg.
Kauj Ruam 6: Pom zoo tias txhua yam raug teeb tsa kom raug
Yog tias txhua yam tau ua haujlwm txog tam sim no, cov kauj ruam no yuav tsum yooj yim los ntawm! Nco ntsoov tias koj nyob hauv flappy-bird-demo directory, thiab khiav 'python3 flappy.py`. Tom qab luv luv Bluetooth Tsawg Zog txuas cov txheej txheem, koj yuav tsum tau txais tos nrog nthwv dej ntawm nostalgia.
Flappy noog! Txawm li cas los xij, peb tseem tsis tau teeb tsa qhov kev tswj hwm tsis tau yog li txawm tias koj pib qhov kev ua si koj yuav tsis muaj kev tswj hwm qhov flapping. Kaw qhov kev ua si rau tam sim no thiab tshem lub hwj chim cable los ntawm koj lub rooj tsavxwm.
Kauj Ruam 7: Txuas EMG Cov Hluav Taws Xob
Tam sim no nws yog lub sijhawm rau ib feem uas ua rau Flappy Bird version no tshwj xeeb: tswj cov leeg. Tam sim no, qhov kev xaiv pheej yig nkaus xwb yog gel electrodes, yog li sau 3 ntawm lawv. Hauv qhov piv txwv ntawm no, 3M cov hluav taws xob me me me, yog li peb txiav ib qho ntawm lawv hla hla ntev kom nws phim cov duab. Txoj kab txiav nrog daim ntawv lo yuav tsum ua kom raug qhov loj me.
Thaum lawv yog qhov loj me, tso ob ntawm lawv hauv kab ntawm sab hauv koj txhais caj npab saum lub luj tshib (raws li daim duab). Tom qab ntawd muab MyoWare txuas rau koj txhais caj npab, txuas lub tshuab hluav taws xob mus rau qhov txuas txuas dub thiab nias qhov ntawd ntawm thaj chaw pob txha ntawm koj txhais caj npab (tseem zoo li daim duab).
Kauj Ruam 8: Ua Si Flappy Bird 2.0 (Lub Sijhawm Loj Dua)
Lub sijhawm kom tau txais Flappy! Tam sim no uas MyoWare nyob ntawm koj txhais caj npab, xyuas kom koj nkag tau mus rau lub qhov hluav taws xob uas tsis yog qhov hluav taws xob (xws li ntsaws koj lub laptop lossis npaj koj lub roj teeb), thiab lub zog ntawm koj lub nrf52840 pawg thawj coj tawg. Yog tias koj lub MyoWare tsis pom kev, nco ntsoov nws tseem siv tau ntawm kev siv qhov hloov pauv qhia hauv daim duab.
Tam sim no koj tuaj yeem rov pib Flappy Bird zoo li koj tau ua ua ntej, `python3 flappy.py` thiab tom qab kev sib txuas, koj yuav pom Flappy Bird rov pib dua. Koj yuav tsum tau nyem ib zaug ntawm qhov screen kom pib qhov kev ua si, tab sis tam sim no koj yuav tsum tuaj yeem nyem koj lub nrig kom nrov nrov, thiab tom qab txuas ntxiv nyem koj lub nrig kom dhia thiab hla cov kav dej.
Thaum koj tau nws ua haujlwm, peb yuav nyiam nws yog tias koj tshaj tawm qee cov qhab nia siab (lossis tawm tswv yim) ntawm peb lub rooj sab laj lossis Discord. Peb nyob ib puag ncig yog tias koj xav tau kev pab kom ua haujlwm tau zoo.
Kauj ruam 9: Txaus siab rau
Vam tias, koj nyiam qhov kev qhia no thiab muaj peev xwm ua txhua yam ua tiav. Peb tab tom ua haujlwm hnyav los tsim cov phiaj xwm txias dua nrog cov thev naus laus zis no, thiab vam tias yuav txias dua Cov Lus Qhia! Kawm paub ntau ntxiv ntawm peb lub vev xaib.
Yog tias koj tab tom ntsib teeb meem lossis ntxhov siab, tsis txhob txhawj xeeb! Peb tau khiav mus rau peb qhov kev ncaj ncees ntawm cov teeb meem ua rau nws ib yam, yog li thov tsis txhob yig mus cuag peb thiab peb zoo siab siv sijhawm qee lub sijhawm los pab koj cov leeg txuas rau koj lub khoos phis tawj. Koj tuaj yeem tuaj yeem tshaj tawm cov lus hais qhia, koom nrog peb ntawm Discord, tshaj tawm hauv peb lub rooj sab laj, lossis email ncaj qha rau peb ntawm [email protected].
Ua tsaug!
Pom zoo:
Arduino Flappy Bird - Arduino 2.4 "TFT Touchscreen SPFD5408 Bird Game Project: 3 Kauj Ruam
Arduino Flappy Bird | Arduino 2.4 "TFT Touchscreen SPFD5408 Bird Game Project: Flappy Bird yog qhov kev ua si nrov dhau los nyob rau ob peb xyoos thiab ntau tus neeg tsim nws hauv thier tus kheej txoj kev yog li kuv, Kuv tsim kuv li version ntawm flappy noog nrog Arduino thiab pheej yig 2.4" TFT Touchscreen SPFD5408, Yog li cia peb pib ua
Arduino Flappy Bird Game Nrog 2.4: 3 Cov Kauj Ruam
Arduino Flappy Bird Game Nrog 2.4: Nyob Zoo Cov Menyuam, hauv cov lus qhia no peb yuav kawm paub tsim thiab khiav game flappy bird game nrog arduino uno ntawm 2.4 " tft touchscreen.Since flappy noog yog qhov kev ua si nrov heev yog li kuv xav tias kuv yuav tsum sim kuv version ntawm flappy noog yog li peb yuav ua si flappy bir
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Flappy Bird ntawm ATtiny85 thiab OLED Display SSD1306: 6 Cov Kauj Ruam (nrog Duab)
Flappy Bird ntawm ATtiny85 thiab OLED Display SSD1306: Hav Txhua Tus, Hnub no kuv yuav qhia koj qhov yooj yim flappy noog clone uas kuv tau tsim, thiab yuav ua li cas koj tuaj yeem mus ua qhov kev ua si zoo sib xws. Kuv yuav yeej ib txwm hla dhau kuv cov cai nrog koj thiab piav qhia nws ua haujlwm li cas txhua kauj ruam ntawm txoj kev. Qhov game no yog tsim los rau ru
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv