Go to advanced search

by Davespice
Mon Jan 22, 2018 10:10 am
Forum: Astro Pi
Topic: Final Team Members
Replies: 1
Views: 109

Re: Final Team Members

Hi there, yes you can do that - provided it's a minimum of two and a maximum of six members on the team.
When you submit the code you can just re-input their names on the form here.
by Davespice
Wed Jan 17, 2018 3:20 pm
Forum: Astro Pi
Topic: How to trigger the camera based on ISS location
Replies: 0
Views: 126

How to trigger the camera based on ISS location

Hi folks, I recently had a team ask how to do this so I knocked up some code to show the concept; https://gist.github.com/davidhoness/b0e18fa3595d8118d050ce5a9fed68c0 You use two-line element telemetry to calculate ISS position (refresh from http://www.celestrak.com/NORAD/elements/stations.txt) and ...
by Davespice
Wed Jan 17, 2018 3:02 pm
Forum: Astro Pi
Topic: Sense Hat Rubbish temperature accuracy
Replies: 6
Views: 2198

Re: Sense Hat Rubbish temperature accuracy

Yeah we've had some teams base their Astro Pi experiment on calibrating our the error here, some of them have gone to huge lengths to work out how much the CPU load increases it's temperature and all sorts. Because the Sense HATs that went to the Space Station had the fault we decided that everyone ...
by Davespice
Tue Jan 09, 2018 11:23 am
Forum: Astro Pi
Topic: Color in a picture
Replies: 3
Views: 183

Re: Color in a picture

Something like this would do it;

Code: Select all

from PIL import Image
import numpy

file_name = "dave.jpg"

img = Image.open(file_name)

chan_red, chan_green, chan_blue = img.split()[0:3]
arr_red = numpy.asarray(chan_red).astype('float32')

print(numpy.mean(arr_red))
by Davespice
Wed Dec 20, 2017 10:57 am
Forum: Astro Pi
Topic: sleep vs. timedelta
Replies: 2
Views: 354

Re: sleep vs. timedelta

Hi Gail Okay the point there is that some of the functions, specifically the orientation ones are based on something called a kalman filter - which is where the pitch, roll and yaw angles are stored in memory and are updated each time you read from the sensor. If you don't read the sensors often eno...
by Davespice
Tue Dec 19, 2017 8:44 am
Forum: Astro Pi
Topic: Can you measure the pH of the water vapour?
Replies: 1
Views: 257

Re: Can you measure the pH of the water vapour?

Hi there, I'm afraid not.

The humidity sensor can tell you the amount of water vapour present though.
by Davespice
Thu Dec 07, 2017 3:34 pm
Forum: Astro Pi
Topic: Mission Space Lab webinar replay (30 November 2017)
Replies: 0
Views: 291

Mission Space Lab webinar replay (30 November 2017)

Those of you who're doing Astro Pi Mission Space Lab, the replay of the webinar can be found here:
https://astro-pi.org/updates/mission-sp ... g-webinar/
by Davespice
Thu Dec 07, 2017 3:32 pm
Forum: Astro Pi
Topic: Sense HAT help
Replies: 2
Views: 346

Re: Sense HAT help

You can get started by looking through this resource: https://projects.raspberrypi.org/en/projects/getting-started-with-the-sense-hat Get a bit more familiar with everything and then look at the code example at the bottom of this page: https://pythonhosted.org/sense-hat/api/#joystick That should giv...
by Davespice
Thu Dec 07, 2017 3:20 pm
Forum: Astro Pi
Topic: Use of PyEphem
Replies: 7
Views: 641

Re: Use of PyEphem

I normally just use sudo pip3 install ephem So ephem as opposed to pyephem. You might find that installing these two packages helps sudo apt-get install libc6 libc6-dev Please also check out the Mission Space Lab webinar which explains how to use it; https://www.youtube.com/watch?v=WYjaAZcWIPg&t=7760
by Davespice
Wed Dec 06, 2017 8:43 am
Forum: Astro Pi
Topic: PiCamera as Luminosity Sensor?
Replies: 7
Views: 579

Re: PiCamera as Luminosity Sensor?

If you're happy with decoding some binary you could take pictures in raw YUV format, where Y is luminance.
More info here (including how the binary data is represented): http://picamera.readthedocs.io/en/relea ... yuv-format
by Davespice
Tue Dec 05, 2017 9:24 am
Forum: Astro Pi
Topic: Slow Astro Pi Code
Replies: 8
Views: 622

Re: Slow Astro Pi Code

Ah so, well done, so this might be your first encounter with code profiling! If you go onto be a games developer this kind of thing becomes your life. There are special tools out there which let you identify the slow parts of your code so that you can concentrate on improving them. For now though I ...
by Davespice
Mon Dec 04, 2017 8:48 am
Forum: Astro Pi
Topic: Error can't figure out "module 'sense-hat' has not attribute 'SenseHat'
Replies: 10
Views: 659

Re: Error can't figure out "module 'sense-hat' has not attribute 'SenseHat'

I might suggest to zip up the whole sensehatscripts folder and put that online for us to look at.
by Davespice
Mon Dec 04, 2017 8:46 am
Forum: Astro Pi
Topic: Slow Astro Pi Code
Replies: 8
Views: 622

Re: Slow Astro Pi Code

Hi there; Just quickly looking at your code I've identified a line which is quite computationally costly inside your main loop; Try moving this line outside of your while loop, it doesn't need to be run every time - you just need to call the compute method every time. tle_rec = ephem.readtle(name, l...
by Davespice
Tue Nov 28, 2017 9:31 am
Forum: Astro Pi
Topic: Announcing the 2017-18 European Astro Pi challenge!
Replies: 3
Views: 1204

Re: Announcing the 2017-18 European Astro Pi challenge!

Thanks to everyone who participated in Mission Zero and Mission Space Lab this year! We will be in touch soon. Those of you who missed it this year, please sign up to our mailing list to find out about next year's challenge https://astro-pi.org/#mc-embedded-subscribe-form
by Davespice
Tue Nov 28, 2017 9:25 am
Forum: Astro Pi
Topic: Error can't figure out "module 'sense-hat' has not attribute 'SenseHat'
Replies: 10
Views: 659

Re: Error can't figure out "module 'sense-hat' has not attribute 'SenseHat'

Ah, sometimes you get strange behaviour like this if you have a .py file which has the same name as a module.
Can you rename the file /home/pi/Desktop/sensehatscripts/random.py to something else? Like my_random.py and see if that makes any difference?
by Davespice
Sat Nov 25, 2017 8:40 pm
Forum: Astro Pi
Topic: Use of OpenCV
Replies: 6
Views: 720

Re: Use of OpenCV

Hi Mark Yes we were getting quite bad window reflections during night passes. This wasn't a problem for that experiment because it was programmed to discard night images anyway, but this logic was based on an average colour check and because of the reflection it meant that the night side images were...
by Davespice
Tue Nov 21, 2017 4:40 pm
Forum: Astro Pi
Topic: Life in Space - Pi NoIR orientation
Replies: 1
Views: 456

Re: Life in Space - Pi NoIR orientation

Hi Stephen So the camera is sideways in the case due to the length of the ribbon cable - if you hold the Astro Pi case looking at the camera with LED hole in the top right - this is the default "up" orientation for the camera. If you change the desktop background on your Astro Pi you should find, at...
by Davespice
Tue Nov 21, 2017 9:04 am
Forum: Astro Pi
Topic: Use of PyEphem
Replies: 7
Views: 641

Re: Use of PyEphem

Oh sorry! :)
by Davespice
Tue Nov 21, 2017 8:58 am
Forum: Astro Pi
Topic: Use of OpenCV
Replies: 6
Views: 720

Re: Use of OpenCV

Hi Mark OpenCV is currently not installed on the Astro Pi units on orbit, so we will just install whatever is the latest version. As a side note about the camera, please take note of this blog post . Particularly the blue filter (there will be one supplied with your Pi NoIR camera). The Blue filter ...
by Davespice
Mon Nov 20, 2017 9:22 am
Forum: Astro Pi
Topic: Announcing the 2017-18 European Astro Pi challenge!
Replies: 3
Views: 1204

Re: Announcing the 2017-18 European Astro Pi challenge!

Hi folks, this is the last week to participate in Mission Zero - after the 26th you'll have to wait until next September!
by Davespice
Mon Nov 20, 2017 9:20 am
Forum: Astro Pi
Topic: Use of PyEphem
Replies: 7
Views: 641

Re: Use of PyEphem

Hi Mark I'll be explaining this during the webinar (which your teacher will get an email about soon). But basically if you get chosen for space-flight a few minor modifications are made to your code to make it obey the Astro Pi MCP (Master Control Program). As part of those edits, if I see your code...
by Davespice
Mon Nov 20, 2017 9:16 am
Forum: Astro Pi
Topic: Use of OpenCV
Replies: 6
Views: 720

Re: Use of OpenCV

Hi there

OpenCV was used on the Astro Pi units during the Peake mission in 2016. So there's no problem with requiring it, we're expecting a lot of teams to want to use it.

Many thanks

Dave
by Davespice
Wed Nov 01, 2017 9:22 am
Forum: Astro Pi
Topic: AstroPi Mission Zero Certificates
Replies: 1
Views: 587

Re: AstroPi Mission Zero Certificates

Have you shown them this video? https://vimeo.com/172737314 You will receive an email with links to download PDF certificates for each of the teams that submitted using your classroom code. We haven't finalised the design just yet but my plan is for them to show a map of the world with an ISS icon s...
by Davespice
Wed Nov 01, 2017 9:18 am
Forum: Astro Pi
Topic: Looking for team
Replies: 1
Views: 551

Re: Looking for team

Did you manage to find anyone?
by Davespice
Wed Nov 01, 2017 9:16 am
Forum: Astro Pi
Topic: Announcing the 2017-18 European Astro Pi challenge!
Replies: 3
Views: 1204

Re: Announcing the 2017-18 European Astro Pi challenge!

Update. Mission Space Lab registration is now closed, those of you who submitted an idea should receive an email from the European Space Agency by 7 November to let you know if you've been selected for phase two. If so then shortly after a free Astro Pi kit will be shipped to you. Mission Zero is s...

Go to advanced search