Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Astro Pi @ campug

Astro Pi @ campug

Ben Nuttall

July 02, 2019
Tweet

More Decks by Ben Nuttall

Other Decks in Education

Transcript

  1. Astro Pi: Python on the International Space Station Ben Nuttall

    Raspberry Pi Foundation UK Charity 1129409
  2. @ben_nuttall Ben Nuttall • Technical Programme Manager at Raspberry Pi

    Foundation • Based in Cambridge office (here) • Creator of GPIO Zero and piwheels • Columnist on opensource.com • github.com/bennuttall • twitter.com/ben_nuttall • [email protected]
  3. @ben_nuttall What is Astro Pi? • Raspberry Pi 1B+ •

    Sense HAT • Camera module V1 (VIS/IR) • Space-grade aluminium case
  4. @ben_nuttall Sense HAT • Temperature • Humidity • Pressure •

    Gyroscope • Magnetometer • Accelerometer • 8x8 RGB LED display • Mini joystick
  5. @ben_nuttall Camera module • 5Mpx • 1080p30, 720p60 and 640

    × 480p60/90 • 2592 × 1944 pixels • Visible light and infra-red versions available
  6. @ben_nuttall Astro Pi competition • Competitions for young people in

    ESA member states (most of EU, plus Canada) • "Your code in space" • Mission Zero / Mission Space Lab • Running since 2015
  7. @ben_nuttall Mission Zero • 30 seconds runtime on the ISS

    • "Hello world" in space – pixel art and messages, with conditionals • Access to sensors but not camera • No data logging • Submit through web emulator on trinket.io
  8. @ben_nuttall Mission Space Lab • 3 hour runtime on ISS

    • Science experiment • Idea phase; code phase; experiment run phase; analysis and report phase • Two themes: Life on Earth / Life in Space
  9. @ben_nuttall How do we access or update them? • Launched

    with Raspbian Wheezy SD cards • Ran first competition with no LAN access, and no upgrade plan • On Tim Peake’s last day in space, he had a task to connect an ethernet cable • Astro Pis are now on the station LAN (not the internet) – ground connection now possible
  10. @ben_nuttall How do we access or update them? • To

    update the SD card: • Prepare image • Get image security hardened • Paperwork • Image gets uplinked to station laptop • Astronaut follows procedure to write image to SD card • Astronaut inserts SD card and connects power
  11. @ben_nuttall OS upgrades • Raspbian Wheezy Raspbian Jessie → Raspbi

    • Raspbian Jessie Raspbian Stretch → Raspbi • Raspbian Stretch Raspbian Buster (next) → Raspbi
  12. @ben_nuttall Sending code to space • Code uploads are separate

    from SD card image uploads: • Send zipfile • Send paperwork • Upload via scp • Hope it works :) • If not, read the syslogs...
  13. @ben_nuttall Mission Space Lab ideas • Detect crew presence with

    sensors • Log data to see what happens • Environmental - check ISS conditions • Time-lapse • Global issues e.g. climate change • Wildfires • Forest depletion • Greenery • Shrinkage of lakes
  14. @ben_nuttall Mission Space Lab - libraries • picamera, sense_hat •

    Pyephem, reverse_geocoder • GDAL (Geospatial Data Abstraction Library) • numpy, Scipy, Pandas • Tensorflow, opencv, scikit-learn, scikit-image
  15. @ben_nuttall Third mission? • In-between Mission Zero and Mission Space

    Lab • Time commitment • Difficulty • No ISS involvement • Using existing data and photos • Small periodic challenges, drop in and out
  16. @ben_nuttall Data captured • CSV of all sensors for 24

    hours (8 batches of 3- hour runs) • Time-lapse of photos
  17. @ben_nuttall How can you help? • Talk to me today

    • Share your ideas and interest • Mentor a young person or group when the challenges launch • Volunteer at a Code Club or CoderDojo • Watch astro-pi.org and @Raspberry_Pi / @astro_pi on Twitter for updates
  18. Astro Pi: Python on the International Space Station Ben Nuttall

    Raspberry Pi Foundation UK Charity 1129409