Download presentation
Presentation is loading. Please wait.
1
Maker Education Manipulator
A guest education robot
2
Lesson 9 Unplug the charger at the setting time
3
CONTENTS I. Introduction of subject
II. Explanation of knowledge points CONTENTS III. Skills competition IV. Classroom summary
4
I. Introduction of subject
5
Alarm clock 1 1
6
Target task 2
7
II. Explanation of knowledge points
8
Unplug the charger at the setting time
Function breakdown Compared with the previous design of the program, what is the biggest characteristic of the program to unplug the charger at the setting time? 1 1 Unplug the charger at the setting time Set the time Unplug the charger
9
2 Achievement of time setting
How to achieve the function of time setting? Current time Start time Setting time < + ?
10
Program flow chart Acquire the system time and set it as the start time Set the fixed time Acquire the current time Judge whether the current time is the setting time Unplug the charger No 1 3 Yes
11
Function achievement: unplug the charger
4
12
1 5 Function achievement: time setting Step 1: acquire the system time
Step 2: view the format
13
1 5 + < ? Function achievement: time setting
Step 3: time relationship 1 Step 4: logic judgment 5 Step 5: repeat the operation “When” cycle “Till” cycle Setting time Current time Start time + < ? Acquire the current time which is reflected in the program running process in a real-time manner Record the program start time, and assign a value through the acquired time at the beginning of the program. The setting time is expressed in seconds.
14
Example of comparing time program with “when” cycle
Function achievement: time setting Example of comparing time program with “when” cycle 1 5
15
Function achievement: view the implementation process
6
16
III. Skills competition
17
It is time to operate by yourself!
18
I control my manipulator
Operation purpose: Blockly program advancement Operation task: the manipulator performs the function of unplugging the charger automatically
19
Program example
20
IV. Classroom summary
21
Summary What have we learned in this lesson?
- Achieve the implementation of a certain task by the manipulator using the graphical programming software - Acquisition and logic judgment of the learning system time, the function and operation method of “When” cycle and “Till” cycle structure, printing module, etc.; - Review the definition and call of the function, the definition and assignment of variables, mathematical operation, the movement mode of the manipulator, time delay and other functional modules.
22
After-class thinking How to write the statements when “Till type cycle structure” is used to achieve the judgment of time setting?
23
THANK YOU
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.