Cov txheej txheem:

Arduino Heart Beat Nrog ECG Zaub & Suab: 7 Kauj Ruam
Arduino Heart Beat Nrog ECG Zaub & Suab: 7 Kauj Ruam

Video: Arduino Heart Beat Nrog ECG Zaub & Suab: 7 Kauj Ruam

Video: Arduino Heart Beat Nrog ECG Zaub & Suab: 7 Kauj Ruam
Video: tinyML Summit 2021: Edge ML hardware for every application 2024, Kaum ib hlis
Anonim
Image
Image
Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas!
Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas!

Hav guys! Kuv vam tias koj twb nyiam kuv cov lus qhia yav dhau los "Arduino LIXIE Clock" thiab koj tau npaj rau qhov tshiab, zoo li ib txwm Kuv tau ua qhov kev qhia no los qhia koj ib qib zuj zus thaum ua qhov no zoo kawg nkaus tus nqi qis hauv cov phiaj xwm hluav taws xob uas yog "Arduino Lub plawv dhia ntaus ntawv ".

Thaum ua qhov haujlwm no, peb tau sim ua kom ntseeg tau tias cov ntawv qhia no yuav yog cov lus qhia zoo tshaj plaws rau koj txhawm rau pab koj yog tias koj xav ua koj tus kheej ECG, yog li peb cia siab tias cov ntawv qhia no muaj cov ntaub ntawv xav tau.

Txoj haujlwm no tau yooj yim los ua tshwj xeeb tom qab tau txais kev kho PCB uas peb tau xaj los ntawm JLCPCB txhawm rau txhim kho qhov pom ntawm peb cov cuab yeej siv hluav taws xob thiab tseem muaj cov ntaub ntawv txaus thiab cov lej hauv phau ntawv qhia no tso cai rau koj tsim koj li Arduino Heart pulse zaub yooj yim. Peb tau ua txoj haujlwm no tsuas yog 3 hnub nkaus xwb, tsuas yog ob hnub kom tau txais txhua qhov uas xav tau thiab ua kom tiav cov cuab yeej tsim khoom thiab sib sau ua ke, tom qab ntawd peb tau npaj cov cai kom haum rau peb txoj haujlwm thiab pib ntsuas thiab hloov kho.

Koj yuav kawm dab tsi los ntawm cov lus qhia no:

  1. Ua qhov kev xaiv kho vajtse raug rau koj txoj haujlwm nyob ntawm nws txoj haujlwm.
  2. Nkag siab txog lub plawv dhia plawv tshuab thev naus laus zis.
  3. Npaj daim duab kab hluav taws xob txuas rau txhua qhov khoom siv uas tau xaiv.
  4. Sib sau ua ke txhua qhov haujlwm (lub thawv ntaus ntawv thiab khoom siv hluav taws xob)..
  5. Pib koj tus kheej lub plawv dhia ntaus ntawv.

Kauj Ruam 1: Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas

Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas!
Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas!
Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas!
Lub Plawv Lub Plawv Sensor Ua Haujlwm Li Cas!

Raws li tau hais tseg hauv Wikipedia "Electrocardiography yog txheej txheem ntawm kev tsim hluav taws xob hluav taws xob (ECG lossis EKG [a]), kaw cia - teeb duab ntawm qhov hluav taws xob piv rau lub sijhawm - ntawm kev ua haujlwm hluav taws xob ntawm lub plawv [4] siv hluav taws xob tso rau ntawm daim tawv nqaij. cov hluav taws xob ntsuas pom qhov hloov pauv hluav taws xob me me uas yog qhov tshwm sim ntawm cov leeg mob plawv ua kom rov qab zoo los ntawm kev rov ua dua tshiab thaum txhua lub plawv dhia (lub plawv dhia)."

Hauv peb qhov xwm txheej, peb tsis siv hluav taws xob tab sis IR sensor, lub plawv dhia plawv yog lub ntsuas hluav taws xob uas yog

txhais tau tias nws siv qee yam kev hloov pauv hauv lub cev thiab lub cev los qhia txog qhov xwm txheej ntawm lub cev.

Sib tham txog qhov hloov pauv, peb lub ntsuas cua muaj qhov sib piv tso tawm los ntawm 0V txog 5V thiab qhov tso tawm no qhia tau tias muaj ntshav ntau npaum li cas/siab lub plawv tab tom yuav tso tawm, tab sis qhov ntsuas no ntsuas cov ntshav hloov pauv li cas!

Lub ntsuas hluav taws xob siv lub teeb liab Infra-Red los ntawm IR-Diode npaj rau koj cov tawv nqaij. Tsuas yog hauv qab koj cov tawv nqaij muaj cov hlab ntshav nqa ntshav. Txhua lub sijhawm koj lub plawv tso muaj qhov nce me me hauv cov ntshav ntws/siab. Qhov no ua rau cov hlab ntsha me ntsis, thiab tsuas yog tom qab qhov no me ntsis ntxiv cov hlab ntsha ua rau pom ntau dua infra-red. Lub tshuab ntsuas hluav taws xob ntawm lub cuab yeej hnov qhov sib txawv ntawm cov qib IR thiab ua kom lub teeb ntsuas tau ntau dua thiab hloov nws mus rau qhov ntsuas qhov ntsuas hluav taws xob uas tuaj yeem xa mus rau ib lub microcontroller zoo li Arduino MCU.

Kauj Ruam 2: CAD thiab Kho Vajtse Qhov Chaw

CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv
CAD thiab Kho Khoom Siv

Pib nrog 3D luam ntawv lub thawv ntu, Kuv tau tsim cov qauv saum toj no siv cov khoom siv software thiab koj tuaj yeem tau txais STL cov ntaub ntawv los ntawm rub tawm txuas, qhov kev tsim no yog 100% pom zoo los pab koj ua koj lub cuab yeej txij li nws haum rau qhov kev tso kawm tseeb rau lub sensor thiab OLED zaub.

Tom qab npaj cov qauv kuv tau txais kuv cov khoom tsim tau zoo heev thiab npaj rau kev nqis tes ua. thiab zoo li koj tuaj yeem pom hauv daim duab kawg peb tau npaj qhov tso lub hwj chim txuas rau ntawm lub thawv sab.

Kauj Ruam 3: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court

Tsiv mus rau cov khoom siv hluav taws xob, Kuv tau tsim cov duab kab hluav taws xob no uas suav nrog txhua qhov tsim nyog yuav tsum tau ua rau txoj haujlwm no. Kuv tab tom txuas lub plawv ntsuas lub plawv mus rau kuv lub ATMega328P MCU thiab kuv tso tawm lub teeb liab tau txais los ntawm lub ntsuas hluav taws xob los ntawm OLED zaub, cov phiaj xwm yuav qhia qhov kev hloov pauv ntawm lub sijhawm los ntawm lub sijhawm thiab kuv tseem siv lub suab nrov los cim txhua lub plawv dhia, ib qho RGB LED kuj tseem siv hauv txoj haujlwm no los qhia txog BPM xwm txheej yog li thaum BPM qis dhau "tsawg dua 60 BOM" LED tig daj, thaum BPM zoo, LED tig ntsuab thiab thaum BPM siab dhau LED tig liab.

Kauj Ruam 4: Ua PCB

Kev Tsim PCB
Kev Tsim PCB
Kev Tsim PCB
Kev Tsim PCB
Kev Tsim PCB
Kev Tsim PCB

Txog JLCPCB

JLCPCB (Shenzhen JIALICHUANG Electronic Technology Development Co., Ltd.), yog lub tuam txhab PCB loj tshaj plaws hauv Suav teb thiab cov tuam txhab tsim khoom lag luam tshwj xeeb tshwj xeeb hauv PCB sai sai thiab tsim PCB me me. Nrog ntau dua 10 xyoo ntawm kev paub hauv PCB tsim khoom, JLCPCB muaj ntau dua 200, 000 tus neeg siv khoom nyob hauv tsev thiab txawv teb chaws, nrog ntau dua 8, 000 kev xaj online ntawm PCB tus qauv thiab muaj PCB ntau lawm ib hnub. Muaj peev xwm tsim khoom txhua xyoo yog 200, 000 sq.m. rau ntau yam ntawm 1-txheej, 2-txheej lossis ntau txheej PCBs. JLC yog cov kws tshaj lij PCB chaw tsim khoom tshwj xeeb ntawm cov nplai loj, cov cuab yeej zoo, kev tswj nruj thiab ua tau zoo dua.

Tham electronics

Tom qab ua daim duab hluav taws xob kuv hloov nws mus rau hauv kev tsim PCB tsim thiab txhua yam kuv xav tau tam sim no yog tsim kuv li PCB, kom paub tseeb tias kuv tau tsiv mus rau JLCPCB qhov khoom lag luam PCB zoo tshaj plaws kom tau txais kev pabcuam PCB zoo tshaj plaws, tom qab qee qhov yooj yim nias kuv tau tshaj tawm cov ntaub ntawv GERBER uas tsim nyog ntawm kuv tus qauv thiab kuv teeb tsa qee qhov tsis xws li PCB tuab xim thiab ntau, thiab lub sijhawm no peb yuav siv xim liab kom haum rau lub plawv tsim qauv ntawm peb PCB; yog li tsawg kawg koj yuav tsum tau them tsuas yog 2 daus las kom tau txais PCB tom qab plaub hnub nkaus xwb, qhov kuv tau pom txog JLCPCB lub sijhawm no yog "tsis them nyiaj PCB xim" nws txhais tau tias koj yuav them nyiaj tsuas yog 2 USD rau ib qho xim PCB koj xaiv.

Lwm yam ntaub ntawv rub tawm

Raws li koj tuaj yeem pom hauv cov duab saum toj no PCB tau tsim tau zoo heev thiab kuv tau txais tib PCB kev tsim qauv uas peb tau ua rau peb lub rooj tsav xwm tseem ceeb thiab txhua daim ntawv lo, lub logo tau nyob ntawd los coj kuv thaum cov kauj ruam soldering. Koj kuj tseem tuaj yeem rub tawm Gerber cov ntaub ntawv rau hauv Circuit no los ntawm rub tawm txuas hauv qab no hauv qhov xwm txheej koj xav tso qhov kev txiav txim rau tib lub qauv tsim.

Kauj ruam 5: Cov khoom xyaw

Cov khoom xyaw
Cov khoom xyaw

Ua ntej pib siv cov khoom siv hluav taws xob cia rov tshuaj xyuas cov npe khoom rau peb txoj haujlwm yog li peb yuav xav tau:

Components components Cov khoom tsim nyog ★ ☆ ★

- PCB uas peb xaj los ntawm JLCPCB- Arduino Uno:

- 330Ohm resistors:

- 16 MHz quartz oscillator:

- Lub plawv ntsuas lub plawv:

Buzzer:

- OLED zaub:

- RGB LED:

Kauj Ruam 6: Kev Sib Ntsib Hauv Tshuab

Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab

Tam sim no txhua yam tau npaj lawm yog li cia peb pib siv peb cov khoom siv hluav taws xob rau PCB thiab ua li ntawd peb xav tau cov hlau txuas thiab cov hlau txuas txuas thiab lub chaw SMD rov ua haujlwm rau SMD cov khoom.

Kev nyab xeeb ua ntej

Soldering Hlau

Tsis txhob kov lub hauv paus ntawm cov hlau phom….400 ° C!

Tuav cov xov hlau kom sov nrog tweezers lossis clamps.

Ib txwm xa cov hlau txuas rau nws sawv thaum tsis siv.

Tsis txhob muab nws tso rau ntawm lub rooj ua haujlwm.

Tua lub tsev thiab tshem tawm thaum tsis siv.

Raws li koj tuaj yeem pom, siv PCB no yooj yim heev vim nws ua tau zoo heev thiab tsis hnov qab cov ntawv uas yuav coj koj cov txiv neej thaum siv tshuaj txhuam ib feem vim tias koj yuav pom nyob rau sab saum toj txheej txheej lo lo lo ntxhuav ntawm txhua qhov qhia tias nws tso rau lub rooj tsavxwm thiab txoj hauv kev no koj yuav 100% paub tseeb tias koj yuav tsis ua ib qho yuam kev soldering. Kuv tau muab cov khoom sib txuas rau nws qhov kev tso kawm thiab koj tuaj yeem siv ob sab ntawm PCB los txhuam koj cov khoom siv hluav taws xob.

Kauj Ruam 7: Software Tshooj & Kev Xeem

Software Tshooj & Kev Xeem
Software Tshooj & Kev Xeem
Software Tshooj & Kev Xeem
Software Tshooj & Kev Xeem
Software Tshooj & Kev Xeem
Software Tshooj & Kev Xeem

Txhua yam peb xav tau tam sim no yog software, Kuv tau ua tus lej Arduino rau koj thiab koj tuaj yeem muaj nws dawb los ntawm qhov txuas hauv qab no, cov cai tau tawm tswv yim zoo heev yog li koj tuaj yeem nkag siab nws thiab kho nws rau koj tus kheej xav tau, peb xav tau Arduino Uno board txhawm rau tshaj tawm cov cai rau hauv peb ATmega328 MCU tom qab ntawd peb coj MCU thiab peb muab nws tso rau hauv nws lub qhov (socket) ntawm lub rooj tsavxwm.

Peb xav tau lwm 5v lub zog hloov hluav taws xob los qhib lub cuab yeej thiab ntawm no peb yog, raws li koj pom cov txiv neej lub cuab yeej tso saib Beats ib feeb thiab nws nthuav tawm lub plawv dhia plawv teeb tsa lub phiaj ntawm OLED zaub yam tsis hnov qab qhov RGB LED uas qhia txog lub cev xwm txheej ib yam nkaus.

Txoj haujlwm no yooj yim ua thiab qhov zoo tshaj plaws tshwj xeeb nrog OLED Zaub uas tuaj yeem yog koj qhov kev xaiv zoo tshaj plaws los pib ua cov cuab yeej siv biomedical ua tab sis tseem muaj lwm qhov kev txhim kho los ua kom nws ntau butter, yog vim li cas kuv yuav tos rau koj cov lus pom los txhim kho nws.

Pom zoo: