70 likes | 163 Views
Control technology – Lesson 3. Lesson Objectives To understand how to use a variable in a flowchart to solve a problem. To understand how to use monitoring boxes to assist in debugging programs. Crocodile Clips. You have 5 minutes to re-create a dance routine from yesterday! Go! .
E N D
Control technology – Lesson 3 Lesson Objectives • To understand how to use a variable in a flowchart to solve a problem. • To understand how to use monitoring boxes to assist in debugging programs
Crocodile Clips • You have 5 minutes to re-create a dance routine from yesterday! Go!
What is control technology? • What different types of sensor are there? • Where can you see Control Technology being used in every day life?
Variables • In control technology we use variables to control devices. • A variable is something which can stand for any value • Like in algebra a2xb2=c2 , a b and c are all equal to numbers
Variables in control technology • We want to control a washing machine to go around 100 times before it stops • We have a variable called y • y is equal to 0 • When the washing machine goes around once we add 1 to y • When y is equal to 100 the washing machine stops
The flow chart Always include a start Start This makes sure at the start of the flow diagram that y is always equal to 0. It resets it. Y = 0 Add 1 to y We then add 1 to y This asks the question, is y equal to 100? If it is the flow chart will stop (the machine will stop) if it isn’t, the flow chart will loop and add another 1 to y until it equals 100 Y = 100? Stop This stops the machine