Cov txheej txheem:

Mystic Crystal Ball (Nws Tiag Qhia Koj Koj Qhov Hmoov Zoo!): 3 Kauj Ruam (nrog Duab)
Mystic Crystal Ball (Nws Tiag Qhia Koj Koj Qhov Hmoov Zoo!): 3 Kauj Ruam (nrog Duab)

Video: Mystic Crystal Ball (Nws Tiag Qhia Koj Koj Qhov Hmoov Zoo!): 3 Kauj Ruam (nrog Duab)

Video: Mystic Crystal Ball (Nws Tiag Qhia Koj Koj Qhov Hmoov Zoo!): 3 Kauj Ruam (nrog Duab)
Video: Лучшие часы Casio G Shock Master of G-Топ 5 лучших часов Casio G Shock дл... 2024, Hlis ntuj nqeg
Anonim
Image
Image
Pob Crystal
Pob Crystal

Kawm paub yuav ua li cas thiaj muaj hmoo-qhia siv pob uas qhia koj lub neej tom ntej thaum kov!

Txoj haujlwm no suav nrog peb ntu yooj yim thiab tuaj yeem tsim ua tau li ntawm plaub teev.

Cov ntaub ntawv:

1. Capacitive Touch Sensor:

  • 1 - Arduino Uno Microcontroller
  • 1 - A rau B USB qaum (Feem ntau suav nrog Arduino)
  • 1 - Cov Khoom Siv Hluav Taws Xob (Kuv siv lub xov tooj ntawm tes them lub voos xwmfab)
  • 1 - 10 Mega Ohm Resistor
  • 4 - Txiv neej rau Txiv neej Jumper Xov
  • 1 - Daim ntawv qhia zaub mov
  • Hniav Hlau (Ceeb Toom: Yuav tsum yog CONDUCTIVE lossis nws yuav tsis ua haujlwm)
  • Daim Kab Xev Hluav Taws Xob

2. Suab Player:

  • 1 - Serial MP3 Player Module rau Arduino
  • 1 - Micro SD Card4 - Txiv neej rau poj niam jumper xov hlau
  • 1 - Suab kab
  • 1 - Teeb tus hais lus (lossis yam koj xav siv los ua lub suab)

3. Pob Crystal:

  • 1 - Npuas Npuas (Kuv tau txais kuv ntawm Michael's -Koj tseem tuaj yeem yuav "Neckless Acrylic Globes" ntawm Amazon)
  • 1 - Crystal Ball Base (Kuv siv kuv tus miv lub tais zaub mov!)
  • Kub Nplaum Rab Phom thiab Kub Nplaum Sticks

Kauj Ruam 1: Capacitive Touch Sensor

Txhawm rau ua kom lub pob siv lead ua teb thaum kov, koj yuav tsum tsim lub Capacitive Touch Sensor siv qee yam khoom siv coj los siv thiab Arduino board.

Koj yuav pib tsim lub Circuit Court los ntawm kev txuas cov hlau zoo nkauj mus rau Arduino. Cov xov paj uas kuv siv tau muaj txheej rau ntawm nws; yog li, ua ntej kuv tuaj yeem txuas nws mus rau lub xaim xaim, kuv yuav tsum zom cov txheej ntawm qhov kawg ntawm cov khoom siv tes ua xaim kom nthuav tawm txhuas hauv qab. Koj yuav tsis tas yuav ua qhov no raws qhov ntev ntawm cov khoom siv hlau yog tias koj siv lub zog loj txaus (nws ua haujlwm tau zoo nrog 10 Mega Ohm resistor!)

Muab ob qho kawg ntawm tus tiv thaiv sib cais ua kab ntawm daim kab xev thiab khiav cov xov hlau txuas los ntawm txhua qhov kawg mus rau Arduino, ib tus rau tus pin 4 thiab lwm tus rau tus pin 8. Cov kab xev lossis kab xev ib kawg ntawm tus poj niam rau poj niam jumper xaim xaim kawg ntawm cov khoom siv tes ua xaim thiab tom qab ntawd ntxig rau lwm qhov kawg ntawm jumper xaim rau hauv lub khob cij raws tib kab ua qhov kawg ntawm tus tiv thaiv uas txuas nrog tus pin 8 ntawm Arduino.

Hauv qhov no, koj tuaj yeem txav mus rau theem ob. Txawm li cas los xij, yog tias koj xav ntsuas qhov Circuit Court, tso cov kab ntawm LED rau hauv ob kab sib cais ntawm lub khob cij (sau tseg tias kab twg muaj tus pin ntev dua thiab kab twg muaj tus pin luv dua). Khiav lub jumper hlau los ntawm tus pin luv rau qhib GND tus pin ntawm Arduino thiab khiav lwm lub jumper hlau los ntawm tus pin ntev dua rau tus pin 7 ntawm Arduino. Siv Arduino IDE (uas tuaj yeem rub tawm los ntawm), xa cov duab kos nrog. Yog tias lub Circuit Court ua haujlwm tau zoo, LED yuav tsum teeb thaum lub xov tooj cua kov!

Kauj ruam 2: Audio Player

Qhov no yog me ntsis trickier. Koj yuav tsum tau teeb tsa daim npav micro SD nrog koj cov ntaub ntawv audio, ntxiv MP3 Player module rau koj lub voj voog uas twb muaj lawm thiab tom qab ntawd hloov kho txoj cai kom haum.

Txhawm rau ua daim npav SD, Kuv siv daim ntawv thov dawb hu ua "SD Card Formatter" uas kuv rub tawm los ntawm internet (https://www.sdcard.org/downloads/formatter_4/index…). Txawm li cas los xij software koj txiav txim siab siv, lub hom phiaj yog txhawm rau ua daim npav SD li FAT16 lossis FAT32. Tom qab ntawd koj yuav tsum tsim cov ntawv tais ceev tseg hauv SD daim npav los tso koj cov ntaub ntawv audio (Kuv siv tsib lub suab sib txawv, yog li kuv ntxiv tsib daim ntawv npe 01, 02, 03, thiab lwm yam). Cov ntaub ntawv audio yuav tsum muaj nyob hauv hom ntawv.mp3 thiab lawv txhua tus yuav tsum muaj lub npe yooj yim (Kuv tau sau lawv txhua tus A.mp3). Rau daim ntawv thov no, koj yuav tsuas muaj ib daim ntawv audio rau ib daim nplaub tshev raws li cov cai nkag mus rau cov ntsiab lus ntawm txhua daim nplaub tshev ntau dua li cov ntaub ntawv audio.

Txhawm rau ntxiv tus qauv rau koj lub Circuit Court, txuas cov hlua txuas rau plaub tus lej ntawm MP3 Player module thiab tom qab ntawd txuas lawv mus rau Arduino.

  • RX mus rau tus pin 5 ntawm Arduino
  • TX mus rau tus pin 6 ntawm Arduino
  • VCC mus rau 5V tus pin ntawm Arduino
  • GND mus rau txhua qhov qhib GND tus pin ntawm Arduino

Ntxig koj daim npav SD uas tau muab tso rau hauv daim npav SD daim npav ntawm tus qauv thiab ntsaws rau hauv kab ntawv suab.

Tam sim no mus rau qhov chaws….

Koj tuaj yeem nkag mus rau lub tsev qiv ntawv qub ntawm no:

Kuv kuj tau suav nrog cov cai hloov pauv uas kuv tau siv nrog cov ntawv sau tseg txog yuav hloov nws li cas ntawm koj daim ntawv thov tshwj xeeb.

Kauj Ruam 3: Pob Crystal

Txhua yam uas tshuav yog txhawm rau teeb tsa lub Circuit Court hauv pob siv lead ua. Kuv xaiv los qhwv cov hlau nyob ib puag ncig sab nraum lub tais, tab sis koj tuaj yeem kho nws txawm li cas los xij koj xav tau (tsuas yog xyuas kom cov hlau tuaj yeem kov tau).

Koj tuaj yeem ntxiv cov pos huab thiab ntsais teeb hauv lub tais rau qee qhov ntxiv hluav taws!

Pom zoo: