Cov txheej txheem:

CS122A Lub suab paub suab paj nruag neeg uas ua ntawv: 7 Cov kauj ruam
CS122A Lub suab paub suab paj nruag neeg uas ua ntawv: 7 Cov kauj ruam

Video: CS122A Lub suab paub suab paj nruag neeg uas ua ntawv: 7 Cov kauj ruam

Video: CS122A Lub suab paub suab paj nruag neeg uas ua ntawv: 7 Cov kauj ruam
Video: Qhov Tseeb Yog Li Cas Tiag 22/8/2021 2024, Hlis ntuj nqeg
Anonim
CS122A Lub Suab Paub Suab Nkauj Music Player
CS122A Lub Suab Paub Suab Nkauj Music Player

Nov yog Voice Recognition Music Player. Nws tuaj yeem ua si txog 33 nkauj nyob ntawm seb muaj pes tsawg zaj nkauj lub npe thiab tus kws kos duab koj khaws.

Kauj ruam 1: XEEM:

XEEM
XEEM
XEEM
XEEM
XEEM
XEEM
XEEM
XEEM

Qhov:

  • Arduino Ib
  • Arduino Mega Cov
  • LCD 16x2 Zaub
  • 2 xwv 1284
  • Smakn Hais Lus Paub Tus Qauv
  • HC-08 Bluetooth Module (iOS tau tshaj) (Amazon.com)
  • MicroSD daim npav Adapter Reader (Amazon.com)
  • 200x Txais LM386 Suab Amplifier Module (Amazon.com)
  • 4Ω Hais Lus.
  • 8 LEDs ib leeg
  • 8 tus tiv thaiv (330Ω)
  • Potentiometer (103) Cov

Kauj Ruam 2: Thawj ATmega1284

Thawj ATmega1284
Thawj ATmega1284
Thawj ATmega1284
Thawj ATmega1284

SPI Kev Sib Txuas ntawm ob ATmega's 1284

  • Txuas tus Pin 5 rau Tus Pin 5
  • Txuas tus Pin 6 rau Tus Pin 6
  • Txuas tus Pin 7 rau Tus Pin 7
  • Txuas tus Pin 8 rau Tus Pin 8

USART Kev Sib Txuas ntawm Bluetooth module thiab Thawj ATmega

  • Txuas GND Pin rau GND ntawm daim ntawv qhia zaub mov
  • Txuas VCC mus rau 5V ntawm daim ntawv qhia zaub mov
  • Txuas Tx rau Pin 17 ntawm ATmega
  • Txuas Rx rau Pin 16 ntawm ATmega

Bluetooth-

  • Siv LightBlue app rau IOS thiab xa cov txiaj ntsig hex txawm hais tias Tus Cwj Pwm thaum txuas nrog HC-08.
  • Siv "Sau tus nqi tshiab" thiab sau tus lej hex ntawm qhov koj xaiv.

USART Kev Sib Txuas ntawm Thawj ATmega thiab Arduino MEGA

  • Txuas tus Pin 18 rau Tus Pin 14 ntawm ATmega
  • Txuas Pin 19 rau Pin 15 ntawm ATmega

Kauj Ruam 3: Thib Ob ATmega1284

Qhov thib ob ATmega1284
Qhov thib ob ATmega1284
Qhov thib ob ATmega1284
Qhov thib ob ATmega1284

Txuas 8 LED mus rau ATmega

  • Txuas LED (Ntev sab) rau Pins 33-40.
  • Txuas 330Ω Resistor rau txhua LED thiab lwm qhov kawg rau GND ntawm lub khob cij.

Txuas LCD rau ATmega.

  • Txuas LCD Pin 1 mus rau GND ntawm lub khob cij
  • Txuas LCD Pin 2 mus rau 5V ntawm lub khob cij
  • Txuas LCD Pin 3 rau Potentiometer (10KΩ) hla mus rau GND.
  • Txuas LCD Pin 4 rau ATmega Pin 20
  • Txuas LCD Pin 5 rau GND.
  • Txuas LCD Pin 6 rau ATmega Pin 21
  • Txuas LCD Pin 7 - 14 rau ATmega Pin 22-29
  • Txuas LCD Pin 15-16 rau VCC - GND

Kauj ruam 4: Arduino Uno

Arduino Ib
Arduino Ib
Arduino Ib
Arduino Ib
Arduino Ib
Arduino Ib

Txuas MicroSD daim npav Adapter rau Arduino Uno.

  • Txuas GND rau GND ntawm Arduino
  • Txuas VCC rau 5V ntawm Arduino
  • Txuas MISO rau Pin 12
  • Txuas MOSI rau Pin 11
  • Txuas SCK rau Tus Pin 13

Txuas CS mus rau Pin 4 Txuas 200x Txais LM386 Suab Amplifier Module rau Arduino Uno

  • Txuas ob GND rau GND ntawm lub khob cij
  • Txuas IN rau Pin 9 ntawm Arduino
  • Txuas VCC mus rau 5V ntawm lub khob cij

Txuas Tus Hais Lus rau Lub Suab Amplifier Module.

  • Txuas + rau VCC ntawm Lub Suab Amplifier
  • Txuas - rau GND ntawm Lub Suab Amplifier

Txuas Arduino Uno rau Thawj ATmega1284

  • Txuas Pin 2 rau Pin 15 ntawm ATmega
  • Txuas tus Pin 3 rau Tus Pin 14 ntawm ATmega

Ntxiv TMPpcm-master.zip rau Arduino Library

Sketch >> suav nrog Tsev qiv ntawv >> Ntxiv zip Library

Kauj ruam 5: Hloov Mp3 rau Wav Cov Ntaub Ntawv

Siv

  • https://audio.online-convert.com/convert-to-wav
  • Hloov me ntsis daws teeb meem: 8 ntsis
  • Hloov tus qauv piv txwv: 16000Hz

    Hloov suab raws: mono

    PCM hom ntawv: PCM tsis kos npe 8-ntsis

Kauj Ruam 6: Arduino Mega

Arduino Mega Cov
Arduino Mega Cov
Arduino Mega Cov
Arduino Mega Cov

Txuas Smakn Speak Recognition Module (SRM) rau Arduino MEGA

  • Txuas SRM GND rau GND ntawm daim ntawv qhia zaub mov.
  • Txuas SRM VCC mus rau 5V ntawm daim ntawv qhia zaub mov.
  • Txuas SRM TX rau Pin 10
  • Txuas SRM RX rau Tus Pin 11

Upload VoiceRecognitionV3-master.zip rau Arduino Library

Nyem rau ntawm Sketch >> suav nrog Lub Tsev Qiv Ntawv >> Ntxiv zip Library

Txoj Cai:

  • Qhia txog 80 lo lus siv sigtrain. eg (sigtrain 0 BrunoMars)
  • Nws yuav qhia Bruno Mars rau txoj haujlwm 0 thiab tuaj yeem siv siv thauj 0.
  • Thaum thauj khoom thaum nws hnov Bruno Mars nws yuav tso nws tawm hauv Serial Monitor.
  • Koj thauj 7 cov lus txib nyob rau ib lub sijhawm thiab pom pes tsawg tus nyob hauv thiab cov txiaj ntsig zoo li cas hauv kev siv vr.
  • Koj tuaj yeem tshem lub nra los ntawm kev siv clear.

Pom zoo: