Cov txheej txheem:

Xus LightshowPi: 6 Kauj Ruam
Xus LightshowPi: 6 Kauj Ruam

Video: Xus LightshowPi: 6 Kauj Ruam

Video: Xus LightshowPi: 6 Kauj Ruam
Video: Koj Hais Dab Tsi?/Suabci Kwm & Ab Meej Ham/Official MV 2023 2024, Kaum ib hlis
Anonim
Xus LightshowPi
Xus LightshowPi
Xus LightshowPi
Xus LightshowPi
Xus LightshowPi
Xus LightshowPi

Yog li, lub caij no peb tab tom nrhiav qee yam tshiab los ntxiv rau peb Haunted Halloween Yard thiab kuv tau ntog hla qhov Raspberry Pi Lightshow project ntawm https://lightshowpi.org. Kuj tseem muaj ntau cov ntaub ntawv zoo ntawm https://www.reddit.com/r/LightShowPi/. Hauv cov lus qhia no, Kuv yuav tsuas yog npog cov khoom uas kuv tau siv los tsim kuv lub npov. Ua ntej kuv mus txuas ntxiv, Kuv xav tias yuav tsum hais txog qhov haujlwm no yuav tsum tau tuav cov khoom siv hluav taws xob thiab txuas xov tooj thiab tsis yog npaj rau menyuam yaus yam tsis muaj neeg saib xyuas. Qhov tseeb, yog tias koj tsis muaj ntawv tso cai hluav taws xob, thov nrog koj tus kws hluav taws xob hauv cheeb tsam pab koj. Thiab TSIS TXHOB muab kev pabcuam rau txoj haujlwm no thaum nws raug ntsaws. Zoo, txaus PSA. Zoo siab Xus. Xijpeem, LightShowPi software zoo nkauj darn kool! Nws syncs koj lub teeb rau koj lub suab paj nruag. Muaj microWeb server yog li koj tuaj yeem tswj lub teeb thiab nkauj los ntawm browser. Nws kuj suav nrog kev txhawb nqa SMS nrog rau Kev Pabcuam Tshaj Tawm ntawm Pianobar. Peb ua "Midnight Syndicate Radio" ntawm Pandora. Yog tias koj tsis paub nrog lawv, Midnight Syndicate ua suab paj nruag Halloween zoo kawg. Txoj haujlwm no tau siv Raspberry Pi 4, tab sis kuv ntseeg tias koj tuaj yeem siv ib qho ntawm kev kho dua qub.

Khoom siv

pom Studio Raspberry Pi 4 Qauv… https://www.amazon.com/dp/B07WBZM4K9Samsung 32GB EVO Plus Class 10… https://www.amazon.com/dp/B0749KG1JKMazerPi Raspberry Pi 4 Case,… https:// www.amazon.com/dp/B07W3ZMVP1CanaKit 3.5A Raspberry Pi 4 Power… https://www.amazon.com/dp/B07TYQRXTKKEYESTUDIO GPIO Breakout Kit rau Raspberry Pi - Sib Sau Pi Breakout + Zaj sawv Ribbon Cable + 400 Tie Points Solderless Breadboard https://www.amazon.com/dp/B072XBX3XX/(2) SainSmart 8-Channel 5V Solid State Relay Module Board rau Arduino Uno Duemilanove MEGA2560 MEGA1280 ARM DSP PIC https://www.amazon.com/dp/B006J4G45G/Icstation Digital Audio Transmitter Stereo DSP PLL Module 88-108MHz with LCD Display MIC USB Input https://www.amazon.com/dp/B01N7DIRE9/UGREEN Lub Pob Ntseg Splitter, 3.5mm Lub Suab Tso Y Y Splitter Extension Cable Txiv neej rau Poj Niam Dual Lub Pob Ntseg Jack Adapter rau Pob Ntseg, Headset Compatible with iPhone, Samsung, Tablet, Laptop (Black) https://www.amazon.com/dp/B00LM0ZGK6/BOSS Audio Systems BVC10 Universal tswj lub ntim - Siv Nrog Lub Tsheb Tau Txais, ATV, UTV, Maus taus Lub Suab https://www.amazon.com/dp/B0149VBF8G/ Ntxiv rau, koj yuav xav tau Tupperware bin LOS YOG qee qhov ntxiv, tshwj xeeb tshaj yog huab cua yog tias nws yuav tsum raug mus rau lub ntsiab. Hauv kuv qhov xwm txheej, Kuv tau sau txhua yam rau hauv 5gal Tupperware bin qub. Lub qhov rooj txais tos, kuv txoj haujlwm siv 16 txoj hauv kev, yog li kuv muaj (8) ob lub qhov hluav taws xob. Ntxiv rau (1) lub qhov hluav taws xob ntxiv hauv lub npov kom muaj zog txhua yam. Kuv kuj pom zoo tiv thaiv huab cua rau koj lub qhov hluav taws xob. Koj yuav xav tau xaim, tau kawg, txhawm rau txuas txhua yam. Hauv kuv qhov xwm txheej, kuv muaj ib txoj hlua txuas qub uas tau raug txiav thiab tshem tawm ntawm qhov kev pabcuam. Yog li kuv siv cov xaim sab hauv. Kuv kuj tseem siv lub qub USB them nyiaj rau lub zog sab nraud rau kev xa tawm thiab ua kom lub zog xa xov FM. Yuav kom txuag tau ib feem koj yuav txiav txim siab ua lub thawv ntim khoom sab hauv nrog ib qho nrog ua hauv USBs.

Kauj Ruam 1: Txhim Kho Koj Cov Txais Txais

Nruab Koj Cov Txais Tos
Nruab Koj Cov Txais Tos
Nruab Koj Cov Txais Tos
Nruab Koj Cov Txais Tos

Txog kuv lub thawv ntawv, Kuv siv ib qho 5Gal Tupperware bin. Kuv nyiam qhov kev xaiv no vim tias lawv twb dhau los tiv thaiv huab cua, los ntawm kev tsim. Thiab, yog tias koj plam txiav ib yam, lawv pheej yig heev thiab npaj tau. Kuv tau siv lub phaj rov qab los tiv thaiv huab cua lub thawv ntim khoom raws li tus qauv los txiav qhov qhib rau lub qhov taub. Kuv pom kuv lub qhov loj me me tshaj qhov kuv xav tau. Koj yuav ntsuas txawv. Nco ntsoov, yog tias koj npaj yuav ntxiv cov huab cua tiv thaiv rau sab nraud ntawm koj lub chaw txais khoom, koj tawm hauv chav txaus ntawm lawv rau cov npog kom haum ib sab, thiab tseem qhib dawb. Kuv tsis suav qhov nrug deb thiab tau txais txiaj ntsig tiag tiag uas lawv tseem haum nyob ib sab.

Kauj Ruam 2: Txhim Kho Koj Li Chaw Txais Tos thiab Tshaj Tawm

Xaim Koj Cov Txais Txais thiab Tshaj Tawm
Xaim Koj Cov Txais Txais thiab Tshaj Tawm
Xaim Koj Cov Txais Txais thiab Tshaj Tawm
Xaim Koj Cov Txais Txais thiab Tshaj Tawm

Txhawm rau xaim koj lub txais, pom tseeb Koj yuav xav tau hluav taws xob xaim. Kuv muaj ib txoj hlua txuas qub qub uas tau nicks thiab tshem tawm ntawm kev pabcuam. Kuv siv daim los ntawm qhov ntawd los xaim kuv lub thawv. Pub koj qhov nruab nrab (dawb) hauv thiab tawm ntawm txhua lub qhov rau ntawm cov ntsia hlau nyiaj. Cov av (ntsuab) av ntawm ntsuab ntsia hlau. Koj Kub (dub), los ntawm kev xa tawm, thaj av ntawm cov ntsia hlau tooj dag. Txhawm rau faib lub duplex rau hauv ob qho kev sib cais, txiav tus choj tooj dag me me ntawm cov ntsia hlau. Daim ntawv ceeb toom hauv cov duab, daim duab liab yog Tus Kub Kub, hloov mus rau ib sab ntawm txhua qhov kev xa tawm thiab tom qab ntawd mus rau lub zog siv hluav taws xob, thaum cov duab liab qab yog tawm mus rau txhua qhov chaw.

(2) SainSmart 8-Channel 5V Solid State Relay Module Board rau Arduino Uno Duemilanove MEGA2560 MEGA1280 ARM DSP PIC

Cov relays yuav xav tau lub zog 5v. Kuv tau pom qee qhov kev piav qhia siv onboard 5v muab los ntawm Pi, tab sis kuv kuj tau nyeem qhov ntawd, muab qhov xwm txheej ntawm txoj haujlwm, onboard 5v yuav tsis muaj hwj chim txaus. Kuv tsis xav txhawj txog ob txoj hauv kev yog li kuv tsuas yog ntxiv lub USB charger lub voos xwmfab, txiav cov xaim los ntawm USB qub them nyiaj cable, thiab voila! ib qho ntxiv 5v, txuas rau qhov txuas. *Cov lus ceeb toom txog kev xa tawm. Raws li nws hloov tawm, tsis yog txhua qhov kev sib txuas yog tib yam … yog li kuv tau kawm. Tej zaum koj yuav pom, hauv qee cov duab thaum ntxov kuv muaj ib khub xiav 5v "tshuab" txuas nrog uas kuv tau pib ua haujlwm. Tab sis, raws li kuv tau kawm sai, cov buggers no tuaj yeem nrov nrov zoo li koj cov yeeb yam tawm. Kuv kuj tau nyeem tias cov kev xa tawm no muaj lub neej luv dua. Txuag koj tus kheej mob taub hau thiab tsuas yog mus rau SSR txuas ntxiv. Lawv nyob ntsiag to. Thiab, tsuav yog koj khaws koj Circuit hauv qab 2A, lawv yuav tsum nyob ntev.

Kauj ruam 3: Hlau Koj Pi

Hlau Koj Pi
Hlau Koj Pi
Hlau Koj Pi
Hlau Koj Pi

Raws li koj yuav pom hauv lub pix, Kuv tab tom siv Cov Khoom Siv Tawm. Qhov no tsis tsim nyog thiab koj tuaj yeem xaim ncaj qha rau RPi. Kuv xaiv txoj hauv kev no vim tias kuv siv kuv tus Pi rau txhua yam ntawm cov haujlwm me me thiab nrog cov khoom tawg no, Kuv tau txais kev sib txuas sai. Txoj kev ntawd, thaum kawg ntawm lub caij, kuv tuaj yeem tshem Pi, khaws lub Lightshow lub thawv nrog kuv cov khoom hnub so, thiab tsis tas yuav rov tso kuv tus pinout lub caij tom ntej.

KEYESTUDIO GPIO Breakout Kit rau Raspberry Pi - Sib Sau Pi Breakout + Rainbow Ribbon Cable + 400 Tie Points Solderless Breadboard

Tus Pin teeb tsa rau txoj haujlwm no yuav txawv me ntsis dua li tus qauv RPi tus pin tawm. LightshowPi siv WiringPi rau lawv cov qauv. Koj yuav tsum txheeb xyuas https://wiringpi.com/pins kom phim koj qhov tshwj xeeb RPi version.

Kauj Ruam 4: Ntxiv FM Transmitter (xaiv tau)

Ntxiv FM Transmitter (xaiv tau)
Ntxiv FM Transmitter (xaiv tau)
Ntxiv FM Transmitter (xaiv tau)
Ntxiv FM Transmitter (xaiv tau)

Raws li kuv nkag siab, Raspberry Pi tau tsim hauv FM transmitter, tab sis kuv tsis tuaj yeem ua nws nrog RPi4. Kuv ntxiv ib sab nraud. Tsis muaj ntau yam rau cov kauj ruam no, xaiv lub chaw nres tsheb uas tuag hauv koj cheeb tsam, USB kom muaj zog rau nws, 3.5mm cov tswv yim rau lub suab. Txog tus kav hlau txais xov, Kuv tau siv cov khoom seem ntawm cov xaim, nthuav tawm ib kem ntawm peb lub sam thiaj pem hauv ntej. Peb tau txais kev txais tos txhua txoj kev nyob ib ncig ntawm peb qhov thaiv.

  • Icstation Digital Audio Transmitter Stereo DSP PLL Module 88-108MHz nrog LCD Zaub MIC USB Input
  • UGREEN Lub Pob Ntseg Splitter, 3.5mm Lub Suab Lub Suab Y Y Splitter Extension Cable Txiv neej rau Poj Niam Dual Lub Pob Ntseg Jack Adapter rau Pob Ntseg, Lub Pob Ntseg Tau Tshaj nrog iPhone, Samsung, Tablet, Laptop (Dub)
  • BOSS Audio Systems BVC10 Universal ntim tswj - Siv Nrog Lub Tsheb Txais, ATV, UTV, Maus taus Suab Tshuab

Kuv suav nrog qhov xaiv tau lub mloog pob ntseg thiab lub ntim ntim hauv kab vim tias kuv muaj lub suab qub thiab cov hais lus txuas nrog rau cov kab ke no ib yam. Peb tshaj tawm thiab ua suab paj nruag nrov nrov txog ib puag ncig 9 teev tsaus ntuj, thaum lub sijhawm ntawd kuv lub zog tso tawm thiab FM tshaj tawm txuas ntxiv mus txog thaum 11 teev tsaus ntuj.

Huag! Kuv Yuav luag tsis nco qab. Ua daim paib kom koj cov neeg nyob ze paub qhov chaw nres tsheb twg kom qhib. Qhov no yog qhov uas cov menyuam tau txais kev lom zem tiag tiag !!

Kauj Ruam 5: Nruab LightshowPi Software

Koj yuav xav tau qee qhov tsw ntawm Raspberry Pi, daim npav SD nco lossis qee yam kev khaws cia, rooj plaub, thiab lub hwj chim.

  • pom Studio Raspberry Pi 4 Qauv…
  • 32GB EVO Plus Class 10…
  • Raspberry Pi 4 Case,…
  • 3.5A Raspberry Pi 4 Power…

Kuv yuav tsis vwm mus rau ntu no vim tias twb muaj cov txheej txheem teeb tsa zoo nkauj heev ntawm reddit.

Kuv yuav yaum ib lub tswv yim. Thaum koj tau teeb tsa txhua yam, ua ntej koj hloov pauv, sim koj qhov txuas.

sudo python ~/lightshowpi/py/hardware_controller.py --state = flashAlso, raws li koj kho cov ntaub ntawv overrides.cfg, hloov pauv me me thiab sim ntau ntawm lawv. Ob peb zaug, Kuv tau mucked qhov program los ntawm kev ua yuam kev me hauv cov ntaub ntawv overrides. Kev hloov pauv me me thiab ntsuas ntau zaus ua rau nws yooj yim dua los daws koj cov kev ua yuam kev.

Kauj Ruam 6: Txuas koj Lub Teeb

Koj yuav cuam tshuam nrog cov kauj ruam no me ntsis thaum koj mus. Peb twb tau teeb lub teeb xyoo no. Yog li, peb tau ua suab paj nruag thiab txav lub teeb nyob ib puag ncig ntawm cov ntsaws kom txog thaum peb muaj qhov sib luag zoo ntawm qhov ntsais muag nyob ib puag ncig lub tshav.

Pom zoo: