Industriële fabricage
Industrieel internet der dingen | Industriële materialen | Onderhoud en reparatie van apparatuur | Industriële programmering |
home  MfgRobots >> Industriële fabricage >  >> Manufacturing Technology >> Productieproces

Bewaking van het gezondheidsstation

Componenten en benodigdheden

Arduino UNO
× 1
Jumperdraden (algemeen)
× 1
DHT11 temperatuur- en vochtigheidssensor (3 pinnen)
× 1
Temperatuursensor
× 1
Weerstand 10k ohm
× 2
HC-05 Bluetooth-module
× 1
hartslagsensor
× 1

Apps en online services

MIT App Inventor 2
Arduino IDE

Over dit project

Bekabelde elektronica met sensoren en een app bieden een gemakkelijke manier om de gezondheidstoestand en de omliggende parameters te controleren

Code

  • Code
CodeC/C++
#include #include #define AM2302_PIN 7#include #include #define ONE_WIRE_BUS 2OneWire oneWire(ONE_WIRE_BUS);DallasoneTemperaturere AM2302 dht(AM2302_PIN);SoftwareSerial Bluetooth(10, 9);String Data;int pulsePin =0;int blinkPin =13;vluchtige int BPM;vluchtige int Signaal;vluchtige int IBI =600;vluchtige boolean Puls =false;vluchtige booleaanse QS =false; vluchtige int rate [10]; vluchtige niet-ondertekende lange sampleCounter =0; vluchtig niet-ondertekend lang lastBeatTime =0; vluchtig int P =512; vluchtig int T =512; vluchtige int thresh =512; vluchtige int amp =100; vluchtige boolean firstBeat =true; vluchtige booleaanse secondBeat =false; void interruptSetup() { TCCR2A =0x02; TCCR2B =0x06; OCR2A =0X7C; TIMSK2 =0x02; zie(); }ISR(TIMER2_COMPA_vect) { cli(); Signaal =analoog lezen (pulsePin); monsterteller +=2; int N =sampleCounter - lastBeatTime; if (Signaal  (IBI / 5) * 3) { if (Signaal  dorsen &&Signaal> P) { P =Signaal; } if (N> 250) { if ( (Signaal> thresh) &&(Pulse ==false) &&(N> (IBI / 5) * 3) ) { Pulse =true; digitalWrite(blinkPin, HOOG); IBI =sampleCounter - lastBeatTime; lastBeatTime =sampleCounter; if (secondBeat) { secondBeat =false; voor (int i =0; i <=9; i++) { rate[i] =IBI; } } if (firstBeat) { firstBeat =false; secondBeat =waar; zie(); opbrengst; } woord runningTotal =0; for (int i =0; i <=8; i++) { rate[i] =rate[i + 1]; runningTotal +=tarief[i]; } tarief[9] =IBI; runningTotal +=tarief[9]; lopendTotaal /=10; BPM =60000 / lopend Totaal; QS =waar; } } if (Signaal  2500) { thresh =512; P =512; T =512; lastBeatTime =sampleCounter; firstBeat =waar; secondBeat =onwaar; } zie(); }void setup() { Bluetooth.begin(9600); Serieel.begin(9600); dht.begin(); sensoren.begin(); interruptSetup();}void loop() { sensors.requestTemperatures(); dht.readVochtigheid(); dht.readTemperature(); if (isnan(dht.humidity) || isnan(dht.temperature_C)) {return; } if (QS ==true) { Serial.print(sensors.getTempCByIndex(0)); Serieel.print(" "); Seriële.afdruk (dht.temperatuur_C); Serieel.print(" "); Serial.print (dht.vochtigheid); Serieel.print(" "); Serieel.println(BPM); Bluetooth.print(sensors.getTempCByIndex(0)); Bluetooth.print(" "); Bluetooth.print (dht.temperatuur_C); Bluetooth.print(" "); Bluetooth.print (dht.vochtigheid); Bluetooth.print(" "); Bluetooth.println (BPM); QS =onwaar; } vertraging (1500);}
Code
Code voor IDE arduinohttps://github.com/dikhalipina/Tutorials-for-arduino

Aangepaste onderdelen en behuizingen

Android-app voor het bewaken van gezondheidsstation
https://github.com/dikhalipina/Tutorials-for-arduino

Schema's


Productieproces

  1. DS18B20-temperatuursensor
  2. Raspberry Pi Temperature Logger
  3. Temperatuurbewaking op de Raspberry Pi
  4. Python- en Raspberry Pi-temperatuursensor
  5. Raspberry Pi-weerstation
  6. Temperatuur bewaken met Raspberry Pi
  7. Raspberry Pi temperatuur- en lichtsensor
  8. Raspberry Pi-temperatuursensor
  9. Machinery Health Monitor combineert trillings- en temperatuurbewaking
  10. Lagertemperatuursensor | detector
  11. Draagbare gassensor voor gezondheids- en milieubewaking