0 0
Read Time:13 Minute, 15 Second

By William Van Zyl

Published December, 23 2022

You may also want to listen to the podcast: https://www.podbean.com/ew/pb-ip6bf-134ce5d

————————-0—————————-

Margaret Hamilton – ‘A small step for a woman, and a huge leap for ‘software engineering’

“Five minutes before landing.”

“Three minutes before landing,” said the leader of the mission. All eyes were fixated on the large black-and-white screen.

“Houston, we have a problem!”

“What! What is the problem?”

“Listen to the alarm. We think it is the onboard computer.”

Margaret Hamilton moved closer to the screen. She had her large heavy laptop open. Her computer stored over 600,000 lines of code. Behind her was a stack of handwritten computer codes on size A3 paper. The stack was as tall as Hamilton herself. About 1.7 m high.

She ran to the stack. She grabbed volume 17 – right at the top, and opened it on page 95. 

“We think it is the radar system,” said the astronaut.

“I have thought about all sorts of interferences. I have programmed the computer to recognise such an error.  The software’s priority scheduling would complete high-priority tasks first — like preparing for landing. The code that has been written will ignore lower-priority ones.”

“Margaret, it seems to have settled now. I think your high-priority code kicked in! The alarms went off” 

The ground crew sighed in relief.

“One minute before landing, all engines running.”

“The Eagle has landed!”

The ground crew – at NASA Mission Control Centre – and the 3 famous astronauts jumped for joy. Neil, Buzz and Michael were over the moon.

—————–0————————–

Did Margaret Hamilton write the code for the Apollo Moon landing?

The answer is Yes! She is far lesser known as Neil Armstrong – the first man on the Moon. However, she is the woman who helped them to get there. Margaret Hamilton and her team of software engineers at the MIT Instrumentation Laboratory wrote the sprawling code that made the mission possible

I saw the great picture below of Margaret Hamilton standing next to a 1.7 m high pile of handwritten code on social media. Immediately an article popped into my head. I have written it for you.

Who is Margaret Hamilton? She is an American computer scientist and software engineer. She led the team who developed the software for the Apollo moon missions and the Skylab space station in the 1960s and 70s. Her code helped the 3 men to get to the moon – and back!

How many lines of code did she write for the Apollo?

There are 17 binders in the photo. Assuming the 17 piles (bound volumes) are 5″4′ (1.524 mm) in total (stacked on top of each other), they’re all code (not simulation) and applying Mike’s measurements, assuming 10 binders are Aurora-like and 7 are Luminary-like yields 14,500 code pages, about 660,000 code lines.

What software was used for the Apollo?

The Apollo Guidance Computer (AGC) was installed on board the Apollo 11 Command Module (CM) and Lunar Module (LM).   The computer’s software was written in Assembly Language (or Assembler). Assembler is considered a low-level programming language as there are very few “plain language” type words (e.g. instructions) easily recognised by humans.

Hamilton, in 1969, stands next to listings of the software she and her MIT team produced for the Apollo project. Taken 1 January 1969. Draper Laboratory; restored by Adam Cuerden. – This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: dust and scratches removed; curves tweaked to bring out shadows, approximately 3 pixels cropped from the bottom to remove a border. See the upload history of the PNG for the version without colour tweaks. The original can be viewed here: Margaret Hamilton.gif:

Restorations of the original photo. Margaret Hamilton’s handwritten code for landing on the Moon for the first time. Credit Draper Laboratory. Source: https://en.wikipedia.org/wiki/Margaret_Hamilton_(software_engineer)#/media/File:Margaret_Hamilton_-_restoration.jpg

The handwriting of Margaret Hamilton: Glossy 8 x 10 photo, signed and inscribed in black felt tip “For Phyllis Mancz, My warmest wishes, Margaret Hamilton.” Scattered light creases, surface marks, impressions, and some light discolouration inherent to the original negative, otherwise fine condition. Accompanied by an unsigned note to the photo’s recipient, identifying the photo from the film Hat, Coat, or Glove. Credit: https://www.icollector.com/Margaret-Hamilton_i10517855

First Moon Landing: Apollo 11 astronaut Buzz Aldrin works at the deployed Passive Seismic Experiment Package on July 20, 1969. To the left of the United States flag in the background is the lunar surface television camera. Credit: NASA / Neil Armstrong. https://www.smithsonianmag.com/science-nature/best-books-about-apollo-program-and-landing-moon-180972653/

Margaret Hamilton, lead Apollo flight software engineer in the Apollo Command Module. Here she is at the young age of 30 to 33 years old.

Hamilton’s work guided the remaining Apollo missions that landed on the moon and benefitted Skylab, the first U.S. space station, in the 1970s. NASA honoured Hamilton with the NASA Exceptional Space Act Award in 2003, acknowledging her contributions to software development and granting her the biggest financial prize the agency had ever awarded to one person until that time-$37,200.

On November 22, 2016, Hamilton received the Presidential Medal of Freedom from President Barack Obama for her work leading to the development of onboard flight software for NASA’s Apollo Moon missions. Credit Wikimedia.https://explorethearchive.com/female-coder-margaret-hamilton-watm

More about Margaret Hamilton:

Margaret Heafield Hamilton (born August 17, 1936) is an American computer scientist, systems engineer, and business owner. She was director of the Software Engineering Division of the MIT Instrumentation Laboratory, which developed onboard flight software for NASA’s Apollo program. She later founded two software companies—Higher Order Software in 1976 and Hamilton Technologies in 1986, both in Cambridge, Massachusetts.Hamilton has published more than 130 papers, proceedings, and reports, about sixty projects, and six major programs. She is one of the people credited with coining the term “software engineering“.

In the video: Learn how Margaret Hamilton and her team of engineers built the software for the Apollo 11 mission that landed humankind on the Moon. 

The Apollo 11 moon landing was about the astronauts, mission control, software and hardware all working together as a seamlessly integrated system. None of this would have been possible without the contributions of one engineer: Margaret Hamilton. Who was this pioneer? Matt Porter and Margaret Hamilton detail how a woman and her team launched the software that took mankind to the Moon.

View the full lesson: https://ed.ted.com/lessons/the-softwa…

Margaret Hamilton (far left) being honoured. Her 17 x volumes of code of 1969 is by her side in the picture. Lego created a set with 4 legendary woman involved in Space Exploration (NASA).  The set features mini-figures of 4 pioneering women of NASA — astronomer and educator Nancy Grace Roman; computer scientist Margaret Hamilton; astronaut and physicist Sally Ride; and astronaut, physician and engineer Mae Jemison — and 3 builds illustrating their areas of expertise. One of the most wonderful things we, as humans, can do is to honour and respect people. It encourages and lifts everyone up.

I include some lessons I have learned from coding:

  1. Everything living and non-living thing is encoded. For example, every plant and every animal – including humans – are encoded. I am referring to molecular structures, DNA and more. It also includes relational codes. Everything is interconnected and exists in harmony. For example, the balance of the food chain, reproduction systems, provision of food, and medication (e.g. birds self-medicate when they are sick), cats and dogs also self-medicate. There is a code – and intelligent design – behind everything we know. Who do you think is behind all the intelligent design?
  2. Most well-known man-made codes include: JavaScript, Python, C++, PHP, and Ruby. There are many more. However, I have only listed the 5 important ones. See the list of the code names that have been used to identify computer hardware and software products here: https://en.wikipedia.org/wiki/List_of_computer_technology_code_names
  3. The technologically advanced world that we live in will demand more knowledge of code in the future. For example: With the world’s population exploding and food resources dwindling, we must be smarter. We must use technology and every available piece of land to produce food – effectively. Sky forms are a possible solution. See the details in the article.

Title of the Article: Priorities for science to overcome hurdles thwarting the full promise of the ‘digital agriculture’ revolution. Journal of the Science of Food and Agriculture. Volume100, Issue14. Special Issue: Special Section: In honour of David Reid. November 2020. Pages 5083-5092. 

Link: https://onlinelibrary.wiley.com/doi/full/10.1002/jsfa.9346

Conceptual design of the urban sky-farm, a vertical farm design proposal for a site located in downtown Seoul (the winner of the green dot design award 2013). In simple terms the electrical and plumbing is shown in this image. As you can imagine computers and microcontrollers – with specialised electronics and circuits – will manage these man-made farming structures. We need young people that are trained to design and mage such sophisticated systems in the future. Credit: https://www.researchgate.net/figure/Conceptual-design-of-the-urban-sky-farm-a-vertical-farm-design-proposal-for-a-site_fig4_322834975

Interested in sky farming? Read more here – https://www.dezeen.com/tag/vertical-farms/

Interested in sky farming? Read more here – https://www.dezeen.com/tag/vertical-farms/

  1. We need to teach our young people code. A great place to start is with the microcontrollers namely the Microbit (Python) and Arduino (C++).
  2. Man also has a code to consult. The Bible. Many people believe it is encoded. For example, Isaac Newton – a famous scientist – believed that the Bible was encoded. He spent the last years of his life trying to decode or find the ‘hidden messages.’ He saw the codes, realised that everything is encoded, and concluded that The Creator – Elohim – had encoded everything. He is an Intelligent Designer. Think about the power of the Ten Commandments. It brings order and maintains order. What an intelligent code!
  3. King David also encoded his heart. How did he do that? I will tell you. David said: ‘I have hidden your word in my heart, that I might not sin against you.’ (Psalm 119:10-11). “Hiding” God’s Word in your heart means memorising and meditating on the Scriptures. God uses his Word — to speak to us and show us how we ought to live. To have a good and purposeful life, we must obey His Words. These are probably the best Words on the planet to keep in your heart.

Conclusion:

This article explored the code for the moon landing by Margaret Hamilton. We have also touched on coding in general (creation being encoded). Then, we explored Biblical Code. Lastly, we have looked at the future challenges we will face (e.g. Sky Farms), like providing food to the ever-increasing world population. 

On the note of codes, Could I ask you a couple of questions?

  1. Are you code literate (e.g. Python, PHP, C++, Ruby, Java)? 
  2. Have you ever changed a simple computer (microcontroller) code?
  3. Do you know Microbit and Arduino (microcontrollers)? Have you used it before?
  4. Do you believe it is important that we should teach all young people the basics of coding? 
  5. Do you have a code by which you live? I am referring to a sort of personal philosophy you adhere to. I do – The Bible – the more I study and meditate on it – the more it becomes part of me. It makes me happy, it gives me peace, and it gives me purpose. It helps me not be influenced by every devastating thing that happens in the world today. It protects me, hedges me in, comforts me, and gives me hope and a future. By the way – comparing The Bible to Margaret Hamilton’s 1.7 meter-high stacked handwritten code for Apollo 11 – thank goodness the Bible is small and compact. And everyone can understand it. Written and translated into understandable languages. We can carry it in our hands. 
  6. By the way, did you know that some people believe that the first 5 books of the Bible are encoded (hidden meanings and messages)? If it is true, what would we call the Bible Code? Maybe G+++ It could be suitable ( 3 x +++ = Trinity of God): Father, Son, and Holy Spirit.
Random notes scribbled on Hebrew/Greek text from the Bible. This is just and example of how Bible code could be deciphered. Credit: Michael Hansen. Link: https://torreygazette.com/blog/2015/6/8/the-bible-code

Are you a student, a teacher, or a homeschooler? Here is a simple lesson based on this article. The goal is to understand the differences between code. Also, to use C++ in an Arduino Uno scenario.

LESSON: Code and the Arduino Uno – How to make an LED blink (use pin 13):

  1. Find simple examples of the 5 different computer codes mentioned here (Python, C++, PHP, Ruby, and Java). 
  2. Take a screenshot of short and simple code and paste them into a Google Doc. Share with the teacher.
  3. Do some research. Comment on every code to explain how these codes are different to one another. 
  4. Lastly, find the code that makes an LED blink using an Arduino Uno. Include the following in your search: ‘Code Arduino, make an LED blink, pin 13.’ This is what the image looks like for the simple circuit:

Link to this project (code): https://www.oreilly.com/library/view/environmental-monitoring-with/9781449328603/ch01s04.html

  1. Now create the circuit on TinkerCad Circuits. Take a screenshot and paste it into the Google Doc.
  2. Take an Arduino Uno in class, and plug it into your computer (you need to download the software – Arduino IDE – to your laptop or desktop). Create this simple circuit. Take a photo with your mobile phone of the Arduino and your computer screen. Email the photo to yourself and paste it into your Google Doc.
  3. Make sure your share your work with the teacher.

Activity: In your groups – in Minecraft Education – create the Moon Landing of 1969 (Apollo 11). Include some Minecraft code. Here is a video to inspire you.

Minecraft coding – Moon Landing 1969.

For fun: Watch the brilliant Lego Movie of the Moon landing.

Listen to the real voice overs in this awesome animated Moon Landing movie. Simply brilliant!

For the computer geeks: See the interview with Margaret on how the problem was solved just before Apollo 11 landed on the Moon.

Margaret Hamilton interviewed in 2017. She explains how the problem was solved minutes before the landing of Apollo 11.

Copyright © 2022 by William Van Zyl

The Code that took Humans to the Moon.

All rights reserved. This eBook/article or any portion

thereof may not be reproduced or used in any manner

without the publisher’s permission, except for using brief quotations in a book review.

Published by Five House Publishing (New Zealand)

First Publishing, December 23, 2022

More eBooks and articles are available at https://fivehousepublishing.com/

More about the author at http://williamvanzyl.com/

Podcasts:

The Etxravagant Podcast. Available on Spotify, Podbean, Audible, and more.

https://feed.podbean.com/williamvzyl/feed.xml

https://williamvzyl.podbean.com/

About Post Author

admin

Happy
Happy
100 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
100%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

One thought on “The Code that took Humans to the Moon.

Comments are closed.