Difference between revisions of "Raspberry Pi: Sense Hat"

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
(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 ==  


Description what this documentation is about
This documentation deals with the Raspberry Sense Hat.


== Requirements ==
== Requirements ==


* Operating system: Ubuntu 18.04 bionic amd64
* Hardware: Raspberry Pi
* Packages: git emacs
* Operating system: Rasbian
 
* Interpreter: Python or Python3
In order to complete these steps, you must have followed [[Some Other Documentation]] before.
* Packages: sense-hat


== Description ==
== Description ==


=== Step 1 ===
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.
 
Enter these commands in the shell
 
echo foo
echo bar
 
=== Step 2 ===


Make sure to read
=== Package Installation ===


* War and Peace
sudo apt-get install sense-hat
* Lord of the Rings
* The Baroque Cycle


== Used Hardware ==
=== Python Programming ===


[[Device to be used with this documentation]]
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.
[[Maybe another device to be used with this documentation]]


== Courses ==
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].


* [[A course where this documentation was used]] (2017, 2018)
==== Importing the Libary  ====
* [[Another one]] (2018)


== References ==
# emulator libary
from sense_emu import SenseHat


* https://wikipedia.org
# sensehat libary
* https://google.com
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()