Cov txheej txheem:

Nruas Pads Nrog Arduino: 6 Kauj Ruam
Nruas Pads Nrog Arduino: 6 Kauj Ruam

Video: Nruas Pads Nrog Arduino: 6 Kauj Ruam

Video: Nruas Pads Nrog Arduino: 6 Kauj Ruam
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Kaum ib hlis
Anonim
Nruas Pads Nrog Arduino
Nruas Pads Nrog Arduino

Nyob zoo, Hauv qhov kev qhia no kuv yuav qhia koj yuav ua li cas los tsim lub nruas yooj yim los siv Arduino.

Kuv siv lub suab los theej tawm Qhov kawg los ntawm Linkin Park.

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
  1. Arduino Uno (Nano, Mega thiab lwm yam)
  2. SD Card (Qhov loj nyob ntawm koj lub suab, kuv li tsawg dua 50 KBytes txhua)
  3. SD daim npav module
  4. TTP229 capacitive kov cov keyboard
  5. Hais lus (Lub mloog pob ntseg lossis 3.5 hli poj niam nkaus yuav ua haujlwm ib yam nkaus)
  6. Breadboard & Jumpers

Kauj ruam 2: Yuav tsum tau Software & Tsev qiv ntawv

Arduino IDE Cov

TTP 229 capacitive touch keypad lub tsev qiv ntawv

TMRpcm audio library

Kauj Ruam 3: Npaj Lub Suab Tones

Tam sim no, lub suab nrov yuav tsum yog hauv ib hom ntawv tshwj xeeb txhawm rau ua si nrog Arduino.

Hom ntawv tseem ceeb yuav tsum yog. WAV nrog:

  • Kev daws teeb meem me ntsis 8
  • Qauv tus nqi 16000
  • Suab channel Mono
  • PCM hom tsis kos npe 8 ntsis

rau hloov kuv lub suab Kuv siv Online Hloov

Kauj ruam 4: Schematic

Schematic
Schematic
Schematic
Schematic

Tam sim no txuas txhua yam raws li hauv qab no:

SD daim npav:

  • MOSI - Pin 11
  • MISO - Pin 12
  • CLK - Pin 13
  • CS - Pin 4
  • VCC - 3.3V
  • GND - NCO

TIAB SA 229

  • VCC - 3.3V
  • GND - NCO
  • SCL - Pin 2
  • SDA - Pin 3

Hais lus (lub mloog pob ntseg thiab lwm yam)

  • Hlau 1 - Tus Pin 9
  • Hlau 2 - GND

Kauj ruam 5: Khiav Txoj Cai

Khiav Txoj Cai
Khiav Txoj Cai

Kauj Ruam 6: Yog Nws

Tam sim no rub koj lub suab mus rau SD daim npav, txhawb koj Arduino thiab pib ua si.

NCO TSEG: Cov suab tso tawm tsis zoo yog tias koj siv nws ncaj qha los ntawm Arduino, Nws muaj peev xwm los tsim lub suab nrov/lim Circuit kom nce qhov zoo.

Pom zoo: