Difference between revisions of "Raspberry Pi: Sense Hat"
(Created page with "== Summary == Description what this documentation is about == Requirements == * Operating system: Ubuntu 18.04 bionic amd64 * Packages: git emacs In order to complete the...") |
|||
Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
This documentation deals with the Raspberry Sense Hat. | |||
== Requirements == | == Requirements == | ||
* Operating system: | * Hardware: Raspberry Pi | ||
* Packages: | * Operating system: Rasbian | ||
* Interpreter: Python or Python3 | |||
* Packages: sense-hat | |||
== Description == | == Description == | ||
This add-on board has a is packed with three sensor chips as wall as a 8 by 8 RGB Led matrix and a joystick. The Sensors are a barometer, a hygrometer and an IMU (Inertial Measurement Unit). The barometer measures the air pressure and the temperature. The hygrometer measures the humidity and the temperature as well. The used IMU holds a gyroscope, an accelerometer and a magnetometer for an accurate determination of rotation, movement and detection of magnetic fields. | |||
=== Package Installation === | |||
sudo apt-get install sense-hat | |||
== | === Python Programming === | ||
[ | The Sense Hat is mainly used via python programming. The developers also developed a sense hat programming simulation program on [https://trinket.io/sense-hat trinket.io] where you are able to test your code without owning the Sense Hat. | ||
The Project comes with two main libraries the sense_emu which is needed when using the Emulator and the sense_hat for the device. For detailed information about the library use the [https://pythonhosted.org/sense-hat/api/ documentation]. | |||
==== Importing the Libary ==== | |||
# emulator libary | |||
from sense_emu import SenseHat | |||
# sensehat libary | |||
from sense_hat import SenseHat | |||
sense = SenseHat() |
Revision as of 07:14, 12 October 2020
Summary
This documentation deals with the Raspberry Sense Hat.
Requirements
- Hardware: Raspberry Pi
- Operating system: Rasbian
- Interpreter: Python or Python3
- Packages: sense-hat
Description
This add-on board has a is packed with three sensor chips as wall as a 8 by 8 RGB Led matrix and a joystick. The Sensors are a barometer, a hygrometer and an IMU (Inertial Measurement Unit). The barometer measures the air pressure and the temperature. The hygrometer measures the humidity and the temperature as well. The used IMU holds a gyroscope, an accelerometer and a magnetometer for an accurate determination of rotation, movement and detection of magnetic fields.
Package Installation
sudo apt-get install sense-hat
Python Programming
The Sense Hat is mainly used via python programming. The developers also developed a sense hat programming simulation program on trinket.io where you are able to test your code without owning the Sense Hat.
The Project comes with two main libraries the sense_emu which is needed when using the Emulator and the sense_hat for the device. For detailed information about the library use the documentation.
Importing the Libary
# emulator libary from sense_emu import SenseHat
# sensehat libary from sense_hat import SenseHat sense = SenseHat()