Cov txheej txheem:

Nyhav Pom Tote Hnab: 5 Kauj Ruam
Nyhav Pom Tote Hnab: 5 Kauj Ruam

Video: Nyhav Pom Tote Hnab: 5 Kauj Ruam

Video: Nyhav Pom Tote Hnab: 5 Kauj Ruam
Video: 1 tsug 13 hnub _part#2_phees lauj fullmusic MV 2022-2023 2024, Kaum ib hlis
Anonim
Nyhav Sensing Tote Hnab
Nyhav Sensing Tote Hnab
Nyhav Sensing Tote Hnab
Nyhav Sensing Tote Hnab
Nyhav Sensing Tote Hnab
Nyhav Sensing Tote Hnab

Cov lus qhia no yog rau lub hnab hnyav hnyav. Nws pab cov neeg uas nqa ntau hauv lawv lub hnab thiab txhim kho ntawm cov nplai los ntawm kev muab cov lus qhia ib puag ncig tas li thiab ceeb toom ceeb toom tsis siv neeg rau qhov hnyav tshaj.

Nws ua haujlwm li cas

Nws ua haujlwm los ntawm kev siv lub zog tiv thaiv tus neeg tiv thaiv kom ntsuas ntau npaum li cas cov pluaj tau nias ntawm tus neeg hnav lub xub pwg, thiab siv tus nqi los tswj kom nrawm npaum li cas LEDs pulsate, lossis pes tsawg LEDs tau teeb (thaum hloov pauv), muab rau tus neeg siv tawm tswv yim Thaum tus neeg hnav hnav hnyav dhau (tam sim no ntsuas ntawm kwv yees li 10-11 phaus), LEDs ntsais sai rau ceeb toom rau tus neeg hnav. Tag nrho cov cuab yeej siv los ntawm AAA roj teeb thiab tswj los ntawm Lilypad Arduino, uas txuas nrog cov khoom siv los ntawm cov xov hluav taws xob xaws rau saum lub hnab.

Cov duab thiab duab ntawm lub hnab yog hauv qab no.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

Nov yog cov npe khoom siv uas koj yuav xav tau rau qhov kev sim no: Lilypad Arduino - Ib qho qauv siv tau ntawm arduino microprocessor Breakout board thiab USB qaum - txuas lilypad rau lub computer Lilypad roj teeb pob 4 lilypad LEDs Lilypad hloov Force rhiab rhiab resistor Cov xov hluav taws xob - 4 ply tends kom fray, tab sis muaj kev tiv thaiv qis dua 2 ply Koob thiab xov - xov yog qhov tseem ceeb rau 4 ply xov Alligator clips - tseem ceeb heev rau kev ntsuas hluav taws xob. Xaws qeeb dhau los sim nrog. Cov ntaub nplaum thiab cov xim pleev xim - kom kaw cov xov Tote hnab - txhua daim ntaub nyias nyias ib qho yuav ua

Kauj ruam 2: Basting

Ci
Ci
Ci
Ci
Ci
Ci

[Kho kom raug: Kuv pom tom qab pom tias tso lub roj teeb pob kom ze rau Arduino ua rau muaj kev sib txuas tsis ntseeg tau raws li cov lus tsa suab ntawm ob ntu loosens xov. Tawm me ntsis ntxiv, ob lossis peb txoj hlua, txhawm rau tiv thaiv qhov no tshwm sim.] Qhov no yog kauj ruam tseem ceeb txhawm rau tiv thaiv cov khoom tsis txhob txav mus los thaum lub sij hawm xaws. Saib cov duab seb yuav nteg cov khoom rau lub hnab li cas. Siv lub pluaj thim rov qab kom cov nplaim paj nyob hauv qhov chaw.

Daim duab 1 qhia tag nrho cov txheej txheem rau basting. Qhov pom yog los ntawm sab hauv ntawm lub hnab. Cov khoom siv grey nyob sab nraum lub hnab, thiab cov khoom dawb yog nyob sab hauv ntawm lub hnab.

Daim duab 2 qhia yuav ua li cas xaws cov khoom sib xyaw nrog 2 nplaim paj (LED, Hloov) kom tiv thaiv lawv tsis txhob yaig

Daim duab 3 qhia yuav ua li cas xaws cov khoom sib xyaw nrog ntau lub paj (Lilypad, Roj teeb pob). Daim duab 4 qhia yuav ua li cas tso FSR sab hauv pluaj.

Daim duab 4 qhia yuav ua li cas xaws FSR rau ib sab ntawm txoj hlua.

Kauj Ruam 3: Xaws

Xaws
Xaws
Xaws
Xaws
Xaws
Xaws

Tam sim no koj yuav tsum xaws kev sib txuas ntawm txhua cov xov.

Daim duab 1 qhia txog kev teeb tsa rau txhua qhov kev xaws ntawm lub hnab.

Daim duab 2 qhia txog daim duab qhia chaw rau txhua qhov khoom siv. Tshwj xeeb Arduino pins tau hais los kom ntseeg tau tias ua tau zoo nrog cov cai.

Daim duab 3: Xaws los ntawm cov nplaim paj ntau zaus kom ntseeg tau tias muaj kev sib txuas zoo ntawm cov xov thiab cov paj ntoo.

Daim duab 4 thiab 5: Kuv siv txoj hlua ncaj kom txo cov xov ntev thiab tiv taus (daim duab 4), tab sis tom qab ntawv kuv tau kawm tias kab pheeb ces kaum tso cai rau ncab ntau dua, yog li nws zoo dua (daim duab 5).

Daim duab 6: Khaws ib ncig ntawm tus pin FSR los tuav lawv hauv qhov chaw

Daim duab 7: Khaws qhov kawg ntawm cov neeg tawm tsam kom tsim cov loops uas koj tuaj yeem xaws tau.

Daim duab 8: Tie xov rau tus plooj uas twb muaj lawm los ua ke cov xov (cov xub dub ntawm cov duab).

Daim duab 9: Xaws xov ntawm ob sab ntawm daim ntaub thaum lawv hla los tiv thaiv kom luv.

Daim duab 10: Xeem stitches nrog lub multimeter los xyuas qhov tsis kam.

Daim duab 11. Kuaj cov pob uas koj khi kom xaus txoj hlua, txhawm rau tiv thaiv lawv kom tsis txhob tawg, thiab pleev xim rau cov xov uas nthuav tawm raws txoj hlua kom txo txoj hauv kev luv.

Cov duab qhia yuav ua li cas xaws yuav saib ntawm koj lub hnab thaum ua tiav.

Kauj ruam 4: Coding

Coding
Coding

Koj tuaj yeem sim cov cai thoob plaws hauv txheej txheem kev xaws, ua ntej los ntawm kev txuas cov nplaim paj nrog cov kais dej kom tsim cov kab hluav taws xob, tom qab ntawd nrog cov ntaub sib txuas lawv tus kheej. Koj tuaj yeem rub tawm cov cai (Readinput.pde) lossis saib daim duab ntws ntawm qhov program's logic (Flow diagram.jpg). Txoj cai muaj ntau qhov sib txawv.

Cov ntawv tshaj tawm tsis txaus ntseeg tshaj tawm qhov hloov pauv rau Lilypad petals, kab ntawv thiab nyeem ntawv hloov pauv rau ntsuas qhov quab yuam, hloov pauv kom tswj tau LED pulsing, thiab qhov sib txawv kom taug qab qhov siab dhau.

teeb tsa () qhib tag nrho cov koob, thiab ua kom Serial (rau kev debugging).

lub voj () txheeb xyuas qhov siab, sau siab dhau, thiab ib qho teeb meem ceeb toom yog tias muaj qhov quab yuam ntau dhau, qhia qib yog qhov hloov pauv raug nias, lossis ua rau tsis ua haujlwm. Nws tseem hu ua printReading ().

getReading () siv kab ntawv los sau qhov siab.

printReading () pab nrog debugging, los ntawm kev luam tawm txhua qhov kev nyeem nyeem sib txawv.

checkWarning () cav txuas ntxiv lub sijhawm ua haujlwm siab ua ntej ua rau ceeb toom ().

ceeb toom () ua rau LEDs ntsais.

qib () qhia ntau LEDs rau lub zog loj dua.

mem tes () qhia tau nrawm dua rau lub zog loj dua.

ledLight () pab teeb lub LED rau qib () thiab mem tes ().

Kauj ruam 5: Calibration

Tam sim no koj yuav tsum ntsuas lub hnab txhawm rau txheeb xyuas qhov hnyav sib xws rau FSR qhov kev nyeem.

Siv cov khoom nrog qhov hnyav sib npaug kom maj mam ntxiv qhov hnyav. Ib txheej ntawm cov kaus poom lossis fwj ua haujlwm zoo.

Hnav cov arduino nrog cov kab txuas.

Siv Serial Monitor feature los nyeem tawm luam ntawv Nyeem thiab txheeb xyuas qhov quab yuam.

Rov ua cov txheej txheem no txhawm rau txheeb xyuas qhov kev quab yuam nyeem hloov nrog qhov hnyav li cas.

Thaum koj ua tiav, kho qhov chaws kom haum rau qhov ntsuas, thiab koj yuav tsum npaj mus.

Pom zoo: