User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1662
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Apollo Guidance Computer on Pi

Mon Jul 18, 2016 12:40 pm

Hi all;

Image

Those of you who're old enough to know what this is, there is a cross platform software emulation of the AGC available online here: http://www.ibiblio.org/apollo/

I've saved you the trouble of building it. Here's what you need to do to get it running on your Pi;

Step 1, install prerequisites.

Code: Select all

sudo apt-get update && sudo apt-get install wx2.8-headers libwxgtk2.8-0 libsdl1.2debian libncurses5 -y
Step 2, download binaries.

Code: Select all

wget https://dl.dropboxusercontent.com/u/14125489/RaspberryPi/agc.zip
Step 3, extract zip file.

Code: Select all

unzip agc.zip
You will now have a folder called lVirtualAGC, go into lVirtualAGC/bin and run the VirtualAGC executable.

The computer is instructed by giving it numeric verbs and nouns.
Here is a guide on running the Lunar module self tests.
Note there is a slight mistake in step 3, don't press ENTR after verb 25.
It should be V25 N01E 01365E 0E 0E 0E

Have fun :D

P.S. Thanks to Laszlo Morocz for pointers on the build process.

scotty101
Posts: 3750
Joined: Fri Jun 08, 2012 6:03 pm

Re: Apollo Guidance Computer on Pi

Mon Jul 18, 2016 12:51 pm

Great work.

I had this working on a x86 machine to write my own 'simulation' of a DSKY written in python
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

W. H. Heydt
Posts: 11091
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Apollo Guidance Computer on Pi

Mon Jul 18, 2016 4:29 pm

And, unless there are built in--deliberate--delays, I dare say that it runs much,much faster than the original.

User avatar
PeterO
Posts: 5142
Joined: Sun Jul 22, 2012 4:14 pm

Re: Apollo Guidance Computer on Pi

Mon Jul 18, 2016 5:27 pm

Doers it use this ?
https://github.com/chrislgarry/Apollo-11

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

scotty101
Posts: 3750
Joined: Fri Jun 08, 2012 6:03 pm

Re: Apollo Guidance Computer on Pi

Mon Jul 18, 2016 9:48 pm

PeterO wrote:Doers it use this ?
https://github.com/chrislgarry/Apollo-11

PeterO
I believe they share some history. The ibiblio website had much or the original source code that was then corrected and updated based on better copies of the originals and that turned in to the link you shared. If I recall correctly.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
scruss
Posts: 2628
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Apollo Guidance Computer on Pi

Mon Jul 18, 2016 10:18 pm

I think this is where we all say "Yay Margaret Hamilton!"
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

hubbardjw
Posts: 2
Joined: Mon Oct 21, 2013 10:17 pm

Re: Apollo Guidance Computer on Pi

Tue Jul 19, 2016 12:15 am

Remembering the Apollo 11 Moon Landing With the Woman Who Made It Happen

Margaret Hamilton's software got man to the moon—but she didn't stop there

http://time.com/3948364/moon-landing-ap ... emailshare

refsmmat
Posts: 2
Joined: Wed Aug 23, 2017 7:49 am

Re: Apollo Guidance Computer on Pi

Thu Nov 09, 2017 7:14 am

Hi Davespice,
Thanks for the great post.
The pic is a great looking DSKY clone.
Do you have details of the hardware implementation that went with this?
Specifically, 7 segment driver, button reader etc.

I have done a similar thing using "yaAGC".
The "yaAGC" implementation requires an IP link between DSKY & AGC. The AGC component compiles on a pi, and I made the DSKY using an arduino with an ehternet shield. It worked, but it was clunky & missed updates occasionally.

I would be interested in a PI implementation of the AGC+DSKY. Im assuming that is what is driving the DSKY in the pic?

Thanks again,
refsmmat

georgelza
Posts: 100
Joined: Sun Oct 09, 2016 2:17 pm

Re: Apollo Guidance Computer on Pi

Thu Jan 11, 2018 4:33 pm

Anyone by any chance have the code that is advertised of supposedly being at : wget https://dl.dropboxusercontent.com/u/141 ... Pi/agc.zip

it does not seem to be there anymore.

G

dgordon42
Posts: 764
Joined: Tue Aug 13, 2013 6:55 pm
Location: Dublin, Ireland

Re: Apollo Guidance Computer on Pi

Fri Jan 12, 2018 12:23 pm

I posted a link to a OneDrive copy in another thread.
A few people seem to have downloaded it in the last week or so.

Hope this helps,
Dave.

samammons
Posts: 1
Joined: Sat Mar 10, 2018 4:30 pm

Re: Apollo Guidance Computer on Pi

Sat Mar 10, 2018 4:35 pm

I make those and they are on ebay. The software is on github and you can find it by virtualagc. (Sam)

georgelza
Posts: 100
Joined: Sun Oct 09, 2016 2:17 pm

Re: Apollo Guidance Computer on Pi

Sun Mar 11, 2018 11:00 am

post some links to both for us.

G
samammons wrote:
Sat Mar 10, 2018 4:35 pm
I make those and they are on ebay. The software is on github and you can find it by virtualagc. (Sam)

scotty101
Posts: 3750
Joined: Fri Jun 08, 2012 6:03 pm

Re: Apollo Guidance Computer on Pi

Sun Mar 11, 2018 6:10 pm

I guess this is him
https://rover.ebay.com/rover/0/0/0?mpre ... 3510694520

If I had money to burn...
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

georgelza
Posts: 100
Joined: Sun Oct 09, 2016 2:17 pm

Re: Apollo Guidance Computer on Pi

Sun Mar 11, 2018 6:30 pm

Ye. Allot to burn...

G
scotty101 wrote:
Sun Mar 11, 2018 6:10 pm
I guess this is him
https://rover.ebay.com/rover/0/0/0?mpre ... 3510694520

If I had money to burn...

dshaw619
Posts: 12
Joined: Thu Jan 04, 2018 7:06 am
Location: San Diego, California, USA

Re: Apollo Guidance Computer on Pi

Sun Jul 07, 2019 5:07 am

As the 50th anniversary of Apollo 11 approaches, I had to check this out. Thanks to Davespice's original post and dgordon42's updated link to the code, I was successful in setting it up and running it on a Pi 3B+ running Stretch (appeared to be version issues with the prerequisite packages on Buster).

To summarize:

Step 1, install prerequisites:

Code: Select all

sudo apt-get update && sudo apt-get install wx2.8-headers libwxgtk2.8-0 libsdl1.2debian libncurses5 -y

Step 2, download binaries:

I downloaded from https://onedrive.live.com/?id=DE6A25658 ... 658CBCD62E (Had to log on to OneDrive.) and then copied to my Pi with VNC.

Step 3, extract zip file:

Code: Select all

unzip agc.zip

I actually extracted by right-clicking on the zip file and selecting Extract Here in the GUI file manager.

Step 4, run the executable lVirtualAGC/bin/VirtualAGC.

Step 5, explore the guide at http://www.ibiblio.org/apollo/index.htm ... _Luminary_.

Pay attention to Davespice's correction to step 3 of the guide:
Note there is a slight mistake in step 3, don't press ENTR after verb 25.
It should be V25 N01E 01365E 0E 0E 0E

A couple of other useful links:
http://www.ibiblio.org/apollo/
http://www.ibiblio.org/apollo/ForDummies.html

User avatar
DougieLawson
Posts: 36570
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Apollo Guidance Computer on Pi

Sun Jul 07, 2019 6:03 am

Does it get an ABORT 1202 if you ask for delta H from the DSKY?

That's the interesting thing about the guidance computer I've learned from the BBC World Service podcast "13 Minutes to the Moon".

https://www.bbc.co.uk/programmes/w13xttx2

Episode 2 & episode 8 have some specifics about the guidance computer.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

jimst
Posts: 1
Joined: Sat Jul 20, 2019 11:12 pm

Re: Apollo Guidance Computer on Pi

Sat Jul 20, 2019 11:27 pm

These are missing on Raspbian Buster

wx2.8-headers libwxgtk2.8-0 libsdl1.2debian

So hopefully someone can re-compile and update the executables for that version.

Also wayland has replaced X11, not sure if that will impact the gui on the system or not.

FWIW, another poster mentioned synaptic. It is broken on wayland and only will work building scripts. The old way of doing "su synaptic" won't connect to the display server.

Not a win in my book to break things like that, but then that's a topic for elsewhere.

flare2000x
Posts: 1
Joined: Thu Aug 01, 2019 9:34 pm

Re: Apollo Guidance Computer on Pi

Thu Aug 01, 2019 9:50 pm

Hi guys,

Just got my old Pi A up and running on Stretch, got the prerequisites installed, but the VirtualAGC executeable itself doesn't run. Is there a solution to this or is it just because I'm using an ancient Pi A?

gixy
Posts: 2
Joined: Sun Jul 14, 2013 11:10 pm

Re: Apollo Guidance Computer on Pi

Thu Oct 17, 2019 2:50 pm

Hi everybody,
Trying to install AGC emulation on a RaspberryPi 4 with Buster, I confirm this:
'These are missing on Raspbian Buster

wx2.8-headers libwxgtk2.8-0'

libsdl1.2debian is OK. Is there still no solution?

(installed Virtual AGC on another Pi with Stretch: works like a charm)

Return to “General discussion”