LWN.net Logo

ABS: Android in space

By Jake Edge
February 20, 2013

The Linux Foundation's Rudolf Streif introduced one of the morning keynotes at the 2013 Android Builders Summit (ABS) by noting that androids in space have a long history—at least in science fiction like Star Wars. He was introducing Dr. Mark Micire of the US National Aeronautics and Space Administration (NASA) Ames Research Center, who recently led a project that put the Android operating system into space in the form of an "intelligent space robot" that currently inhabits the International Space Station (ISS). Micire brought the tale of how that came about to the first day of ABS on February 18 in San Francisco.

[Mark Micire]

He started off by expressing amazement at what the community has done with Android that takes it far beyond its mobile phone roots. He has several different versions of his talk, but when he looked at the talk descriptions for ABS, he quickly realized that the "geeky version" would be right for the audience. A video provided the high-level view of the project, starting with the liftoff of the last space shuttle, which carried the first version of the robots to the ISS, to a description of using a Nexus S smartphone to communicate with and control the robot. The idea is to have a robot available to both the crew and the ground-based operations staff to take over some of the menial tasks that astronauts currently have to perform.

Some history

The spherical light saber trainer seen on the Millennium Falcon in Star Wars was the inspiration for several different space robot projects over the years, Micire said. That includes the "personal satellite assistant" (PSA) which was developed by the NASA Ames Research Center. It had a display screen, two-way audio, a camera, and useful tools like a flashlight in a roughly spherical package. Similarly, the Johnson Space Center created the AirCam that could fly around the shuttle in space to take photographs and video of the spacecraft. The AirCam actually flew on the shuttle in 1987, but both projects were eventually canceled.

Micire's project evolved from a senior project at MIT, which created roughly spherical satellite simulators to be used for experimenting with synchronized satellite maneuvers. The algorithms to do those kinds of maneuvers need to be developed in some cases, but it is expensive to test new algorithms with actual satellites. The MIT SPHERES (Synchronized Position Hold, Engage, Reorient Experimental Satellites) project used volleyball-sized robots that could be flown inside the ISS to test these algorithms.

The SPHERES robots have a tank of carbon dioxide to use as propellant, much like a paintball gun. In fact, when they need refilling, Micire has sometimes taken them to Sports Authority (a US sporting goods store) to the puzzlement of the clerks there. The CO2 is routed to thrusters that can move the robot in three dimensions.

A Texas Instruments DSP that is "a decade old at this point" is what runs the SPHERES robot. There is a battery pack to run the CPU and some ultrasonic receivers that are used for calculating position. That pack uses standard AA batteries, he said, because lithium-ion and other battery types can explode in worst-case scenarios, which makes it difficult to get them aboard a spacecraft. It is easy to "fly AA batteries", though, so lots of things on the ISS run using them. Since the cost of getting mass to low earth orbit is high, he said that he doesn't even want to contemplate the amount being spent on resupplying AA batteries to the ISS.

The robot also has an infrared transmitter that sends a pulse used by the controller of ultrasonic beacons installed in an experimental lab area of the ISS. The IR pulse is seen by the controller, which responds by sending several ultrasonic pulses at a known rate. The receivers on the SPHERES pick that signal up; using the known location of the transmitters and the speed of sound, it can then triangulate its position within the experimental zone, which is a cubical area six feet on a side. Micire showed video of the SPHERES in action on the ISS. He played the video at 4-6x normal speed so that the movement wasn't glacial; NASA safety engineers prefer not to have high-speed maneuvering via CO2 jets inside spacecraft.

[Mark Micire]

The NASA Human Exploration and Telerobotics (HET) project that Micire runs wanted to create robots that could handle a number of different tasks in space that are currently done by astronauts. The idea is to provide both the crew on the station and the team on the ground with a useful tool. Right now, if there is an indicator light on a particular panel in the station and the ground crew wants to know its state, they have to ask a crew member to go look. But a robot could be flown over to the panel and relay video back to the ground, for example.

The HET team was faced with the classic decision of either rolling its own controller for the Smart SPHERES or buying something "commercial off the shelf" (COTS). The team didn't have a strong opinion about which choice was better, but sat down to list their requirements. Those requirements included sensors like a gyroscope, camera, accelerometer, and so on, in a package with a reasonably powerful CPU and a fair amount of memory and storage. While Micire was worriedly thinking "where are we going to find such a device?", he and the team were all checking their email on their smartphones. It suddenly became obvious where to find the device needed, he said with a chuckle. Even NASA can't outrun the pace of the mobile phone industry in terms of miniaturization and power consumption, he said.

Flight barriers

There are a lot of barriers to getting a device "space rated" so that it can fly on the ISS (or other spacecraft). The engineers at NASA are concerned about safety requirements, and anything that could potentially "deorbit the station" are of particular concern. HET wanted to go from a concept to flight in roughly a year; "that's insane", Micire said, as it normally requires 2-3 years from concept to flight because of safety and other requirements.

But using a mobile phone will help speed the process. Right about the time a platform was needed, he heard about the Nexus S ("bless the internet!") being released. It had just what was needed, so he and a colleague "camped out" in line at the Mountain View Best Buy to get numbers 11 and 12 of the 13 that were delivered to that store.

The first thing they did to these popular and hard-to-get new phones was to tear them apart to remove the ability to transmit in the cellular bands. For flight safety, there must be a hardware mechanism that turns off the ability to transmit. Removing the driver from the kernel was not sufficient for the safety engineers, so a hardware solution was needed. They decided to remove the transmit chip from the board, but it was a ball-grid-array (BGA) part, so they heated one of the boards to try to do so. The first attempt resulted in an "epic fail" that ruined the phone, but the attempt on the second board was successful. Now, pulling that chip is the first thing done to new phones to get around that "airplane mode problem".

The next problem they faced was the batteries. As he mentioned earlier, lithium-ion is problematic for space; it takes two years to get those kinds of batteries certified. Instead they used a "space certified" AA battery holder, adding a diode that was used to fool the battery controller on the phone. Micire said that he did a bit of "redneck engineering" to test the performance of the AA batteries over time: he taped the phone to his laptop and pointed its camera at voltage and current meters hooked up to the battery pack. The phone ran a time-lapse photo application, and he transcribed the data from that video into a spreadsheet. He found that the phone will run well for seven hours using six AA batteries.

In the micro-gravity environment in the ISS, broken glass is a serious problem. It can "become an inhalant", for example. Something had to be done about the display glass so that breaking it would not result in glass fragments. Micire thought he had the perfect solution by putting acrylic tape over the display, but it turns out that tape is flammable, so it was deemed unsuitable. In the end, Teflon tape fit the bill. He showed some graphic photographic evidence of what was done to a phone "in the interests of science" to prove to NASA safety engineers that a broken screen would not cause a hazard.

[Smart SPHERES]

The phone interfaces to the SPHERES over a USB serial connection because the TI DSP doesn't support anything else. The phone and battery holder are then essentially taped to the side of the robot, as can be seen at right.

The team had "no time for software", Micire said, but "Cellbots saved our lunch" with a data logging app for Android. In order to test the Nexus S sensors in space, they needed a way to log the sensor data while the Smart SPHERES were operating. It turns out that asking Samsung what its accelerometer does in micro-gravity is not very fruitful ("we don't know, you're from NASA"). Sampling every sensor at high frequency and recording the data would allow them to figure out which sensors worked and which didn't.

For any part that is used in an aircraft or spacecraft, a "certificate of conformance" is required. That certificate comes from the supplier and asserts that the part complies with the requirements. It's fairly easy to get that from most suppliers, Micire said, but Best Buy is not in that habit. In a bit of "social hacking", they showed up at the store five minutes before closing time, cornered a very busy manager, and asked them to sign a piece of paper that said "a Nexus S is a Nexus S"—after a puzzled look as another store employee bugged them for attention, the manager simply signed the certificate.

It turns out that all of the computers on the ISS run Windows XP SP 3, which means there is no driver to talk to the Nexus S. Since it would take 2-3 years to get a driver certified to be installed on those machines, another solution had to be found. They ended up writing an app that would kick the phone's USB into mass storage mode prior to the cable being plugged into the computer. Because Windows XP has a driver for a USB mass storage device, it could be used to communicate with the Nexus S.

Testing

The first test units were launched on the final shuttle mission, and Micire showed video of the Smart SPHERES in action on the ISS. The light level was rather low in the video because the fluorescent lights were turned down to reduce jamming on the beacons. That was actually useful as it proved that the camera produced reasonable data even in low-light situations. The sensors on the phone (gyroscope, magnetometer, ...) worked well, as shown in his graphs. The gravity sensor showed near-zero gravity, which must mean that it was broken, he joked. In reality, that is, of course, the proper reading in a micro-gravity environment.

There are "lots of tubes" between the ISS and ground-based networks, so the latency can be rather large. They were still able to do video transmission in real time from the Smart SPHERES to the ground during the initial tests, which was a bit of a surprise. After that test, the mission director pulled the team aside; at first Micire was a little worried they were in trouble, but it turned out that the director wanted to suggest adding Skype so he could have a "free-flying robot that I can chase astronauts with".

In December 2012, another experiment was run. Once again, sped-up video was shown of the robot navigating to a control panel to send video of its state to controllers on the ground. Those controllers can do minor adjustments to the orientation of the robot (and its camera) by panning from side to side. There is no ability to navigate the robot in realtime from the ground due to latency and potential loss-of-signal issues.

Other experiments are planned for this year and next, including having the robot handle filming an interview with one of the astronauts. Currently when a class of schoolchildren or other group has the opportunity to interview the crew in space, two astronauts are required: one for the interview and one to hold the camera. Since the Nexus S gives them "face recognition for free", the robot could keep the camera focused on the crew member being interviewed, which would free up the other crew member.

Micire's talk was an excellent example of what can happen when a device maker doesn't lock down its device. It seems likely that no one at Google or Samsung considered the possibility of the Nexus S being used to control space robots when they built that phone. But because they didn't lock it down, someone else did consider it—and then went out and actually made it happen.

[ Thanks to the Linux Foundation for assisting with travel costs to San Francisco for ABS. ]


(Log in to post comments)

ABS: Android in space

Posted Feb 21, 2013 7:28 UTC (Thu) by smurf (subscriber, #17840) [Link]

Links to the video would be appreciated.

ABS: Android in space

Posted Feb 21, 2013 10:41 UTC (Thu) by hrw (subscriber, #44826) [Link]

Great read. Now I will look differently at my old Nexus S.

ABS: Android in space

Posted Feb 21, 2013 17:34 UTC (Thu) by ortalo (subscriber, #4654) [Link]

Paraphrasing Ken Thomson's Turing lecture, let's hope NASA engineers also "entirely built themselves all the software" they sent to the ISS on this phone before disclosing that nice 0 microgravity trigger condition.

ABS: Android in space

Posted Feb 23, 2013 16:28 UTC (Sat) by raven667 (subscriber, #5198) [Link]

In reality that's a bit paranoid because it would require both malice and foreknowledge and means (access) to achieve some sort of delayed-action Nexus bomb. None of those conditions obtain as far as I can tell. I would say the risk is very low, higher risk would be very garden variety issues such as an exploit in the Skype client and even then the amount of damage the device could do is intentionally low.

Questions that should be asked

Posted Feb 22, 2013 9:42 UTC (Fri) by man_ls (guest, #15091) [Link]

I don't know if this article was meant as a great feat of engineering, but it looks a bit shoddy to me.
  • The reason to send the robot up to space seems contrived at the least. What kind of menial tasks can be done with such a slow thing? I think that it was done mostly because it looks cool.
  • Why not hook up all those sensors with sensible communication devices so that readings are sent automatically to base? Retrofitting remote sensors would be a much more permanent solution.
  • The project was rushed for no good reason; why not take the three years and certify everything properly?
  • Sending AA batteries to space? I hope they are at least rechargeable batteries; however wasting millions sending fungible chemicals to space would be in line with the rest of the article.
  • Many companies build custom smartphones; it is not difficult to do. They will probably have higher quality than stock models built to last a year or two at most. Chasing Best Buy companies may make a good story though.
  • Given that ISS computers run XP, it is understandable that this project was seen as an engineering marvel.
It is a pity that the glorious days of space exploration have passed, but I don't see that as a reason to send such flakey stuff up to space.

Questions that should be asked

Posted Feb 23, 2013 5:52 UTC (Sat) by cmccabe (guest, #60281) [Link]

> The reason to send the robot up to space seems contrived at
> the least. What kind of menial tasks can be done with such
> a slow thing? I think that it was done mostly because it looks cool.

Researching robotic technology for space exploration is exactly what we should be doing now. Sending humans into space is really costly, on so many levels.

> Why not hook up all those sensors with sensible communication
> devices so that readings are sent automatically to base?
> Retrofitting remote sensors would be a much more permanent solution.

Retrofitting sensors to what exactly? The idea of the robot is to do menial tasks. A sensor, by definition, can only sense, not do anything.

> The project was rushed for no good reason; why not take the
> three years and certify everything properly?

Somehow, I don't think lack of red tape is NASA's biggest problem.

> Sending AA batteries to space? I hope they are at least
> rechargeable batteries; however wasting millions sending
> fungible chemicals to space would be in line with the rest of
> the article.

Lithium-ion batteries can explode. Just ask Boeing. AA batteries may not be sexy, but they work. And yes, I am sure they used rechargable. Given that the cost to get anything into orbit is insane and they have plentiful solar power.

> Many companies build custom smartphones; it is not difficult
> to do. They will probably have higher quality than stock
> models built to last a year or two at most. Chasing Best
> Buy companies may make a good story though.

Why do they need a custom smartphone? Spending money just because you can doesn't seem like a wise idea. And one-offs often end up being unreliable as well as expensive. Turns out, companies really do test phones before they ship a million units.

Questions that should be asked

Posted Feb 23, 2013 11:41 UTC (Sat) by man_ls (guest, #15091) [Link]

Retrofitting sensors to what exactly? The idea of the robot is to do menial tasks. A sensor, by definition, can only sense, not do anything.
By "remote" sensors I mean those that send the information they collect elsewhere. The sensor itself has the capability to communicate remotely with a base station, not needing a flying bot to collect it. Makes sense on a space station, doesn't it?
Why do they need a custom smartphone? Spending money just because you can doesn't seem like a wise idea. And one-offs often end up being unreliable as well as expensive. Turns out, companies really do test phones before they ship a million units.
You answer yourself in the rest of your comment. The constraints of the mission forced them to change the batteries and to disable one chip. In effect, what was sent to space was a one-off job, but a sloppy one (having burnt one motherboard). And on top of it they did have all the problems of modern electronics, e.g. lead-free solders which cause tin whiskers (note how the article specifies that leaded solders are admitted for aerospace hardware).

Questions that should be asked

Posted Feb 23, 2013 16:37 UTC (Sat) by raven667 (subscriber, #5198) [Link]

I think it is going to be more efficient to process the local video and motion sensor data locally than to ship the live data to the ground and back again, at high latencies, just to maneuver a floating camera platform.

Also according to the article AA batteries are used because they are standard on the station, so this is a resource they already have, not something new just for this device.

Even if these phone devices only last a couple of years they are probably still worth it, they aren't very heavy to ship and the cost/benefit is likely not worth spending a ton of engineering time and design money to build something more robust just to save on the cost of 1-2 pounds over the course of 10 years or so. I'm sure there are other wear items which are heavier and have a higher engineering priority.

Over time I'm sure the design of these kinds of devices will improve, maybe they'll start buying their own SoCs and building their own cases but that better future isn't a good reason to deny the good enough solution that provides benefits now.

Questions that should be asked

Posted Feb 23, 2013 23:44 UTC (Sat) by Jandar (subscriber, #85683) [Link]

> By "remote" sensors I mean those that send the information they collect elsewhere. The sensor itself has the capability to communicate remotely with a base station, not needing a flying bot to collect it. Makes sense on a space station, doesn't it?

As the article says the SPHERES are tests for real satellites. Splitting the satellite from it's control system would depart from the test-target.

Questions that should be asked

Posted Feb 26, 2013 17:21 UTC (Tue) by bronson (subscriber, #4806) [Link]

Your arguments seem very contrived.

Pretty much everything sent to space is a one-off job. (there are exceptions like Iridium and GPS satellites, but they are rare).

And, as all the fully functional smartphones, TVs, base stations, laptops, etc etc etc all around you will indicate, tin whiskers are simply not a big deal.

You're really struggling to dismiss these peoples' hard work. Why? What's your motive?

Questions that should be asked

Posted Feb 26, 2013 17:37 UTC (Tue) by man_ls (guest, #15091) [Link]

Please read carefully. The "one-off" argument was just a rebuttal of a previous commenter about one-off jobs being expensive and unreliable, and COTS products being preferable.

All those devices you mention have a tendency to break apart after a few years for no reason, with smartphones the worst offenders.

I just expect more from space exploration. This particular job looks like a high school research project, but whatever. It is cool, dude.

Questions that should be asked

Posted Feb 26, 2013 17:40 UTC (Tue) by mathstuf (subscriber, #69389) [Link]

> And, as all the fully functional smartphones, TVs, base stations, laptops, etc etc etc all around you will indicate, tin whiskers are simply not a big deal.

Reading the Wikipedia page[1], tin whiskers which short out in a vacuum causes the tin to turn to plasma which can carry quite a few amps (100s) and can short out a lot of electronics.

[1]https://en.wikipedia.org/wiki/Tin_whiskers

Questions that should be asked

Posted Feb 26, 2013 18:30 UTC (Tue) by raven667 (subscriber, #5198) [Link]

It might offends ones sense of perfection or a romantic image of the hardy space-farer who has advanced technology. Maybe this person read a lot of '50-'60's era Sci-Fi and had it color their perceptions of what is to be expected in the imminent, Utopic, future.

Just a set of random guesses. 8-)

Questions that should be asked

Posted Feb 26, 2013 18:41 UTC (Tue) by man_ls (guest, #15091) [Link]

Hey, 50-60s era sci-fi is cool! But anyone with even a shallow knowledge of the technical accomplishments of the Apollo and Shuttle projects (along with the constraints of their respective ages) will yearn for something better. Call me nostalgic if you want, but XP SP3? AA batteries? Come on, seriously!

Questions that should be asked

Posted Feb 26, 2013 19:34 UTC (Tue) by dlang (✭ supporter ✭, #313) [Link]

the shuttles were 'upgraded' to 486 class computers after the turn of the century.

If you wait for everything to be 'space rated', you end up running very old technology, which can end up being horribly inefficent.

I believe the AA batteries, and I do not expect that they are rechargeable

Questions that should be asked

Posted Feb 27, 2013 7:21 UTC (Wed) by paulj (subscriber, #341) [Link]

There was an article in IEEE Spectrum a while ago about some group in the US that is trying to modularise satellites, and make it so components need not be custom-made, but "off the shelf" and plug together in standardised ways.

Questions that should be asked

Posted Feb 27, 2013 7:26 UTC (Wed) by dlang (✭ supporter ✭, #313) [Link]

one thing to keep in mind with space equipment is that most of it is so weight sensitive that you can spend a lot of money optimizing the design to save a small amount of weight and come out ahead.

In many cases, your mass issue compounds, a heavier craft means it needs bigger thrusters, more fuel......

Questions that should be asked

Posted Feb 27, 2013 10:03 UTC (Wed) by khim (subscriber, #9252) [Link]

It's only true if you send stuff to the Mars or Jupiter. To send 1kg to LEO you need about $4'000-$5'000 and to send 1kg to GEO you need $25'000-$30'000.

That's if you use cheap "obsolete" Atlas, Dnepr, Proton, or similar modern replacements. Futuristic Space Shuttle was, indeed, 5-10 times more expensive, but that's not a problem anymore.

At these prices easily achievable savings make sense, but if you need one fully engineer to work a year to save measly 1kg once then obviously it makes no sense at all.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds