Cov txheej txheem:

Raspberry Pi Infrared Keyboard: 8 Kauj Ruam
Raspberry Pi Infrared Keyboard: 8 Kauj Ruam

Video: Raspberry Pi Infrared Keyboard: 8 Kauj Ruam

Video: Raspberry Pi Infrared Keyboard: 8 Kauj Ruam
Video: Smarter than a Smart TV! (Raspberry Pi Inside) 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Infrared Keyboard
Raspberry Pi Infrared Keyboard
Raspberry Pi Infrared Keyboard
Raspberry Pi Infrared Keyboard

Kuv ib txwm nyiam nkauj, yog li thaum xav txog qhov kuv yuav ua li cas yog thawj qhov haujlwm Raspberry Pi, kuv lub siab ib txwm mus rau nws. Tab sis ofcourse kuv xav muab nws kov ntxiv, lossis zoo dua, tsis kov! Nrog rau tam sim no Covid-19 ntsoog thiab txhua qhov hygene thiab kov cov cheeb tsam hauv siab, Kuv xaiv los ua cov keyboard uas cov yuam sij tau rov qab los ntawm lub ntsuas hluav taws xob. Koj tuaj yeem hloov tus yuam sij uas koj tab tom ua los ntawm kev tig lub cav nkag teb chaws thiab nias nws yuav ua rau lub nraub qaum rov qab pib, ntawm qhov twg lub sijhawm tuaj yeem hloov pauv los ntawm kev kov lub touchsensor.

Kuv tau muab qhov zoo li xylophone-piano vibe, uas kuv kuj tau koom ua ke ntawm lub vev xaib, qhov twg koj tuaj yeem pom cov ntawv sau tau ua dab tsi. Txhawm rau tsim rooj plaub, Kuv tsuas yog siv ntoo, uas kuv tau pleev xim los muab qhov ua tiav.

Kauj Ruam 1: Tshooj Npe

  • Raspberry Pi 4 Qauv B v1.2 - 2GB
  • Sib dhos Pi T-Cobbler Ntxiv
  • 40pcs 10cm Txiv neej Rau Poj Niam Jumper
  • Cable 40pcs 10cm Txiv neej Rau Txiv Neej Jumper Cable
  • IR Obstacle tus neeg tawm tsam
  • Hais lus
  • Cov ntoo sib txawv
  • Xim
  • Kov sensor
  • LCD
  • Raspberry pib 4
  • pob resistor pob
  • Teb encoder

Nqe: ib puag ncig 230 euros tab sis nyob ntawm cov ntaub ntawv

Kauj ruam 2: Electronics

Hlau koj cov khoom siv hluav taws xob zoo li hauv pdf muab. Nco ntsoov tias Infrared Sensor yuav xav tau qee qhov rov kho dua kom paub tseeb tias lawv tsis xa cov cim thaum lub sijhawm lawv tsis raug.

Kuv tus neeg hais lus tau txuas rau hauv daim npav sab nraud usb kom pom lub suab zoo, tab sis koj tseem tuaj yeem tsuas yog ntsaws nws rau hauv pi lub jack tso tawm.

Kauj ruam 3: Database

Database
Database

Nov yog lub database kuv tsim. Kuv siv lub rooj uas muaj txhua lub npe thiab coresponding midi nco qhov tseem ceeb. Lwm lub rooj muaj cov yuam sij uas koj tuaj yeem xaiv ntawm. Cov lus PlaySession muaj tag nrho cov kev khaws tseg yav dhau los uas koj tau ua thiab txuas nrog qhov ntawd yog cov ntawv sau tseg hauv kab ntawv no.

Kauj Ruam 4: Sib Sau Cov Khoom Siv Hluav Taws Xob

Sib dhos Electronics
Sib dhos Electronics

Tom ntej no los ua ke ntawm cov khoom siv hluav taws xob. Kuv txiav txim siab tso txhua yam rau ntawm lub khob cij thiab tsis txhob siv nws, vim tias kuv tsis zoo ntawm qhov muag thiab IR cov cim tau nkag siab heev yog li nws tuaj yeem tshwm sim koj yuav tau hloov ib hnub.

Kauj ruam 5: Coding

Txog kev coding Kuv siv lub tsev qiv ntawv nab nab hu Mingus uas siv FluidSynth los ua si sau ntawv midi.

Txhawm rau teeb tsa ob qho koj yuav tsum tau ua cov lus txib hauv qab no:

pip nruab mingus

pip nruab fluidsynth

Koj tuaj yeem pom cov cai ntawm kuv GIT.

Kauj Ruam 6: Lub Vev Xaib

Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib

Tom ntej no, tsim thiab coded kuv lub vev xaib. Kuv siv html, css thiab JS nrog websockets los sib txuas lus nrog cov neeg rau zaub mov khiav tom qab.

Kauj Ruam 7: Lub Tsev Case

Tsev Case
Tsev Case
Tsev Case
Tsev Case
Tsev Case
Tsev Case

Kuv tsim kuv cov ntaub ntawv kom zoo ib yam li xylophone/ Piano. Kuv tau ua txhua yam ntoo thiab txiav txim siab muab txhua yam lick xim kom nws zoo txawm tias zoo dua.

Kauj Ruam 8: Thiab Tam Sim No.. Ua Si

Thiab Tam Sim No.. Ua Si!
Thiab Tam Sim No.. Ua Si!
Thiab Tam Sim No.. Ua Si!
Thiab Tam Sim No.. Ua Si!
Thiab Tam Sim No.. Ua Si!
Thiab Tam Sim No.. Ua Si!

Tam sim no koj tau npaj pib ua si koj cov cuab yeej siv tus kheej! Tsis txhob ntshai nug cov lus nug hauv cov lus thiab muaj kev lom zem tsim!

Pom zoo: