Apollo Guidance Computer Gets The Rust Treatment

Seems like all the cool kids are rewriting legacy C programs in Rust these days, so we suppose it was only a matter of time before somebody decided to combine the memory-safe language with some of the most historically significant software ever written by way of a new Apollo Guidance Computer (AGC) emulator. Written by [Felipe], the Apache/MIT licensed emulator can run either ROM files made from the computer’s original rope core memory, or your own code written in AGC4 assembly language.

It’s worth noting that the emulator, called ragc, needs a bit of help before it can deliver that authentic Moon landing experience. Specifically, the code only emulates the AGC itself and stops short of recreating the iconic display and keyboard (DSKY) module. To interact with the programs running on the virtual AGC you’ll need to also install yaDSKY2, an open source project that graphically recreates the panel Apollo astronauts actually used to enter commands and get data from the computer.

Of course, the next step would be to hack in support for talking to one of the physical recreations of the DSKY that have graced these pages over the years. Given the limitations of the AGC, we’d stop short of calling such an arrangement useful, but it would certainly make for a great conversation starter at the hackerspace.

Thanks for the tip, [CJ].

Apollo Comms Flight Hardware Deep Dive

You no doubt recall the incredible Apollo Guidance Computer (AGC) reverse engineering and restoration project featured on the CuriousMarc YouTube channel a few years ago. Well, [Marc] and the team are at it again, this time restoring the Apollo Unified S-Band tracking and communication system flight hardware. As always, the project is well documented, carefully explained, full of problems, and is proceeding slowly despite the lack of documentation.

Like the guidance computer, the Unified S-Band system was pretty innovative for its day — able to track, provide voice communications, receive television signals, and send commands to and monitor the health of the spacecraft via telemetry. The system operates on three frequencies, an uplink containing ranging code, voice and data. There are two downlinks, one providing ranging, voice, and telemetry, the other used for television and the playback of recorded data. All crammed into two hefty boxes totaling 29 kg.

So far, [Marc] has released part 9 of the series (for reference, the Apollo Guidance Computer took 27 parts plus 8 auxiliary videos). There seems to be even less documentation for this equipment than the AGC, although miraculously the guys keep uncovering more and more as things progress. Also random pieces of essential ground test hardware keep coming out of the woodwork. It’s a fascinating dive into not only the system itself, but the design and construction techniques of the era. Be sure to check out the series (part 1 is below the break) and follow along as they bring this system back to life. [Marc] is posting various documents related to the project on his website. And if you missed the AGC project, here’s the playlist of videos, and the team joined us for a Hackaday Chat back in 2020.

Continue reading “Apollo Comms Flight Hardware Deep Dive”

Apollo DSKY Display Glows Again

We love seeing old technology brought back to life, especially when it’s done in the context of how the device was originally intended to be used. And double points when it’s space gear, like what [Curious Marc] and his usual merry band of cohorts did when they managed to light up a couple of real Apollo DSKY displays.

The “Display and Keyboard” formed the human interface to the Apollo Guidance Computer, the purpose-built machine that allowed Apollo missions to fly to the Moon, land safely, and return to Earth. Complete DSKYs are hard to come by, but a lucky collector named [Marcel] was able to score a pair of the electroluminescent panels, one a prototype and one a flight-qualified spare. He turned them over to AGC guru [Carl Claunch], who worked out all the details of getting the display working again —  a non-trivial task with a device that needs 250 volts at 800 Hertz.

The first third of the video below mostly concerns the backstory of the DSKY displays and the historical aspects of the artifacts; skip to around the 12:30 mark to get into the technical details, including the surprising use of relays to drive the segments of the display. It makes sense once you realize that mid-60s transistors weren’t up to the task, and it must have made the Apollo spacecraft a wonderfully clicky place. We were also intrigued by the clever way the total relay count was kept to a minimum, by realizing that not every combination of segments was valid for each seven-segment display.

The video has a couple of cameos, like [Ben Krasnow], no slouch himself when it comes to electroluminescent displays and DSKY replicas. We also get a glimpse of well-known component slicer and MOnSter 6502-tamer [TubeTime] too. Continue reading “Apollo DSKY Display Glows Again”

Hackaday Links Column Banner

Hackaday Links: July 18, 2021

Tell the world that something is in short supply, and you can bet that people will start reacting to that news in the ways that make the most sense to them — remember the toilet paper shortage? It’s the same with the ongoing semiconductor pinch, except that since the item in short supply is (arguably) more valuable than toilet paper, the behavior and the risks people are willing to take around it are even more extreme. Sure, we’ve seen chip hoarding, and a marked rise in counterfeit chips. But we’d imagine that this is the first time we’ve seen chip smuggling quite like this. The smuggler was caught at the Hong Kong-Macao border with 256 Core i7 and i9 processors, valued at about $123,000, strapped to his legs and chest. It reminds us more of “Midnight Express”-style heroin smuggling, although we have to say we love the fact that this guy chose a power of 2 when strapping these babies on.

Speaking of big money, let’s say you’ve pulled off a few chip heists without getting caught, and have retired from the smuggling business. What is one to do with the ill-gotten gains? Apparently, there’s a big boom in artifacts from the early days of console gaming, so you might want to start spreading some money around there. But you’d better prepare to smuggle a lot of chips: last week, an unopened Legend of Zelda cartridge for the NES sold for $870,000 at auction. Not to be outdone, two days later someone actually paid $1.56 million for a Super Mario 64 cartridge, this time apparently still in the tamperproof container that displayed it on a shelf somewhere in 1996. Nostalgia can be an expensive drug.

And it’s not just video games that are commanding high prices these days. If you’ve got a spare quarter million or so, why not bid on this real Apollo Guidance Computer and DSKY? The AGC is a non-flown machine that was installed in LTA-8, the “lunar test article” version of the Landing Module (LM) that was used for vacuum testing. If the photos in the auction listing seem familiar, it’s with good reason: this is the same AGC that was restored to operating condition by Carl Claunch, Mike Stewart, Ken Shiriff, and Marc Verdiell. Sotheby’s estimates the value at $200,000 to $300,000; in a world of billionaire megalomaniacs with dreams of space empires, we wouldn’t be surprised if a working AGC went for much, much more than that.

Meanwhile, current day space exploration is going swimmingly. Just this week NASA got the Hubble Space Telescope back online, which is great news for astronomers. And on Mars, the Ingenuity helicopter just keeps on delivering during its “operations demonstration” mission. Originally just supposed to be a technology demonstration, Ingenuity has proven to be a useful companion to the Perseverance rover, scouting out locations of interest to explore or areas of hazard to avoid. On the helicopter’s recent ninth flight, it scouted a dune field for the team, providing photographs that showed the area would be too dangerous for the rover to cross. The rover’s on-board navigation system isn’t great at seeing sand dunes, so Ingenuity’s images are a real boon to mission planners, not to mention geologists and astrobiologists, who are seeing promising areas of the ancient lakebed to explore.

And finally, most of us know all too well how audio feedback works, and all the occasions to avoid it. But what about video feedback? What happens when you point a camera that a screen displaying the image from the camera? Fractals are what happens, or at least something that looks a lot like fractals. Code Parade has been playing with what he calls “analog fractals”, which are generated just by video feedback and not by computational means. While he’d prefer to do this old school with analog video equipment, it easy enough to replicate on a computer; he even has a web page that lets you arrange a series of virtual monitors on your screen. Point a webcam at the screen, and you’re off on a fractal journey that constantly changes and shifts. Give it a try.

Apollo DSKY Replica Looks The Part

It’s hard to say what exactly it is about the Apollo DSKY that captures so many hackers’ imaginations. Whatever it is, the “Display and Keyboard” unit from the Apollo Guidance Computer has inspired dozens of teardowns, simulations, and reproductions over the years, to varying degrees of success. But this mechanically faithful DSKY replica really knocks it out of the park in terms of attention to detail.

The product of [M. daSilva], this DSKY replica takes a somewhat different path than many of the others we’ve seen. By working from as many original documents as possible, he was able to reproduce the physical size and shape of the DSKY very accurately — no mean feat when working from copies of copies of the original paper prints. Still, the details that are captured, like the gussets and reinforcements that were added to strengthen the original die-cast parts, really make this DSKY look the part. It’s functional, too, thanks to a Raspberry Pi running VirtualAGC, with a Nextion 4.3″ LCD display standing in for the original electroluminescent display. We were surprised to learn the DSKY had a port for nitrogen purging the case; check out the video tour below for that and other tidbits.

Of course, just because [M. daSilva] chose to concentrate on dimensional accuracy for this go-around doesn’t preclude more faithful electronics in the future. Perhaps he can team up with [Ben Krasnow] or [Fran Blanche] and really make this a showpiece.

Continue reading “Apollo DSKY Replica Looks The Part”

Deploy Workaround Code To The Field When “The Field” Is Lunar Orbit

The Apollo missions still inspire people today, decades after they took place. A fortunate side effect of the global public relations campaign is that a lot of information is publicly available for us to review and process. We’re right around the 49th anniversary of Apollo 14 mission, so it was a good time for [Frank O’Brien] to take readers through Apollo Guidance Computer and the hack that saved Apollo 14 (while it was in lunar orbit).

Space fans would already know many parts of this piece, but [Frank] weaves it together into a single narrative around a problematic “Abort” button that was found to be making intermittent contact as the crew were preparing to land on the moon. An inconvenient timing would have unnecessarily aborted the mission, which was obviously Not Good. [Frank] brings us up to speed on AGC fundamentals, just enough to understand the technical constraints for the hack, devised within the time constraints they faced.

For those that prefer a short video summary [Scott Manley] covered this same hack on YouTube. And for another perspective on the scope of this task, remember this was years before we had vi or emacs. When they were contemplating flipping status bits as programs were running, it’s not trivial to do a global search for code that might examine those bits. Look at the tome of source code AGC programmer [Don Eyles] worked with. Space fans who want to learn more can check out [Don]’s book.

For the ultimate AGC talk, check out The Ultimate AGC Talk.

Maybe someday trips to the moon will be a commonplace thing, but Apollo will always be the pioneer.

Apollo Guidance Computer Saved From The Scrap Yard

NASA needed a small and lightweight computer to send humans on their journey to the Moon and back, but computers of the day were made out of discrete components that were heavy, large, complicated, and unreliable. None of which are good qualities for spaceflight. The agency’s decision to ultimately trust the success of the Apollo program on the newly developed integrated circuit was an important milestone in computer history.

Given the enormity of the task at hand and the monumental effort it took, it’s surprising to learn that there aren’t very many left in existence. But perhaps not as surprising as the fact that somebody apparently threw one of them in the trash. A former NASA contractor happened to notice one of these historic Apollo Guidance Computers (AGC) at an electronics recycling facility, and thankfully was able to save it from getting scrapped.

The AGC was actually discovered in 1976, but it was decided to get the computer working again in time for the recent 50th anniversary of the Moon landing. A group of computer scientists in California were able to not only get the computer up and running, but integrate it into a realistic simulator that gives players an authentic look at what it took to land on the Moon in 1969.

Restoring a computer of this age and rarity is no easy feat. There aren’t exactly spare parts floating around for it, and the team had to go to great effort to repair some faults on the device. Since we covered the beginning stages of the restoration last year, the entire process has been extensively documented in a series of videos on YouTube. So while it’s unlikely you’ll find an AGC in your local recycling center, at least you’ll know what to do with it if you do.

Continue reading “Apollo Guidance Computer Saved From The Scrap Yard”