Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Txoj Cai Txheej Txheem
- Kauj ruam 2: Spotify Kev Sib Koom
- Kauj Ruam 3: Ua Kom Nws Zoo Zoo
Video: RFID Jukebox: 3 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nov yog kuv nkag mus rau hauv "Audio" kev sib tw - yog tias koj txaus siab los ntawm qhov no thov thov pov npav rau kuv
Cov ntawv tshaj tawm no yuav sim tsim "scroll tus phooj ywg" version ntawm yuav ua li cas-rau video suav nrog nyob rau sab saum toj ntawm kab ntawv no
Cov vis dis aus mus rau hauv kev nthuav dav zoo txog kev tswj ntws thiab software uas kuv siv. Ua tibzoo saib yog tias koj xav kawm ntxiv.
Cov dej ntws yog raws li hauv qab no:
Kev Ua Haujlwm Ib txwm - Nyeem Ntawv thiab Ua Rau Spotify Ua Si Nkauj:
1) Daim npav RFID tau nyeem los ntawm daim npav nyeem tau
2) Daim npav nyeem ntawv nthuav tawm cov ntaub ntawv xov xwm rau txhua daim npav mus rau Arduino
3) Arduino "Serial prints" cov ntaub ntawv nws tau txais rau raspberry pi
4) Pi tau txais daim npav ID los ntawm Arduino. Pi saib daim npav ID hauv lub rooj kom pom qhov sib xws Spotify URI
5) Pi hu Spotify API los ua si xaiv URI
Teeb theem: Koom nrog RFID Tag nrog Spotify URI
1) txog 3) los ntawm sab saud
4) Pi xav kom kab hais kom sib cav nrog qhov tshwj xeeb Spotify URI koj xav koom nrog daim npav
5) Pi tsim cov ntawv nkag tshiab (lossis tshem tawm yog tias daim npav ID twb tau pom hauv rooj) rau daim npav ID, SpotifyURI khub
Yog li koj tsis yog "programming" cov cim npe no. Cov cim no muaj lawv tus kheej tsim-hauv microcontroller uas hloov pauv qhov chaw los ntawm tus nyeem ntawv lub kauj mus rau lub suab ntawm nws tus lej tshwj xeeb. Txhua yam koj tab tom ua yog tsim phau ntawv txhais lus ntawm tus yuam sij, tus nqi khub rau tus pi nyeem los ntawm.
Piv txwv li, hais tias kuv muaj daim npav nrog ID "2_54_57_53_23_33_3". Kuv tsis paub thawj tus ID yog dab tsi, tab sis thaum kuv nyeem cov ntawv los ntawm Arduino tom qab luam theej duab nws, qhov no yog qhov uas tawm los.
Cia peb hais tias kuv xav ua daim npav no ua si Al Green qhov zoo tshaj plaws hits album thaum nws tau luam tawm. Txhawm rau ua tiav qhov no, Kuv yuav mus rau Spotify thiab luam theej tawm cov nkauj URI, tau txais "spotify: album: 6W0V8B0fJItvOwC8v114rZ". Tam sim no, raws li tau pom hauv daim vis dis aus, kuv muab URI no rau qhov kev pab cuam nab nab los koom nrog daim npav ID ntawm "2_54_57_53_23_33_3" nrog spotify URI ntawm "spotify: album: 6W0V8B0fJItvOwC8v114rZ" hauv lub rooj. "Tus yuam sij" yog daim npav ID, thiab "tus nqi" yog URI.
Tam sim no, thaum kuv nthuav tawm txoj haujlwm tseem ceeb, thiab kuv tus pi tau txais daim npav ID ntawm "2_54_57_53_23_33_3", nws yuav saib nws hauv lub rooj, sib sau URI cuam tshuam nrog nws, thiab muab URI raws li kev sib cav rau Spotify API.
Khoom siv
Dedicated computer (raspberry pi zoo tshaj rau qhov kev qhia no)
RFID daim npav nyeem ntawv tus qauv los txuas rau lub khoos phis tawj tshwj xeeb
Daim npav RFID tau tshaj nrog koj tus nyeem ntawv
Yeem tab sis pom zoo: Ib qho khoom seem Arduino ua tus txiv neej nruab nrab ntawm tus nyeem ntawv thiab khoos phis tawj kom txuag sijhawm txhim kho
Kauj ruam 1: Txoj Cai Txheej Txheem
Cov ntxaij vab tshaus txuas nrog qhia cov qauv txheej txheem yooj yim rau cuam tshuam nrog Serial ntawm Arduino thiab pi. Qhov kom zoo dua ntawm kev siv Arduino ua tus txiv neej nruab nrab yog tias kuv tuaj yeem ntsaws ncaj qha rau hauv Pi's USB chaw nres nkoj raws li cov lus nkag. Qhov no tau cawm kuv qhov mob taub hau txij li tam sim no kuv tsis tas yuav paub teeb tsa GPIO pins li cov ntawv nkag.
Kuv daim ntawv tshwj xeeb/nyeem ntawv ua ke muab rau kuv qhov txawv txav uas txhua daim npav pib nrog 2 thiab xaus nrog 3. Qhov no ua rau kuv sai thiab qias neeg txoj kev paub thaum kis tau pib lossis xaus. Nyob ntawm daim npav/nyeem ntawv koj muaj, koj tus lej yuav tsum hloov pauv.
Kauj ruam 2: Spotify Kev Sib Koom
Tam sim no rau qhov nyuaj - cuam tshuam nrog Spotify. Kuv vam khom ntau ntawm 3 peev txheej ntawm no:
1) Txoj haujlwm Spotifyd, uas tso cai rau koj lub cuab yeej los ua tus hais lus ntxiv rau koj tus lej Spotify.
2) Qhov project Diskplayer, nyob rau hauv uas qee tus txiv neej random sau nws tus kheej mus sau ntawv rau cuam tshuam nrog Spotify API
3) Tus txiv neej zoo nkauj no uas hla dhau OAUTH nrog Spotify. Yog tsis muaj nws kuv yuav tau nkim ntau teev.
Ua ntej teeb tsa Spotifyd thiab sim nws kom paub tseeb tias pi qhia tau tias yog tus hais lus rau koj tus lej nyiaj.
Tom qab ntawd, ib zaug uas ua haujlwm, Kuv siv Diskplayer los ntsuas spotify API. Nws nyob ntawm no uas nws yuav nug koj kom muab Spotify API token. Yog tias koj tab tom teeb tsa lub taub hau zoo li kuv, koj yuav qhib tsis tau nws hauv qhov browser ntawm pi. Vim li no, koj yuav tsum tau ua raws cov theem hauv cov vis dis aus saum toj no hauv qib 3). Txoj haujlwm no yuav tsis tshwm sim yam tsis muaj tus txiv neej hauv daim vis dis aus no!
Kauj Ruam 3: Ua Kom Nws Zoo Zoo
Thaum txhua yam ua haujlwm, koj yuav nyob nrog cov xov ntawm cov xov hlau uas ua txhua yam koj xav tau los ntawm Spotify. Txhawm rau ntxuav nws, tso txhua yam hauv rooj plaub, thiab luam qee daim ntawv rau koj daim npav! Kuv siv Avery 22822 cov ntawv (uas tuaj nrog daim duab Photoshop dawb rau luam ntawv hauv tsev). Kuv muaj peev xwm rub cov duab los ntawm google, thiab npuaj lawv hauv cov qauv duab Photoshop raws li xav tau. Tom qab ob peb teev ntawm kev kawm Photoshop, Kuv tau luam tawm thiab kaw cov ntawv lo ntawm kuv daim npav RFID dawb paug.
Kuv muaj kev lom zem heev nrog Txoj Haujlwm no thiab yuav siv nws yav tom ntej kom lom zem rau tib neeg ntawm kuv chav tsev. Kuv / Qhia rau kuv paub yog tias koj ua tiav koj tus kheej!
Kuv tab tom nkag rau hauv qhov kev sib tw "Suab" - yog tias koj txaus siab nws zoo siab los pov npav rau qhov no. Ua tsaug!
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
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
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
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