Cov txheej txheem:

Music Box rau Cov Menyuam: 5 Kauj Ruam
Music Box rau Cov Menyuam: 5 Kauj Ruam

Video: Music Box rau Cov Menyuam: 5 Kauj Ruam

Video: Music Box rau Cov Menyuam: 5 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Music Box rau Cov Menyuam
Music Box rau Cov Menyuam
Music Box rau Cov Menyuam
Music Box rau Cov Menyuam
Music Box rau Cov Menyuam
Music Box rau Cov Menyuam

"Yawg … nkauj, nkauj …", ib yam zoo li no yog cov ntxhais xeeb ntxwv ntsib kuv txhua hmo thaum kuv los txog tom haujlwm. Txoj haujlwm no tau xeeb los ua cov khoom ua si suab paj nruag nrog cov ntsiab lus ntawm kev kawm paub tab. Mloog suab paj nruag, koj tuaj yeem nyem rau ntawm cov nyees khawm, qhib lub teeb uas muaj ntau xim (thiab xim yog dab tsi?), Twist dab tsi yog tig, nyem qhov hloov pauv… Thiab thaum tus yawg tau haus tshuaj yej…

Arduino nws tus kheej tsis zoo ua suab paj nruag. Txawm li cas los xij, muaj qhov hu ua ntaub thaiv npog uas koj tuaj yeem ua cov nkauj suab paj nruag ntawm qhov tsim nyog zoo. Hauv qhov haujlwm no kuv tau thov DFPlayer mini shield. Nws siv daim npav micro SD ua tus nqa khoom. Tsuas yog peb lub nyees khawm, peb tuaj yeem tswj kev rov ua si: rau pem hauv ntej, rov qab thiab - thaum pib. lub sijhawm los ua kom nws nthuav dua.

Kauj Ruam 1: Cheeb Tsam & Cov Cuab Yeej

Cheebtsam:

Arduino UAS

Adapter (6 - 12) VDC, (0.5 - 1) A rau Arduino

DFPlayer me me

www.aliexpress.com/item/TF-Card-U-Disk-Min…

Hais lus 8Ohm, 1W

micro SD daim npav, chav kawm 8-11

LMS1587IS-3.3

PCB heatsink

Capacitor 100uF, 16V

3 x 1P Pushbutton hloov ib ntus

UP-6135 (Kev Xaiv) tsis qhia hauv daim duab

www.distrelec.biz/en/led-panel-meter-199-m…

5 x Rocker hloov (on-on)

DC micromotor (Xaiv)

Antivandal Pushbutton (Xaiv)

Potentiometer

5 x RED LED 5mm

5 x GREEN LED 5mm

5 x YELLOW LED 5mm

5 x XEEB LED 5 hli

20 x Res 330 Ohm

2x560 rov

1x51 ua

Hlau

Cov ntaub yas

Cov Cuab Yeej:

Qhov chaw nres tsheb Soldering (Cov Hluav Taws Xob Hluav Taws Xob), Cov xaim hluav taws xob, flux

Hlau txiav, tweezers, ntswj ntsia hlau, xyaum, cov ntaub ntawv, phom phom

Kauj Ruam 2: Hluav Taws Xob Hluav Taws Xob

Hluav Taws Xob Hluav Taws Xob
Hluav Taws Xob Hluav Taws Xob
Hluav Taws Xob Hluav Taws Xob
Hluav Taws Xob Hluav Taws Xob
Hluav Taws Xob Hluav Taws Xob
Hluav Taws Xob Hluav Taws Xob

Cov phiaj xwm tau kos siv Siv Ib puag ncig Easy Eda. Cov suab paj nruas tau qhia nyob rau sab saum toj ntawm daim duab. Txhua yam ntxiv yog ua los ntawm kev txhais tau tias. Ntawm no koj tuaj yeem ntxiv txhua yam uas koj xav tau, tsuas yog kom haum rau qhov ntev.

MP3 tus qauv txhawb nqa txog 25, 500 ntu ntu ntawm kab lus, teeb liab lossis suab nkauj. Txhua cov ntaub ntawv audio tuaj yeem faib ua pawg ntawm 255 nkauj. Koj tuaj yeem xaiv ib ntawm 30 qib ntim thiab ib qho ntawm 6 hom sib luag (Ib txwm/Pop/Pob Zeb/Jazz/Classic/Base). Cov ntaub ntawv audio: MP3, WAV, WMA.

Tus qauv txuas nrog Arduino ntawm UART (Serial). Kev ua haujlwm nws txaus los txuas tsuas yog Vcc, GND, RX, TX, SPK1, SPK2 kab. Siv tag nrho lwm cov koob yog xaiv tau.

Txuas rau ntau cov ntaub ntawv rau DFPlayer mini:

www.dfrobot.com/wiki/index.php/DFPlayer_Mi…

Kauj Ruam 3: Sib dhos & Txuas Hluav Taws Xob

Sib dhos & Txuas Hluav Taws Xob
Sib dhos & Txuas Hluav Taws Xob
Sib dhos & Hluav Taws Xob Hluav Taws Xob
Sib dhos & Hluav Taws Xob Hluav Taws Xob
Sib dhos & Hluav Taws Xob Hluav Taws Xob
Sib dhos & Hluav Taws Xob Hluav Taws Xob

Tam sim no peb muaj cov phiaj xwm, cov npe khoom, thiab pib ua haujlwm hnyav tshaj plaws - kev teeb tsa. Nov yog qhov tseem ceeb - txhawm rau nrhiav lub tsev nyob ntawm qhov tsim nyog. Peb xyaum, kho, teeb tsa cov ntsiab lus. Peb txuas cov xov hlau raws li lub tswv yim. Qhov twg yuav tsum tau - peb solder. Peb tshuaj xyuas txhua yam kom huv si.

Kauj Ruam 4: Kos Duab Yooj Yim

Kos Duab Yooj Yim
Kos Duab Yooj Yim

Txhawm rau ua haujlwm nrog DFPlayer mini module, koj yuav tsum teeb tsa DFPlayer_Mini_Mp3.h lub tsev qiv ntawv:

github.com/DFRobot/DFRobotDFPlayerMini/arc…

Qhov thib peb cov tswv yim digital ntawm Arduino txuas nrog rau Busy output ntawm MP3 module. Tus tswj hwm tshuaj xyuas lub xeev qhov kev tso tawm no thiab, yog tias nws tau hloov mus rau HIGH lub xeev (taug qab dhau lawm), txoj kab tom ntej pib. Txwv tsis pub, qhov rov ua dua ntawm txoj kev yuav raug tso tseg, thiab rau peb nws yog qhov tseem ceeb uas cov nkauj txuas ntxiv mus los ntawm txoj kab. Lub tsev qiv ntawv SoftwareSerial kuj tau teeb tsa ntawm no kom koj tuaj yeem hloov kho Arduino firmware raws li xav tau yam tsis tas kov qhov teeb tsa.

github.com/PaulStoffregen/SoftwareSerial

Kauj ruam 5: Cov Ntaub Ntawv Suab

Cov Ntaub Ntawv
Cov Ntaub Ntawv

Mini MP3 Player tuaj yeem lees paub daim npav txog 32G thiab FAT16, FAT32 cov ntaub ntawv kaw lus.

Format SD card thiab tsim "MP3" nplaub tshev rau nws. Tom ntej no, koj yuav tsum sau koj cov nkauj mp3 hauv phau ntawv no thiab muab lawv lub npe "0001 ****. Mp3", "0002 ****. Mp3", "0003 ****. Mp3", thiab lwm yam Tseem ceeb: nws yog qhov tsim nyog yuav tau theej cov npe hloov pauv cov ntaub ntawv mus rau SD, thiab tsis txhob hloov lawv ntawm SD daim npav.

Ntxig daim npav rau hauv lub qhov thiab txaus siab rau!

Pom zoo: