Jump to content

If the Apollo computers were less powerful than my phone...


Tex

Recommended Posts

...then does that mean, with the right program, I could theoretically run a moon landing with my smartphone? :confused:

It blows my mind that this is true. I would love to be able to go back to '69 and just plug in my phone or something at Mission Control, while everyone is staring at me like I'm an alien, then I just go on and sit in a swivel chair, running the show myself with the calculator-size device in my hand.

Furthermore, how much do you think the app would cost that let you run an actual moon landing? :P

Link to comment
Share on other sites

Yeah. As I pointed out in another thread, you can install Octave on an Android phone. That software is more than capable of doing all the computations you need to do a Moon landing.

P.S., it's free. So that should answer your other question. Of course, you'd still need someone with knowledge and experience to actually run the computations.

Link to comment
Share on other sites

If you're really cool you install Minecraft on your smartphone and build the Apollo computer with redstone...

You could, but it wouldn't be fast enough to run a moon landing in real time. The Apollo guidance computer ran about 2 MHz while a redstone state switch takes 0.1 seconds. The fastest redstone CPU I've ever managed to build ran at 0.71Hz and used a 2 stage pipeline (So branching took almost 3 seconds). Fastest redstone CPU I know of ran at 10 ticks (about 1Hz). So a redstone computer would be about 6 orders of magnitude too slow to land on the moon. Not to mention that it is going to be very hard to make 2048 RAM slots without losing too much ticks to addressing and data retrieval.

Link to comment
Share on other sites

Well, as far as I know Octave is the FOSS alternative to Matlab right? So it means that this: http://forum.kerbalspaceprogram.com/threads/36476-WIN-KSP-Trajectory-Optimization-Tool-v0-10-Now-with-Rendezvous-Planner%21 could be theoretically ported to Octave, right? The only problem is to somehow connect your smartphone to the propulsion control and RCS

Link to comment
Share on other sites

You could, but it wouldn't be fast enough to run a moon landing in real time. The Apollo guidance computer ran about 2 MHz while a redstone state switch takes 0.1 seconds. The fastest redstone CPU I've ever managed to build ran at 0.71Hz and used a 2 stage pipeline (So branching took almost 3 seconds). Fastest redstone CPU I know of ran at 10 ticks (about 1Hz). So a redstone computer would be about 6 orders of magnitude too slow to land on the moon. Not to mention that it is going to be very hard to make 2048 RAM slots without losing too much ticks to addressing and data retrieval.

So, you're saying my idea is impractical?

Damn! :P

Link to comment
Share on other sites

A smartphone has the computing power of a year 2000 desktop pc or better, the Apollo computer was pre-computer era.

So it's hardly a surprise that a smartphone can do what the Apollo computer can do.

I learned from watching "Moon Machines - The Navigation Computer" that most navigation calculations where done by computers at mission control, not by the Apollo computer. And perhaps the juciest detail: the software was not written but woven with copper wire and ferrite beads. They didn't just write machine code, they wrote it with hardware. How's that for "close to the metal". Also it took a government-issued fixer to get NASA to take that whole software thing serious (bug fixing, code re-use, project management).

Link to comment
Share on other sites

Everyone is ignoring one crucial problem: You can't just plug an iPad into the Apollo LM, because one was made in 1969 and the other was made in 2010. They would not be able to communicate with each other. It's like trying to stick a cube into a round hole.

If you built a new ship to run off the iPad, though, that's another story.

Link to comment
Share on other sites

You could, but it wouldn't be fast enough to run a moon landing in real time. The Apollo guidance computer ran about 2 MHz while a redstone state switch takes 0.1 seconds. The fastest redstone CPU I've ever managed to build ran at 0.71Hz and used a 2 stage pipeline (So branching took almost 3 seconds). Fastest redstone CPU I know of ran at 10 ticks (about 1Hz). So a redstone computer would be about 6 orders of magnitude too slow to land on the moon. Not to mention that it is going to be very hard to make 2048 RAM slots without losing too much ticks to addressing and data retrieval.

Eh...Your telling me one right click (dont know phone controls) aiming at a lever with your crosshair and flipping it isn't faster than the apollo computer's speed...? If that's true, I don't know what world we've come to. :P

Link to comment
Share on other sites

They would not be able to communicate with each other. It's like trying to stick a cube into a round hole.

I seem to remember a certain Apollo mission that had just this problem.

But yes, what you say is true. However, if you had to I'm sure you could jury rig something to get them working together. The real problem is whether you're doing it here on Earth or in an emergency situation on-board.

Link to comment
Share on other sites

If you built a new ship to run off the iPad, though, that's another story.

The OP's question was obviously not meant to be literal... If you did want to deal with the logistics of interfacing an iPad or other such device with the old hardware, it would be a lot easier to build and certify an electrical interface to the existing equipment than it would to design and build an entirely new ship around a modern hand-held computer.

Link to comment
Share on other sites

Everyone is ignoring one crucial problem: You can't just plug an iPad into the Apollo LM, because one was made in 1969 and the other was made in 2010. They would not be able to communicate with each other. It's like trying to stick a cube into a round hole.

If you built a new ship to run off the iPad, though, that's another story.

.

All you would need is an USB < - >parallel analog IO and plug it through voltage adapters to instrument analog output on one side and actuator/valve control input on the other. You would of course need to know the wiring and what signals you need to send/receive, but that's it. the rest could be done in software.

Link to comment
Share on other sites

Everyone is ignoring one crucial problem: You can't just plug an iPad into the Apollo LM, because one was made in 1969 and the other was made in 2010.

You've obviously never watched Iron Sky.

(It's on Netflix, by the way. I highly recommend.)

Link to comment
Share on other sites

Well, as far as I know Octave is the FOSS alternative to Matlab right? So it means that this: http://forum.kerbalspaceprogram.com/threads/36476-WIN-KSP-Trajectory-Optimization-Tool-v0-10-Now-with-Rendezvous-Planner%21 could be theoretically ported to Octave, right? The only problem is to somehow connect your smartphone to the propulsion control and RCS

Yes, Octave is designed to be mostly compatible with Matlab. But it's lacking all of the specialized toolboxes, GUI programming, and many other features that essentially any nontrivial Matlab program (such as KSP-TOT) relies on. I suspect KSP-TOT would be easier to port to Python than to Octave, since you can find open-source functional replacements for most of the proprietary Mathworks toolboxes more easily in Python than in Octave. Not to mention performance, size of user-base, online resources, etc... generally you only use Octave if you're already very attached to Matlab.

Link to comment
Share on other sites

Hm. It might not be so bad. I used to do a lot of code in Matlab, but switched over to Octave in the past few years. I can take a look at it. If it's just the GUI stuff, it might not be so hard to port.

Edit: Nope, never mind. These .fig files would be a nightmare to try and port.

Edited by K^2
Link to comment
Share on other sites

It's not just the GUI stuff, it's also optimization toolbox, global opt toolbox, several others. You're also screwed if you ever use classdef-style object oriented programming, which has been in Matlab since 2008 or so but still isn't released in Octave (I think someone might be working on it in a dev branch somewhere?). Don't think KSP-TOT needs this, but the toolboxes and GUI are a pain.

For a more actively-developed open-source alternative to Matlab (not source-compatible, but with maybe a little more similarity than Python) you can look at Julia. It's much newer than Python or Octave, has a smaller community (so fewer packages available) than Python but bigger than Octave, and does a lot of fancy stuff with just-in-time compilation so Julia code runs much faster than Python (even PyPy in most cases).

Link to comment
Share on other sites

While the average smart phone is more than capable of doing the math and IO necessary to operate the entire Apollo mission (including the Saturn V launch sequence which had its own computer in the IMU ring) - you would need some sort of IO card to hook in all the sensors, but there's an excess of CPU power.

For reference, the Curiosity rover uses a RAD750 (http://en.wikipedia.org/wiki/RAD750), though technically it has 2 with one as a backup. The RAD750 is based on the PowerPC750 that was used in Macs back in the late 90s and generally runs slower (clock speed) than the PPC chips that were common back in the day. Now, if you are asking yourself 'Why would NASA use such an antiquated computer?' the reason is the RAD750 is rad-hard. Your smartphone isn't.

Due to the nature of making radiation hard electronics (physics, engineering, and cost) the RAD750 is the current 'state of the art' even though it is 15-20 years behind current terrestrial computers. Put another way the RAD750 can do ~400MIPS, the latest Intel i7 can do ~125,000MIPS (or ~125BIPS). An ARM A7 (reasonable smartphone processor) can do 2850MIPS. While MIPS aren't the end-all in CPU metrics, they are a decent comparison given the vastly different architectures.

So, while the ARM based computer in your smartphone can run circles around the computer in Curiosity, radiation upsets would cause hell with the processing do to bit flips... and there's a high likelihood of radiation induced latch-ups that will destroy the processor elements.

Link to comment
Share on other sites

Nobody has brought up the most crucial part of this: Computers were important to the Apollo program, but not even NEARLY the most important part. Columbus didn't even have a computer! I could use my smart phone to sail a ship across the Atlantic!

Apollo was full of the best computers on Earth in the brains of the people running the program and working those (actual) computers. They weren't saying, "Siri, give me directions to the Moon." They were calculating the things KSP does for us, by hand on paper, and entering numbers into the computers that were running software that they (or someone as smart as they) wrote themselves, and then writing that result down on another piece of paper and going to tell Neil and Co that they needed to thrust so far in such a direction in about this amount of time.

Link to comment
Share on other sites

That reminds me of a quote by Wernher von Braun that went something along the lines of:

Man is the best computer we can put aboard a spacecraft... and the only one that can be mass-produced with unskilled labor.
Edited by PakledHostage
Fixed a spelling mistake
Link to comment
Share on other sites

One of the difficulties in trying to compare Apollo computers to modern ones and say "oh how did they do so much with so little?" is that there's a lot of apples and oranges comparison going on given that the Apollo computers were NOT general purpose do-anything processors accessing general-purpose do-anything RAM. When you make a generic "computer" that's not hardwired to specific tasks the burden is on the software to do all the heavy lifting. When you make a very specific one-purpose computer that DOES have a lot of things hardwired to specific tasks because it was designed in an era a little bit prior to the prevalence of 'general' do-anything sorts of computers, a large portion of that burden is moved from the software out to the "peripherals" so to speak.

Link to comment
Share on other sites

It's like trying to stick a cube into a round hole.

I can make an adapter for that out of duct tape, a piece of plastic, a piece of cardboard, and an old sock!

(Gold star for whoever can name whom I'm quoting! :wink:)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...