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: 3184
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: 9042
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: 4257
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),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

scotty101
Posts: 3184
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: 1821
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: 77
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: 753
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: 77
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: 3184
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: 77
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...

Return to “General discussion”