I´m thinking about getting an Sensehat and im praticing but had an like issue, I use the emulator and print the roll into the console when I turn the rollof the raspi to say 60° everythink is fine but when I turn it to like -171° it displays this : “(‘roll: ‘, 189.01, ‘x: ‘, 9)” (just take a look on the bold part) I know after 180° it continues but how can I like change it to like really be -171° I had the idea of doing like for I in range(181, 360): “do math stuff and put an ‘-‘ in front”

but that would be soo much mowrk stuff todo is there a easier way? .-.

grettings Fabian

put on hold as unclear what you’re asking by MilliwaysDarth Vader 19 hours ago

Please clarify your specific problem or add additional details to highlight exactly what you need. As it’s currently written, it’s hard to tell exactly what you’re asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

  • what is a roll? … what does do math stuff mean? … you asked only one question, and it is nonsense … please ask a real question – jsotola yesterday
  • i reread your post several times …. it appears that you are asking a simple arithmeric question that has nothing to do with RPi and nothing to do with programming …. please clarify what it is that you are asking – jsotola yesterday
  • @Fabian, I feel jealous that you have a senseHat. I read about it in MagPi and also in the news. But I am too poor to afford one. Perhaps I should google and learn, and try to DIY one. Sense HAT – an add-on board for Raspberry Pi, made especially for the Astro Pi mission raspberrypi.org/products/sense-hat – tlfong01yesterday    
  • I googled to refresh my memory. raspberrypi.org/products/sense-hat Sense HAT add-on board for Rpi, made especially for the Astro Pi mission – it launched to the International Space Station in Dec 2015 – and is now available to buy. Has 8×8 RGB LED matrix, a five-button joystick and includes the following sensors: Gyroscope, Accelerometer, Magnetometer, Temperature, Barometric pressure, Humidity, We’ve also created a Python library providing easy access to everything on the board. Wow, so it is GyroAcceleroMagnetoBaroHumid (11or 12 DOF?), python, … Still pythoning in space? – tlfong01 yesterday   
  • To make sure if SH is 10 DOF, I read: 9-DOF for Rpi raspberrypi.stackexchange.com/questions/74865/…Now I am pretty sure SenseHat is 11DOF!. So E14 selling HK$400 is good buy. Need to try my MEMS GyroAccelero soon. Perhaps I should revise my playing notes and see if I can answer @Fabian’s question. He says roll 60 degrees is OK, but no luck when over 180 degrees, or negative something? But I forgot my TRIGONOMETRY. Should youTube again. 🙂 youtube.com/watch?v=R4GLAKEjU4w – tlfong01 23 hours ago   



  1. I am using Trinket emulator to play with SenseHat.
  2. Rolling to 60° is good, but -171° gives somethings like -189°. Why?


Let me see. I read about SenseHat in MagPi, but I have never seen the real thing, or played with the fake thing using an emulator. Perhaps now I can start playing with the fake thing first, and buy the real thing later.

Now I am playing with trinket on Chinese Windows 10. I wrote a little program to print time and found everything OK, except it is python 2.7, not 3.0. I need to find out how to do python 3.0

Chinese Win10 trinket time

/ to continue, …


Trinket Home Page

Trinket Python Modules

Trinket SenseHat

Trinket Free and Paid Plans

/ to continue, …


Appendix A – Trinket Introduction Web Page

Code the Sense HAT in Your Browser! New from Trinket and the Raspberry Pi Foundation: Explore Your World with Sensors and Python, …

Trinket SenseHat Home Page

Trinket SenseHat

Appendix B – Trinket Python Program – Time

Trinket time

/ to continue, …

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: