Skip to content

Kiwrious official Unity SDK contains sensor value decoders and serial communication methods.

Notifications You must be signed in to change notification settings

augmented-human-lab/kiwrious-unity-sdk

Repository files navigation

Kiwrious Unity SDK [Obsolete]

Please use our new kiwrious-unity-package

This project enables communication between kiwrious sensors and unity editor. Project made with unity 2018.2.11f1. You may use higher versions but avoid opening this on lower version.

You can use this project in two different ways

  • Clone this entire project and build your idea on top of this demo scene
  • Download kiwrious reader unity package and import it to your own project

Setup

  • Clone this repository and open with Unity 2018.2.11f1.
  • Go to player settings --> other settings section
  • Set Api Compatibility Level to .NET 4.X
  • Open Kiwrious > Scenes > KIwrious Sensors Demo.unity
  • Run the project, Plugin any kiwrious sensor and observe readings

Start Reader

  • Add Serial Reader prefab from Assets/Kiwrious/Prefabs
KiwriousSerialReader.instance.StartSerialReader();

Stop Reader

KiwriousSerialReader.instance.StopSerialReader();

Read Values

  • Get raw value
KiwriousSerialReader.instance.sensorRawData

All sensor values are processed as float values.

KiwriousSerialReader.instance.sensorData[sensorName].values[propertyName];
  KiwriousSerialReader.instance.sensorData["EC"].values["conductivity"]
  KiwriousSerialReader.instance.sensorData["CLIMATE"].values["humidity"]
  KiwriousSerialReader.instance.sensorData["CLIMATE"].values["temperature"]
  KiwriousSerialReader.instance.sensorData["LIGHT"].values["uv"]
  KiwriousSerialReader.instance.sensorData["LIGHT"].values["lux"]
  KiwriousSerialReader.instance.sensorData["COLOR"].values["color_h"]
  KiwriousSerialReader.instance.sensorData["COLOR"].values["color_s"]
  KiwriousSerialReader.instance.sensorData["COLOR"].values["color_v"]
  KiwriousSerialReader.instance.sensorData["VOC"].values["voc"]
  KiwriousSerialReader.instance.sensorData["THERMAL2"].values["d_temperature"]
  KiwriousSerialReader.instance.sensorData["THERMAL2"].values["a_temperature"]
  KiwriousSerialReader.instance.sensorData["CARDIO"].values["heart_rate"]

Supported Build Platforms

  • PC Standalone
  • Mac Standalone
  • Android

Issues


The type or namespace name Ports' does not exist in the namespace System.IO'. Are you missing an assembly reference?

Go to Edit > Project Settings > Player > Optimization > Api Compatibility Level

Set this to .Net 2.X or .NET 4.X (not subset)


About

Kiwrious official Unity SDK contains sensor value decoders and serial communication methods.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published