Things used in this project

Hardware components:
Espectro core ytowwais65
Makestro ESPectro Core
ESP8266 development board. Or basically you can use any ESP8266 devboard as long as it breakout I2C pins and accessible easily.
×1
Makestro ESPectro LoRa Backpack
LoRa backpack made specifically for ESPectro Core. Based on RFM95/98. Or you can use any LoRa module as long as you know how to wire it :)
×1
Heart Pulse Sensor
×1
SeeedStudio Grove - Temperature&Humidity Sensor (HDC1000)
×1
GY-87 10DOF MPU6050
×1
Pi 3 02
Raspberry Pi 3 Model B
You can also use Raspberry Pi 2.
×1
Makestro LoRa Raspberry Pi Hat
LoRa hat for Raspberry Pi 2/3, based on HopeRF RFM95/98
×1
Software apps and online services:
Artik logo cloud
Samsung IoT ARTIK Cloud for IoT
PlatformIO

Schematics

Wearable Wiring
Wiring diagram for Wearable-side. LoRa backpack is not included as it should be snapped-in.
Espectro%20patientcare.001

Code

Custom Device Type ManifestJSON
In order to create a device in Samsung Artik Cloud, a new device type should be created. You can use attached manifest JSON file.
{
  "fields": [
    {
      "name": "temp",
      "type": "TEMPERATURE",
      "valueClass": "Double",
      "isCollection": false,
      "description": "Body temperature",
      "tags": [],
      "unit": "SI.CELSIUS"
    },
    {
      "name": "timestamp",
      "type": "TIMESTAMP",
      "valueClass": "Double",
      "isCollection": false,
      "tags": [],
      "unit": "SI.MILLI(SI.SECOND)"
    },
    {
      "name": "id",
      "type": "ID",
      "valueClass": "String",
      "isCollection": false,
      "description": "Device ID",
      "tags": []
    },
    {
      "name": "heartRate",
      "type": "HEART_RATE",
      "valueClass": "Integer",
      "isCollection": false,
      "tags": [],
      "unitSymbol": "StandardUnits.BEATS_PER_MINUTE"
    },
    {
      "name": "fallDetected",
      "type": "CUSTOM",
      "valueClass": "Boolean",
      "isCollection": false,
      "tags": []
    },
    {
      "name": "humidity",
      "type": "CUSTOM",
      "valueClass": "Double",
      "isCollection": false,
      "description": "Humidity",
      "tags": [],
      "unitSymbol": "%"
    },
    {
      "name": "ax",
      "type": "CUSTOM",
      "valueClass": "Double",
      "isCollection": false,
      "description": "Acceleration on X-axis",
      "tags": [
        "acceleration",
        "motion"
      ]
    },
    {
      "name": "ay",
      "type": "CUSTOM",
      "valueClass": "Double",
      "isCollection": false,
      "description": "Acceleration on Y-axis",
      "tags": [
        "motion",
        "acceleration"
      ]
    },
    {
      "name": "az",
      "type": "CUSTOM",
      "valueClass": "Double",
      "isCollection": false,
      "description": "Acceleration on X-axis",
      "tags": [
        "motion",
        "acceleration"
      ]
    }
  ],
  "actions": [
    {
      "name": "setFallThreshold",
      "description": "Set a fall threshold",
      "parameters": [
        {
          "name": "double",
          "valueClass": "Double",
          "children": null,
          "unit": null,
          "isCollection": false,
          "type": "CUSTOM"
        }
      ],
      "isStandard": false,
      "type": "CUSTOM"
    },
    {
      "name": "setAlert",
      "description": "Set alert to On",
      "parameters": [
        {
          "name": "alertOn",
          "type": "CUSTOM",
          "valueClass": "Boolean"
        }
      ],
      "isStandard": false,
      "type": "CUSTOM"
    }
  ],
  "messageFormat": "json"
}
PatientCare-Wearable
Source code for ESP8266-based board for Wearable-side
PatientCare-Gateway
LoRa gateway deployed on Raspberry Pi 2/3. Consists of C++ based LoRa gateway program, and Node.js-based processing code (and uploader to Samsung Artik Cloud)

Credits

With cocoa2
Andri Yadi
8 projects • 38 followers
An entrepreneur. IoT, iOS, Node.js, Azure developer and influencer. Hackster Live Ambassador for Indonesia. Microsoft MVP of Azure.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog