Cov txheej txheem:

Suab paj nruag Microwave (Arduino Project): 6 Kauj Ruam (nrog Duab)
Suab paj nruag Microwave (Arduino Project): 6 Kauj Ruam (nrog Duab)

Video: Suab paj nruag Microwave (Arduino Project): 6 Kauj Ruam (nrog Duab)

Video: Suab paj nruag Microwave (Arduino Project): 6 Kauj Ruam (nrog Duab)
Video: Timmy Trumpet joins Oven Boy for a TODAY Show jam | TODAY Show Australia 2024, Kaum ib hlis
Anonim
Image
Image
Cov Ntaub Ntawv/Cov Cuab Yeej
Cov Ntaub Ntawv/Cov Cuab Yeej

Xav tig koj lub microwave tsis txaus rau hauv lub supercharged*, nuclear ** jukebox uas ua suab paj nruag thaum ua kom tawg *** cov khoom noj uas koj xaiv?!?

* hype

** kev tshaj tawm cuav

*** ntau tshaj tawm tsis tseeb

Nyeem rau

Txog qhov haujlwm no, Kuv tau siv Arduino UNO, SparkFun MP3 Player Shield, tus hais lus me me, thiab 3-Pin SPDT Micro Hloov txhawm rau txhav kuv lub microwave kom ua suab paj nruag thaum nws siv.

Txij li nws yog Christmas Eve, Kuv tau rub MP3 Shield nrog qee qhov kuv nyiam Christmas nkauj, tab sis pom tseeb koj tuaj yeem siv cov nkauj koj nyiam (muab lawv ua tau raws qee qhov me ntsis, tus nqi piv, thiab cov npe npe xav tau)

Q. Tab sis twb yog Christmas Eve lawm los ?? Kuv yuav tsum ua kom tiav qhov no nyob rau lub sijhawm kom nthuav tawm kev zoo siab rau hnub so thiab ua siab zoo rau txhua tus txiv neej?! Tsis txhob ntshai, rau qhov koj tsis tau hnov dua txog ob hnub ntawm Hnub Christmas los txog !!!

Cia peb pib…

Kauj Ruam 1: Cov Ntaub Ntawv/Cov Cuab Yeej

Hauv qab no yog cov ntaub ntawv thiab cov cuab yeej uas koj yuav xav tau rau txoj haujlwm no.

Kuv tau txuas cov ntaub ntawv uas kuv tau siv rau koj qhov yooj yim, tab sis xav tias ua rau tshee yam!

Cov ntaub ntawv:

  • 1 Arduino UNO
  • 1 AC Adapter nrog

    • Chaw Zoo 2.1mm x 5.5mm txiv neej chim chim ntsaws
    • thiab 12V, 1-2A DC Tso Tawm
  • 1 SparkFun MP3 Player Shield
  • 1 Arduino Stackable Header Kit - R3
  • 1 micro SD
  • 1 3.5mm Txiv neej-rau-Txiv neej Lub tso suab Audio AUX Cable
  • 1 Tus neeg hais lus nrog AUX Tswv Yim + them nyiaj
  • 1 Txiv neej-rau-Poj Niam Jumper Xov
  • 1 3-Pin SPDT Micro Hloov
  • 3 Command Strips
  • 2 acrylic/yas/ntoo striker thaiv

    kwv yees li 0.125 "x 0.125" x 1.0"

  • Koj nyiam.mp3 cov ntaub ntawv nrog

    • 8.3 filenames (8 cim + '.mp3')
    • tus nqi me ntsis tsis tshaj 320 kbps
    • kuaj tus nqi tsis ntau tshaj 48 kHz

Cov Cuab Yeej:

  • Soldering Hlau + Solder
  • Koob-Qhov ntswg Pliers
  • Khoos phis tawj
  • USB 2.0 Cable Hom A/B.
  • Multimeter (yeem)

Kauj ruam 2: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Kev sib dhos yuav tsum ncaj.

Txuas SparkFun MP3 Player Shield rau Arduino UNO

