Giter Site home page Giter Site logo

lwm2m-astro-pi's Introduction

Astro Pi

Project for IoT lessons at AGH UST.

We've been given a Raspberry Pi with Sense Hat detectors used for Astro Pi projects. Project assumes setting our Pi as a LWM2M server and exposing some made-up astro object.

There has been defined and exposed one LWM2M object (3300, Generic Sensor) with three instances representing following resources:

  • (0) Level of charging power (Astro-ship batteries are charged using solar panels and we're exposing how much does the ship is faced towards the sun)
  • (1) Planet we are currently at (using atmospheric data collected by sensors)
  • (2) Number of astronauts on the ship (uses camera to take a picture and OpenCV to detect people at it)

Implementation

Implementation of these resources takes place in python files called ResourceHandlers.

  • SensorValue (ResourceHandler 5700) is responsible for computing actual values. It contains business logic and computes it depending on instance_id passed as an argument to the read() function
  • Application_Type (ResourceHandler 5750) represents an application type and contains description of every instance
  • Sensor_Unit (ResourceHandler 5701) represents the sensor units, so it defines the meaning of values returned by sensor value ResourceHandler

Project in action

The svetovid service has to be enabled at the Raspberry Pi. (https://github.com/AVSystem/Svetovid-raspberry-client) Then a web browser LWM2M service Coyote (https://www.avsystem.com/products/coiote-iot-device-management-platform) can connect to this device and read values from our generic and other basic sensors.

Authors

lwm2m-astro-pi's People

Contributors

koszar91 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.