Building a Simple Robot (Simulation) - JSS 2 note
CLASS PROJECT: BUILDING A SIMPLE ROBOT (SIMULATION)
Subject: Digital Technologies
Class: JSS 2
Term: Third Term
Week: 10
Topic: Class Project: Building a Simple Robot (Simulation)
Duration: 80 Minutes (Double Period)
Learning Objectives
By the end of the lesson, students should be able to:
- Design and develop a simple digital robot model or simulation.
- Demonstrate basic robotic concepts through the project.
1. Introduction to the Project
In the past lessons, we learnt what robots are, their parts and functions, basic robotic movements and automation. In this lesson, we use what we have learnt to design and develop a simple digital robot model and run it as a simulation.
Task: Create a digital robot that moves around a space and turns away automatically when it detects a wall or an obstacle.
Tool: Scratch (or any robotics simulation software available in your school).
Group size: Pairs or groups of three to four students.
2. Robotic Concepts in the Project
The project helps us to demonstrate the robotic concepts we have studied. Each part of a real robot is represented in the simulation:
| Robot Concept | Representation in the Simulation |
|---|---|
| Body / Frame | The sprite (the picture of the robot). |
| Sensor | Blocks that detect something, such as "touching colour", "touching edge" or "distance to" another sprite. |
| Controller | The computer running the Scratch program, which checks the sensor and decides what to do. |
| Actuator | Motion blocks that move and turn the sprite. |
| Software | The script, which is the set of blocks that you connect. |
| Automation | The robot runs by itself after the green flag is clicked. |
3. Steps in the Project
Step 1: Plan and Design the Robot
- Decide what the robot should do: move around and avoid walls and obstacles.
- Sketch the robot on paper. Label its body, sensor, controller and actuator.
- Plan the robot's environment (the stage), including walls or obstacles.
- Write the steps the robot must follow, for example: move forward; if touching the wall, turn; repeat.
Step 2: Build the Digital Robot Model
- Open Scratch and create a new project.
- Use the paint editor to draw or choose a sprite to be the robot. Name it "Robot".
- Draw or select a backdrop with walls or obstacles, using a clear colour for the walls.
- Add obstacle sprites if needed.
Step 3: Program the Robot
Connect blocks to create the program. The following shows the idea:
When green flag clicked
Go to starting position
Forever
Move 5 steps
If touching the wall (colour or edge) then
Turn right 90 degrees
Move 10 steps back
This program shows the robotic concepts at work: the sensor checks for the wall, the program decides what to do, and the actuator (the movement) carries it out.
Step 4: Test and Debug
- Click the green flag and watch the robot.
- Check whether it avoids the walls and obstacles.
- If it does not work as expected (for example it goes through a wall or gets stuck), check the sensor condition and the numbers used, correct them and test again.
- Repeat until the robot works properly.
Step 5: Present and Demonstrate
- Run your simulation for the class.
- Explain which parts of your project represent the body, sensor, controller, actuator and software.
- Explain how your project shows automation.
- Answer questions from the class and the teacher.
4. Ideas to Improve the Project
- Add a second sensor, for example one that detects a coloured target.
- Make the robot stop when it reaches the target.
- Add a score or a counter for how many obstacles the robot avoided.
- Add a sound or message when the robot detects an obstacle.
- Make the robot follow a path or draw a shape using the repeat loop.
5. Project Assessment
The project will be assessed using the following guide:
| Criteria | What the Teacher Looks For | Marks |
|---|---|---|
| Planning and design | A clear sketch and a plan with the robot's parts labelled. | 4 |
| Digital robot model | A clear robot and environment built in the simulation. | 4 |
| Programming | Movement, sensor condition and loop used correctly. | 5 |
| Testing and debugging | Errors were found and corrected and the project works. | 3 |
| Presentation | Explains the robotic concepts clearly. | 2 |
| Teamwork | Every member contributed. | 2 |
| Total | 20 |
6. Summary
- A simulation imitates how a robot works on a computer, and a digital model is a robot design created on a computer.
- In the project, the sprite represents the body, sensing blocks represent the sensor, the script represents the software and motion blocks represent the actuator.
- The steps are: plan and design, build the model, program, test and debug, and present.
- The robot shows automation because it works by itself after the program starts.
- Testing and debugging help to find and correct errors before the project is presented.
7. Evaluation Questions
- What is a simulation?
- What is a digital robot model?
- Which part of the Scratch project represents the robot's body?
- Which blocks act as the sensor in the obstacle-avoiding robot?
- Which blocks act as the actuator?
- What represents the software in the project?
- How does the project demonstrate automation?
- What should you do if the robot goes through a wall in the simulation?
8. Assignment
- Define simulation and digital robot model.
- List the five steps for building the simple robot simulation.
- Explain how the body, sensor, controller, actuator and software are represented in the project.
- Write the instructions of your obstacle-avoiding robot program in your own words.
- State two ways in which your project could be improved.
9. Interactive Revision Quiz
Select one answer for each question and click Mark Quiz to see your score.
Comments
Post a Comment