Download presentation
Presentation is loading. Please wait.
1
Flow Diagrams Start End
These are called termination blocks. They are naturally used at the beginning and end of a program. There is no prizes for guessing that we use the words “start” and “end” in them.
2
Flow Diagrams Add coffee Is the cup full? No Yes
The next block is a rectangle which an action block. The action block is a doing block like a verb. So it could have “make a cup of tea”; “go forward”; “turn right” The next block is a decision diamond. A question is asked in the block. “Is the cup full?”; “Is the distance less than 1m?”; “Is there a high pitched sound?” Yes
4
Flow Diagrams Start Add coffee Is the cup full? No Yes Stop
So now we can put it together to fill a cup. So here we start the process and fill the cup. We check “is the cup full?”. If yes we stop, no nasty spills. If no we loop back and continue to fill. Yes Stop
5
Flow Diagrams So here we start the process and fill the cup. We check “is the cup full?”. If yes we stop, no nasty spills. If no we loop back and continue to fill.
6
Flow Diagrams Drive Forward Is colour black? No Yes Start Reverse
Turn left This is the flow diagram for keeping a robot in the Sumo ring. It starts by driving forward. Then it asks the question “is the colour black?”. If yes it continues driving forward. If no it reverses and turns
8
Flow Diagrams Start Lower fork lift Drive Forward Wait 3 s
Lift fork lift Is the object within 20cm? Yes No This is the flow diagram for lifting the fork lift up if an object is within 20cm. We drive forward first. Then we check “is the object within 20cm”. If no loop round to the drive forward box and continue. If yes lift the fork lift up, drive forward for 3s and then lower the fork lift.
9
Flow Diagrams Driving Fork Lift Drive Forward
Is the object within 20cm? No Yes Start Lift fork lift Wait 3 s Lower fork lift Drive Forward Is colour black? No Yes Start Reverse Turn left Computers are clever these days and can have separate commands which they run together. Write each of your control diagrams on separate sheets e.g. One flow diagram steering , one flow diagram for using the arms.
10
Challenge Points The more algorithms you describe the more points The decisions must make sense The actions must be the correct ones for yes and no You can draw your flow diagrams on an A3 piece of paper
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.