Skip to content

MADS-NET/sense-hat_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sense-hat plugin for MADS

This is a Source plugin for MADS.

This plugin reads sensor data from the Raspberry Pi Sense HAT using the RTIMULib library.

Required MADS version: 1.4.0.

Supported platforms

Currently, the supported platforms are:

  • Linux

Installation

Build and create the RTIMULib static library first:

git clone https://github.com/pbosetti/RTIMULib.git
cd RTIMULib/Linux
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --build build -t package
sudo dpkg -i ../packages/RTIMULib-*.deb

Use the installed RTIMULibCal tool to create a settings file for your Sense HAT:

RTIMULibCal

Now build and install the plugin:

cmake -Bbuild -DCMAKE_INSTALL_PREFIX="$(mads -p)"
cmake --build build -j4
sudo cmake --install build

INI settings

The plugin supports the following settings in the INI file:

[sense-hat]
period = 100 # sampling period in ms
settings = "RTIMULib" # WARNING: NO .ini extension!
settings_dir = "/path/to/settings/dir" # folder containing the settings file
[sense-hat.enabled_sensors]
humidity = true
temperature = true
pressure = true
timestamp = false
gyro = false
compass = false

All settings are optional; if omitted, the default values are used.

Executable demo


About

Source plugin for reading Raspberry Sense Hat

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors