Cov txheej txheem:

Lub Pulse Oximeter Device Siv Arduino Nano, MAX30100 thiab Bluetooth HC06.: 5 Kauj Ruam
Lub Pulse Oximeter Device Siv Arduino Nano, MAX30100 thiab Bluetooth HC06.: 5 Kauj Ruam

Video: Lub Pulse Oximeter Device Siv Arduino Nano, MAX30100 thiab Bluetooth HC06.: 5 Kauj Ruam

Video: Lub Pulse Oximeter Device Siv Arduino Nano, MAX30100 thiab Bluetooth HC06.: 5 Kauj Ruam
Video: Pulse oximeter: How it works and Interpretation II Pulse oximeter mechanism 2024, Lub Xya hli ntuj
Anonim
Lub Pulse Oximeter Device Siv Arduino Nano, MAX30100 thiab Bluetooth HC06
Lub Pulse Oximeter Device Siv Arduino Nano, MAX30100 thiab Bluetooth HC06

Hav guys, hnub no peb tab tom tsim cov cuab yeej nkag siab nyeem cov pa oxygen hauv cov ntshav thiab lub plawv dhia nrawm nyob rau hauv txoj kev tsis muaj kev cuam tshuam siv MAX30100 sensor.

MAX30100 yog Pulse Oximetry thiab lub plawv dhia saib xyuas cov tshuaj ntsuas. Nws ua ke ob lub LEDs, lub khoos phis tawj duab, kho qhov muag tau zoo, thiab lub suab qis-suab analog teeb tsa ua kom pom cov mem tes oximetry thiab lub plawv dhia ntsuas. MAX30100 ua haujlwm los ntawm 1.8V thiab 3.3V cov khoom siv hluav taws xob thiab tuaj yeem siv hluav taws xob los ntawm software nrog qhov tsis tsim nyog tos tam sim no, tso cai rau lub zog txuas kom txuas nrog txhua lub sijhawm.

Txog kab lus no, Kuv yuav siv Bluetooth module HC-06 (ua haujlwm hauv qhev hom) cuam tshuam nrog Arduino Nano. Ua li no, peb tuaj yeem xa cov ntaub ntawv nyeem los ntawm lub cuab yeej mus rau lwm lub cuab yeej lossis hauv Is Taws Nem. Hauv thawj qhov kev thov, daim ntawv thov mobile tau tsim los txhawm rau xav txog kev pom cov ntaub ntawv. Txawm li cas los xij, daim ntawv thov mobile Android no yuav tsis raug npog hauv kab lus no.

Cia peb pib!

Kauj Ruam 1: Cov Khoom Tsim Nyog:

Khoom Tsim Nyog
Khoom Tsim Nyog

Cov khoom siv hauv qhov kev sim no tuaj yeem pom hauv qab no:

  • Arduino Nano Cov
  • Me Protoboard
  • Cov xov thiab ib txheej ntawm cov hlua dhia
  • Bluetooth Module HC-06
  • Sensor MAX30100
  • LED
  • Ob tus tiv thaiv 4.7k Ohm

Kauj Ruam 2: Txuas lub MAX30100

Txuas xov tooj MAX30100
Txuas xov tooj MAX30100
Txuas xov tooj MAX30100
Txuas xov tooj MAX30100

Ua ntej, peb yuav tsum xaim MAX30100 txhawm rau siv nws nrog Arduino. Cov duab schematic saum toj no hauv cov kauj ruam no yuav qhia tias yuav tsum ua cov thaiv li cas.

Yeej, peb yuav tsum tau xaim cov xov hlau nrog cov pins muaj nyob ntawm lub ntsuas. Nws yuav tsim nyog tshem tus poj niam ib feem ntawm lub jumper rau dej qab zib kom ua. Tus txiv neej ib feem ntawm Jumper yuav raug siv los ntsaws rau ntawm Arduino.

MAX30100 muaj cov pins hauv qab no:

VIN, SCL, SDA, INT, IRD, RD, GND.

Rau lub hom phiaj no, peb tsuas yog siv VIN, SCL, SDA, INT thiab GND cov tswv yim.

Cov Lus Qhia: Tom qab ua cov dej qab zib, nws yog qhov zoo rau ntxig qee cov kua nplaum kub los tiv thaiv dej qab zib (zoo li koj pom hauv daim duab).

Kauj Ruam 3: Hlau Bluetooth HC-06 Module

Hlau Bluetooth HC-06 Module
Hlau Bluetooth HC-06 Module
Hlau Bluetooth HC-06 Module
Hlau Bluetooth HC-06 Module

Ib qho ntxiv, peb yuav tsum ua tib yam rau Bluetooth HC06 module.

Txhua cov ntaub ntawv tau txais hauv Bluetooth module yuav raug xa mus rau Arduino (hauv peb qhov xwm txheej) ntawm cov lej.

Tus qauv ntau ua raws tus qauv kev sib tham ntawm bluetooth, uas yog kwv yees li 10 meters. Cov qauv no ua haujlwm nkaus xwb hauv hom qhev, uas yog, nws tso cai rau lwm lub cuab yeej txuas rau nws, tab sis tsis tso cai nws tus kheej txuas rau lwm yam khoom siv bluetooth.

Tus qauv muaj 4 tus pin (Vcc, GND, RX e TX). RX thiab TX tau siv los tso cai rau kev sib txuas lus nrog lub microcontroller hauv txoj hauv kev.

Thaum ua tiav, qee qhov teeb meem tau pom los ntawm ib txhij siv TX thiab RX tso tawm rau Bluetooth ua ke nrog kev sib txuas lus lossis xov tooj ntawm USB (uas yog siv los txhawb lub Arduino thiab thauj cov lej) ntawm lub rooj tsavxwm.

Yog li, thaum txhim kho, pins A6 thiab A7 tau siv ib ntus los sim ua kev sib txuas lus txuas. Lub Tsev Haujlwm SoftwareSerial tau siv los tso cai chaw nres nkoj ua haujlwm ntawm software.

Siv: Bluetooth Duab thaiv yog los ntawm

Kauj Ruam 4: Sib sau Cov Qauv Txheej Txheem, Ua raws Bluetooth Module, LED thiab Arduino ntawm Protoboard

Sib sau ua ke Cov Qauv Qauv, Ua raws Bluetooth Module, LED thiab Arduino ntawm Protoboard
Sib sau ua ke Cov Qauv Qauv, Ua raws Bluetooth Module, LED thiab Arduino ntawm Protoboard

Cov kauj ruam tom ntej yog tso tag nrho cov khoom siv hauv lub protoboard thiab txuas lawv kom raug.

Koj tuaj yeem ua tam sim no raws li koj xav tau. Yog tias koj xav siv lwm lub microcontroller zoo li Arduino Uno lossis pawg thawj coj loj, xav tias dawb los ua li ntawd. Kuv tau siv qhov me me, vim tias kuv xav tau kom muaj lub cuab yeej compact uas yuav tuaj yeem ua qhov ntsuas thiab tseem xa cov ntaub ntawv mus rau lwm lub cuab yeej.

Thawj kauj ruam: Txuas Arduino rau hauv pawg dawb.

Txuas Arduino Nano nyob hauv nruab nrab ntawm daim ntawv tiv thaiv

Kauj ruam thib ob: Txuas lub Bluetooth module hauv Arduino.

Txuas lub bluetooth module nyob tom qab ntawm lub rooj tsavxwm thiab tseem txuas cov xov hlau hauv Arduino raws li hauv qab no:

  1. RX los ntawm Bluetooth mus rau TX1 tus pin hauv Arduino.
  2. TX los ntawm Bluetooth mus rau RX0 tus pin hauv Arduino.
  3. GND los ntawm Bluetooth mus rau GND (tus pin ntxiv rau RX0 tus pin) hauv Arduino.
  4. Vcc los ntawm Bluetooth mus rau 5V tus pin hauv Arduino.

Kauj ruam peb: Txuas lub MAX30100 sensor hauv Arduino.

  1. VIN los ntawm MAX30100 mus rau 5V tus pin hauv Arduino (tib yam li peb muaj hauv Bluetooth kauj ruam).
  2. SCL tus pin los ntawm MAX30100 mus rau tus pin A5 hauv Arduino.
  3. SDA tus pin los ntawm MAX30100 rau A4 tus pin hauv Arduino.
  4. INT tus pin los ntawm MAX30100 rau A2 tus pin hauv Arduino.
  5. GND tus pin los ntawm MAX30100 mus rau GND tus pin hauv Arduino (tus pin ntawm VIN thiab RST).
  6. Plug ib resistor. Ib ceg hauv tib 5V tus pin peb txuas nrog Bluetooth thiab lwm qhov hauv A4 tus pin.
  7. Txuas tus tiv thaiv thib ob. Ib txhais ceg kuj tseem txuas nrog hauv 5v tus pin thiab lwm tus txuas rau A5 tus pin.

Tseem ceeb: Txhawm rau kom MAX30100 ua haujlwm tau zoo, peb yuav tsum rub cov resistors feem rau A4 thiab A5 pins. Txwv tsis pub, peb yuav pom lub sensor ua haujlwm tsis zoo, xws li lub teeb pom kev thiab feem ntau ua tiav yam tsis ua haujlwm zoo ib yam.

Kauj ruam plaub: Ntxiv lub ntsuab coj los paub qhov tseeb thaum ntsuas lub plawv ntsuas los ntawm lub ntsuas cua.

  1. Txuas tus ceg me tshaj plaws ntawm ntsuab coj (lossis lwm yam xim uas koj xav tau) rau GND tus pin (zoo ib yam li peb txuas nrog Bluetooth).
  2. Txuas lwm ntu rau tus pin D2.

Kauj Ruam 5: Tiav Peb Cov Khoom Sib Sau

Tiav Peb Cov Khoom Sib Sau
Tiav Peb Cov Khoom Sib Sau
Tiav Peb Cov Khoom Sib Sau
Tiav Peb Cov Khoom Sib Sau

Txog tam sim no, peb twb muaj peb lub cuab yeej sib sau ua ke, tab sis tsis yog programmed. Peb muaj bluetooth module txuas nrog Arduino, nrog rau MAX30100 sensor, uas yuav ua txhua qhov ntsuas cov ntaub ntawv thiab xa nws mus rau Bluetooth module, uas nyob rau hauv yuav xa mus rau lwm lub cuab yeej.

Rau kab lus no, lub hom phiaj yog ua kom pom kev sib dhos ntawm lub cuab yeej. Hauv ob peb kab lus tom ntej no kuv yuav npog yuav ua li cas rau nruab lub cuab yeej siv Arduino IDE. Koj tuaj yeem pom hauv daim duab no yuav ua li cas lub cuab yeej yuav ua haujlwm, los ntawm kev nyeem cov ntaub ntawv mus saib ntawm koj lub cuab yeej Android.

Koj tau ua tiav koj tus kheej ntsuas Pulse Oximeter ntsuas tsuas yog tus nqi qis. Nyob twj ywm rau kab lus tom ntej!: D

Pom zoo: