Demonstration of the IMU sensor on the Sense HAT by Serge Schneider.
Assumes the Sense HAT Python library has been installed.
- 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
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.
a
toggle accelerometer on/offg
toggle gyroscope on/offm
toggle magnetometer compass on/off+
increase yaw offset-
decrease yaw offsetEsc
quit