Go to advanced search

by MMrmcnich
Thu Apr 26, 2018 9:09 pm
Forum: Astro Pi
Topic: Pressed and Held actions in the same direction using SenseHat joystick?
Replies: 3
Views: 5692

Re: Pressed and Held actions in the same direction using SenseHat joystick?

I've not actually use the joystick but for reference https://pythonhosted.org/sense-hat/api/#joystick Others have though :-) Thanks but I have actually looked at the entire documentation and much more and however I cannot find anything on doing two different actions in the same direction. Sadly I a...
by MMrmcnich
Thu Apr 26, 2018 8:26 pm
Forum: Astro Pi
Topic: Pressed and Held actions in the same direction using SenseHat joystick?
Replies: 3
Views: 5692

Pressed and Held actions in the same direction using SenseHat joystick?

I am currently working on a weather station sort of thing for scientific use and the device is supposed to be portable so actions will happen upon joystick events while it runs off boot. Now I don't want to display too much info when the joystick is in one direction in fact I would rather have one r...
by MMrmcnich
Wed Apr 25, 2018 11:53 pm
Forum: General discussion
Topic: SenseHat Joystick not working anymore
Replies: 1
Views: 140

SenseHat Joystick not working anymore

Well I have just run into another issue the SenseHat joystick seems to have stopped working and I even wiped and reinstalled a new fresh Raspbian Stretch on. Here is the code: #!/usr/bin/python from sense_hat import SenseHat import time import sys sense = SenseHat () sense.clear() for event in sense...
by MMrmcnich
Wed Apr 25, 2018 4:02 pm
Forum: General discussion
Topic: SenseHat Magnetometer wrong, Compass is facing South and East only
Replies: 1
Views: 211

SenseHat Magnetometer wrong, Compass is facing South and East only

Hey everyone, I am having a huge problem and I am wondering if anyone can help me out. I have a compass set up using the SensetHat but it only points South and East no matter what. I ended following a tutorial online for one but it has the same issues. I did calibrate it following these instructions...
by MMrmcnich
Wed Apr 25, 2018 12:05 pm
Forum: General discussion
Topic: IMU Init Failed for Sense Hat related to compass
Replies: 3
Views: 244

Re: IMU Init Failed for Sense Hat related to compass

Is this with/without your new calibration file? Anything here https://www.raspberrypi.org/forums/viewtopic.php?f=104&t=109064&p=750616#p810193 This is an issue after the calibration and I did not do the step with removing the old file due to the fact that the old file is not in that location like t...
by MMrmcnich
Wed Apr 25, 2018 11:21 am
Forum: General discussion
Topic: IMU Init Failed for Sense Hat related to compass
Replies: 3
Views: 244

Re: IMU Init Failed for Sense Hat related to compass

Is this with/without your new calibration file? Anything here https://www.raspberrypi.org/forums/viewtopic.php?f=104&t=109064&p=750616#p810193 This is an issue after the calibration and I did not do the step with removing the old file due to the fact that the old file is not in that location like t...
by MMrmcnich
Wed Apr 25, 2018 1:42 am
Forum: General discussion
Topic: IMU Init Failed for Sense Hat related to compass
Replies: 3
Views: 244

IMU Init Failed for Sense Hat related to compass

Hello people, I have been working on a project and I just tried running my Python Script that involves the Sense Hat and I am getting an error message related to IMU Init and the compass: Traceback (most recent call last): File "/home/pi/weather_station.py", line 12, in <module> heading = sense.get_...
by MMrmcnich
Wed Apr 25, 2018 1:34 am
Forum: General discussion
Topic: SenseHat Callibration for Compass
Replies: 11
Views: 670

Re: SenseHat Callibration for Compass

Thank you both for helping me I got octave installed and everything but I am having another issue which I will be posting about separately
by MMrmcnich
Tue Apr 24, 2018 4:34 pm
Forum: General discussion
Topic: SenseHat Callibration for Compass
Replies: 11
Views: 670

Re: SenseHat Callibration for Compass

Yes I have done sudo apt-get update and upgrade and after attempting to install I got the same error message. I even wiped and restarted the sd and then followed the same steps after updating to no avail. Aha! Please do sudo apt-get update again. Then try the install. On a recent upgrade the packag...
by MMrmcnich
Tue Apr 24, 2018 4:31 pm
Forum: General discussion
Topic: SenseHat Callibration for Compass
Replies: 11
Views: 670

Re: SenseHat Callibration for Compass

Yep, I meant just before the install not an update/upgrade. You should always update/install too, especially if it didn't work. Of course that could be what you did and I can try tonight to see if it works for me (if no-one else tests). While you're posting, do you have a project in mind or just pl...
by MMrmcnich
Mon Apr 23, 2018 9:59 pm
Forum: General discussion
Topic: SenseHat Callibration for Compass
Replies: 11
Views: 670

Re: SenseHat Callibration for Compass

looks like it is there to me? https://packages.debian.org/stretch/octave I see armhf Did you sudo apt update (or sudo apt-get update) Before you tried to install? Yes I have done sudo apt-get update and upgrade and after attempting to install I got the same error message. I even wiped and restarted...
by MMrmcnich
Mon Apr 23, 2018 7:45 pm
Forum: General discussion
Topic: SenseHat Callibration for Compass
Replies: 11
Views: 670

Re: SenseHat Callibration for Compass

Answer to my own question: It looks as if octave is no longer available for raspbian stretch and it is recommended that wheezy is used for it, so if anyone needs to calibrate the sensehat and needs to use octave you need wheezy.
by MMrmcnich
Sat Apr 21, 2018 12:39 pm
Forum: Python
Topic: Ending script using joystick in Python
Replies: 7
Views: 936

Re: Ending script using joystick in Python

I have my sense hat joystick setup to shutdown my Pi, it runs headless. If I'm testing tinkering with my code I change it so it just exits my running python program but doesn't shut down. Here is the relevant bit of my code. I change x = 0 to x =1 under Action_pressed to have it just exit my progra...
by MMrmcnich
Wed Apr 18, 2018 5:01 pm
Forum: Python
Topic: Ending script using joystick in Python
Replies: 7
Views: 936

Ending script using joystick in Python

Currently I have been working on a project and I have a Python script running off boot. This script uses the SenseHat and what I want to do is to tell the script when the joystick is pressed down to clear the LED of the SenseHat and end the script. I know the code for telling it to do something it's...
by MMrmcnich
Mon Apr 16, 2018 6:46 pm
Forum: General discussion
Topic: SenseHat Callibration for Compass
Replies: 11
Views: 670

SenseHat Callibration for Compass

I am having an issue with the SenseHat where it only is picking up the East and South coordinates while setting up a compass in a python script. I have seen things online telling me to install octave to calibrate it, however I keep getting this repeated error: pi@raspberrypi:~ $ sudo apt-get install...

Go to advanced search