Skip to content

Access the Raspberry Pi sense-hat IMU data from any language with a UNIX Socket

Notifications You must be signed in to change notification settings

alexdrean/sense-hat-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sense-hat-socket

Access the Raspberry Pi sense-hat IMU data from any language with a UNIX Socket

How to install

sudo apt update
sudo apt install -y sense-hat
cd ~
git clone https://github.com/alexdrean/sense-hat-socket
cd sense-hat-socket
make
sudo make install

Usage

Bash

netcat -U /run/sense-hat/imu.sock

Output

: roll:-1.755584, pitch:0.184328, yaw:-35.736270
: roll:-1.754425, pitch:0.185284, yaw:-35.738821
: roll:-1.752745, pitch:0.186840, yaw:-35.741755
...

Calibration

Place your RTIMULib.ini file in /etc /etc/RTIMULib.ini

How to uninstall

cd ~/sense-hat-socket
sudo make uninstall
cd ~/
rm -rf sense-hat-socket

About

Access the Raspberry Pi sense-hat IMU data from any language with a UNIX Socket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published