Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Andri Yadi
Published © GPL3+

PatientCare - for Samsung Artik Cloud

Combination of smart building and wearable to monitor patient well-being to improve patient care service. Use LoRa and Samsung Artik Cloud.

AdvancedFull instructions provided12 hours12,092
PatientCare - for Samsung Artik Cloud

Things used in this project

Hardware components

ESPectro Core
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
Seeed Studio Grove - Temperature&Humidity Sensor (HDC1000)
×1
GY-87 10DOF MPU6050
×1
Raspberry Pi 3 Model B
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 Cloud for IoT
Samsung ARTIK Cloud for IoT
PlatformIO

Story

Read more

Schematics

Wearable Wiring

Wiring diagram for Wearable-side. LoRa backpack is not included as it should be snapped-in.

Code

Custom Device Type Manifest

JSON
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

Andri Yadi

Andri Yadi

11 projects • 86 followers
An entrepreneur. IoT, iOS, Node.js, Azure developer and influencer. Hackster Live Ambassador for Indonesia. Microsoft MVP of Azure.

Comments