1. Cov kab laug sab laug rau ntawm SparkFun MP3 Player Shield (xyuas kom lawv phim cov duab saum toj no)

2. Kab kab MP3 Player Shield tus header pins nrog Arduino UNO tus header pins.

3. Nyuaj (tab sis maj mam) thawb lub MP3 Player Shield thiab Arduino ua ke.

Txuas 3-Pin SPDT Micro Hloov mus rau SparkFun MP3 Player Shield

Siv cov txiv neej-rau-poj niam jumper xov hlau …

1. Txuas Micro Hloov Tus Qauv (C) Pin rau ib qho ntawm GND Pins ntawm MP3 Player Shield.

2. Txuas Micro Hloov Tus Qauv-Kaw (NC) rau Pin 10 ntawm MP3 Player Shield.

Nco tseg: Koj tuaj yeem xau cov poj niam qhov xaus ntawm cov xov hlau txuas mus rau Micro Hloov tus pin lossis txhawm rau cov xaus nrog ib khub ntawm rab koob-lub qhov ntswg. Hauv ob qho xwm txheej twg, koj yuav xav xub tshem cov yas txuas los ntawm poj niam qhov xaus ntawm cov xov hlau jumper …

Tam sim no thaum Micro Hloov lub caj npab qib nyuaj siab…

Micro Hloov tus C thiab NC pins yuav txuas nrog tsim kev qhib-Circuit Court thiab Arduino UNO yuav ntsuas tus nqi HIGH (lossis ~ 5V) ntawm Pin 10.

Thaum Micro Hloov lub caj npab qib tau tsa …

Micro Hloov tus C thiab NC pins yuav txuas nrog tsim lub kaw lus kaw thiab Arduino UNO yuav ntsuas tus nqi LOW (lossis ~ 0V) ntawm tus Pin 10.

Nco tseg: Txhawm rau kom ntseeg tau tus cwj pwm txhim khu kev qha los ntawm peb Micro Hloov, peb kuj tseem yuav tsum tau ua haujlwm hloov pauv thiab ntxiv qhov rub tawm tus tiv thaiv. Hauv qhov no, peb yuav daws ob qhov teeb meem hauv peb cov cai los ntawm kev siv qhov yooj yim debouncing algorithm thiab ua kom zoo dua ntawm Arduino UNO kev tsim ua hauv Circuitry.

Txuas SparkFun MP3 Player Shield rau Tus Hais Lus

1. Txuas MP3 Player Shield thiab hais lus siv 3.5mm txiv neej-rau-txiv neej lub tso suab audio AUX cable.

Txuas AC Adapter rau Arduino UNO

1. Plug AC Adapter tus txiv neej chim chim ntsaws rau hauv Arduino UNO tus poj niam chim chim ntsaws.

Kauj Ruam 3: Mount ntawm Microwave

Mount rau Microwave
Mount rau Microwave
Mount rau Microwave
Mount rau Microwave
Mount rau Microwave
Mount rau Microwave
Mount rau Microwave
Mount rau Microwave

Muab lub cuab yeej tso rau/ze lub microwave uas koj xaiv

Nco tseg: Nco ntsoov tias Arduino UNO tau so ntawm qhov hluav taws xob rwb thaiv tsev (piv txwv li ib daim duab los qhuav) thiab tsis yog tus siv hluav taws xob (piv txwv li hlau microwave). Txij li Arduino UNO tau nthuav tawm tus pin ntawm nws sab hauv qab, tso nws rau ntawm qhov chaw ua haujlwm tuaj yeem ua rau muaj kev cuam tshuam tsis zoo/luv luv Circuit Court.

Txuas tus thaiv thaiv mus rau lub qhov rooj microwave

1. Siv Command Strips txhawm rau txhawm rau thaiv qhov thaiv ntawm lub qhov rooj microwave (raws li qhia hauv cov duab saum toj no).

2. Cov khoom thaiv yuav tsum yog sib npaug thiab yaug nrog cov kab sib txuas ntawm lub qhov rooj microwave thiab lub microwave

3. Siv Qhov Kev Hais Plaub Sawb txhawm rau txuas Micro Hloov mus rau lub microwave (raws li qhia hauv cov duab saum toj no). Qhov Micro Hloov yuav tsum tau muab tso kom nws txhais caj npab qis thaum muaj kev nyuaj siab thaum lub qhov rooj microwave raug kaw thiab tsa thaum lub qhov rooj microwave qhib.

Tam sim no thaum lub qhov rooj microwave raug kaw…

Arduino UNO yuav ntsuas tus nqi HIGH (lossis ~ 5V) ntawm tus Pin 10.

thiab thaum lub qhov rooj microwave qhib …

Arduino UNO yuav ntsuas tus nqi LOW (lossis ~ 0V) ntawm tus Pin 10.

Nco tseg: Yog tias koj xav tau teeb tsa zoo dua, koj tuaj yeem…

1. Muab lub Micro Hloov thiab tus thaiv thaiv rau sab hauv qab ntawm lub microwave (qhov rooj). Qhov no yuav ua rau lub zog hnyav dua kom pom.

2. Siv cov xov hlau ntev los txuas Micro Hloov mus rau MP3 Player Shield. Qhov no yuav cia koj zais lub cuab yeej kom deb ntawm lub microwave.

Kauj ruam 4: Program Arduino

Program Arduino
Program Arduino

Cov cai thiab cov lus qhia ib qib zuj zus rau kev ua haujlwm Arduino thiab teeb tsa Micro SD nyob hauv GitHub qhov chaw cia khoom no:

github.com/The-Engineer-Channel/musical-microwave-arduino-mp3-shield

Tom qab koj ua tiav txhua cov kauj ruam, mus rau kauj ruam tom ntej hauv Phau Ntawv Qhia no!

Kauj ruam 5: Hwj chim On

Txij ntawm no mus, koj yuav tsum tau muaj…

  1. Sib dhos lub cuab yeej.
  2. Mounted nws ntawm lub microwave.
  3. Programmed Arduino
  4. Configured Micro SD

Kauj Ruam Kawg

  1. Ntxig Micro SD rau hauv lub qhov ntawm lub MP3 Player Shield.
  2. Qhib tus hais lus.
  3. Txuas tus hais lus rau nws lub charger (yeem).
  4. Txuas lub AC Adapter rau hauv lub qhov (socket) phab ntsa.

Arduino yuav tsum qhib lub zog thiab ua thawj zaj nkauj. Qhib thiab kaw lub qhov rooj microwave ib zaug thiab koj lub cuab yeej npaj mus!

Cov cuab yeej siv tus qauv siv yooj yim:

qhib lub qhov rooj microwave> muab zaub mov rau> kaw lub qhov rooj microwave> ua suab nkauj> qhib lub qhov rooj microwave> nres nkauj> nqa zaub mov tawm> kaw lub qhov rooj microwave> rov ua dua

Koj xav tias peb tuaj yeem ua qhov no zoo dua li cas? Qhia rau kuv paub.

Kauj Ruam 6: Txhawb & Cov Khoom Siv Ntxiv

Txhawb nqa

Txog cov teeb meem cuam tshuam nrog cov cai, thov qhib qhov teeb meem hauv GitHub chaw cia khoom.

Rau txhua yam ntxiv, thov tawm tswv yim hauv qab no.

Kuv yuav ua qhov zoo tshaj plaws los pab.

Cov Kev Pab Ntxiv

Arduino

  • Official Lub Vev Xaib

    • Rub tawm Arduino IDE
    • Pib Pib nrog Arduino thiab Genuino UNO
    • Txhim Kho Tsev Kawm Ntawv Ntxiv Arduino

SparkFun MP3 Player Shield

  • MP3 Player Shield Hookup Guide V15 - Kev qhia zoo heev los ntawm SparkFun
  • Sparkfun-MP3-Player-Shield-Arduino-Library

    Cov ntaub ntawv

Rub-up Resistor

  • Dab tsi yog rub-up resistor? [1]
  • Dab tsi yog rub-up resistor? [2]
  • Arduino Digital Pins

Pom zoo: