Developer Finds USB Chargers Have as Much Processing Power as the Apollo 11 Guidance Computers (gizmodo.com) 110
An anonymous reader shares a report: It comes as no surprise that the guidance computers aboard the Apollo 11 spacecraft were impossibly primitive compared to the pocket computers we all carry around 50 years later. But on his website, an Apple developer analyzed the tech specs even further and found that even something as simple as a modern USB charger is packed with more processing power. Forrest Heller, a software developer who formerly worked on Occipital's Structure 3D scanner accessory for mobile devices, but who now works for Apple, broke down the numbers when it comes to the processing power, memory, and storage capacity of Google's 18W Pixel charger, Huawei's 40W SuperCharge, the Anker PowerPort Atom PD 2 charger, and the Apollo 11 guidance computer, also referred to as the AGC. It's not easy to directly compare those modern devices with the 50-year-old AGC, which was custom developed by NASA for controlling and automating the guidance and navigation systems aboard the Apollo 11 spacecraft.
In a time when computers were the size of giant rooms, the AGC was contained in a box just a few feet in length because it was one of the first computers to be made with integrated circuits. Instead of plopping in an off the shelf processor, NASA's engineers designed and built the AGC with somewhere around 5,600 electronic gates that were capable of performing nearly 40,000 simple mathematical calculations every second. While we measure processor speeds in gigahertz these days, the AGC chugged along at 1.024 MHz. By comparison, the Anker PowerPort Atom PD 2 USB-C charger includes a Cypress CYPD4225 processor running at 48 MHz with the twice the RAM of the AGC, and almost twice the storage space for software instructions.
In a time when computers were the size of giant rooms, the AGC was contained in a box just a few feet in length because it was one of the first computers to be made with integrated circuits. Instead of plopping in an off the shelf processor, NASA's engineers designed and built the AGC with somewhere around 5,600 electronic gates that were capable of performing nearly 40,000 simple mathematical calculations every second. While we measure processor speeds in gigahertz these days, the AGC chugged along at 1.024 MHz. By comparison, the Anker PowerPort Atom PD 2 USB-C charger includes a Cypress CYPD4225 processor running at 48 MHz with the twice the RAM of the AGC, and almost twice the storage space for software instructions.
Re:Just think... (Score:5, Funny)
*ba-dum TISS* (Score:2)
Yeah, we will go far... *backwards*!
Can I please teleport to 1946 Germany? I wanna live in a place and time with more hope for the future!
Re: (Score:2)
Is that on the side of East or West Berlin?
Re:*ba-dum TISS* (Score:4, Interesting)
Well, that was kind of funny - but also kind of a sad commentary. A large number of people actually think they are living in bad or even "end" times, when in fact they are almost all safe, warm, well-fed, and have no actual problems at all.
It's like there is some deep-seated need for apocalyptic impending doom, and if there isn't a real one, the world has to create one from the imagination.
Re: (Score:3)
Re: (Score:2)
Re:*ba-dum TISS* (Score:5, Insightful)
The part you're missing is security. People may have had half as much 50 years ago, but they had a real sense that what they had was theirs. Now people have a lot more, but for various reasons real and imagined they have a sense that it could all easily go poof practically overnight.
Consider, even if you have Bill Gates level wealth, you are NOT secure if it's all in a vault in the basement of your home perched on the lip of an active volcano.
It's not a matter of do you have a problem now but how easily could you wake up with an insurmountable problem tomorrow. Even people who own their homes outright have found themselves fighting foreclosere. People who have done nothing at all wrong have been shot dead by SWAT. You're careful with creadt and living well within your means but some bank you've never heard of foolishly loaned $100,000 dollars to "you" and now the collectors are calling you expecting payment. "The Attorney General" is telling you you will be arrested tomorrow if you don't pay $1000 for the overdue video tape "you" rented at a Blockbuster in NY 10 years ago (I really got that call!). Yesterday everything was working fine. Today the fridge is out. Warranty? What Warranty? We don't have any record of that! If you'll refer to page 112 of your purchase agreement, in the fine print at the bottom (yes, that smudge looking thing) you'll see that all warranty service will be handled by shipping the defective unit to wherethehellisthatistan.
You let your children walk a whole 1/4 mile to the park in the safest neighborhood in the state, you neglectful slob of a parent. You can have them back at the sole discretion of a bureaucrat who will first inspect your home from top to bottom for any signs of satanic activity.
People have plenty as long as they actively keep all of the plates spinning, but they feel like they're just one stray marble on the floor away from losing it all.
Sadly, that's not as imaginary as you might like.
Re: (Score:2)
I did not miss that, this is precisely the point. It can't "easily go poof" unless you are criminally stupid. Humankind has survived FAR WORSE things in the past than even the wildest doom-proclaime
Re: (Score:3)
Sorry to burst your bubble (so to speak), but yes, it really can go poof overnight.
I'm not talking about the big population level disasters, it's the houshold scale disasters that are causing the fear. It won't make the evening news, the neighbors won't notice anything out of the ordinary. Re-read what I said, and ask yourself where I mentioned plague, nukes, zombies, or any of those old headline news type fears.
You sound like someone who still has the option to move back in with Mom and Dad. Many people do
Re: (Score:2)
Fast charging is pretty spiffy these days, but the rocket had a tad more power output than even a 120W Oppo fast charger.
Related and Interesting (Score:2)
Apollo 11's "1202 Alarm" Explained [discovermagazine.com]
Also https://www.youtube.com/watch?... [youtube.com]
Hacking Apollo 14: How an MIT computer scientist saved a lunar landing [astronomy.com]
My 2019 Tesla faster than my 1998 Civic (Score:1)
Re: My 2019 Tesla faster than my 1998 Civic (Score:1, Funny)
Re: (Score:3)
Honda Civics are renowned for their reliability and definitely aren't made of the cheapest materials possible. Their resale value is relatively high so it's hard to find a used one. The technology comparison to a bicycle is absurd. And I've compared the cost of my (admittedly expensive $1000) bicycle to my car and the cost per mile is about the same. Perhaps if I had the time to do my own tuneups instead of taking it to the bike shop it would be cheaper. Your username is incorrect.
Re: (Score:2)
That is not expensive, but about the price at which the bikes start to become decent. Setting them up in the shop is a waste of money for most procedures, though. The only real reason to use the shop is reaming the tubes since the tools for that are quite expensive.
Re: My 2019 Tesla faster than my 1998 Civic (Score:1)
Re: (Score:1)
Yeah! And as we all know, all technologies progress at the same rate!
Why, the Concorde is just as slow compared to a modern jet! Uh, wait. Or maybe the SR-71? Or the XB-70?
Almost as if processing information is fundamentally different from physical pursuits.
https://dothemath.ucsd.edu/201... [ucsd.edu]
Re: My 2019 Tesla faster than my 1998 Civic (Score:1)
Re: (Score:3)
The Concorde flew commercially for 27 years, until 2003. It became unprofitable to run when the surplus of small jet aircraft on the market allowed for chartering private transatlantic flights by wealthy individuals.
https://en.wikipedia.org/wiki/... [wikipedia.org]
Re: (Score:2)
Re: My 2019 Tesla faster than my 1998 Civic (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: My 2019 Tesla faster than my 1998 Civic (Score:1)
Re: My 2019 Tesla faster than my 1998 Civic (Score:1)
Re: My 2019 Tesla faster than my 1998 Civic (Score:1)
Re: (Score:2)
Re: (Score:1)
A modern consumer grade sedan with luxury items like sound deadening, air conditioning, and 20 airbags is slower than a custom drag strip car? Wow you're a fucking genius. https://electrek.co/2016/07/21... [electrek.co]
Re: My 2019 Tesla faster than my 1998 Civic (Score:1)
My Ford Ranger has those dangerous airbags. Ford sends recall notices regularly. Two years in a row now I have gotten "about those airbags in your '06 Ranger..." Christmas cards from Ford. Earlier this week I got an airbag recall valentine.
They really should quit, because the amusement value is enough at this point that I will probably never get them fixed and that alone could make Ford liable.
Re: (Score:2)
Re:My 2019 Tesla faster than my 1998 Civic (Score:5, Insightful)
What shocks (some) people is not that technology has progressed. They marvel at how much was accomplished with technology we now think of as very basic. It is similar to how we feel about wonders of the ancient world like the pyramids. We could certainly build them today, and we would likely do it easier and quicker with concrete. But the fact the ancient world was able to accomplish it with primitive technology still fills people with awe and wonder.
Re: (Score:3, Informative)
It is similar to how we feel about wonders of the ancient world like the pyramids. We could certainly build them today, and we would likely do it easier and quicker with concrete.
True, but then they wouldn't last as long either. Just about all modern structures use reinforced concrete which contains rebar. Unfortunately rebar is made of steel. Even though it's in concrete, it will still corrode much faster than most people think. The typical expected lifespan of a reinforced concrete structure is 50 to 100 years at best. The pyramids are 4500 years old.
Re: (Score:2)
Re: (Score:1)
Re: (Score:2)
Alas, the physics fundamentals of putting something in orbit haven't changed in the last 50 (or last 13 billion) years. It still takes a lot of energy to move something from earth to orbit.
And beyond this, there really haven't be major break-thrus on materials, propellants or design. (A few, but nothing that someone 50 years ago wouldn't recognize.) Perhaps the simulations and calculations are faster and easier now, but launching something to space is still about the same as it was.
Not all of Apollo's processing was done on the AGC (Score:5, Informative)
Re:Not all of Apollo's processing was done on the (Score:5, Informative)
Re: (Score:2)
Precisely. The mission could hypothetically been executed without any ground support aside from recovery. They did it that way because they were concerned that the Soviets would attempt to interfere with it, and the easiest way would be jamming the uplink.
As it turned out, it probably would have been successful had they needed to do it, but of course they didn't.
Re: (Score:2)
Probably done on the S/360, which handled air traffic control until 1989!
Re:Not all of Apollo's processing was done on the (Score:5, Insightful)
Also the reason the chargers are so complex is not because they have to be, it's because computing power is so insanely cheap. The designers will have thrown an ARM microcontroller into the charge management IC, an off-the-shelf design, and thrown an existing USB stack on it. It could be done more efficiently but why bother? In fact for volume manufacturing it's probably cheaper to use a known, tested design even if it needs a bit more silicon.
Apollo was state of the art because they needed that. USB chargers are complex because they are optimized for mass production and rapid iteration.
Re: (Score:2)
Quite. I mean you can buy MCUs with less RAM than the ACG, but you'd have a hard job finding one with less computing power. Even the 64 byte RAM ATtiny's can bobble along at 16MHz, one cycle per instruction.
Maybe an Epson 4 bitter?
Re: (Score:2)
It's going to be hard to find something as slow as the AGC... I think there were some early MCUs that used a 1 bit ALU, maybe those.
Re: (Score:2)
It's going to be hard to find something as slow as the AGC... I think there were some early MCUs that used a 1 bit ALU, maybe those.
Yep. A modern 8051 will easily hit 32MHz and has none of that 12 cycle clock divider stuff. Not single cycle instructions but an 8 bit divide is only 5 cycles.
OK found one. The EM6503, nominal 32768Hz, 2 cycles per instruction, 4 bits wide. Obviously available in mask ROM format.
Re: (Score:2)
I'm sitting here reading this, thinking about that, and thinking "there's PIC chips I looked at even
Re: (Score:2)
I think some PICs can be limited to sub 1MHz speeds at low voltage.
Re: (Score:2)
A lot of the PICs are fully static and can be clocked right down to nothing with an astonishingly low power draw and they'll all run off crystals. I'm guessing the 32768Hz came about because the only low frequency crystals were the ones made for cheap, low power timing. I don't think I've ever seen a comparably low frequency crystal which isn't 2^15 Hz.
Re: (Score:2)
Re: (Score:2)
That sounds like a pretty cool project. I'll bet the power draw at 32kHz was utterly tiny. Also interesting about the wires and magnetic pulses, I've not heard of something like that before. Did that avoid the need for a PIC with an ADC or did it make it more accurate.
Re: (Score:2)
. The designers will have thrown an ARM microcontroller into the charge management IC, an off-the-shelf design, and thrown an existing USB stack on it. It could be done more efficiently but why bother?
This right here! I recently switched from 8bit microcontrollers to 32bit ARMs for my embedded projects. Nothing at all to do with incapability of the former, but the ARMs are literally 1/3rd of the cost. That they are close to an order of magnitude faster and have close to an order of magnitude more RAM to say nothing of their feature set is completely irrelevant.
You can't buy parts as slow and underfeatured as those used in older computers anymore.
Re: (Score:3)
Out of curiosity, what do you use for an OS?
Can you get predictable interrupt latency like you can with the Atmel parts? One big reason I still use them is knowing that I can count on the program execution to do exactly what I want, when I want it to.
Cheers!
Re: (Score:2)
Nope lower level than that. No OS, I'm talking about Cortex M0 chips which I typically code in C directly. You don't need an OS just because something has ARM in the name. I treat them just like a more complex AVR.
There's no reason these days to stick to 8bit uCs with chips like the STM32 or the SAMD series out there, especially since the latter are often cheaper unless you're doing something incredibly small where a micro microcontroller like an ATTINY or similar would suit.
Re: (Score:2)
Re: (Score:2)
I'm looking into some of that now myself. FreeRTOS and it's commercial variants seem like a popular choice for "Operating System" (if you can call it that). Atmel is also offering ARM uC these days. I have a SAMD51 waiting for a little spare time to check out.
The whole world seems to be moving to 3.3v these days. One reason I like the old AVR is that it really doesn't seem to mind poorly conditioned power and as long as you slow the clock down, undervoltage doesn't phase it. It's almost silly how long an AV
Re: (Score:2)
...but the ARMs are literally 1/3rd of the cost.
Yep, ATmega licensing fees are so through-the-roof nuts many designs are moving to ARM just to avoid them. When the accountants are squeezing cents/unit out of manufacturing costs saving several dollars on the CPU is a gimmie.
Re: (Score:2)
Processing power isn't everything (Score:2)
Yeah, well... (Score:2)
We could of course declare the last millions years a pointless waste of resources, and climb back up into the trees, like you totally would do, if it wasn't for that comfy artificial cave and porn-laden computer and soft cushioned stained chair ... riiiight.
Re: (Score:2)
We won't go back to climbing trees, but we just might stay on Earth forever.
The movie Matrix portrayed the lives of people living in the Matrix as having less meaningful existences. But in reality, more than a handful of people would be willing to spend their lives in a virtual paradise. Why would you work as a NASA accountant for the moon mission when you could be the astronaut planting the flag? If the simulation is good enough and you can't tell the difference, does it still matter that it's a simulation
USB is actually sophisticated (Score:2)
USB is really sophisticated when you think about it. If nothing else the data rate of 10 Gbps would have blown people's mind in the 1960's.
Re:USB is actually sophisticated (Score:5, Funny)
If nothing else the data rate of 10 Gbps would have blown people's mind in the 1960's.
I don't know...there were a lot more station wagons on the road back then.
Re: (Score:2)
IBM's fastest tape drive of the 1960s, the 2420 released in 1968, was only capable of about 312k/sec or 2.5Mbps. So it was 4000x slower... Which is actually not as much as I expected.
Re: (Score:3)
This is the USB charger we are talking about. Yeah, 10 Gbps for communications is great. But all the charger has to do is handshake with the device, set a current level and maybe generate a PWM signal to regulate the output.
Have you seen the USB PD spec? (Score:2)
Its control protocol is literally "Ethernet reimagined"!
Of course totally incompatible, and created from an NIH standpoint.
Madness, I tell you. 0.8 WhatWGs on the madness scale!
Funny, but in many ways meaningless. (Score:3)
These comparisons often come about, but who would have a USB charger guiding a space craft? There's a huge amount of work involved besides just having the processing power. The computer aboard Apollo was specially build for a certain task, and it did that very well.
This is like comparing a manual on/off switch to one that can be controlled with an iPhone. Yay that you can control billion switches at the same time, when you only need to control that one in particular in the most reliable way.
Re: (Score:2)
>These comparisons often come about, but who would have a USB charger guiding a space craft?
Presumably, a non-smoker who didn't need to to use the socket for a lighter? :_)
hawk
Re: (Score:2)
These comparisons often come about, but who would have a USB charger guiding a space craft?
No, but a Raspberry Pi might. In fact, I suspect at least one of those cube sats uses it. It's definitely overpowered with a 1.2 GHz quad core CPU and 1 GB of RAM.
Not just computing power, pin count too! (Score:5, Informative)
Re: (Score:2)
Most of the pins on USB-C are used for power delivery and half of them are necessary because they are reversible. Data is still only 2 lines, TX and RX on differential lines. The primary problem with the entire USB standard is that they keep trying to cram legacy stuff (USB-2 and audio functionality) into a cable when chips could do so much with much simpler wiring.
Re: (Score:2)
No, here is what is in a USB C connector [wikipedia.org]. There are four pins for VBUS (power), and there are four ground pins. Two are for power negotiation (configuration channels). The rest (14) are for data. There are 6 serial paths, four super-speed differential, one high-speed differential, and then the side bus (it's like an I2C slow speed config channel).
Only the four pins used for high-speed differential are legacy pins (D+/D-) and they only need 2, but they double them up to make it "flippable". Most of the
Re: (Score:2)
Most of the pins on USB-C are used for power delivery and half of them are necessary because they are reversible
That's not even remotely correct.
- Firstly only two pins are used to identify the orientation of the USB-C connector, and those pins are used for protocol negotiation as well and each provide a different function, so the reversible nature of the connectors doesn't cause any duplication of pins what so ever.
- Secondly USB-PD does not use any additional pins over the standard power pins in the USB port (4 for voltage of the 24). You're probably thinking of Apple's Lightning connector which indeed does re-purp
But then... (Score:3)
..the Apollo 11 computer computer had more processing power AND creative imagination than the morons who find this even mildly interesting. I guess we chould just replace these morons with USB chargers.
The Apollo 11 computer is worth something today because of history. Because of the part it played in something hard, challenging and a leap for mankind. Not because of its specs.
Re: (Score:3)
No one disputes that (Score:1)
No one disputes this, in fact this article makes it even more apparent. What they accomplished (and relied on while hurtling through space) is remarkable. This article and ones like it highlight that fact, not take away from it.
i am going to make (Score:3)
Wrong word (Score:3)
I have yet to see one of those charge my battery.
They provide power to the phone no problem, and then the phone charges the battery.
I really hate calling them chargers since that is incorrect and is only correct now because people are fucking idiots.
Re: Wrong word (Score:2)
One thing seems to be sure: an idiot today is equal to an idiot back then.
Although - people of today _should_ know more. So in essence and following the logic of these comparisons an idiot of today is more of an idiot than the ones before.
Re: (Score:2)
There's a whole era of people who called remote controls "converters."
Was it at all accurate? No.
Was it clear what they were referring to? Sure, it was probably even clear to pedants.
Were they idiots for using the wrong name for the device? Probably not, though it seems pedants think otherwise.
Re: (Score:2)
If not, what is the point of language then.
Re: (Score:2)
But sometimes, a single word can mean multiple things in a language: lighter.
Do I mean the small portable device that can make fire?
Do I mean something less heavy?
Do I mean a less dark colour/tone?
Yes, context is everything, but it doesn't help comprehension if you're not using your native language.
Re: (Score:3)
This terminology predates phones, laptops, USB, and your autism diagnosis.
Re: (Score:3)
I have yet to see one of those charge my battery.
OnePlus phones come with actual chargers. The cable looks like USB-C, but the AC adapter actually sends a charging current matched to the battery voltage to the phone, for fast-charging at 3.4 A. Oneplus claims that not having a high-power DC/DC converter inside the phone is better.
Re: (Score:2)
"I have yet to see one of those charge my battery."
I have not seen one charge your battery either, but I have seen them charge *my* battery.
Again- why is this a problem? (Score:3)
Yes, it didn't have much processing power. That wasn't a show-stopper, it probably ensured success, by keeping OUT cruft and over-blown interfaces, and, most importantly, the "programming experts" that would descend on the system now. Software development is the biggest obstacle to returning to the moon now - and it was an interesting but not crippling problem then.
It would take far longer to develop and "test" today. I put "test" in quotes because virtually no one, least of all most current programmers, has any clue what "test" used to mean, or how what they call tests now don't meet the standard. And the complexity of just the bootstrap code would be such that you would never actually successfully test is in the same sense they meant back in the day, much less the entire flight software.
You would have people defining "objects" and deciding which "libraries" to use, arguning which OS to pick (say, VxWorks, or whatever the MATLAB realtime system is called), etc. It was a nightmare even a 5 years after Apollo on the Shuttle, and you had the same bunch of numbnuts laughing about "ha ha, it's only a 386".
Give most people 10,000 times the processing power, and most programmers would try to find a way to use it. That's why, say, boot times of a brand new Dell Windows machine is hardly any better - and frequently slower.than the boot time of an IBM PC AT from 1987.
You would be better off just porting LUMINARY or whatever other assembly code that ran in the AGC straight across to a cell phone charger and using it unmodified than you would trying to get a bunch of the current self-proclaimed experts and giving them free rein.
The software is not the point of the mission, but it would quickly become the long pole in the tent.
Did you really write that? (Score:2)
"In a time", really? You leave me no choice [youtube.com].
However... (Score:2)
50 years later and handheld computers more powerful that a supercomputer of the era and we canâ(TM)t even send a manned capsule to the ISS.
Re: (Score:2)
The capsule will probably just crash into the station when the computer reboots for automatic update during docking procedures.
Yes, lots of things have more power than the AGC (Score:2)
Re: (Score:2)
Re: (Score:2)
The source code is available on Github.
https://github.com/chrislgarry... [github.com]
We're lucky they did not have our gizmos.... (Score:1)