https://github.com/roscoe81/sensehat-level
A simple Raspberry Pi/SenseHat two-dimensional level indicator
https://github.com/roscoe81/sensehat-level
level level-sensor pitch-detection raspberry-pi raspberrypi sense-hat sensehat
Last synced: about 2 months ago
JSON representation
A simple Raspberry Pi/SenseHat two-dimensional level indicator
- Host: GitHub
- URL: https://github.com/roscoe81/sensehat-level
- Owner: roscoe81
- Created: 2019-08-27T10:19:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T10:22:44.000Z (almost 7 years ago)
- Last Synced: 2025-10-12T02:31:56.456Z (9 months ago)
- Topics: level, level-sensor, pitch-detection, raspberry-pi, raspberrypi, sense-hat, sensehat
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Northcliff SenseHat Level
This simple project uses a Raspberry Pi and a SenseHat as a two-dimensional level indicator.
It uses the SenseHat IMU to measure pitch and roll and then translates the pitch and roll into a two dimensional display on the SenseHat. The four centre pixels are set to white and the four corner pixels are set to red, when the SenseHat is level in both dimensions. The red pixels are extinguished and the white pixels shift as the SenseHat is tilted. Two corner pixels are set to red if the SenseHat is level in only one dimension.
The sensitivity of the level can be adjusted by changing the tilt_range variable.
## License
This project is licensed under the MIT License - see the LICENSE.md file for details