Cov txheej txheem:

Nyeem Email Nrog Arduino thiab Wave Shield: 4 Kauj Ruam
Nyeem Email Nrog Arduino thiab Wave Shield: 4 Kauj Ruam

Video: Nyeem Email Nrog Arduino thiab Wave Shield: 4 Kauj Ruam

Video: Nyeem Email Nrog Arduino thiab Wave Shield: 4 Kauj Ruam
Video: $600 NYIAJ PAB CA * $3600 CHILD TAX * BIDEN SPEECH * INDIA KAB MOB HNYAV * TOP NEWS+ 04/29/2021 2024, Kaum ib hlis
Anonim
Nyeem Email Nrog Arduino thiab Wave Shield
Nyeem Email Nrog Arduino thiab Wave Shield

Raws li ib feem ntawm kuv txoj haujlwm ntawm no https://www.instructables.com/id/Sound-Switcher/ (qhov haujlwm ntawd yog hauv kev sib tw yog li yog tias koj nyiam qhov no ces pov npav rau qhov ntawd!) (piv txwv li iPod) kom qhia rau koj paub txog yam uas nyob ib puag ncig koj, Kuv tau muaj nws cuam tshuam ntawm email thiab nyeem koj leej twg tus email yog los ntawm thiab kab lus (yog li koj paub yog tias koj xav nres qhov koj tab tom ua) thiab kos nws). Txij li thaum muaj Arduino nrog Wave Shield nyeem koj li email yuav muaj txiaj ntsig zoo rau lwm tus, Kuv tau muab nws tso rau hauv nws tus kheej cov lus qhia ntawm no. Qhov no siv cov lej xa cov ntaub ntawv. Kuv tsuas yog siv USB interace ntawm Arduino, tab sis koj yuav tsum muaj peev xwm ua tiav tib yam wirelessly nrog XBees los ntawm qhov kuv nkag siab. Yog li ntawd cov khoom hauv phau ntawv qhia no will1. Txheeb koj tus email2. Yog tias qee yam tshiab nws yuav hloov nws mus rau wav file3. ces nws yuav xa nws mus rau arduino ntawm serial4. ces Arduino yuav ua nws Qhov loj tshaj TODO yog ua kom nrawm dua cov ntaub ntawv xa mus. Kuv lub tswv yim yog kom lub khoos phis tawj xa ntau dua 100 bytes lossis yog li ntawd, tom qab ntawd tos rau qhov lees paub cov lus teb los ntawm Arduino ua ntej nws xa ntau dua. Nws kuj tseem yuav zoo kom muaj qee qhov yuam kev txheeb xyuas ib yam vim tias cov ntaub ntawv binary ib nrab tsis zoo dua li tsis muaj nyob hauv qee qhov.

Kauj ruam 1: Hais kom Kab Kab Lus rau Kev Hais Lus

Nov yog qhov txiaj ntsig me me Kuv tau sau nrawm heev los hloov cov ntawv rau kev hais lus. Nws tau sau hauv C# nrog Visual C# 2008 Express Edition pub dawb. Koj yuav zaum xav tau. Net 3.5 los ua qhov no. Cov cai tau suav nrog, tab sis yog tias koj tsuas xav tau exe koj tuaj yeem tau txais hauv CommandLineText2Speech/CommandLineText2Speech/bin/Tso tawm hauv zip file. Txhawm rau kom tau txais cov cuab yeej ua haujlwm koj tuaj yeem qhib qhov hais kom ua sai sai, mus rau phau ntawv teev npe qhov chaw koj tso tus exe, thiab ntaus CommandLineText2Speech.exe. Nws yuav tso tawm qhov no: Pab: Sau cov suab uas tau teeb tsa: CommandLineText2Speech.exe whatvoices

Txhawm rau hloov cov ntawv mus rau wav: CommandLineText2Speech.exe [lub suab] [tus nqi - lub neej ntawd 0 (-10 txog 10)] [ntim - lub neej ntawd 80 (0 txog 100)] "[ntawv los hloov pauv]" [cov ntawv tso tawm] Hauv lwm lo lus tej zaum koj yuav xav tau thawj zaug: CommandLineText2Speech.exe whatvoicesThis yuav teev cov suab uas koj tau teeb tsa hauv koj lub computer. Koj yuav xav tau lub npe lub suab los khiav lub cuab yeej. Lub suab uas los nrog Windows tsis zoo, AT&T muaj qee qhov uas zoo nkauj heev. Tom ntej no los hloov cov ntawv mus rau cov ntaub ntawv wav ua qhov noCommandLineText2Speech.exe "Microsoft Sam" 0 80 "Nov yog qhov ntsuas" test.wav Ntawm no yog nws txhais li cas: "Microsoft Sam" - lub suab, qhov no yog ib qho uas los nrog Windows, koj muaj muab nws tso rau hauv nqe lus txij li muaj qhov chaw 0 - Ceev ib txwm (tuaj yeem los ntawm -10 txog 10) 80 - Ntim li qub (tuaj yeem mus ntawm 0 txog 100) "Nov yog qhov kev xeem" - Cov ntawv uas yuav hloov mus ua wav filetest.wav - cov ntaub ntawv wav yuav raug hu li cas

Kauj Ruam 2: Ruby Utility Txheeb Xyuas Email thiab Upload Wav rau Arduino

Cov kab Ruby txuas nrog ua cov kev txheeb xyuas hauv qab no kom pom tias muaj email tshiab thiab yog tias nws hloov nws mus rau Arduino ntawm USB rau Serial interface ua rau hauv Arduino. Kuv tau muaj teeb meem nrog ua kev sib txuas nrawm dua Serial (yuav qhov loj ntawm qhov tsis). Cov teeb tsa rau cov ntawv yog txhua yam nyob rau sab saum toj ntawm cov ntawv. Qhov no siv kuv qhov program C# los tsim cov ntaub ntawv wav. Kuv yuav tsum hloov pauv txhua yam no rau ib hom lus, Kuv yog tus kiv cua loj ntawm Ruby, tab sis nws tsis zoo li nws tuaj yeem tsim cov ntawv los ntawm cov ntawv yooj yim heev yog li kuv tau sau me C# app. Koj tseem yuav xav tau ruby serial lub pov haum, Kuv tau suav nrog ntawd ib yam. Txhawm rau nruab nws (tom qab koj tau teeb tsa Ruby) hom "lub pov haum nruab win32-serial-0.5.1-x86-mswin32-60.gem" hauv qhov hais kom ua tam sim ntawm cov npe uas koj rub lub pov haum rau. Qhov ntawd yog txhua yam koj yuav tsum xav tau rau txoj haujlwm no kom ua haujlwm.

Kauj Ruam 3: Arduino Code

Nov yog qhov piv txwv ntawm kev nyeem hauv cov ntaub ntawv ntawm kab ntawv, luam nws mus rau SD daim npav, tom qab ntawd ua si nthwv dej. Nov yog ib feem ntawm kuv cov lus qhia ntawm no https://www.instructables.com/id/Sound-Switcher/ (ceeb toom nws nyob hauv Arudino kev sib tw, yog tias koj nyiam nws pov npav rau nws!) Kuv yuav ntxiv lwm qhov piv txwv hauv hnub tom ntej lossis yog li ntawd tau txiav tawm. Saib ntawm qhov ua haujlwm check_serial rau kev sau ntawv rau SD daim npav. Kuv siv lub tsev qiv ntawv WaveRP pom ntawm no los ua nws

Kauj Ruam 4: Khiav Txhua Qhov

Ok, tam sim no koj muaj txhua ntu. Txhawm rau ua qhov no kom raug koj yuav tsum 1. Nruab Wave Shield ntawm Arduino2. Txuas Arduino rau Khoos phis tawj (lossis siv XBee) - Kuv xav tias koj twb muaj lub firmware teeb tsa lawm 3. Khiav Ruby checkEmail.rb tsab ntawv 4. Txaus siab rau koj Arduino nyeem koj li email.

Pom zoo: