Yuav Ua Li Cas Txuas Cov Microphone Rau Arduino

Cov txheej txheem:

Yuav Ua Li Cas Txuas Cov Microphone Rau Arduino
Yuav Ua Li Cas Txuas Cov Microphone Rau Arduino

Video: Yuav Ua Li Cas Txuas Cov Microphone Rau Arduino

Video: Yuav Ua Li Cas Txuas Cov Microphone Rau Arduino
Video: stm32f103c8t6 самодельный USB микрофон 2024, Kaum ib hlis
Anonim

Cia peb txuas tus qauv nrog lub suab sib txuas (microphone) mus rau Arduino.

Microphone module
Microphone module

Nws yog qhov tsim nyog

  • - Arduino;
  • - qauv nrog electret capsule microphone CMA-4544PF-W;
  • - txuas xov hlau.

Cov Lus Qhia

Kauj ruam 1

Lub tshuab hluav taws xob electret CMA-4544PF-W, uas yog lub hauv paus ntawm qhov module, teb rau cov suab nrov nrog zaus ntawm 20 Hz txog 20 kHz. Lub microphone yog omnidirectional, i.e. rhiab rau lub suab los ntawm tag nrho cov lus qhia, nrog qhov rhiab ntawm -44 dB. Koj tuaj yeem nyeem ntxiv txog cov cuab yeej thiab cov hauv paus ntsiab lus ntawm kev ua haujlwm ntawm electret microphones hauv kab lus, qhov txuas txuas uas tau muab rau hauv cov npe ntawm cov chaw.

Electret microphone CMA-4544PF-W
Electret microphone CMA-4544PF-W

Kauj ruam 2

The module muaj electret microphone uas yuav tsum muaj 3 mus rau 10 volt fais fab kev xaib. Qhov polarity ntawm qhov txuas yog qhov tseem ceeb. Cia txuas tus qauv raws li cov qauv yooj yim: tus pin "V" ntawm qhov module - mus rau lub zog hluav taws xob +3, 3 lossis +5 volts, tus pin "G" ntawm tus qauv - rau GND Arduino, tus pin "S" - rau qhov chaw nres nkoj analog "A0" ntawm Arduino.

Daim duab txuas Arduino microphone
Daim duab txuas Arduino microphone

Kauj ruam 3

Cia peb sau ib qhov program rau Arduino uas yuav nyeem tau cov kev nyeem tawm los ntawm lub microphone thiab tsim tawm lawv mus rau qhov chaw nres nkoj serial hauv millivolts. Dab tsi yog nws rau? Piv txwv, kom ntsuas lub suab nrov; los tswj cov neeg hlau: mus ntawm npuaj lossis nres. Qee tus txawm tswj los "qhia" Arduino los tshawb txog cov suab sib txawv thiab yog li tsim kev txawj ntse ntxiv: tus neeg hlau yuav nkag siab cov lus txib "Nres" thiab "Mus" (raws li, piv txwv li, hauv tsab xov xwm "Lub suab lees paub nrog Arduino" hauv cov chaw).

Kos duab rau kev nyeem ntawv kev nyeem ntawv ntawm electret microphone
Kos duab rau kev nyeem ntawv kev nyeem ntawv ntawm electret microphone

Kauj ruam 4

Peb muab tso ua ke ntawm ib hom sib npaug raws li daim qauv duab txuas nrog.

Tau yooj yim
Tau yooj yim

Kauj ruam 5

Hloov cov duab kos me ntsis. Cia peb ntxiv LEDs thiab lawv qhov chaw pib.

Kev sib txig sib luag! Sim tham nrog lub microphone thiab koj yuav pom cov LEDs taws thaum koj hloov lub suab hais lus.

Pom zoo: