SlideShare a Scribd company logo
HIGH
ALTITUDE
PYTHON
To the stratosphere and back again
Juampe López
Who I am
● I write code for embedded
Linux environments
● Maker
● Python enthusiast
● Father of two (this will be important later! :))
What I’ve done
● I’ve been writing C/C++ for a decade
● I’ve been using Linux forever
● There is a lot of things around us running
some kind of embedded Linux and I’ve
coded some of those things
What I’d actually like to do
● Robots
● Spaceships and rockets
● Some kind of robots and rockets
mash-up maybe?
What I did last february
What’s the stratosphere? Where is it?
● It’s the 2nd major layer of Earth's atmosphere
● Contains 20% of the atmosphere's mass
● It’s high but it’s not space: located between 10
km and 50 km - space starts at 100 km!
● It’s cold! Temperatures fluctuate between -55 ºC
and -5 ºC depending on the altitude (higher means
warmer)
What’s the stratosphere? Where is it?
How you can reach it (and come back safely)
1 - Ask air controllers for permission (better to be safe than sorry)
● ENAIRE is the air navigation
manager in Spain and Western
Sahara
● Public agency
● They are responsible for all
air traffic control within the
Spanish airspace
How you can reach it (and come back safely)
1 - Ask air controllers for permission (better to be safe than sorry)
● T-24h: e-mail ENAIRE
● T-30min: phone ZGZ, MAD
and BCN control towers
● T-0: phone ZGZ control tower
How you can reach it (and come back safely)
1 - Ask air controllers for permission (better to be safe than sorry)
● The air traffic controllers will produce
a NOTAM (Notice to Airmen) - an official
alert for aircraft pilots regarding
potential hazards along their flight route -
with information about your flight
How you can reach it (and come back safely)
2 - Get an insurance - people don’t like stuff falling on their heads for free
● A 300 € fee gives the project
a 900 000 € coverage for 1 year
● Just in case!
● Most incidents are related to
the balloon landing on private
property - but people are nice
and understanding!
How you can reach it (and come back safely)
3 - Buy a big balloon and fill it with helium
We got ours from:
http://www.randomengineering.co.uk/Random_Aerospace/Balloons.html
How you can reach it (and come back safely)
3 - Buy a big balloon and fill it with helium
● 7.21 m3
of helium
● ~150 €
● Should be enough for a flight
● Ascent speed around 4 m/s
How you can reach it (and come back safely)
3 - Buy a big balloon and fill it with helium
● 7.21 m3
of helium
● ~150 €
● Should be enough for a flight
● Ascent speed around 4 m/s
How you can reach it (and come back safely)
4 - Add a parachute
● Ripstop nylon
● Handmade
● ~1.1 m2
area
● Must decelerate the
capsule down to 7 m/s
● Tested in 3 flights
How you can reach it (and come back safely)
4 - Add a parachute
● Ripstop nylon
● Handmade
● ~1.1 m2
area
● Must decelerate the
capsule down to 7 m/s
● Tested in 3 flights
How you can reach it (and come back safely)
5 - Track it
● APRS - https://aprs.fi
● Spot GPS - https://www.findmespot.com/en/
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
What you can do up there
● Citizen science
● Amateur radio
● Beautiful pictures
and awesome videos
The Servet Project
● Citizen science
out of Zaragoza
● Public funding
● It involves scientists,
makers, artists and
ham radio operators
● 2 flights, 3rd one is
expected next summer
The Koroliov 3 capsule - hardware
● Raspberry Pi Zero
● GPS
● Barometer
● RTC clock
● OLED display
● 3D printed parts
The Koroliov 3 capsule - hardware
● Raspberry Pi Zero
● GPS
● Barometer
● RTC clock
● OLED display
● 3D printed parts
The Koroliov 3 capsule - hardware
● Raspberry Pi Zero
● GPS
● Barometer
● RTC clock
● OLED display
● 3D printed parts
The Koroliov 3 capsule - software
● Raspbian
● Python script
called every minute
● Data is logged with CSV
for further analysis
The Koroliov 3 capsule - the Python stuff
BMP180 is a nice I2C
barometer: it senses
atmospheric pressure
and temperature and
calculates the altitude.
The Koroliov 3 capsule - the Python stuff
The Koroliov 3 capsule - the Python stuff
DS1307 is an I2C
RTC clock that keeps
the system time using
an external battery.
Kernel driver is available!
The Koroliov 3 capsule - the Python stuff
The Koroliov 3 capsule - the Python stuff
MTK3339 is a serial GPS
capable of parsing altitude
up to 40 km.
It outputs GPS data every second
and you can read it via USB
using a USB/serial TTL converter.
The Koroliov 3 capsule - the Python stuff
There is a GPS library for
Python and also cool
command line apps like
gpsd or gpsmon.
The Koroliov 3 capsule - the Python stuff
I added an OLED display
for debugging while the capsule
was still on the ground.
The code uses the Python Image
Library to create a bitmap that
can be sent to the display via I2C.
Summary
● Near-space is cool
● Linux and Python are a safe bet for
embedded projects
● Get the job done with Python first,
optimize (if need be) later!
Thank you!
Juampe López - @jotape
https://github.com/simium/Koroliov3
And now for some eye candy...
https://youtu.be/_E96aj8H-0o
Thank you!
Q&A?
Is it already pizza time?

More Related Content

Recently uploaded

AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...CzechDreamin
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Transforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXTransforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXUXDXConf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 

Recently uploaded (20)

AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Transforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXTransforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UX
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

High Altitude Python

  • 1. HIGH ALTITUDE PYTHON To the stratosphere and back again Juampe López
  • 2. Who I am ● I write code for embedded Linux environments ● Maker ● Python enthusiast ● Father of two (this will be important later! :))
  • 3. What I’ve done ● I’ve been writing C/C++ for a decade ● I’ve been using Linux forever ● There is a lot of things around us running some kind of embedded Linux and I’ve coded some of those things
  • 4. What I’d actually like to do ● Robots ● Spaceships and rockets ● Some kind of robots and rockets mash-up maybe?
  • 5. What I did last february
  • 6. What’s the stratosphere? Where is it? ● It’s the 2nd major layer of Earth's atmosphere ● Contains 20% of the atmosphere's mass ● It’s high but it’s not space: located between 10 km and 50 km - space starts at 100 km! ● It’s cold! Temperatures fluctuate between -55 ºC and -5 ºC depending on the altitude (higher means warmer)
  • 8. How you can reach it (and come back safely) 1 - Ask air controllers for permission (better to be safe than sorry) ● ENAIRE is the air navigation manager in Spain and Western Sahara ● Public agency ● They are responsible for all air traffic control within the Spanish airspace
  • 9. How you can reach it (and come back safely) 1 - Ask air controllers for permission (better to be safe than sorry) ● T-24h: e-mail ENAIRE ● T-30min: phone ZGZ, MAD and BCN control towers ● T-0: phone ZGZ control tower
  • 10. How you can reach it (and come back safely) 1 - Ask air controllers for permission (better to be safe than sorry) ● The air traffic controllers will produce a NOTAM (Notice to Airmen) - an official alert for aircraft pilots regarding potential hazards along their flight route - with information about your flight
  • 11. How you can reach it (and come back safely) 2 - Get an insurance - people don’t like stuff falling on their heads for free ● A 300 € fee gives the project a 900 000 € coverage for 1 year ● Just in case! ● Most incidents are related to the balloon landing on private property - but people are nice and understanding!
  • 12. How you can reach it (and come back safely) 3 - Buy a big balloon and fill it with helium We got ours from: http://www.randomengineering.co.uk/Random_Aerospace/Balloons.html
  • 13. How you can reach it (and come back safely) 3 - Buy a big balloon and fill it with helium ● 7.21 m3 of helium ● ~150 € ● Should be enough for a flight ● Ascent speed around 4 m/s
  • 14. How you can reach it (and come back safely) 3 - Buy a big balloon and fill it with helium ● 7.21 m3 of helium ● ~150 € ● Should be enough for a flight ● Ascent speed around 4 m/s
  • 15. How you can reach it (and come back safely) 4 - Add a parachute ● Ripstop nylon ● Handmade ● ~1.1 m2 area ● Must decelerate the capsule down to 7 m/s ● Tested in 3 flights
  • 16. How you can reach it (and come back safely) 4 - Add a parachute ● Ripstop nylon ● Handmade ● ~1.1 m2 area ● Must decelerate the capsule down to 7 m/s ● Tested in 3 flights
  • 17. How you can reach it (and come back safely) 5 - Track it ● APRS - https://aprs.fi ● Spot GPS - https://www.findmespot.com/en/
  • 18. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 19. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 20. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 21. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 22. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 23. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 24. What you can do up there ● Citizen science ● Amateur radio ● Beautiful pictures and awesome videos
  • 25. The Servet Project ● Citizen science out of Zaragoza ● Public funding ● It involves scientists, makers, artists and ham radio operators ● 2 flights, 3rd one is expected next summer
  • 26. The Koroliov 3 capsule - hardware ● Raspberry Pi Zero ● GPS ● Barometer ● RTC clock ● OLED display ● 3D printed parts
  • 27. The Koroliov 3 capsule - hardware ● Raspberry Pi Zero ● GPS ● Barometer ● RTC clock ● OLED display ● 3D printed parts
  • 28. The Koroliov 3 capsule - hardware ● Raspberry Pi Zero ● GPS ● Barometer ● RTC clock ● OLED display ● 3D printed parts
  • 29. The Koroliov 3 capsule - software ● Raspbian ● Python script called every minute ● Data is logged with CSV for further analysis
  • 30. The Koroliov 3 capsule - the Python stuff BMP180 is a nice I2C barometer: it senses atmospheric pressure and temperature and calculates the altitude.
  • 31. The Koroliov 3 capsule - the Python stuff
  • 32. The Koroliov 3 capsule - the Python stuff DS1307 is an I2C RTC clock that keeps the system time using an external battery. Kernel driver is available!
  • 33. The Koroliov 3 capsule - the Python stuff
  • 34. The Koroliov 3 capsule - the Python stuff MTK3339 is a serial GPS capable of parsing altitude up to 40 km. It outputs GPS data every second and you can read it via USB using a USB/serial TTL converter.
  • 35. The Koroliov 3 capsule - the Python stuff There is a GPS library for Python and also cool command line apps like gpsd or gpsmon.
  • 36. The Koroliov 3 capsule - the Python stuff I added an OLED display for debugging while the capsule was still on the ground. The code uses the Python Image Library to create a bitmap that can be sent to the display via I2C.
  • 37. Summary ● Near-space is cool ● Linux and Python are a safe bet for embedded projects ● Get the job done with Python first, optimize (if need be) later!
  • 38. Thank you! Juampe López - @jotape https://github.com/simium/Koroliov3
  • 39. And now for some eye candy...
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 51. Thank you! Q&A? Is it already pizza time?