Cov txheej txheem:

Tham Nrog Nyob Nrog Arduino Uno, Ultrasonic Sensor HC-SR04 thiab WTV020SD Suab Module: 4 Kauj Ruam
Tham Nrog Nyob Nrog Arduino Uno, Ultrasonic Sensor HC-SR04 thiab WTV020SD Suab Module: 4 Kauj Ruam

Video: Tham Nrog Nyob Nrog Arduino Uno, Ultrasonic Sensor HC-SR04 thiab WTV020SD Suab Module: 4 Kauj Ruam

Video: Tham Nrog Nyob Nrog Arduino Uno, Ultrasonic Sensor HC-SR04 thiab WTV020SD Suab Module: 4 Kauj Ruam
Video: Tham Lus Nrog Lub Ntuj - Jerry Xiong x Zong Pha Xiong (ZPX) 2024, Kaum ib hlis
Anonim

Zoo siab txais tos rau Kuv Cov Lus Qhia #31, aka yog ib qhov haujlwm nrov tshaj plaws Arduino.

Yog tias koj nyiam txoj haujlwm no, thov dhau los ua ib tus ntawm kuv ntawm Cov Ntawv Qhia thiab sau npe yuav ua rau kuv Youtube channel… www.youtube.com/rcloversan

Xijpeem, rau txoj haujlwm no koj xav tau:

1x Arduino Unohttps://www.banggood.com/UNO-R3-ATmega328P-Developm…

1x WTV020-SD-16P Suab Moudule

www.banggood.com/WTV020-Audio-Module-MP3-P…

1 x Ultrasonic module

www.banggood.com/UNO-R3-ATmega328P- Kev tsim kho…

1 x Breadboard

www.banggood.com/Mini-Solderless-Prototype…

Jumper Hlau

www.banggood.com/UNO-R3-ATmega328P- Kev tsim kho…

1x Hais Lus (8 Ohm)

1 x LED

1 x Resistor 470K

1x SD daim npav (Sandisk)* 2GB !!!

*Pom txoj cai SD (WTV020SD tus qauv ua haujlwm nrog tus thawj Sandisk), ua rau kuv vwm tiag.

Kauj ruam 1: Npaj Cov Ntaub Ntawv Suab

Image
Image

Nov yog qhov txaus siab tshaj plaws ntawm qhov haujlwm….

Xijpeem, rub tawm WavePad Audio Editing Softwarehttps://www.nch.com.au/wavepad/index.html

thiab qhib lub software.

Siv koj lub suab, sau cov ntaub ntawv.wav nias lub pob liab (thib 2 los ntawm hauv qab sab laug). Txhua cov ntaub ntawv yuav tsum muaj qhov nrug (hauv centimeter) koj xav hnov, raws li txoj haujlwm ntawm cov khoom nyob rau pem hauv ntej ntawm lub ntsuas ultrasonic. Koj yuav tsum muaj lub suab "beep" (tsawg dua 5cm), 10cm, 15cm, 20cm, 25cm, 30cm thiab ntxiv rau (qhov txwv ntawm lub ntsuas hluav taws xob ultrasonic siv rau txoj haujlwm no yog 200!)

Qhib cov ntaub ntawv koj xav muab tso rau hauv daim npav SD, txuag lub.wav nrog cov cwj pwm no:

Hom ntawv: PCM Uncompressed

Tus cwj pwm: 32000Hz, 16 khoom, Mono

Npe cov ntaub ntawv: Suab 1, Suab 2, Suab 3 … thiab ntxiv rau.

Kuv tau khaws cov ntaub ntawv tso rau hauv cov npe ntawm lub desktop (lub suab), yog li nws yooj yim los nrhiav lawv.

Tam sim no, rub tawm ad4 converter software…

docs.google.com/file/d/0B4p82-pNB6o7QXFwZ…

los hloov cov ntaub ntawv.wav rau ad4.

Nco ntsoov khaws cov ntawv no hauv tib lub npe ntawm cov suab uas koj npaj siab yuav siv rau koj txoj haujlwm (npe suab). Tua tawm ad4 software nyem rau ntawm. EXE cov ntaub ntawv, MS-DOS qhov rai yuav tshwm sim tam sim ntawd.

Ntawm qhov hais kom sai (C: \>) sau cd desktop/suab

(thov nco ntsoov tias kuv txoj kev ua tiav yog C: \> cd cov neeg siv/cov neeg siv/cov ntaub ntawv/desktop/suab).

Tam sim no sau: ad4converter -E4 voice1.wav

Lub software yuav tsim cia li ua cov ntaub ntawv voice1.ad4.

Rov ua txoj haujlwm no rau tag nrho lwm cov ntaub ntawv, kom txog thaum koj muaj tag nrho.wav hloov pauv hauv hom ad4.

Tam sim no koj tuaj yeem luam tag nrho cov ntaub ntawv no ntawm daim npav SD, siv lub qhov muaj nyob hauv feem ntau ntawm PC thiab daim npav SD yuav npaj tau los tso rau hauv WTV020SD-16P module.

Kauj Ruam 2: Xeem WTV020SD-16P Module

Xov …
Xov …

Ib qho tseem ceeb uas tuaj yeem cuam tshuam rau kev ua haujlwm ntawm WTV020SD yog qhov ntim ntawm koj lub suab/suab.

Yog tias koj tsis mloog lub suab, sim txo nws (siv qhov hais kom ua: wtv020sd16p.setVolume (6);)

Yog tias nws tsis ua haujlwm, teeb meem yog daim npav SD tsis raug/dag.

Yog tias koj muaj qee qhov teeb meem koj tuaj yeem nyeem qhov kev qhia zoo no sau los ntawm Tsim Circuit …

www.buildcircuit.com/how-to-convert-mp3-and…

Kauj Ruam 3: Txuas …

Thov xaim hluav taws xob, ua raws daim duab hauv daim duab.

Kauj ruam 4: Coding…

Coding… nyeem ntxiv
Coding… nyeem ntxiv

Thov subscribe kuv tus Youtube channel thiab koj yuav tau txais txoj cai sai.

www.youtube.com/rcloversan

Pom zoo: