Cov txheej txheem:

Raspberry Pi Soundboard: 3 Kauj Ruam
Raspberry Pi Soundboard: 3 Kauj Ruam

Video: Raspberry Pi Soundboard: 3 Kauj Ruam

Video: Raspberry Pi Soundboard: 3 Kauj Ruam
Video: Das Piano-HAT-Soundboard | Auszug aus: Raspberry Pi – Der Video-Kurs für Entdecker und Bastler 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Soundboard
Raspberry Pi Soundboard

Lub hom phiaj ntawm txoj haujlwm no yog los tsim lub suab lus nrog Raspberry Pi, rau txhua lub suab. Kuv tus kheej tsim nws rau lub hom phiaj ntawm Dungeons and Dragons soundboard ambiance. Txawm li cas los xij, koj tuaj yeem siv qhov no rau txhua yam yog koj hloov nws

Teem caij

Rau qhov haujlwm no koj yuav xav tau:

  • Kev Siv Internet
  • Raspberry Pi (Txhua Tus Qauv)

    www.adafruit.com/product/3055

  • Fais Adapter rau Raspberry Pi

    www.adafruit.com/product/1995

  • Micro SD daim npav <4 GB.

    www.adafruit.com/product/3259

  • Hais lus

    Ib qho Aux lossis Bluetooth hais lus zoo

  • Keyboard Number Pad (Keyboard tseem yuav ua haujlwm tau zoo

    Kuv siv qhov no, tab sis tsuas yog vim kuv twb muaj nws lawm

Kauj ruam 1: OS thiab Lub Sijhawm Txhim Kho

OS thiab sijhawm teeb tsa
OS thiab sijhawm teeb tsa

Yog li, Ua ntej coj koj daim npav Micro SD, Koj yuav tsum tau teeb tsa qee qhov version ntawm Linux. Kuv siv Rapbian vim tias nws tau tsim tshwj xeeb rau Raspberry Pi. Nov yog qhov txuas kom tau txais duab Raspbian. Tam sim no koj xav tau qee lub cuab yeej los teeb tsa nws mus rau Micro SD daim npav. Kuv siv Etcher. Nws yog tus ntoo khaub lig txheej txheem tsim rau qhov no. Siv qhov txuas no rub tawm thiab teeb nws.

Thaum koj tau teeb tsa Raspbian ntawm Micro SD daim npav, ntsaws nws rau hauv Raspberry Pi's Micro SD daim npav qhov, thiab txhawb nws. Nws yuav hais thawj zaug teeb tsa, yog li nco ntsoov tsis txhob tua nws thaum teeb tsa. Thaum nws tau nce thiab khiav, koj yuav tsum tau ua kom ntseeg tau tias koj muaj ob peb yam teeb tsa. Nab hab sej 3, pip3, VLC Media Player, thiab libvlc. Qhib lub davhlau ya nyob twg thiab khiav cov lus txib no.

sudo apt-tau nruab python3 python3-pip vlc libvlc-dev youtube-dl

Tam sim no, ntawm no yog yuav ua li cas txheeb xyuas qee qhov nws tau teeb tsa.

nab hab sej 3

python3 --version

pib 3

pip3 khov

VLC thiab libvlc

vlc -rov

Tam sim no, pip3 yog Python 3 Tus tswj hwm pob. Koj tuaj yeem nruab cov tsev qiv ntawv nab hab sej nrog nws. Muaj ob peb pob uas koj xav tau los nruab nrog pip3. Khiav cov lus txib no.

pip install pafy

pip nruab readchar

pip nruab sej-vlc

pip nruab youtube-dl

Thaum koj ntaus pip3 khov, koj yuav pom lawv muaj npe nyob ntawd.

Kauj ruam 2: Rub tawm thiab Khiav

Tam sim no koj tau teeb tsa txhua yam tsim nyog los khiav txoj cai, ntawm no yog qhov koj rub tawm cov cai.

github.com/Dude036/soundboard

Ntawm sab xis, koj yuav pom lub pob rub tawm. Rub tawm cov cai, rau hauv daim nplaub tshev uas koj xav tau. Qhib lub nplaub tshev uas koj rub tawm cov ntaub ntawv hauv lub davhlau ya nyob twg. Thaum koj nyob ntawd, nyeem ReadMe, txt kom paub ntau ntxiv.

Txhawm rau khiav Daim Ntawv Thov, koj khiav cov lus txib no

python3 main.py

Yog tias muaj qhov yuam kev thaum pib. txheeb xyuas koj cov kauj ruam kawg kom paub tseeb tias nws ua haujlwm raug. Thaum koj tau teeb tsa thiab khiav qhov program, koj tau teeb tsa tag nrho! Yog tias muaj qhov ua yuam kev thaum khiav, nco ntsoov ntxiv nws ua qhov teeb meem ntawm GitHub thiab kuv yuav ua kom ntseeg tau tias nws tau daws thiab kho

Cov Ntsiab Lus Tseem Ceeb:

  • 0-9: Pib ua si lub suab sib xws hauv qhov preset koj tau xaiv
  • + lossis -: Ncua thiab Ua Si
  • *: Hloov ua ntej Los ntawm lub neej ntawd nws yuav yog qhov qub tshaj plaws khaws cia ua ntej. Thaum koj nias lub pob, nws yuav teev tag nrho cov presets tam sim no hauv cov npe tseem ceeb.

Kauj Ruam 3: Kev hloov kho thiab Tom Qab Lo Lus

Tam sim no koj tau txais txoj cai khiav, koj zoo siab los tsim koj tus kheej ua ntej. Nov yog yuav ua li cas.

Koj yuav xav tau 10 txuas, ntawm 10 kab sib txawv ntawm cov ntawv ua ntej. Txhua kab yuav tsum tsis muaj qhov chaw nyob ntawm ob sab ntawm qhov txuas. YouTube txuas ua haujlwm ib yam nkaus. Nco ntsoov tias muaj kab khoob ntawm qhov kawg ntawm cov ntawv. Qhov kev zov me nyuam yuav qhia rau koj paub tias nws puas siv tau los tsis ua.

Ua tsaug rau kev txheeb xyuas Cov Lus Qhia no! Yog tias koj pom cov kab hauv kab ntawv, qhia rau kuv paub ntawm GitHub Project nplooj ntawv.

Pom zoo: