Cov txheej txheem:
- Kauj ruam 1: Koj Yuav Tsum Tau:
- Kauj ruam 2: Kev sib txuas
- Kauj Ruam 3: Teeb Cov Ntaub Ntawv Wave
- Kauj ruam 4: Txoj Cai
- Kauj Ruam 5: Kev Sib Txuas zaum kawg…
Video: Tsawg heev Arduino Sound Effect Box: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Qhov no yog txoj haujlwm nrawm ntawm lub thawv muaj suab nrov. Qhov ntaus ntawv nyeem cov ntaub ntawv ua ntej kaw los ntawm microSD muab rau ib lub pob tshwj xeeb thiab ua si thaum nias.
Kauj ruam 1: Koj Yuav Tsum Tau:
Arduino pro mini (lossis lwm yam) microSD module Ib tus neeg hais lus nrog TRS (mic / aux) kev sib txuas Tus poj niam TRS txuas 4 Push Button4 220ohm ResistorsBattery tuav thiab roj teeb - Kuv siv 2 CR2032 npib roj teeb tab sis koj tuaj yeem siv tau lwm yam ob sab txiv neej TRS (lub mloog pob ntseg) cable
Kauj ruam 2: Kev sib txuas
Txhua cov nyees khawm txuas rau VCC thiab dhau los ntawm 220ohm resistor rau GND (rau rub tawm qhov tsis raug tam sim no ntawm kab ntawv) ua ntej ntawm tus tiv thaiv txhua khawm txuas nrog rau Arduino tus lej digital 5, 6, 7, 8.
TRS txuas tau txuas nrog GND thiab rau Arduino tus lej thib 9 tus lej.
MicroSD module txuas nrog Arduino raws li hauv qab no: GND => GNDVcc => VccMISO => 12MOSI => 11CS => 4SCK => 13
Roj teeb + txuas nrog RAW thiab - rau GND
Kauj Ruam 3: Teeb Cov Ntaub Ntawv Wave
Cov ntaub ntawv wav yuav tsum yog ntawm 16000khz 8bit mono. Name lawv los ntawm tus lej tus lej koj yuav muab rau lawv (1, 2, 3, 4)
Koj tuaj yeem siv lub xaib no los hloov koj cov ntaub ntawv
Kauj ruam 4: Txoj Cai
Txoj cai siv 2 lub tsev qiv ntawv koj yuav tsum paub tseeb tias koj muaj (yog tias koj tsis rub tawm los ntawm tus thawj tswj lib): SD.hTMRpcm.h
#include // suav nrog SD module tsev qiv ntawv #suav nrog // suav nrog hais lus tswj lub tsev qiv ntawv #define SD_ChipSelectPin 4 // txhais CS tus pin #define B1 5 // 4 khawm pins txuas #define B2 6 #define B3 8 TMRpcm tmrpcm; // tsim qhov khoom rau tus hais lus lub tsev qiv ntawv tsis muaj teeb tsa () {Serial.begin (9600); pinMode (5, INPUT); // 4 lub hauv paus pib ua INPUTS pinMode (6, INPUT); pinMode (7, INPUT); pinMode (8, INPUT); tmrpcm.speakerPin = 9; // txhais tus pin tus hais lus. // koj yuav tsum siv tus pin 9 ntawm Arduino Uno thiab Nano // lub tsev qiv ntawv siv tus pin no yog (! // tsis txhob ua dab tsi ntxiv yog tias tsis} tmrpcm.setVolume (6); // 0 txog 7. Teev ntim ntim tmrpcm.play ("start.wav"); // lub suab ntawv "1" yuav ua si txhua lub sijhawm arduino muaj zog, lossis rov pib dua} void loop () {// Serial.println (digitalRead (8))); yog (digitalRead (B1)) {Serial.println ("B1"); tmrpcm.play ("1.wav"); ncua (100); } yog (digitalRead (B2)) {Serial.println ("B2"); tmrpcm.play ("2.wav"); ncua (100); } yog (digitalRead (B3)) {Serial.println ("B3"); tmrpcm.play ("3.wav"); ncua (100); } yog (digitalRead (B4)) {Serial.println ("B4"); tmrpcm.play ("4.wav"); ncua (100); }}
Kauj Ruam 5: Kev Sib Txuas zaum kawg…
Txuas lub cuab yeej los ntawm TRS txuas nrog TRS cable rau tus hais lus Txuas lub cuab yeej rau lub zog thiab qhib nws
… Muaj kev lom zem …
Pom zoo:
Yooj Yim Heev Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3: 7 Cov Kauj Ruam
Yooj Yim Heev Muaj Tsawg BLE hauv Arduino Ntu 2 - Kub/Vaum Xyuas - Rev 3: Hloov tshiab: 23rd Kaum Ib Hlis 2020 - Thawj hloov 2 x AAA roj teeb txij li 15th Lub Ib Hlis 2019 piv txwv li 22 hli rau 2xAAA AlkalineUpdate: 7th Plaub Hlis 2019 - Rev 3 ntawm lp_BLE_TempHumidity, ntxiv Hnub/Sijhawm cov phiaj xwm, siv pfodApp V3.0.362+, thiab pib kaw qhov rooj thaum
Tsawg Yam Tsawg - Arduino ntawm Breadboard: 5 Kauj Ruam
Tsawg Yam Tsawg - Arduino ntawm Breadboard: Arduino siv ATMega328p nti. Peb tuaj yeem tau txais qhov ntawd hauv SMD hom ntawv (ATMega328p-AU) lossis DIP hom rau lub qhov dej sib txuas (ATMega328p-PU). Tab sis, nti los ntawm nws tus kheej tsis tuaj yeem ua haujlwm. Nws xav tau ob peb yam ntxiv thiab txhua qhov ua ke hu ua liab qab
Lub Juke Box rau Cov Hluas Heev Aka Raspi-Music-Box: 5 Kauj Ruam
Lub Juke Box rau Cov Hluas Heev … Aka Raspi-Music-Box: Kev tshoov siab los ntawm cov lus qhia " Raspberry-Pi-based-RFID-Music-Robot " piav qhia lub suab paj nruag neeg uas ua ntawv ROALDH tsim rau nws 3-xyoos, Kuv txiav txim siab los tsim lub juke box rau kuv txawm tias menyuam yaus. Nws yog lub hauv paus lub thawv nrog 16 cov nyees khawm thiab Raspi 2 i
Yooj Yim Heev Tsawg BLE hauv Arduino Tshooj 3 - Nano V2 Hloov - Rev 3: 7 Cov Kauj Ruam (nrog Duab)
Yooj Yim Heev Muaj Tsawg BLE hauv Arduino Tshooj 3 - Nano V2 Hloov - Rev 3: Hloov tshiab: 7th Plaub Hlis 2019 - Rev 3 ntawm lp_BLE_TempHumidity, ntxiv Hnub/Sijhawm cov phiaj xwm, siv pfodApp V3.0.362+, thiab pib kaw thaum xa cov ntaub ntawv Hloov tshiab: 24th Lub Peb Hlis 2019 - Rev 2 ntawm lp_BLE_TempHumidity, ntxiv ntau txoj hauv kev xaiv thiab i2c_ClearBus, ntxiv GT832E
Staircase Hmo Teeb - Lub Hwj Huam Muaj Tsawg heev thiab 2 lub ntsej muag: 5 Kauj Ruam
Staircase Night Lamp - Lub Hwj Chim Tsawg heev thiab 2 Lub Koob Yees Duab: Kuv tau tsim lub zog qis qis qis hmo ntuj teeb nrog ob lub teeb pom kev pom lub ntsej muag kom kuv tuaj yeem teeb tsa ib lub cuab yeej, ib nrab txoj hauv kev hauv tus ntaiv, thiab muaj nws tshwm sim los ntawm ib tus neeg nce lossis nce nqis ntaiv. Kuv kuj ua kuv tus qauv tsim qis heev