Station de santé de surveillance
Composants et fournitures
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 2 | |||
![]() |
| × | 1 | |||
| × | 1 |
Applications et services en ligne
![]() |
| |||
![]() |
|
À propos de ce projet
L'électronique filaire avec des capteurs et une application permettront de contrôler facilement l'état de santé et les paramètres environnants
Code
- Code
CodeC/C++
#include#include #define AM2302_PIN 7#include #include #define ONE_WIRE_BUS 2OneWire oneWire(ONE_WIRE_BUS);DallasTemperature capteurs(&AM2302 dht(AM2302_PIN);SoftwareSerial Bluetooth (10, 9);String Data;int pulsePin =0;int blinkPin =13;volatile int BPM;volatile int Signal;volatile int IBI =600;volatile boolean Pulse =false;volatile boolean QS =faux ; taux int volatil[10] ; volatil non signé long sampleCounter =0; volatile non signé long lastBeatTime =0 ; int volatile P =512; int volatile T =512 ; seuil int volatile =512 ; amp int volatile =100 ; volatil booléen firstBeat =true; volatil booléen secondBeat =false; void interruptSetup() { TCCR2A =0x02; TCCR2B =0x06 ; OCR2A =0X7C ; TIMSK2 =0x02 ; sei(); }ISR(TIMER2_COMPA_vect) { cli(); Signal =analogRead (pulsePin); sampleCounter +=2; int N =sampleCounter - lastBeatTime; if (Signal (IBI / 5) * 3) { if (Signal seuil &&Signal> P) { P =Signal; } if (N> 250) { if ( (Signal> seuil) &&(Pulse ==false) &&(N> (IBI / 5) * 3) ) { Pulse =true; digitalWrite (blinkPin, HAUT); IBI =sampleCounter - lastBeatTime ; lastBeatTime =sampleCounter; if (secondBeat) { secondBeat =false; for (int i =0; i <=9; i++) { rate[i] =IBI; } } if (firstBeat) { firstBeat =false; secondBeat =vrai ; sei(); retourner; } mot runningTotal =0 ; pour (int i =0; i <=8; i++) { taux[i] =taux[i + 1]; runningTotal +=taux[i] ; } taux[9] =IBI ; runningTotal +=taux[9] ; RunningTotal /=10 ; BPM =60000 / total en cours d'exécution ; QS =vrai ; } } if (Signal 2500) { seuil =512 ; p =512 ; T =512 ; lastBeatTime =sampleCounter; firstBeat =vrai ; secondBeat =faux ; } sei(); }configuration nulle() { Bluetooth.begin(9600); Serial.begin(9600); dht.begin(); capteurs.begin(); interruptSetup();}void loop() { sensor.requestTemperatures(); dht.readHumidity(); dht.readTemperature(); if (isnan(dht.humidité) || isnan(dht.temperature_C)) { return ; } if (QS ==true) { Serial.print(sensors.getTempCByIndex(0)); Serial.print(" "); Serial.print(dht.temperature_C); Serial.print(" "); Serial.print(dht.humidité); Serial.print(" "); Serial.println(BPM); Bluetooth.print(sensors.getTempCByIndex(0)); Bluetooth.print(" "); Bluetooth.print(dht.temperature_C); Bluetooth.print(" "); Bluetooth.print(dht.humidité); Bluetooth.print(" "); Bluetooth.println(BPM); QS =faux ; } retard(1500);}
Coder
Code pour IDE arduinohttps://github.com/dikhalipina/Tutorials-for-arduinoPièces et boîtiers personnalisés
Application Android pour surveiller la station de santé
https://github.com/dikhalipina/Tutorials-for-arduinoSchémas










Processus de fabrication
- Enregistreur de température Raspberry Pi
- Surveillance de la température sur le Raspberry Pi
- Capteur de température Python et Raspberry Pi
- Station météo Raspberry Pi
- Contrôle de la température avec Raspberry Pi
- Capteur de température et de luminosité Raspberry Pi
- Capteur de température Raspberry Pi
- Machinery Health Monitor combine la surveillance des vibrations et de la température
- Capteur de température de roulement | détecteur