Cov txheej txheem:

Sensor Raws Motion-triggered Music Player: 3 Kauj Ruam
Sensor Raws Motion-triggered Music Player: 3 Kauj Ruam

Video: Sensor Raws Motion-triggered Music Player: 3 Kauj Ruam

Video: Sensor Raws Motion-triggered Music Player: 3 Kauj Ruam
Video: RedBoard Qwiic Audio Control: Motion Activation and Random Shuffle with Arduino 2024, Hlis ntuj nqeg
Anonim
Sensor Raws Motion-triggered Music Player
Sensor Raws Motion-triggered Music Player
Sensor Raws Motion-triggered Music Player
Sensor Raws Motion-triggered Music Player

Ntawm kuv lub tsev kawm qib siab, peb tau tsim thawj qhov haujlwm uas txhua tus tub ntxhais kawm tuaj yeem xaiv los ntawm lawv tus kheej. Rau kuv qhov haujlwm, txij li thaum kuv ib txwm mloog nkauj thiab kuv ib txwm xav tias zoo li nws nyuaj heev los qhib tus hais lus Kuv xav pom yuav ua li cas kuv tuaj yeem yooj yim rau cov txheej txheem ntawd, yog li kuv txiav txim siab los tsim qhov Motion-triggered music player.

Khoom siv

Kho vajtse:

MDF Ntoo ntoo (nruab nrab ntawm 0, 5 thiab 2cm)

- 63, 5x13mm Screws

- 10 Ntsia

Electronics:

- Raspberry Pi 3 qauv B+ nrog 2.5A Lub Hwj Huam

- LCD npo

ADC MCP3008

- Raspberry PI T-cobbler

- Lub teeb nyob ntawm tus tiv thaiv

- Kub Sensor LM35

- Breakbeam IR sensor

- Hais lus

- Cov qhob cij

Cov Cuab Yeej:

- Rauj

- Ntsia Hlau

- Kab xev

Vim tias muaj kev txwv hauv Tus Kws Tshaj Lij Qhia Kuv tau ntxiv kev tsim cov ntaub ntawv tag nrho cov pob yuav raug nqi ib puag ncig € 95 - € 100

Yeem:

22 gauge hlau - Daj

22 gauge hlau - Liab

22 gauge hlau - Dub

Kauj ruam 1: Tau Koj Cov Khoom Siv Hluav Taws Xob

Tau koj li Electronics mus!
Tau koj li Electronics mus!
Tau txais koj li Electronics mus!
Tau txais koj li Electronics mus!

Yog li peb yuav txuas peb mcp3008, LDR, tawg-nqaj thiab ntsuas kub rau hauv peb lub khob cij. yog tias ua tau raws kuv cov phiaj xwm saum toj no kom muaj lub tswv yim nyob qhov twg los ntsaws dab tsi lossis nrhiav qhov chaw zoo rau koj cov khoom koj tus kheej!

Hauv ntej: sim ua kom ntseeg tau tias koj lub LDR tsis muaj kab hluav taws xob thiab muaj peev xwm coj lub teeb pom kev ntau li ntau tau thiab txhua yam khoom siv nyob ntawm koj lub rooj tsavxwm!

Kauj ruam 2: Normalized Database

Normalized Database!
Normalized Database!

Rau peb cov ntaub ntawv khaws cia ib txwm Kuv tau ntxiv daim duab los muab tswv yim rau koj zoo li cas, nyeem ntxiv kom kawm paub txhua lub rooj ua dab tsi!

Sensor:

lub rooj no suav nrog peb peb lub ntsuas: LDR, Kub thiab tawg-nqaj

Keeb Kwm Sensor:

Qhov no yuav tso cai rau peb los tshuaj xyuas thaum lub ntsuas tau ua haujlwm thiab qhov ntsuas tau zoo li cas thaum hu nkauj

Nkauj Ua Si:

Hauv lub rooj no, peb yuav pom txhua zaj nkauj uas tau ua si dab tsi sensor keeb kwm txuas rau nws thiab zaj nkauj twg tau ua.

Nkauj:

Hauv cov lus no, peb yuav suav peb qhov chaw nyob nkauj, hom nkauj thiab npe nkauj

Nkauj:

Cov lus no muaj peb Lub Npe Nkauj thiab Tus Ua Yeeb Yaj Kiab hauv nws!

Nkauj Chaw:

Muaj peb qhov chaw nyob nkauj ntawm peb pi/var/www/html/…

Hom Nkauj:

Muaj peb hom suab paj nruag lub teeb me me rau nws lub teeb ci rau nws thiab zoo ib yam rau qhov kub thiab txias

Kauj ruam 3: Code Nws

Code Nws!
Code Nws!

Kuv yuav tawm qhov txuas rau kuv Github repo hauv qab no tab sis xav tias dawb los tshuaj xyuas kuv cov qauv thiab nyeem qhov no ua ntej!

Raspberry teeb:

tig rau spi nrog sudo rasp-config => interfacing options => SPI => pab tau

Nruab:

Mysql

Lub hwj

Flask_cors

Flask_socketio

Qhov chaw:

Ntxiv database rau MySQL ntawm raspberry ces, Kuv tus nab npawb nab npawb yog qhov uas kuv ntxiv txhua yam rau hauv lub hauv paus thiab ua rau kuv cov cuab yeej ua haujlwm tsis muaj ntau yam uas koj yuav tuaj yeem hloov pauv kom nws ua haujlwm tau yooj yim Kuv tau sim tsim cov ntawv nab nab uas meej thiab txhua tus muaj peev xwm siv nws yog li xav tias dawb sim nws!

Kuv qhov chaw tsuas yog qhov kuv xav tias ua haujlwm zoo tshaj plaws rau kuv txoj haujlwm xav hloov nws me ntsis thiab los tsim qhov chaw qub. zoo dua yog tias koj tuaj yeem txhim kho kuv tus qauv thiab ua rau nws siv tau zoo dua!

Kuv yuav ntxiv ib qhov txuas los saib kuv cov kab xev raws li cov duab. thiab zip nrog txhua kuv cov ntaub ntawv

Wireframes:

Github:

Pom zoo: