Cov txheej txheem:
- Kauj ruam 1: Kev piav qhia
- Kauj ruam 2: Cov ntaub ntawv
- Kauj ruam 3: Schematic
- Kauj Ruam 4: Tau Txais Cov Khoom Ua Ke
- Kauj Ruam 5: Teeb Arduino & Code
Video: Yuav Ua Li Cas Ua Kom Yooj Yim Wearable Pulse Notifier: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Pulseme yog cov cuab yeej siv tau uas pab tib neeg paub thaum lawv lub plawv dhia siab dua qhov teeb tsa, los ntawm kev muab lawv lub cev tawm tswv yim hauv daim ntawv ntawm kev txo qis thiab hnav tsis tau.
Kauj ruam 1: Kev piav qhia
Lub hauv paus tseem ceeb ntawm qhov hnav no yog cov ntaub plaub, uas yog kov tas li nrog cov neeg siv caj npab, thiab thaum txo qis, ua rau muaj kev xav zoo. Sib nrug ntawm qhov no, muaj Arduino-tswj cov txheej txheem uas yog tus saib xyuas kev txav ntawm cov ntaub, ntxiv rau lub ntsuas pa.
Kauj ruam 2: Cov ntaub ntawv
Tshwj xeeb tshaj yog, cov ntu uas xav tau txhawm rau txhawm rau tsim qhov kev ceeb toom lub cev mem tes sensor yog cov hauv qab no:
- Arduino Ib
- Pulse Sensor
- 2 x Kev sib hloov txuas ntxiv mus Servos (DS04-NFC)
- 2 x Springs
- Hlua tes
- Npuag
- Xov
- Roj teeb
Kauj ruam 3: Schematic
Muaj ob txoj hauv kev yooj yim koom nrog los tsim cov khoom siv hluav taws xob ntawm qhov hnav no.
Sensor Circuit:
- Sensor tus pin 1 rau Arduino A0
- Sensor tus pin 2 rau +5V
- Sensor tus pin 3 rau GND
Servo Circuit: Cov
- Servo1 tus pin rau Arduino tus pin 8
- Servo2 tus pin rau Arduino tus pin 9
Thaum kawg, txuas rau +5V thiab GND rau lawv cov davhlau ya nyob twg ntawm Arduino board.
Kauj Ruam 4: Tau Txais Cov Khoom Ua Ke
Cov kauj ruam uas yuav tsum tau ua txhawm rau txhawm rau sib dhos cov khaub ncaws no yog cov hauv qab no:
- Ntsuas txoj kab uas hla ntawm tus neeg nruab nrab caj npab, txhawm rau xaws cov ntaub nyob ntawm qhov zoo/qhov loj me.
- Yuav lossis 3D luam ib txoj hlua tes kom tsim nyog los ua haujlwm hauv paus rau txhua yam khoom siv hluav taws xob/tshuab.
- Xaws cov springs rau ntawm daim ntaub, ntawm ob sab.
- Kaw ob lub servos ntawm txoj hlua tes.
- Txuas cov springs thiab servos, siv xov.
- Kho qhov chaws kom haum rau koj nyiam thiab/lossis qhov loj ntawm koj daim ntaub.
- Txaus siab rau!
Kauj Ruam 5: Teeb Arduino & Code
Txuas Arduino rau lub khoos phis tawj thiab ua kom nws ua haujlwm tau zoo ua ntej. Qhov no yog qhov yooj yim ua. Tom qab ntawd, teeb tsa lub arduino kom nyeem cov mem tes thiab tsav cov servos thaum tus nqi mem tes dhau ntawm qhov ib txwm muaj. Yeej, peb kuj yuav tsum tau hloov kho qhov zaus uas nws nyeem tus nqi nkag mus kom tau txais cov cai hauv qab no: ncua (9000) yog suav tias yog qhov kev coj ua zoo tshaj plaws hauv kev kos yooj yim. Cov cai yog cov hauv qab no:
Servo myservo1; Servo myservo2; koj pos; // Variables const int PulseWire = 0; // PulseSensor PURPLE WIRE txuas nrog ANALOG PIN 0 const int LED13 = 13; // Lub on-board Arduino LED, ze rau tus PIN 13. // int Threshold = 550; // Txiav txim siab Qhov Teeb Meem twg rau "suav raws li kev ntaus" thiab uas yuav tsis quav ntsej. // Siv qhov "Gettting Started Project" txhawm rau kho kom raug tus nqi Threshold dhau qhov teeb tsa ua ntej. // Txwv tsis pub tawm lub neej ntawd "550" tus nqi. PulseSensorPlayground mem tesSensor; // Tsim ib qho piv txwv ntawm PulseSensorPlayground cov khoom hu ua "pulseSensor" tsis muaj teeb meem teeb tsa () {Serial.begin (9600); // Rau Serial Monitor
// Kho cov khoom PulseSensor, los ntawm kev muab peb cov kev hloov pauv rau nws. pulseSensor.analogInput (PulseWire); mem tesSensor.blinkOnPulse (LED13); // pib-magically ntsais Arduino's LED nrog lub plawv dhia. // pulseSensor.setThreshold (Threshold); // Ob-khij qhov khoom "pulseSensor" thiab "pib" pom lub teeb liab. yog (pulseSensor.begin ()) {Serial.println ("Peb tau tsim lub hom phiaj pulseSensor!"); // Qhov no luam tawm ib zaug ntawm Arduino fais fab tuag, lossis ntawm Arduino rov pib dua. }} void loop () {int myBPM = pulseSensor.getBeatsPerMinute (); // Hu ua haujlwm ntawm peb cov khoom pulseSensor uas xa rov qab BPM raws li "int". // "myBPM" tuav tus nqi BPM tam sim no. //myservo1.attach (9); // yog (pulseSensor.sawStartOfBeat ()) {// Kev sim tas li kom pom tias "kev ntaus yeej tshwm sim". Serial.println ("Heart Lub plawv dhia tau tshwm sim!"); // Yog tias qhov kev xeem yog "muaj tseeb", luam cov lus "lub plawv dhia tshwm sim". Serial.print ("BPM:"); // Luam kab lus "BPM:" Serial.println (myBPM); // Luam tus nqi sab hauv ntawm myBPM. yog (myBPM> = 65) {// Kuaj tas li kom pom tias "kev ntaus yeej tshwm sim".
myservo1.attach (9); myservo2.attach (8); myservo1.writeMicroseconds (2000); // CW myservo2.writeMicroseconds (2000); ncua (4000); myservo1.writeMicroseconds (1000); // CCW myservo2.writeMicroseconds (1000); ncua (4000); myservo1.writeMicroseconds (1500); // nres myservo2.writeMicroseconds (1500); ncua (500); } //} ncua (9000); // txiav txim siab ua qhov zoo tshaj plaws hauv daim duab yooj yim. } Khiav Txoj Cai Tam Sim No, koj tsuas yog txheeb xyuas qhov kos duab, ntsaws USB, thiab rub tawm. Koj yuav pom.
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Music Reactive Light -- Yuav Ua Li Cas Kom Yooj Yim Yooj Yim Suab Nkauj Reactive Teeb rau Ua Duab Awsome.: 5 Kauj Ruam (nrog Duab)
Music Reactive Light || Yuav Ua Li Cas Super Yooj Yim Music Reactive Light rau Ua Duab Awsome.: Hav whats up guys, Hnub no peb yuav tsim ib txoj haujlwm zoo heev. ntses bass thaj tsam uas yog qhov tsawg-zaus suab teeb liab. Nws yog qhov yooj yim heev los tsim.Peb yuav
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe
Yuav Ua Li Cas Thiaj Li Yooj Yim Yooj Yim 'Calendar & Scrapbook (txawm hais tias Koj Tsis Paub Yuav Ua Li Cas Scrapbook): 8 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Thiaj Li Yooj Yim Yooj Yim 'Calendar & Scrapbook (txawm hais tias Koj Tsis Paub Yuav Ua Li Cas Scrapbook): Nov yog qhov kev lag luam pheej yig (thiab muaj txiaj ntsig ntau!) Hnub so khoom plig rau niam tais yawm txiv. Kuv tau ua 5 daim qhia hnub hli xyoo no rau tsawg dua $ 7 txhua qhov khoom siv: 12 daim duab zoo ntawm koj tus menyuam, menyuam yaus, ntxhais xeeb ntxwv, tub xeeb ntxwv, dev, miv, lossis lwm tus txheeb ze 12 daim sib txawv