Rotation Sensing Content Demo
This package shows how the BNO055 sensor from Adafruit can be used to build content that reacts to rotation changes. Right now it's a simple video player that endlessly plays a single video and overlays a scaling Hello World text. Of course more complicated integrations could be done. It's really only limited by your imagination. Here's a small demo:
Hardware setup
You can see the required wiring in the following picture:
If you don't have a breadboard you can also connect the PS1 input to the other 3.3V output pin on the Pi.
The package service uses the BNO055.py module. A minor modification has been made so it works with the info-beamer GPIO code in hosted.py.
info-beamer setup
You'll need info-beamer OS version 10 running on your device. Right now that's only available in the testing channel. You can easily upgrade your device on the device page (Manage > Activate testing channel).
In addition you'll need to enable UART. For that create the file config/userconfig.txt on the SD card of your info-beamer device and add the following content:
enable_uart=1
dtoverlay=uart1
Once all that's done, you're ready to run this package: Import it (just click the import link above) and create a setup. Set a video and then assign the setup to your device. After a few seconds the background service should start running and keep the current rotation updated.
Want to run Rotating Video Demo on your Raspberry Pi?
This package is ready to run on your Raspberry Pi using info-beamer.com hosted. Easily manage unlimited number of Raspberry Pi devices and centrally configure and run visualizations like this on them. info-beamer.com is a prepaid service. You only pay for the resources you are using. No long term commitment, no hidden fees. Learn more...
Compatible devices
pi-1 pi-2 pi-3 pi-cm1 pi-cm3 pi-zero pi-zero-2Offline support
Maybe This package might work offline: Package provides no offline support information. Also check the information above.Source code for this package
https://github.com/info-beamer/package-bno055-demo shows you the full source code of this package so you can freely modify it if you want.Copyright
Copyright (C) 2018 Florian Wesch <fw@info-beamer.com> Show full license information
Copyright (C) 2018 Florian Wesch <fw@info-beamer.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This project includes third party work: sensors_raspberry_pi_bb.png: CC BY 3.0 https://learn.adafruit.com/assets/26600 OpenSans-Bold.ttf Apache License 2.0 http://www.apache.org/licenses/LICENSE-2.0 https://fonts.google.com/specimen/Open+Sans BNO055.py: The MIT License (MIT) https://github.com/adafruit/Adafruit_Python_BNO055 Copyright (c) 2015 Adafruit Industries Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE