astro-pi / apollo-soyuz

Demonstration of the IMU sensor on the Astro Pi sense HAT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo Soyuz Demo

Demonstration of the IMU sensor on the Sense HAT by Serge Schneider.

Assumes the Sense HAT Python library has been installed.

Requirements

  • Python pi3d module

Python 3:

sudo apt-get install python3-pip
sudo pip3 install pi3d

Python 2:

sudo apt-get install python-pip
sudo pip install pi3d

Usage

git clone git://github.com/astro-pi/apollo-soyuz
cd apollo-soyuz
sudo python3 soyuz.py

Pi 1 users will have to wait 3 to 4 minutes for this to load. For Pi 2/3 users it's about 30 seconds.

Pick up the Astro Pi and start moving it around when you see the spacecraft appear on screen.

This is a good demonstration of pitch, roll and yaw.

Keys

  • a toggle accelerometer on/off
  • g toggle gyroscope on/off
  • m toggle magnetometer compass on/off
  • + increase yaw offset
  • - decrease yaw offset
  • Esc quit

About

Demonstration of the IMU sensor on the Astro Pi sense HAT


Languages

Language:Python 100.0%