Cov txheej txheem:

Arduino Infinity Mirror (Bluetooth & Lub Suab Zoo): 9 Kauj Ruam (nrog Duab)
Arduino Infinity Mirror (Bluetooth & Lub Suab Zoo): 9 Kauj Ruam (nrog Duab)

Video: Arduino Infinity Mirror (Bluetooth & Lub Suab Zoo): 9 Kauj Ruam (nrog Duab)

Video: Arduino Infinity Mirror (Bluetooth & Lub Suab Zoo): 9 Kauj Ruam (nrog Duab)
Video: Quando provi a fare un complimento a una ragazza... 2024, Kaum ib hlis
Anonim
Image
Image
Arduino Infinity Mirror (Bluetooth & Suab Zoo Siab)
Arduino Infinity Mirror (Bluetooth & Suab Zoo Siab)
Arduino Infinity Mirror (Bluetooth & Suab Zoo Siab)
Arduino Infinity Mirror (Bluetooth & Suab Zoo Siab)

Kuv tsim daim iav Infinity rau lub tsev kawm ntawv txoj haujlwm nrog Arduino uas koj tuaj yeem tswj hwm nrog koj lub xov tooj lossis ntsiav tshuaj los ntawm kev siv Bluetooth. Daim iav kuj tseem muaj lub microphone built-in uas pom lub suab/suab paj nruag thiab ua raws li qhov tsim los ntawm kev tsim lub qhov muag pom lub teeb pom kev ntawm qhov ntaus nkauj! Tsuas yog pib lub app, txuas rau bluetooth thiab pom cov khawv koob tshwm sim!

Hauv Cov Lus Qhia no Kuv yuav qhia koj yuav ua li cas koj tuaj yeem ua daim iav Infinity no. Yog li cia peb pib!

Kauj Ruam 1: Sau Cov Khoom

Sau Cov Khoom
Sau Cov Khoom

Txhawm rau ua daim iav infinity, koj yuav xav tau cov ntaub ntawv hauv qab no:

1) Arduino Uno ($ 30)

Koj tseem tuaj yeem siv hom sib txawv ntawm Arduino, tab sis qhov ntawd yog nyob ntawm koj.

2) Mini breadboard lossis PCB ($ 5)

Kuv tau siv lub khob cij rau ua qauv ua qauv thiab tom qab ntawd muab txhua yam tso rau hauv daim txiag/daim kab xev.

3) WS2813 Cov 5050 RGB LED Sawb - 144 LEDs (1 meter) ($ 25)

Koj tseem tuaj yeem siv qhov sib txawv LED sawb, tab sis nco ntsoov tias txhua tus LEDs yog tus kheej nyiam. Kuj xyuas kom tseeb tias LED sawb muab "ntxiv" 5V qhov hluav taws xob rau txhua lub ntsuas ntawm LEDs. Qhov no yog vim tias qhov hluav taws xob poob qis dua ntawm kab txaij thiab qhov tam sim no thaum pib tuaj yeem nce ntau. (thiab tej zaum yuav hlawv pib ntawm koj cov hlua LED!) Koj tuaj yeem nyeem ntxiv txog qhov no ntawm no: Hwj chim Neopixels.

4) Cov kab xaim hluav taws xob ($ 3)

Cov xim tsis muaj teeb meem feem ntau, tab sis nws muaj txiaj ntsig zoo kom muaj lawv los siv rau koj tus kheej. Kuv siv dawb, dub, liab, ntsuab, daj, txiv kab ntxwv thiab xiav.

5) USB A rau B cable ($ 4)

Qhov no yuav siv los rub koj cov cai Arduino rau Arduino Uno board.

6) Txhais Tau Zoo Hloov Cov Khoom Siv Hluav Taws Xob - 5V 10A ($ 15)

Qhov no yuav raug siv los txhawb cov hlua LED nrog sab nraud 5V qhov hluav taws xob, vim tias Arduino nws tus kheej tsis muaj zog txaus kom pom txhua LEDs. Koj kuj tseem tuaj yeem xaiv siv Lub Phab Ntsa Adapter Lub Hwj Huam Fais Fab, tab sis nco ntsoov tias nws ua haujlwm ntawm 5V.

7) 230V Fais fab cable nrog ntsaws ($ 3)

Qhov no yuav raug siv los txuas rau Kev Hloov Cov Khoom Siv Hluav Taws Xob mus rau 230V Lub Hau Hluav Taws Xob. Nyob ntawm qhov chaw koj nyob, tus nqi hluav taws xob los ntawm lub qhov hluav taws xob tuaj yeem sib txawv. Nyob rau hauv txhua rooj plaub, koj yuav xav tau lub cable kom raug nrog ntsaws.

8) Bluetooth HC-06 module RF transceiver Qhev 4-PIN ($ 8)

Cov qauv no yuav siv rau xa cov ntaub ntawv los ntawm koj lub xov tooj lossis ntsiav tshuaj mus rau Arduino. Qhov bluetooth module no tsuas tuaj yeem ua haujlwm qhev. Tus qauv bluetooth tus pin / password yog 1234.

9) Suab Tshawb Pom Suab Sensor Module 3-PIN ($ 3)

Cov qauv no yuav raug siv txhawm rau txheeb xyuas lub suab txij li nws muaj lub microphone built-in. Teem lub hwj chim rau qhov xav tau ntawm lub suab uas tsim lub teeb liab. Koj kuj tseem tuaj yeem siv lub suab sib txawv, tab sis qhov ntawd yog rau koj.

10) 220 Ω Resistor ($ 0.25)

Qhov no yuav siv rau kev tswj hwm qhov hluav taws xob ntawm LEDs. Yog tias koj tsis siv qhov no, tom qab ntawd LEDs thaum kawg yuav kub heev. 220Ω tus tiv thaiv muaj xim liab, liab, thiab xim av hauv qhov kev txiav txim ntawd. Qhov kab txaij kawg sawv cev rau kev ua siab ntev. Kub txhais tau tias ± 5%. Xav paub ntau ntxiv ntawm no: 220 Ohm Resistor.

11) 1000uF 16V Electrolytic Capacitor ($ 0.25)

Qhov no yuav raug siv los ntxiv thiab khaws lub peev xwm (lub zog) rau hauv koj lub Circuit Court. Xav paub ntau ntxiv ntawm no: Electrolytic Capacitors.

Lub thawv thiab daim iav:

Cov no yog cov ntaub ntawv thiab qhov ntev uas kuv tau siv los tsim kuv lub thawv. Koj tseem tuaj yeem xaiv yuav lub thav duab lossis lub thawv ua ntej ua ntej uas loj txaus kom haum rau ib txoj hauv kev tsom iav, tsom iav ib txwm, LEDs thiab hluav taws xob hauv nws. Kuv tsuas pom zoo kom tsim nws tus kheej yog tias koj muaj cov cuab yeej raug thiab cov khoom siv.

12) iav 25 x 25cm (tuab 3 hli) ($ 5)

Cov iav yuav siv los ua ib txoj hauv kev tsom iav, uas koj yuav xav tau ib txoj hauv kev tsom iav qhov rai zaj duab xis rau (saib 13). Koj kuj tseem tuaj yeem xaiv yuav ib txoj hauv kev ib daim iav/daim iav ib nrab pob tshab uas yog qhov loj txaus kom haum rau hauv koj lub thawv. Koj tuaj yeem txiav iav koj tus kheej nrog lub iav txiav (saib 22), tab sis kuv theej pom zoo kom sab laj nrog cov kws tshaj lij los ua qhov no rau koj lossis zoo dua tsuas yog yuav iav nrog qhov ntev uas raug.

13) Tinted ib txoj kev iav qhov rai zaj duab xis 30 x 30 cm ($ 5)

Txhawm rau txhawm rau rov ua daim iav ib txoj hauv kev, koj yuav xav tau iav thiab yob ib tinted ib txoj kev tsom iav qhov rai zaj duab xis, uas yuav siv rau hauv cov iav nrog dej thiab xab npum (saib 29). Qhov laj thawj yog vim li cas nws thiaj li loj dua lub iav yog vim nws yuav nqaim zuj zus. Yog tias koj xaiv yuav daim iav ib-txoj kev hloov pauv raws li tau hais los saum no, tom qab ntawd koj yuav tsis xav tau qhov no.

14) Daim iav 25 x 25cm (tuab 3 hli) ($ 5)

Tsuas yog tsom iav ib txwm, zoo li lub iav uas koj muaj hauv chav dej. Qhov no yuav raug siv, nrog rau daim iav ib txoj hauv kev, los tsim cov "infinity" cov nyhuv.

15) 2x Ntoo Ntoo Ntoo 25 x 10 x 2cm ($ 2)

Ob lub lath ntoo rau saum thiab hauv qab ntawm lub thawv.

16) 2x Ntoo Ntoo Ntoo 27 x 10 x 2cm ($ 2)

Ob lub lath ntoo rau sab xis thiab sab laug ntawm lub thawv.

17) 2x Ntoo Ntoo Ntoo 25 x 2.5 x 0.5cm ($ 1)

Ob lub lath ntoo rau sab saum toj thiab hauv qab ntawm sab hauv ntawm lub thawv (uas tsom iav yuav so rau ntawm thiab cov LEDs tau muab tso rau ntawm).

18) 2x Ntoo Ntoo Ntoo 24 x 2.5 x 0.5cm ($ 1)

Ob lub lath ntoo rau sab xis thiab sab laug ntawm sab hauv ntawm lub thawv (uas tsom iav yuav so rau ntawm thiab qhov LEDs tau muab tso rau ntawm).

19) Cov xim dub tuaj yeem txau/txau

Kuv siv qhov no los pleev xim kuv lub thawv dub kom nws sib xyaw nrog cov ntsiab lus tsaus.

Cov Cuab Yeej:

Nov yog cov cuab yeej uas koj yuav xav tau los tsim lub thawv ntxiv rau daim iav:

20) Ntsuas kab xev ($ 3)

Siv los ntsuas koj lub thawv ntawm chav kawm. Xav paub ntau ntxiv ntawm no: Yuav Ua Li Cas Nyeem Ntawv Xev.

21) Ntsuas square ($ 5)

Kuj siv rau ntsuas koj lub thawv/khoom siv. Tsis xav tau tiag tiag, tab sis nws tuaj yeem ua haujlwm tau yooj yim.

22) Hlau txiav/stripper ($ 5)

Siv los txiav thiab txiav koj cov xov hlau. Ua lwm txoj hauv kev koj tseem tuaj yeem siv rab riam hauv chav ua noj lossis riam stanley. Xav paub ntau ntxiv ntawm no: Yuav Ua Li Cas Sawb Hlau.

23) Cov iav txiav ($ 5)

Siv los txiav iav thiab tsom iav. Raws li lwm txoj hauv kev koj tuaj yeem siv pob zeb diamond, tab sis kuv tsis pom zoo nws. Xav paub ntau ntxiv ntawm no: Yuav Ua Li Cas Txiav Cov Khaub Ncaws.

24) Ntsia Hlau/laum ($ 2)

Siv rau kev tsav tsheb screws thiab drilling qhov. Xav paub ntau ntxiv ntawm no: Yuav Ua Li Cas Tsav Woodscrew.

25) Rauj ($ 5)

Siv rau kev tsav tsheb rau tes. Xav paub ntau ntxiv ntawm no: Yuav Siv Dab Tsi Ruaj Ntseg.

26) Ntoo nplaum ($ 5)

Yog tias cov ntsia hlau lossis ntsia hlau tsis zoo txaus, koj kuj tuaj yeem siv qee cov kua nplaum ntoo los khaws qhov sib dhos ua ke. Xav paub ntau ntxiv ntawm no: Yuav Ua Li Cas Ntoo Ntoo Ua Ke.

27) Pom ($ 5)

Siv rau sawing ntoo. Xav paub ntau ntxiv ntawm no: Yuav Ua Li Cas Pom Ntoo Nrog Tes Taw.

28) Ntsia ($ 3)

Siv los khaws ib feem ua ke, hauv peb cov ntaub ntawv tas mus li.

29) Ntsia Hlau ($ 3)

Kuj tseem siv los khaws qhov chaw ua ke, tab sis los ntawm kev siv cov ntsia hlau hloov ntawm cov ntsia hlau koj tuaj yeem yooj yim txuas cov ntu yog xav tau.

30) Dej thiab xab npum

Siv rau kev thov pleev xim ib txoj hauv kev iav qhov rai zaj duab xis rau iav. Thiab tseem siv los ntxuav daim iav infinity. Yog tias koj xav paub yuav ua li cas txhawm rau txhim kho lub qhov rai zaj duab xis, koj tuaj yeem ua raws cov lus qhia no: Yuav Ua Li Cas Txhim Kho Lub Qhov Rai Zaj Duab Xis.

31) Ntawv txhuam ($ 1)

Siv los ua kom zoo dua cov npoo ntse ntawm iav thiab ntoo.

Cov cuab yeej soldering (tsis teb los tau):

32) Soldering Hlau ($ 15)

Yeem tau yog tias koj xaiv los txhuam txhua yam ua ke es tsis txhob tso nws rau ntawm lub khob cij. Yog tias koj xav paub yuav ua li cas thiaj li yaj tau, koj tuaj yeem ua raws cov lus qhia no: Yuav Ua Li Cas Siv Cov Khoom Siv Hluav Taws Xob.

33) Solder tin 0.6mm - 100g ($ 5.50)

Siv los txuas cov xov hlau ua ke.

34) Desoldering hlau - 1mm 1.5m ($ 1.50)

Siv rau desoldering cov xov hlau, yog tias koj ua yuam kev los ntawm kev sib tsoo.

35) Thaum tshav kub kub ntsws ntsws ($ 2)

Siv kom muaj kev nyab xeeb khaws cov xov hlau txuas ua ke.

36) 1x 3 Pins header poj niam ($ 0.10)

Tsis xav tau tiag tiag, tab sis nws tuaj yeem siv tau yog tias koj tsis xav kom ncaj qha lub suab ntsuas lub suab ntsuas mus rau cov xov hlau.

37) 1x 4 Pins header poj niam ($ 0.10)

Tsis xav tau tiag tiag, tab sis nws tuaj yeem ua ke yog tias koj tsis xav kom ncaj qha txuas lub bluetooth module rau cov xov hlau.

Kauj Ruam 2: Kev Sib Txuas Breadboard

Image
Image
Breadboard Kev Sib Txuas
Breadboard Kev Sib Txuas
Breadboard Kev Sib Txuas
Breadboard Kev Sib Txuas

Thaum koj tau sib sau cov ntaub ntawv, nws yog lub sijhawm los ua koj thawj daim ntawv los ntawm kev siv lub khob cij. Lub khob cij muaj plaub kab nyob rau hauv tag nrho. Thawj ob thiab kawg ob kab ntawv xiav thiab liab qhia sib txuas ncaj qha, sawv cev rau +5V (liab) thiab hauv av/GND (xiav) sib txuas. Ob kab ntawv nyob hauv nruab nrab yog qhov uas koj cov khoom tseem ceeb yuav muab tso rau. Koj tuaj yeem kawm paub ntau ntxiv txog breadboards ntawm no.

Yog li koj xav ua dab tsi yog txuas koj Arduino mus rau lub khob cij los ntawm kev siv qee cov qauv ua qauv. Raws li kuv tau hais ua ntej, cov xim tsis muaj teeb meem tab sis lawv yog cov ntaub ntawv siv tau rau koj tus kheej. Piv txwv li, Kuv siv cov xov hlau liab los sawv cev rau +5V thiab cov xov hlau dawb los sawv cev rau GND. Nws kuj tsis muaj teeb meem qhov twg koj tso koj cov pins tsuav yog lawv nyob hauv tib lub Circuit Court.

Tom ntej no koj xav txuas koj lub LED sawb rau lub khob cij. Koj yuav pom tias nws muaj 3-6 xaim nyob ntawm seb koj muaj hom twg. Dawb sawv cev rau GND/min cov lus tawm tswv yim, liab sawv cev rau +5V kev nkag mus, ntsuab sawv cev rau cov ntaub ntawv nkag mus PIN thiab xiav sawv cev rau cov ntaub ntawv thaub qab cov ntaub ntawv nkag PIN (tsis txhob txuas tshwj tsis yog tias LED txuas). Plug rau sab nraud 5V lub zog thiab txuas nws mus rau kab LED. Tsis txhob hnov qab tseem txuas tus tiv thaiv thiab lub capacitor raws li qhia hauv daim duab saum toj no, lossis lwm yam koj yuav hlawv koj cov LEDs!

Thaum kawg koj xav txuas koj lub bluetooth module thiab lub suab ntsuas lub suab mus rau lub khob cij. Muab lub suab ntsuas lub suab tso rau tus pin A0 (analog). Raws li rau bluetooth module, koj yuav pom tias nws muaj ib qho RXD thiab ib tus TXD tus pin. Cov no yog xa thiab txais cov cim qhia. NCO TSEG: txuas TXD tus pin ntawm tus qauv rau RXD tus pin ntawm Arduino, thiab RXD tus pin ntawm tus qauv mus rau TXD tus pin ntawm Arduino. Tsis yog rau tus pin tib yam!

Kauj ruam 3: Code Arduino

Code Arduino
Code Arduino

Yog li cov kauj ruam tom ntej yog txhawm rau txheeb xyuas Arduino. Koj yuav xav tau Arduino IDE software los ua qhov no, uas koj tuaj yeem rub tawm ntawm no. Thaum koj tau rub tawm IDE qhib daim ntawv tshiab thiab luam thiab muab cov lej hauv qab no tso rau hauv qhov project qhov rai:

#suav nrog

// Pins uas txuas nrog Arduino

const int PIN = 6; // Tus pin nkag ntawm LED sawb int NUMPIXELS = 144; // Tus lej ntawm cov pixels uas yuav ua kom pom qhov sib haum SOUNDSENSOR = A0; // Tus pin nkag ntawm lub Suab Sensor

int ButtonState = 0; // Xeev uas tau muab rau lub khawm ntawm bluetooth app

int ntim = 0; // Xeev uas txheeb xyuas yog tias muaj lub teeb liab hauv lub microphone lossis tsis yog

// Xim hloov

boolean PrimBlue = tsis tseeb; boolean PrimGreen = tsis tseeb; boolean PrimRed = tsis tseeb; boolean PrimWhite = tsis tseeb; boolean PrimYellow = tsis tseeb; boolean PrimOrange = tsis tseeb; boolean PrimPink = tsis tseeb; boolean PrimPurple = tsis tseeb;

// Lub teeb thiab suab hloov pauv

boolean SoundDetect = tsis tseeb; boolean FullLight = tsis tseeb;

Adafruit_NeoPixel strip = Adafruit_NeoPixel (NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void teeb tsa () {

pinMode (SOUNDSENSOR, INPUT); // Cov tswv yim ntawm Lub Suab Sensor pinMode (PIN, OUTPUT); // Cov tswv yim ntawm LED sawb

Serial.begin (9600);

strip.setPixelColor (0, 0, 0, 0); strip.setBrightness (0); strip.begin (); // Qhov no pib ua NeoPixel tsev qiv ntawv strip.show ();

}

void voj () {

// Txhais qhov ci ci raws li qhov swb byte ci ntsa iab = analogRead (A0)/4; Serial.println (ci ntsa iab); yog (Serial.available ()> 0) {ButtonState = Serial.read (); }

// Pab kom lossis lov tes taw LED thiab Tshawb Pom Lub Suab

yog (FullLight == 1 && SoundDetect == 0) {strip.setBrightness (ButtonState); strip.show (); } lwm yog (FullLight == 0 && SoundDetect == 0) {strip.setBrightness (0); strip.show (); } lwm tus yog (FullLight == 0 && SoundDetect == 1) {strip.setBrightness (ci ntsa iab); strip.show (); } lwm yog (FullLight == 1 && SoundDetect == 1) {strip.setBrightness (0); strip.show (); }

//////////////////////////// LED hloov //////////////////////// ////

yog (ButtonState == 'a') {primaryColors (); FullLight = 1; SoundDetect = 0; }

yog (ButtonState == 'b') {

FullLight = 0; SoundDetect = 0; }

//////////////////////////// Lub suab nrhiav pom /////////////////////// /////

yog (ButtonState == 'c') {primaryColors (); SoundDetect = 1; FullLight = 0; }

yog (ButtonState == 'd') {

SoundDetect = 0; FullLight = 0; }

//////////////////////////// Thawj Xim //////////////////////// ////

yog (ButtonState == '1') {primaryColors (); PrimBlue = 0; PrimGreen = 0; PrimRed = 1; PrimWhite = 0; PrimYellow = 0; PrimOrange = 0; PrimPink = 0; PrimPurple = 0; }

yog (ButtonState == '2') {

thawj Xim (); PrimGreen = 1; PrimBlue = 0; PrimRed = 0; PrimWhite = 0; PrimYellow = 0; PrimOrange = 0; PrimPink = 0; PrimPurple = 0; }

yog (ButtonState == '3') {

thawj Xim (); PrimRed = 0; PrimBlue = 1; PrimGreen = 0; PrimWhite = 0; PrimYellow = 0; PrimOrange = 0; PrimPink = 0; PrimPurple = 0; } yog (ButtonState == '4') {primaryColors (); PrimRed = 0; PrimBlue = 0; PrimGreen = 0; PrimWhite = 1; PrimYellow = 0; PrimOrange = 0; PrimPink = 0; PrimPurple = 0; } yog (ButtonState == '5') {primaryColors (); PrimRed = 0; PrimBlue = 0; PrimGreen = 0; PrimWhite = 0; PrimYellow = 1; PrimOrange = 0; PrimPink = 0; PrimPurple = 0; } yog (ButtonState == '6') {primaryColors (); PrimRed = 0; PrimBlue = 0; PrimGreen = 0; PrimWhite = 0; PrimYellow = 0; PrimOrange = 1; PrimPink = 0; PrimPurple = 0; } yog (ButtonState == '7') {primaryColors (); PrimRed = 0; PrimBlue = 0; PrimGreen = 0; PrimWhite = 0; PrimYellow = 0; PrimOrange = 0; PrimPink = 1; PrimPurple = 0; } yog (ButtonState == '8') {primaryColors (); PrimRed = 0; PrimBlue = 0; PrimGreen = 0; PrimWhite = 0; PrimYellow = 0; PrimOrange = 0; PrimPink = 0; PrimPurple = 1; }}

void primaryColors () {

rau (int i = 0; i <NUMPIXELS; i ++) {if (PrimBlue == 1) {strip.setPixelColor (i, 0, 0, 255); } lwm yog (PrimGreen == 1) {strip.setPixelColor (i, 0, 255, 0); } lwm yog (PrimRed == 1) {strip.setPixelColor (i, 255, 0, 0); } lwm yog (PrimWhite == 1) {strip.setPixelColor (i, 255, 255, 255); } lwm yog (PrimYellow == 1) {strip.setPixelColor (i, 255, 255, 0); } lwm yog (PrimOrange == 1) {strip.setPixelColor (i, 255, 102, 0); } lwm yog (PrimPink == 1) {strip.setPixelColor (i, 255, 0, 255); } lwm yog (PrimPurple == 1) {strip.setPixelColor (i, 102, 0, 204); } lwm {strip.setPixelColor (i, 255, 255, 255); }} strip.show (); }

Yog tias nws nug koj kom teeb tsa Adafruit NeoPixel lub tsev qiv ntawv ua qhov no los ntawm kev mus rau Sketch> Ntshuam Tsev Qiv Ntawv> Adafruit NeoPixel.

Kauj Ruam 4: Tsim Bluetooth App

Image
Image
Tsim lub Thawv
Tsim lub Thawv

Tam sim no cia nkag mus rau qhov nthuav, tsim koj li app! Kuv txiav txim siab siv software thib peb hu ua MIT App Inventor 2 los ua qhov no. Yog tias koj xav rub cov phiaj xwm phiaj xwm (.aia) thiab hloov pauv rau hauv app, koj tuaj yeem rub nws hauv qab no. Tab sis koj tseem tuaj yeem rub tawm lub app nws tus kheej (.apk) tam sim ntawd yam tsis tas yuav muaj tus lej dab tsi. Koj tsuas yog yuav tsum nruab nws ntawm koj lub cuab yeej.

Kauj Ruam 5: Tsim Lub Thawv

Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv

Hauv qib no, peb yuav tsim lub thawv/thav duab rau daim iav infinity.

Tus Txheej Txheem

Ua ntej, txiav lub lath tuab rau sab nrauv (saib cov duab saum toj no). Koj yuav xav tau ob daim ntev 27 cm (rau saum thiab hauv qab) thiab ob daim ntev 25 cm (rau sab laug thiab sab xis). Tam sim no ntsia lawv ua ke los ntawm kev tsav cov ntsia hlau mus rau lub ces kaum ntawm lub npov (4 rau txhua sab), tab sis nco ntsoov tias cov npoo yuav haum zoo. Koj tseem tuaj yeem xaiv los lo lawv ua ke, tab sis qhov ntawd yog koj li.

Sab Hauv

Tom ntej no, txiav lub lath nyias rau lub thav duab sab hauv (saib cov duab saum toj no dua). Koj yuav xav tau ob daim ntawm qhov ntev 25 cm (rau saum thiab hauv qab) thiab ob daim ntawm qhov ntev 24 cm (rau sab laug thiab sab xis). Tam sim no koj xav ntsia cov no mus txog 0.5 cm hauv qab ntawm sab saum toj ntawm txheej sab nrauv los ntawm kev siv 2 tus ntsia hlau rau txhua sab. Kuv kuj tau thov qee cov kua nplaum ntoo ntawm no kom lawv khov kho. NCO TSEG: Nco ntsoov tias daim iav ib txoj hauv kev haum hauv tus ncej zoo kawg nkaus!

Drilling Lub Microphone Qhov

Txij li lub microphone yog cov khoom siv rhiab heev, nws yuav tsum tsis muaj kev pov hwm. Tias yog vim li cas kuv drilled lub qhov rau sab saum toj ntawm tus thav duab uas lub taub hau microphone yuav lo tawm. Tsis txhob ua lub qhov loj dhau, vim tias koj tsis xav kom koj lub microphone poob tawm ntawm tus ncej.

Pleev xim rau koj tus ncej

Kuv txiav txim siab pleev xim kuv lub thav duab yuav luag matte dub kom muab nws qee yam tsaus ntuj, cov nyhuv tsis paub. Yog tias koj tseem txiav txim siab pleev xim nws, nco ntsoov tias tsis muaj cov xim pleev xim rau ntawm daim duab. Txhawm rau tiv thaiv qhov no, koj yuav tsum pleev xim thav duab nrog txhuam me me rau nruab nrab. Ib qho ntxiv koj tuaj yeem pleev xim nws zaum ob yog tias nws tsis npog txaus. Cia nws qhuav rau ib hnub lossis ntau dua.

Kauj Ruam 6: Siv Cov Khoom Siv Hluav Taws Xob rau PCB

Image
Image
Muab cov Khoom Siv Hluav Taws Xob rau PCB
Muab cov Khoom Siv Hluav Taws Xob rau PCB
Muab cov Khoom Siv Hluav Taws Xob rau PCB
Muab cov Khoom Siv Hluav Taws Xob rau PCB

Hauv theem no peb yuav muab cov khoom siv hluav taws xob txuas rau PCB uas tom qab peb yuav teeb tsa tom qab ntawm peb daim iav. Kev siv tshuaj yaj yeeb tsis yog qhov yuav tsum tau ua, tab sis kuv pom zoo kom ua nws kom cov khoom siv hluav taws xob nyab xeeb. Kuv tau muag txhua yam ib kauj ruam ib kauj ruam rau "tivthaiv" rau kab sib chaws los tiv thaiv kev ua yuam kev. Yog li kuv xub xub muab lub suab hloov pauv rau lub rooj tsavxwm, tom qab ntawd lub bluetooth module, thiab qhov kawg ntawm LED strips. Kuv pom zoo kom tso qee qhov chaw seem ntawm cov khoom siv uas tsis raug tso cai kov ib leeg, xws li +5V cov xov hluav taws xob thiab GND cov xov hlau txuas (saib cov duab saum toj no).

Thaum koj muaj koj cov khoom siv sib txuas rau ntawm lub rooj tsavxwm, pib ua choj txuas los ntawm kev thov qee cov tin ntawm cov khoom hauv qab pawg thawj coj saib. Xwb, koj tuaj yeem hle qee cov xov hlau thiab txuas cov no rau cov khoom sib txuas los ua kev txuas choj.

Tam sim no koj xav sim lub Circuit Court los ntawm kev yooj yim txuas cov xov hlau mus rau Arduino. Nco ntsoov tias koj tseem tau txuas rau lub hwj chim! Yog tias LEDs qhib ua tiav, tom qab ntawd ua tiav! Yog tias lawv tsis tig rau, txawm li cas los xij, tej zaum koj yuav xav tshawb xyuas ob zaug hauv Circuit Court thiab nrhiav kev sib txuas tsis raug.

Kauj Ruam 7: Txhim Kho Cov Khoom Siv Hluav Taws Xob Sab Nrauv

Nruab Cov Khoom Siv Hluav Taws Xob Sab Nrauv
Nruab Cov Khoom Siv Hluav Taws Xob Sab Nrauv

Cov kauj ruam tom ntej yog teeb tsa cov khoom siv hluav taws xob ntawm ib daim ntoo, uas peb tseem yuav siv rau tom qab ntawm daim iav. Kuv txuas cov khoom siv hluav taws xob rau lub rooj tsavxwm nrog qee qhov ntsia hlau thiab kaw ob lub thaiv ntawm sab xis thiab sab laug ntawm sab nraub qaum uas tau siv los ntsaws lub nraub qaum ntawm lub thawv rau lub thawv nws tus kheej.

Kauj Ruam 8: Sib Sau Cov Tsom iav Nrog Lub Thawv

Sib dhos Cov Tsom iav Nrog Lub Thawv
Sib dhos Cov Tsom iav Nrog Lub Thawv
Sib dhos Cov Tsom iav Nrog Lub Thawv
Sib dhos Cov Tsom iav Nrog Lub Thawv
Sib dhos Cov Tsom iav Nrog Lub Thawv
Sib dhos Cov Tsom iav Nrog Lub Thawv

Tam sim no nws yog lub sijhawm los teeb tsa cov iav, lo cov LEDs rau tus ncej thiab tso lub suab ntsuas lub ntsuas kom pom qhov chaw.

Ib-Txoj Kev Daim iav

Daim iav ib txoj hauv kev yuav muab tso rau ntawm tus ncej nws tus kheej, nrog rau lub ntsej muag tinted tig mus rau hauv qab daim iav thiab LEDs. Txhawm rau ua daim iav no koj tus kheej, koj yuav xav tau daim iav iav thiab zaj duab xis tinted qhov rai. Ua ntej txiav lub qhov rai zaj duab xis hauv qhov loj me, tab sis tawm thaj tsam li 2-5 cm ntxiv rau txhua sab. Tom ntej no koj xav ua kom huv lub qhov rais thiab tshem tag nrho cov hmoov av seem. Tom qab ntawd npog lub qhov rais nrog dej thiab xab npum thiab ua tib zoo tshem cov yas los ntawm zaj duab xis qhov rai (koj tuaj yeem tso daim kab xev ntawm txhua sab kom yooj yim tshem nws). Tam sim no koj tseem xav npog cov nplaum ntawm lub qhov rais zaj duab xis nrog dej thiab xab npum kom tiv thaiv nws kom tsis txhob los ntawm nws tus kheej. Txhua yam uas koj yuav tsum tau ua tam sim no yog muab nws tso rau saum lub khob thiab kaw nruj nreem rau hauv qhov chaw (saib cov duab saum toj no). Cia nws qhuav li ib hnub thiab tshem cov zaj duab xis qhov rai uas seem.

Muab cov LEDs tso rau hauv lub thawv

Cov kauj ruam tom ntej yog lo LEDs rau hauv lub thawv uas tuaj yeem ua tiav los ntawm kev tshem cov ntawv nplaum. Kuv kuj pom zoo kom siv qee cov kua nplaum nrawm rau tom qab ntawm kab txaij kom tiv thaiv nws los ntawm kev tshem tawm.

Muab Cov Tsom iav thiab Ua Kom tiav

Kauj ruam kawg yog muab ob daim iav ib-txoj kev thiab daim iav ib txwm tso rau qhov chaw. Daim iav ib txwm mus tom qab LED kab txaij thiab daim iav ib sab mus rau pem hauv ntej. Muab lawv tso rau hauv qhov chaw nrog qee cov kua nplaum nrawm thiab ntsia hlau rau sab nraub qaum nrog cov khoom siv hluav taws xob mus rau tom qab ntawm lub thawv. Muab lub suab ntsuas lub suab tso rau hauv qhov chaw, txuas txhua lub xov hlau, thiab voila, koj ua tiav!

Kauj Ruam 9: Ntsuam Xyuas Koj Daim iav Infinity

Txhua yam koj yuav tsum ua tam sim no yog ntsuas yog txhua yam ua haujlwm. Thiab qhov ntawd yog nws! Tam sim no koj tau tsim koj tus kheej Bluetooth Tswj thiab Suab Reactive Infinity Mirror!: D

Tsis txhob ua siab deb nug hauv ntu lus yog tias koj muaj lus nug.

Ua tsaug thiab muaj kev lom zem!

Pom zoo: