Cov txheej txheem:

DIY Ua pa Sensor Nrog Arduino (Kev Coj Ua Knitted Stretch Sensor): 7 Cov Kauj Ruam (nrog Duab)
DIY Ua pa Sensor Nrog Arduino (Kev Coj Ua Knitted Stretch Sensor): 7 Cov Kauj Ruam (nrog Duab)

Video: DIY Ua pa Sensor Nrog Arduino (Kev Coj Ua Knitted Stretch Sensor): 7 Cov Kauj Ruam (nrog Duab)

Video: DIY Ua pa Sensor Nrog Arduino (Kev Coj Ua Knitted Stretch Sensor): 7 Cov Kauj Ruam (nrog Duab)
Video: Yasmi - Faus Rau Nruab Siab 2024, Hlis ntuj nqeg
Anonim
DIY Ua pa Sensor Nrog Arduino (Cov Khaub Ncaws Khaub Ncaws Stretch Sensor)
DIY Ua pa Sensor Nrog Arduino (Cov Khaub Ncaws Khaub Ncaws Stretch Sensor)
DIY Ua pa Sensor Nrog Arduino (Cov Khaub Ncaws Khaub Ncaws Stretch Sensor)
DIY Ua pa Sensor Nrog Arduino (Cov Khaub Ncaws Khaub Ncaws Stretch Sensor)

Qhov DIY sensor no yuav ua daim ntawv ntawm kev coj ua knitted stretch sensor. Nws yuav qhwv ncig koj lub hauv siab/plab, thiab thaum koj lub hauv siab/lub plab nthuav dav thiab sib cog lus yog li yuav lub ntsuas, thiab yog li cov ntaub ntawv nkag mus uas tau pub rau Arduino. Yog li nco ntsoov qhov no tsis yog txoj hauv kev zoo los taug txhua qhov ua tsis taus pa, thiab qee zaum kev txav ntawm lub cev tuaj yeem cuam tshuam rau lub sensor vim nws yog txhua yam hais txog nws nthuav dav li cas. Tsis tas li, hais txog kev ruaj ntseg, Kuv tau pom ntau tus lej tuaj yeem dhia ncig me ntsis yog tias lub ntsuas cua tsis nyob ib puag ncig ib puag ncig lub cev, tab sis yog tias koj tsuas yog sawv thiab ua pa nws zoo nkauj heev/nkag siab ntawm khaws me ntsis nthuav dav hauv siab rau txhua qhov ua pa.

Muaj ob peb qho DIY ua pa ntsuas pa kuv tau pom thaum tshawb fawb hauv is taws nem, tab sis lawv tsis muaj txhua cov ntaub ntawv tshwj xeeb xav tau kom tau txais ib qho ua thiab txuas nrog Arduino koj tus kheej. Nov yog qee qhov ntawm cov peev txheej uas kuv tau sau ua ke los muab koj zaj dab neeg tag nrho hauv qhov kev qhia no:

www.kobakant.at/DIY/?p=1762

cargocollective.com/nelramon/i- Ua pa

hackingthebody.wordpress.com/2014/01/03/bluetooth-stretch-breath-sensor/

itp.nyu.edu/~ek1669/blog/?p=769

Thov Nco Ntsoov: Kuv tsuas yog tus tshiab ntawm hluav taws xob/circuits/arduino/coding, yog li kuv zoo siab txais tos cov lus qhia lossis kev kho yog tias koj pom ib qho!

Kauj Ruam 1: Cov Khoom thiab Cov Cuab Yeej

Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej

Cov Ntaub Ntawv/Cov Cuab Yeej:

  • Ib txoj hlua ntawm cov xov paj (Kuv yuav qhov no los ntawm Sparkfun: https://www.sparkfun.com/products/12806) (Hloov tshiab: Zoo li lawv tau so nws lawm, yog li qhov no yuav tsum ua haujlwm los ntawm Adafruit:
  • Ib txoj xov ntawm cov xov paj rwb, Kuv tau siv hom HiKoo CoBaSi (Kuv pom tias cov xov paj nrog qee qhov ncab tau zoo dua vim tias lub ntsuas cua no vam khom kom nthuav dav thiab cog lus.)
  • Velcro (kwv yees li 6 ntiv tes … tuaj yeem yog ntau qhov me me, nws tau siv rau kev nyab xeeb lub sensor nyob ib puag ncig koj tus kheej) LOSSIS IB TUG NEEG CLIP! (Kuv tau pom ib daim ntawv nplaum ua haujlwm yooj yim tshaj plaws kom tau txais qhov haum nruj)
  • Kev xaws xaws li qub (~ 1 mev)
  • Knitting koob (Kuv siv qhov loj me: 5)
  • Xaws koob
  • Cov Khoom Siv Hluav Taws Xob (x1) (Yuav tsum muaj ntau yam sib txawv ntawm cov resistors, ib qho koj xav tau nyob ntawm seb koj cov qhab nyob ntev npaum li cas, thiab qhov nruj ntawm cov xaws. Kuv tsis xav tias koj yuav xav tau ib qho me dua 10k txawm hais tias. qib ntawm kev tiv thaiv hloov pauv cov lej pom hauv daim ntawv saib xyuas)
  • Cov nab kuab (x2)
  • Jumper Cables (x7)
  • Arduino Ib
  • Khoos phis tawj (PC lossis MAC)
  • USB A rau B cable
  • Volt ntsuas
  • Pawg mov ci

Kauj ruam 2: Xaws

Xaws
Xaws
Xaws
Xaws

Pib los ntawm knitting 2 band dav sib txuas ua ke ob qho tib si cov xov hluav taws xob thiab cov xov paj ywj.

Xaws nrog cov xov hluav taws xob thiab cov xov paj zoo li yog nws yog ib daim xov!

Koj tuaj yeem siv tus qauv txheej txheem. Kuv cov qhab yog 10 txoj hlua hla thiab ntev li 30 ntiv tes.

Yog tias koj tsis paub yuav xaws, Youtube yog koj tus phooj ywg.:) ** Ntsis: Nrhiav cov yeeb yaj kiab uas tshwj xeeb rau koj txhais tes. Qhov no tau pab kuv:

Kauj Ruam 3: Xaws Velcro rau Koj Cov Khaub Ncaws Band (XAV TAU)

Sew Velcro rau Koj Cov Khaub Ncaws Band (YOOJ YIM)
Sew Velcro rau Koj Cov Khaub Ncaws Band (YOOJ YIM)
Sew Velcro rau Koj Cov Khaub Ncaws Band (YOOJ YIM)
Sew Velcro rau Koj Cov Khaub Ncaws Band (YOOJ YIM)

Ntawm qhov kawg ntawm koj cov hlua khi xaws ob peb ntiv tes ntawm Velcro (Kuv pom zoo siv qhov nyuaj/pokey Velcro ib nrab).

** YOOJ YIM: Yog tias koj tsis muaj velcro, hla cov kauj ruam no thiab tsuas yog siv BINDER CLIP los tuav cov qhab nyob ib puag ncig koj tus kheej. Kuv tau pom daim kab xev tuaj yeem ua haujlwm zoo dua kom tau txais kev nruj!

Kauj Ruam 4: Xaws Ntau Velcro (YOOJ YIM)

Xaws Ntau Velcro (YOOJ YIM)
Xaws Ntau Velcro (YOOJ YIM)
Xaws Ntau Velcro (YOOJ YIM)
Xaws Ntau Velcro (YOOJ YIM)
Xaws Ntau Velcro (YOOJ YIM)
Xaws Ntau Velcro (YOOJ YIM)

Tig hla koj cov qhab thiab xaws lwm qhov sib txuam velcro (ib nrab muag, yog tias koj siv qhov nyuaj ib nrab ntawm lwm sab) mus rau lwm qhov kawg ntawm koj cov khaub ncaws. Koj yuav xav kom qhov ntev ntawm velcro no ntev me ntsis, kwv yees. 7 ntiv tes.

*** Ua ntej koj xaws kom paub tseeb tias thaum koj qhwv cov hlua ib ncig ntawm koj tus kheej lub velcro halves phim!

** YOOJ YIM: Yog tias koj tsis muaj velcro, hla cov kauj ruam no thiab tsuas yog siv BINDER CLIP los tuav cov qhab nyob ib puag ncig koj tus kheej. Kuv tau pom daim kab xev tuaj yeem ua haujlwm zoo dua kom tau txais kev nruj!

Kauj ruam 5: Tsim Circuit Court

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

Siv cov duab ntawm cov kauj ruam no los xaim koj Arduino mus rau lub ntsuas.

Nthuav 2 cov kais dej rau cov hlua khi, ib qho ntawm txhua qhov kawg. Tus nqi ntawm kev ncab yuav tsuas yog ntsuas ntawm 2 cov ntsiab lus no. ** Nco ntsoov kaw cov hlua kom ruaj ntseg thiab xaiv qhov chaw uas muaj ntau cov xov hluav taws xob nthuav tawm, nws yog qhov tseem ceeb rau cov xov hluav taws xob thiab cov hlau txuas kom sib cuag (Kuv tau sim tshuaj xyuas qhov txuas nrog Volt Meter, tab sis kuv tau pom txawm tias nws ua haujlwm nws tsis tas yuav qhia tias nws nyob ntawm Volt Meter, Kuv pom zoo kom txuas mus rau tag nrho cov Circuit Court thiab tom qab ntawd pom cov lej zoo li cas hauv koj daim ntawv saib xyuas seb nws puas ua haujlwm) **

Siv Cov Lus Qhia Analog Input no muab los ntawm Arduino los pab xaim koj lub xov tooj. (Tsuas yog hloov cov duab hluav taws xob tiv taus nrog cov hlua khawm + cov yeeb yaj kiab, thiab nws yog daim duab qhia meej/txheej txheem uas koj xav tau).

Kauj Ruam 6: Tshaj Tawm Arduino Code rau Arduino

Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino
Rub tawm Arduino Code rau Arduino

Yog tias koj tsis tau siv Arduino ua ntej thov xa mus rau nplooj ntawv "pib no" thiab rub tawm Arduino Software (nws yog dawb!).

Thaum koj muaj lub software rub tawm ntawm koj lub computer, qhib qhov program thiab ua raws cov theem hauv qab no:

  1. Qhib qhov "AnalogReadSerial" kos duab. (Cov Ntaub Ntawv> Piv txwv> Hauv paus> ReadAnalogSerial).
  2. Txuas Arduino Uno (thiab txuas hauv Circuit) rau koj lub khoos phis tawj ntawm USB A rau B cable.
  3. Nyem "Upload" lub cim (zoo li tus xub) hauv lub npov kab kos (Nco ntsoov tias lub rooj tsavxwm raug (Arduino Uno) thiab Serial chaw nres nkoj tau xaiv nyob hauv "Cov cuab yeej").
  4. Khaws Arduino txuas nrog lub khoos phis tawj thiab tom qab ntawd nyem rau lub cim "Serial Monitor" (Zoo li lub iav tsom iav)
  5. Qhov no yuav tsum qhib lub thawv hu ua serial monitor, thiab koj yuav tsum pom cov kwj ntawm cov lej. Ncab lub sensor thiab saib cov lej hloov!

TSHUAJ TIV THAIV TSEV KAWM NTAWV YOG TUS NEEG TSIS TXAUS SIAB NTAWV NROG LUS NUG:

  • Yog tias koj tsis pom ib tus lej lossis pom kab ntawm cov cim coj txawv txawv kom ntseeg tau tias tus nqi baud tau teeb tsa rau 9600 nyob rau hauv cov ntawv qhia zaub mov nco hauv qab
  • Xyuas kom tag nrho koj cov kev sib txuas muaj kev nyab xeeb
  • Sim lwm qib sib txawv ntawm tus tiv thaiv
  • Sim clipping tus nab kuab clips rau ntu me me ntawm koj cov khaub ncaws. Yog tias cov xov hluav taws xob tau tawg ntawm qee kis ntawm cov kais dej nws yuav tsis ua haujlwm.

Kauj Ruam 7: Xeem Nws

Kuaj nws!
Kuaj nws!

Qhwv nws ncig koj tus kheej thiab saib xyuas cov lej thaum koj ua pa! Koj yuav tsum tau sim ua qhov sib txawv sib txawv kom tau txais txoj cai ntawm tus lej uas ua haujlwm rau koj qhov haujlwm tshwj xeeb.

Kev sim muab cov qhab puag ncig sib txawv ntawm koj lub hauv siab/plab. Koj yuav muaj peev xwm xav tau cov xov hlau ntev dua li cov kab nab kuab ib zaug nws nyob ib puag ncig koj tus kheej. Kuv xav tias nws ua haujlwm zoo tshaj plaws hauv qab koj cov khaub ncaws, lossis saum cov khaub ncaws uas tsis hnav.

Tam sim no koj tuaj yeem nqa tus lej no thiab lub ntsuas pa thiab hloov kho nws txawm li cas los xij koj xav tau, thiab siv nws ntau txoj hauv kev sib txawv!

Piv txwv lub tswv yim: Ua kom LED hloov qhov ci ci nrog txhua qhov ua pa.

Pom zoo: