Cov txheej txheem:

Tus Nqi Dej Dej Tsawg Tus Nqi thiab Cov Zaub Ambient: 8 Kauj Ruam (nrog Duab)
Tus Nqi Dej Dej Tsawg Tus Nqi thiab Cov Zaub Ambient: 8 Kauj Ruam (nrog Duab)

Video: Tus Nqi Dej Dej Tsawg Tus Nqi thiab Cov Zaub Ambient: 8 Kauj Ruam (nrog Duab)

Video: Tus Nqi Dej Dej Tsawg Tus Nqi thiab Cov Zaub Ambient: 8 Kauj Ruam (nrog Duab)
Video: leej twg tej ntxhai - Mang Vang [ Official MV ] 2024, Hlis ntuj nqeg
Anonim
Tus Nqi Dej Dej Tsawg Tus Nqi thiab Cov Zaub Ambient
Tus Nqi Dej Dej Tsawg Tus Nqi thiab Cov Zaub Ambient

Dej yog ib yam khoom muaj nqis. Ntau lab tus tib neeg tsis muaj dej haus huv, thiab ntau txog 4,000 tus menyuam tuag los ntawm cov dej muaj kab mob sib kis txhua hnub. Txawm li cas los xij, peb txuas ntxiv tsis siv nrog peb cov peev txheej. Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog txhawb kom muaj kev coj noj coj ua siv dej kom nyab xeeb thiab txhawb kev paub txog cov teeb meem dej thoob ntiaj teb. Kuv tab tom siv piezo transducer, qee qhov LED thiab arduino. Cov cuab yeej yog cov qauv ntxhib ntawm qhov kawg nws yuav dhau los ua thev naus laus zis uas txhawb kev coj tus yam ntxwv ruaj khov thiab nce kev paub txog kev siv dej. Qhov no yog ib qhov haujlwm los ntawm Stacey Kuznetsov thiab Eric Paulos ntawm Lub Chaw Nyob Ib Leeg, ntawm Carnegie Mellon University Tib Neeg Lub Computer Sib Tham Sib Koom Tes. Produced los ntawm Stacey [email protected]://staceyk.orgEric [email protected]:// www. paulos.net/Living Ib puag ncig Lab Koj yuav ua tiav qhov ua tau zoo dua thaum siv lub piezo transducer, yog li cov lus qhia no qhia meej txog piezo mus kom ze. Ua tsaug tshwj xeeb rau Briam Lim, Bryan Pendleton, Chris Harrison thiab Stuart Anderson rau kev pab tswv yim thiab tsim qauv ntawm txoj haujlwm no!

Kauj Ruam 1: Sau Cov Khoom

Sau Cov Khoom
Sau Cov Khoom

Koj yuav xav tau:- Breadboard- Microcontroller (Kuv siv Arduino)- Mastic- Piezo Transducer (https://www.radioshack.com/product/index.jsp?productId=2062402)- Ob peb LED (Kuv siv 2 daj, 2 liab, 2 ntsuab)- Lub tswm ciab lossis lub thawv zoo sib xws- Hlau-1 Mohm (lossis lwm tus nqi loj) resistor- 4.7K Resistors (3)- 1K Resistors (1)- Tus nqi qis (rau cov LED)- Clipping Wire- Jumper Wires- Mastic- op amp (LM613)

Kauj ruam 2: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court

Lub Circuit Court suav nrog lub tshuab hluav taws xob txhawm rau nce lub teeb liab los ntawm piezo thiab qhov faib hluav taws xob kom txhawb lub hauv paus hluav taws xob.

Kauj Ruam 3: Xeem Circuit

Kuaj Circuit Court
Kuaj Circuit Court

Txuas lub piezo rau hauv Circuit Court, thiab nqes mus rau arduino. Qhov faib hluav taws xob teeb tsa lub hauv paus hluav taws xob ntawm 2.5V, yog li lub hauv paus nyeem rau lub teeb liab yuav tsum nyob ib puag ncig 512 ntawm Arduino analog pin (ib nrab ntawm 0 thiab 1023). Mine hloov pauv +/- 30 ncig 520. Koj yuav pom qee qhov kev hloov pauv ntawm tus lej no.

Kauj Ruam 4: Calibrate Koj Lub Sensor kom Tshawb Pom Kev co

Calibrate Koj Lub Sensor txhawm rau Tshawb Pom Kev Tawm Tsam
Calibrate Koj Lub Sensor txhawm rau Tshawb Pom Kev Tawm Tsam

Thaum tus kais tau qhib, qhov kev co ntawm cov yeeb nkab yuav ua rau lub piezo tsim kom muaj qhov hloov pauv tam sim no. Txij li lub hauv paus nyeem ntawv sau tawm ib puag ncig 520, koj tuaj yeem suav qhov dav dav nyob ib puag ncig tus lej no txhawm rau txheeb xyuas kev co. Kuv qhov ntsuas tau teeb tsa ntawm 130, tab sis koj tuaj yeem nce lossis txo qhov no nyob ntawm seb hom kev co uas koj xav paub thiab nkag siab ntawm koj li ib qho piezo tshwj xeeb. Txhawm rau ntsuas lub teeb liab, siv mastic los txuas piezo mus rau qhov tiaj. Sim kais lossis khawb ntawm qhov chaw ntawm qhov chaw sib txawv thiab sib txawv sib txawv pom yam twg ntawm kev nyeem ntawv koj tau txais ntawm Arduino. To txo cov suab nrov, Kuv pom zoo suav qhov nruab nrab ntawm kev nkag mus. Qhov no yog txoj hauv kev tsis zoo ntawm kev txiav txim siab qhov dav dav uas zam qhov tsis raug qhov tseeb vim qhov tsis zoo li qub tam sim no. Ntau txoj hauv kev xws li FFT kuj tseem tuaj yeem siv tau.// Qauv Codeint sensor = 2; // Analog inint val = 0; // Tam sim no nyeem rau analog pinint avg; // Khiav nruab nrab ntawm nthwv dej amplitudeint MIDPOINT = 520; // Pib nyeem ntawv tsis muaj teeb tsa () {Serial.begin (9600); avg = MIDPOINT; // teeb nruab nrab ntawm qhov nruab nrab} void loop () {val = analogRead (sensor); // Suav yoj amplittue yog (val> MIDPOINT) {val = val - MIDPOINT; } lwm {val = MIDPOINT - val; } // suav nruab nrab nruab nrab fr tus neeg hloov pauv avg = (avg * 0.5) + (val * 0.5); yog tias (avg> 130) {// ntsuas pom kev co! Serial.println ("TAP"); ncua (100); // ncua kom ntseeg tau tias qhov chaw nres nkoj Serial tsis raug thauj khoom}}

Kauj Ruam 5: Tsim Ambient Display

Tsim Ambient Zaub
Tsim Ambient Zaub
Tsim Ambient Zaub
Tsim Ambient Zaub
Tsim Ambient Zaub
Tsim Ambient Zaub

Yog tias koj lub sensor ua haujlwm tau zoo, koj tuaj yeem ntxiv cov duab ib puag ncig los qhia cov ntaub ntawv. Kuv LED's tau ua khub xws li txhua xim tau teeb los ntawm ob lub LED. Txhawm rau ua qhov no, txuas qhov 'hauv' (luv) txhuas ntawm txhua xim ua ke, thiab siv tus nqi qis tiv thaiv ua ntej txuas mus rau Arduino. Txuas hauv av (ntev dua) cov txhuas ntawm txhua tus LED thiab txuas rau hauv av ntawm Arduino. Thaum cov LED txuas nrog, siv lub tswm ciab tuav rau lub tsev tso saib. Txij li tus tuav lub tswm ciab yog ua los ntawm txhuas, koj yuav xav muab cov insulator xws li ib daim yas tso rau hauv qab ntawm lub khob ua ntej tso lub LED los tiv thaiv lub Circuit Court kom luv.

Kauj Ruam 6: Siv Sensor Cov Ntaub Ntawv los Tsav Cov Zaub

Siv Sensor Cov Ntaub Ntawv los Tsav Cov Zaub
Siv Sensor Cov Ntaub Ntawv los Tsav Cov Zaub

Nws siv kuv li 10 vib nas this los ntxuav kuv txhais tes. Yog li, kuv tau teeb tsa cov duab kom pom lub teeb ntsuab rau thawj 10 vib nas this tom qab qhib lub kais. Tom qab 10 vib nas this, lub teeb daj tig rau. Cov duab tig liab yog tias cov dej tseem nyob tom qab 20 vib nas this, thiab pib taws teeb liab yog tias lub kais tseem ua haujlwm ntev li 25 vib nas this lossis ntau dua. Koj tuaj yeem siv koj lub tswv yim los tsim lwm cov lus!

Kauj Ruam 7: Mount lub Sensor thiab Zaub Rau Hauv Cov Yeeb Nkab Dej

Mount lub Sensor thiab Zaub rau ntawm Cov Yeeb Nkab Dej
Mount lub Sensor thiab Zaub rau ntawm Cov Yeeb Nkab Dej
Mount lub Sensor thiab Zaub rau ntawm Cov Yeeb Nkab Dej
Mount lub Sensor thiab Zaub rau ntawm Cov Yeeb Nkab Dej
Mount lub Sensor thiab Zaub rau ntawm Cov Yeeb Nkab Dej
Mount lub Sensor thiab Zaub rau ntawm Cov Yeeb Nkab Dej

Siv mastic lossis av nplaum txhawm rau txuas lub piezo mus rau lub kais, thiab lwm txheej ntawm mastic txhawm rau txhawm rau txhawm rau tso saib saum toj kawg nkaus. av cev.

Kauj Ruam 8: Cov Lus Qhia Yav Tom Ntej

Cov Lus Qhia Yav Tom Ntej
Cov Lus Qhia Yav Tom Ntej

Koj tuaj yeem xaiv tsav Arduino tawm lub roj teeb. Ib qho kev qhia yav tom ntej yuav qhia koj yuav ua li cas khiav cov zaub no los ntawm kev kos lub zog ncaj qha los ntawm cov dej ntws nws tus kheej, lossis los ntawm kev siv lub zog ib puag ncig lub teeb pom kev zoo ib puag ncig!

Pom zoo: