Wednesday 12 August 2015

Getting Started with a Space Project

This is a blog post I wrote for the STEMN website

How The OzQube-1 Project Began

Background

When you see all the awesome projects on the Internet, social media or even the news, you get caught up in the amazement and wonder of what the project is or has achieved. People sometimes forget that they all had to start somewhere. They were all just an idea in someone's mind, and at some point, that idea needed to emerge into the physical world. I wanted to share the background of my project with the STEMN community, and to give readers some tips on getting started.
In case you're not familiar with my project, it's called "OzQube-1" . It's a tiny PocketQubesatellite that I'm building it in my back shed. Although to be fair, just the development and assembly of the prototype has been in the back shed! Its mission is to capture images of Australia from space, and transmit those images back down to earth to anyone that wants to listen. It's made news on ABC Radio here in Australia, one of the leading Science news websites Phys.Org , and even a prime time Current Affairs TV show - Today Tonight .
But how did I get started? Why did I decide to do this particular project? Lets go back a few years.....
If you're reading this, then I'm probably safe to assume that you've heard of the Mars Science Laboratory, also known as "Curiosity." It was the first space mission that I'd really taken an interest in. I couldn't tell you exactly when I got that space bug, but the it was somewhere between the launch and when it landed on Mars, a little over 3 years ago in August 2012. By the time Curiosity had landed, I was well and truly on my way to being a space nerd. I had become so excited about things that I even got my colleagues at work to watch the live stream for the landing! Following that event, one of my colleagues would regularly ask me "How's your mate on Mars?", at which point I'd update him on the latest images or discoveries. 
Not content with one space mission, I subscribed to a popular internet forum that deals with all things space, to get my fix of information for missions both old and new. The Internet has made information on all types of space missions much more accessible, yet many of the hands-on details and know-how surrounding these missions still remained  locked up by government agencies, under the belief that the transfer of knowledge relating to satellite systems needed to be regulated just like the trafficking of arms. One area, however, contained an abundance of reference material - Cubesats. By 2013, the Cubesats had been in orbit for more than 10 years. Various Universities (Colleges), companies and government organisations had launched a number of satellites based on the Cubesat form factor, specifically for research and scientific benefits. This has resulted in a large number of papers and theses being written, detailing the cubesat subsystems, operational performance and mission details. This was a goldmine for a space information junkie like myself! But at this point, I was not considering starting a project of my own.
In late July 2013, a company called Planetary Resources started a Kickstarter campaign to fund a space telescope that would be publicly accessible, and have a second camera and a screen onboard. The screen would be used to display a selfie that people uploaded via the web, and the second camera would capture an image of  the earth with their image in the foreground. Here was a company that really wanted people to get involved in space exploration, so I became a supporter of the campaign, and began to follow their progress.
Not long after the Planetary Resources Kickstarter, another space related campaign started. This one had an interesting title - "Want to build a satellite but dont have a NASA sized budget?". The campaign was part of the launch of a new online store that supplied structures for a new type of satellite called a "PocketQube". This was the first time I had heard of a PocketQube. Even though these satellites were designed to be more affordable that Cubesats, the structures on offer as part of the campaign were still something that you'd only consider if you were serious about building a satellite. They're not something that you'd buy just for interests sake (they were about $500AUD). But the potential for the electronics inside it was something that appealed to me. Not only had I been getting obsessed with space, I'd started to listen to a podcast called "The Amp Hour" during my daily commute, and was keen to learn about how to use electronics design tools to make custom circuit boards. Still, a satellite seemed a bit too complex. I had recently made my first RC quad-copter, and was thinking about giving the controller an upgrade with GPS etc, ready to turn it into a proper drone.
Very soon after the PocketQube Shop campaign, the first 4 PocketQube satellites werelaunched into orbit. One of the PocketQubes was called $50Sat. It was designed and built with the name in mind, although I found out subsequently that the cost to make it was more like $250. It used commodity components and it took advantage of low cost electronic prototyping. The creators of the satellite had made a lot of the details of their project available on the internet, so I learnt that it was fairly easy to listen to the telemetry being transmitted. I ended up buying the required equipment, which was one of those USB TV tuner dongles, along with a modest antenna and a cable or 2. I was then able to receive the telemetry from this satellite while sitting in my lounge room (My wife thinks I look quite amusing waving an antenna around in the air, waiting to hear the alien sounding transmissions.) But still, I wasn't thinking about making my own satellite
I kept in touch with the person behind the PocketQube Shop - Tom Walkinshaw. We traded emails and discussed things like the need for a standardized circuit board and backplane connector to make up the stack inside the PocketQubes. He put me in touch with a group of enthusiasts around the world, and together we managed to arrive at some kind of consensus - the PQ60 standard. Throughout this process, I really wanted to keep the hobbyist - i.e. myself - in mind so that the specifications wouldn't  exceed the skill level or affordability that comes with doing things at the hobbyist level. I had started to use some EDA tools (like Eagle) to make sure I could route the traces on the circuit board to and from the main connector. 
It was around this time that I had come to the realization that I believed that I could build myself a satellite. All I needed to do was work out exactly what to put in it, how to get it all working together, then actually build it..... Sounds simple!

How to get started

So we're finally at the point where I stopped just thinking about making a satellite. It was time to start creating something. It was time to start the project. Little did I realise that I had already started. Here are my steps or tips to starting a space project.

The first step to getting started is passion. Passion is the thing that inspired you in the first place, and it is the thing that keeps you going. It drives you to learn about things that you haven't done before, and to pick up the pieces when you make mistakes. There are often other motivations for doing a space project, but to stick with it and see it through, you have to be passionate.

What happens next? I know this is going to sound pretty out there, but the next step is to actually start.... It's time to take all those thoughts that have been swirling round your head and get them out into some kind of coordinated order. You've heard of "back of the envelope" calculations? Well, put them onto a proper piece of paper! (or spreadsheet.....unless you're old school!) Create yourself a high level concept and work out the key components. See if you can create a single page summary of the project. You don't need to know all the details yet, you just need to understand what the aim of the project is and what is it going to do. 
From this point, you should be able to break down the project into smaller chunks. Think of  your main project as a collection of smaller projects, each one with a specific purpose. This is where you start looking at the resources that you have, have access to, or need to obtain. What parts are you able to complete yourself? Who are your team members? What skills can they contribute? It's around this point where you do the old feasibility analysis. Based on all the information you've gathered and the breakdown you've worked out, is the project achievable? Do you need to just focus on some of the smaller projects? Sometimes, the smaller projects are just as important in their own right. It would be better to complete a smaller project than have an unfinished bigger one.
Once you've got your long list of smaller projects, it's time to start getting into the nitty gritty and start the technical side of things. You know - hard facts and numbers, creating technical designs and making actual hardware. That sort of thing. Its up to you how this part is managed. Big projects may need proper Project Management. Small ones may just be worked on in your spare time. That's up to you, and that's well past the scope of this blog post!

So......Summary?

If the above was a little long-winded, here's a short summary for you to end on.
  • You've got to want to do something (you wouldn't be reading this if you didnt!) 
  • Be passionate about the project. Know what you want to achieve.
  • Get the high level plans onto paper, or computer. Summarize the project.
  • Break it down into smaller, manageable chunks.
  • Start something amazing!
  • I hope that this post helps at least one of you out there. It may not work for all of you, but it is how I see things through what I've experienced creating my own space project. Please leave me feedback in the comments, and follow my project here on STEMN, or on Twitter andFacebook . If you want to help get my project into space, please consider donating via myGoFundMe campaign

    Wednesday 17 June 2015

    Backyard Shed In the Media

    After presenting at the Australian Cubesat Workshop in April, the news about OzQube-1 had started to spread! It was picked up on by a local journalist who made contact with me. He said that he'd like to write an article for a newsletter that he publishes (Tiros Space Information), and that he also writes for the US based SatMagazine.
    We did the interview, and he took a few photos. The results are here:
    http://www.satmagazine.com/story.php?number=1481898241

    Following the appearance in the newsletter, I was contacted by another journalist who was representing ScienceNetwork Western Australia (SNWA). SNWA is produced by Scitech, the state’s science and technology centre and supported by the WA Government’s Office of Science via the Department of the Premier and Cabinet. So it's kind of a big deal here in Western Australia.

    The article hit the website on 15th June 2015
     "DIY satellite launches from backyard shed to lower orbit"
    The media reach from this was unexpected! The article was aggregated by Phys.org - http://phys.org/news/2015-06-diy-satellite-backyard-orbit.html

    And to top it off, the "Inside Cover" editorial in the only daily Perth based newspaper - The West Australian, picked up on it. Here's what page 2 of the paper looks like:
    As a bonus, the resident cartoonist - Dean Alston, drew a  cartoon with a humorous take on backyard launches!

    I had always wanted to try and inspire others with my project, so hopefully this media coverage will help with that goal. The humble backyard shed is where many great things can start!

    Sunday 7 June 2015

    OzQube-1 CDH Design Complete

    I had joked on social media that the CDH had passed the KDR - The Kitchen Design Review. For those not in the know, this is a play on the name of the Critical Design Review (CDR) phase often used in aerospace. In my case, I was being very literal - I reviewed the design in the kitchen! I have settled on a final design for the first revision of the OzQube1 CDH ( Command and Data Handling) board. This is the brains of the satellite. It co-ordinates the recording of data from the various sensors including the camera and the transmission and reception of data from the radio. So what's inside?

    The OzQube-1 CDH

    The brains of OzQube-1 starts with an Atmel ATmega328P Microcontroller. This is the same microcontroller used in many Arduino boards, and is closest in design to the Arduino Pro Mini 3.3V . It is an 8-bit microcontroller that runs at a leisurely 8 MHz. It has a "massive" 2 Kilobytes of SRAM, and 32 Kilobytes of flash memory. So it's a long way from something like your mobile phone or your computer.

    In order to store the image data coming from the camera, a Micro-SD card is also incorporated onto the board. The Micro-SD can also be used to store telemetry data if required.

    The next piece is the 9-axis motion tracking IC from Invensense - The MPU-9250. It contains a 3-axis Gyroscope, a 3-axis Accelerometer and 3-axis Compass. This is used to determine the satellites orientation, and the measure the strength of the earth's magnetic field. 

    The next critical piece is the RTC (Real Time Clock). This, as the name suggests, is a clock. It can measure time more accurately that the microcontroller can, and uses a lot less power doing it. Unfortunately, because a satellite needs to have all power removed until it is deployed from the launch vehicle, it isn't possible to set the time in advance. It will only start counting once it has been deployed. It is possible to set the time remotely, but as there's no GPS onboard OzQube-1, the time will only be an approximation.
    The RTC provides another very useful function, which is a countdown timer. The RTC can alert the microcontroller once a specific period has passed. It is important to do this external to the microcontroller, as microcontroller can sometimes get a bit "distracted" performing other tasks, leading to incorrect time measurements.

    The remainder of the CDH is the local power supply arrangement. This includes a Watchdog Timer, which will reset the microcontroller if it hasn't toggled one of its inputs within a specified time. The electronics of the CDH are all 3.3V, but the EPS and Battery have a few different outputs. The EPS provides a regulated 3.3V for the CDH. This is the primary power source. If, for some reason, the 3.3V circuit fails, the CDH has its own circuit to take the battery voltage and regulate it down to the 3.3V required. This isn't as efficient as the EPS, but allows a bit of fault tolerance. Controlling all this is a small control circuit that will automatically switch and prioritise the power source.

    Expansion

    The main limit I found was the number of pins available on the microcontroller. The TQFP package of the ATmega328P has 32 pins. While I've managed to squeeze all the functionality into this design, I haven't stuck to the full PQ60 design specification. I'm not able to connect all the GPIO pins on the backplane to the microcontroller. 
    One possibility is to replace the ATmega328P with another in the Atmel family - the ATmega1284P. This is the same architecture, but has 44 pins, 4 times the flash memory capacity and 8 times the SRAM capacity. It can also be configured to use the Arduino development environment, so it can be programmed the same way. 
    Future satellites could use a different microcontroller architecture, but for OzQube-1 I wanted to stick to something that people are familiar with.

    Sunday 22 February 2015

    Basic PocketQube Power Supply

    After posting a couple of pictures on Twitter of the small power supply I'd built for PocketQubes, I thought I'd give a bit more detail in a blog post.
    Even though I'm building a different EPS (electrical power system) for my PocketQube "OzQube-1", I wanted a small power supply that could power the satellite while I am testing it.
    I had a few requirements:

    1. It needs to be able to be powered from a plug pack (wall wart) or from an external battery pack. 
    2. It has to fit into the PocketQube PQ60 form factor
    3. It needs to output 3.3V and 5V
    4. It needs to have a similar current capacity to the real spacecraft EPS
    5. Cheap
    There is actually a very common thing that already fulfils most of these requirements - the humble breadboard power supply! The main issue is that they don't fit inside a PocketQube.
    Fortunately, I have a prototyping solution that's already in the PQ60 PocketQube form factor - ProtoQube.
    All that's needed now is a few components.
    If you look at a breadboard power supply, they often have a DC jack, and a USB input. The problem with USB is that there's often a 500mA current limit. This wasn't going to work for me, so I opted for a 2 pin screw terminal input. 
    Another issue with a breadboard power supply is the the voltage regulators. These are often SOT-223 surface mount parts. This is ok for a custom made power supply, but ProtoQube has a grid of holes, so a through hole regulator is needed. In order to keep the component count down, I went with fixed value voltage regulators. There are many on the market, so I went with some that were readily available - the ST Micro LD1117V50 and LD1117V33. These just need a single bypass capacitor on the input and output, and are capable of 800mA current.
    Finishing off the power supply are some pin headers for each rail, and a LED indicator to show when power is connected. I also added a diode on the input for reverse polarity protection. Here's the schematic to show how it's all connected:
    Assembling the power supply just requires some additional solid core wire, and the components arranged like you see in the pictures.


    All that's needed now is to solder on the Hirose FX8C backplane connector, and some female pin header sockets so I can connect the power supply output to the rest of the stack!

    Friday 13 February 2015

    OzQube-1 Presentation at Australian Cubesat Workshop

    Late last year, the Australian Centre for Space Engineering Research (ACSER) announced that they were going to run a workshop titled "Launching Cubesats for and from Australia" in early 2015.

    Yessss! Finally a smallsat event in Australia that I can attend, even if it is a 5 hour plane flight away.

    After a suggestion from a Twitter follower ( Thanks @AusAndgie7 !) I made contact with the organisers to discuss the possibility of me doing a presentation about OzQube-1. As my email was sent between Christmas and New Years, the uni staff were on holidays and didn't reply straight away. But once they were back from their break, I got a reply saying that I was more than welcome to present! Now I just had to wait for further details as they arranged their schedules.

    A few days ago, all the speakers received the draft schedule, and it looks like I'm on just before Tom from the PocketQube Shop, who is going to do his talk remotely via video conference. Each speaker in the "Missions" section has a  7.5 minute slot, including questions, so I'll have to make sure I don't spoil Tom's talk! Not to mention that this is the first time I've talked about OzQube-1 to a large audience, so hopefully I do ok. I don't want to have it turn into "7.5 minutes of terror"!

    So if anyone that is interested in PocketQubes or Cubesats, and can make it to Sydney for April 1st, 2015, make sure you reserve a seat ( they're free). I'll be there all day, so come up and say "Hi!"