Lesson Plan – 1 Computer Science Control Robot with RobotBASIC Class: Period: Mode: Classroom/Lab Teacher: ____________________________________________________________________________________ Learning Support Assistant: ____________________________________________________________ Time: 160 min. S.M.A.R.T. Learning Objectives By the end of this session, students will be able to: 1. Download and install robotBasic. 2. Perform simple robot movement. 3. Use robot to draw simple shapes. 4. Detect obstacles. 5. Make simple decisions for the robot. 6. Make robot perform certain tasks repeatedly. 7. Move the robot randomly. Resources Use the eContent to show the animated demos of the lesson. Session Conduction Engage: Say: You have already learnt about block programming in Scratch. We add sprites on the stage and drag-drop blocks to make the sprites behave the way we need in our Scratch projects. Now, we shall go a level up to explore text-based programming by controlling a robot in the screen with the help of code. Concept introduction: Say: The program we are using is called robotBasic. It is a powerful language to control robots but we shall use it to learn basic programming fundamentals while having fun to control a robot. Concept Demo/Explanation: After discussing how to download and install robotbasic, show the students how to open the RobotBasic editor.
Demonstrate how to create a simple program, save it and run it. Explain how the program works line-by-line from top to bottom. Demonstrate the steps to make drawing with robot. Explain the difference between obstacle colours and non-obstacle colours. Demonstrate how to declare some colours as obstacles. Explain the terms “variable” and “functions” as well as their significance in a program. Demonstrate how to sense an obstacle ahead. Show the students how to use “if” and “if-else” constructs to turn the robot if an obstacle is sensed. Demonstrate the use of “while” construct to make robot perform repeated tasks. Show the students how to generate random number. Concept Practice: Solve the problems given in the chapter-end lab exercise. Home Assignments 1. Revise the topic covered. 2. Practice the interactive exercises in Edusoft Smart App. 3. Solve any additional exercises on playground.edusoft.co.in Evaluation After completing the lesson solve the exercises given in the book.
Search
Read the Text Version
- 1 - 2
Pages: