Raspberry Pi Sense HAT
Raspberry Pi Sense HAT
Raspberry Pi
Documentation
Computers
Accessories
Microcontrollers
Services
Pico C SDK
Sense HAT
Installation
Edit this on GitHub
sudo reboot
Getting started
You can download this book as a PDF Ule for free, it has
been released under a Creative Commons Attribution-
NonCommercial-ShareAlike 3.0 Unported (CC BY NC-SA)
licence.
NOTE
The Sense HAT has an 8×8 RGB LED matrix and a Uve-
button joystick, and includes the following sensors:
Gyroscope
Accelerometer
Magnetometer
Temperature
Barometric pressure
Humidity
LED matrix
The LED matrix is an RGB565 framebuffer with the id
"RPi-Sense FB". The appropriate device node can be
written to as a standard Ule or mmap-ed. The included
'snake' example shows how to access the framebuffer.
Joystick
The joystick comes up as an input event device named
"Raspberry Pi Sense HAT Joystick", mapped to the arrow
keys and Enter. It should be supported by any library
which is capable of handling inputs, or directly through
the evdev interface. Suitable libraries include SDL,
pygame and python-evdev. The included 'snake' example
shows how to access the joystick directly.
Hardware calibration
Install the necessary software and run the calibration
program as follows:
Options are:
Enter option:
Try and get a complete circle in each of the pitch, roll and
yaw axes. Take care not to accidentally eject the SD card
while doing this. Spend a few minutes moving the Sense
HAT, and stop when you Und that the numbers are not
changing anymore.
$ rm ~/.config/sense_hat/RTIMULib.ini
$ sudo cp RTIMULib.ini /etc
dtparam=i2c_vc=on
dtparam=i2c_arm=on
NOTE
Reading
EEPROM data can be read with the following command:
Writing
Download EEPROM settings and build the .eep binary:
$ wget https://github.com/raspberrypi/rpi-sense/ra
./eepmake sense_eeprom.txt sense.eep /boot/overla
WARNING
Follow us
Sign up to newsletter
Mastodon
YouTube
About Raspberry Pi
News
Contact us
Trademark
About us
Jobs
Accessibility
Acceptable use
Cookies
Licensing
Privacy
Security
For home
Tutorials
For industry
Thin clients
Powered by Raspberry Pi
Design partners
Success stories
Hardware
Add-on boards
Cases
Peripherals
Software
Raspberry Pi OS
Raspberry Pi Imager
Raspberry Pi Desktop
Documentation
All categories
Datasheets
Community
Forums
Events
Raspberry Pi Store
Cambridge Store
Raspberry Pi Press
The MagPi
HackSpace