Lesson Notes By Weeks and Term v4 - SHS 1

Programming Robots

Download the Lessonotes Mobile Ghana app for faster lesson access on Android and iPhone.

Subject: Robotics

Class: SHS 1

Term: 2nd Term

Week: 15

Grade code: 1.3.3.LI.2

Strand code: 3

Sub-strand code: 3

Content standard code: 1.3.3.CS.1

Indicator code: 1.3.3.LI.2

Theme: Robot Construction & Programming

Subtheme: Programming Robots

Lesson Video

This page supports the lesson note with a companion video and a short classroom-ready summary.

For class groups and homework, share this lesson page so learners also get the summary, objectives, and full lesson context.

Performance objectives

Lesson summary

Welcome, future engineers and programmers! In our last lessons, we learned how to plan a robot's actions using flowcharts. Today, we will bring those plans to life. We will learn how to translate complex decisions from a flowchart into a real computer program that a robot can understand and execute. This skill is crucial because modern technology, from the Mobile Money (MoMo) system on your phone to automated irrigation systems on farms, relies on making a series of decisions one after another. This is called "nested decision-making," and by the end of this lesson, you will be able to program it yourself.

Lesson notes

A. Recap: Simple Decisions (if-else)

Remember that a robot makes decisions using conditions. We use the diamond shape (♦) in a flowchart to represent a question or a condition. In programming, this is handled by an `if-else` statement. `if`: Checks if a condition is true. If it is, it performs an action. `else`: If the condition is false, it performs a different action.

Example: A simple robot cleaner. Flowchart Condition: Is the battery level below 20%? Program Logic: `if` battery is less than 20%, `then` go to the charging station. `else` (meaning the battery is 20% or more), `then` continue cleaning. B. Main Concept: Nested Decisions

A nested decision is a decision made *inside* another decision. It's like asking a follow-up question. You only ask the second question if you get a specific answer to the first one.

Evaluation guide