Lesson 4 Variables.

Slides:



Advertisements
Similar presentations
08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
Advertisements

This symbol is used to; Start a flow-chart; Stop a singe flow-chart (or all flow charts in that program); Mark the Start of a Sub-Routine (a separate.
Flowol The Task.
Bridge Traffic Lights Mimic Name:. Learning Objective How to use Flowol and the Bridge Light Mimic to safely control a set of traffic lights Learning.
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
My Portfolio The area I am working on to improve my Level My end of year target is.. I am becoming more confident in this area I have met this target and.
Do it now activity Last lesson we learnt about instructions are run in a computer. Write a set of instructions that a computer could follow to make a cup.
CSC103: Introduction to Computer and Programming
1-6 Writing Expressions Objective (things to learn): With this section you will need to learn how to evaluate variable expressions. Terms to Know 1. Variable-is.
1. Know the different types of flow block 2. Understand how problems can be broken down into smaller problems.
Flowol subroutines Subroutines are used to:  Simplify your code to make it easier to read (or for someone.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Application of Math and Science Principles Creating a robot that moves a specified distance straight ahead and Creating a robot that turns a specified.
Minds and Computers 3.1 Preview Spin left motor Spin right motor Wait until the motors have spun two rotations Stop left motor Stop right motor What five.
Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.
Slide 1 Controlling Sequences of Events Traffic lights Event table.
Evaluating Expressions
Your Brief: You are the lead programmer responsible for designing and implementing the control program that controls all input and output devices in the.
Flowol Lighthouses don’t all have the same flash pattern  Can you make your lighthouse flash with 3 long and.
W e A re L earning T o  Understand the term control and program  To understand the basic symbols used in Flowol.
Lesson 2 Inputs. Lesson objectives To understand how inputs can be used to control an output To consider how to make mimics more realistic.
PLC APPLICATIONS MODULE 3 Time sequence processes.
Challenge #1: Cuckoo Clock Create a flow chart to make a cuckoo clock chime every hour. Use the symbols on the right to make it. This will include iteration.
PLC APPLICATIONS MODULE 3 Time sequence processes.
Control You can use this presentation to complete the tasks set in the lesson. When instructed by the teacher attempt to complete each task on the corresponding.
Unit 9.1_Lesson 4_CD Resource 4a_Sensors and flowcharts Sensors and Flowcharts.
Control Technology START What is control technology? What is this diagram called? In which program have you used these before? Lets Go!
Algorithms and Flowcharts
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Creating Flowcharts Principles of Engineering
Creating a Flowchart Computer Integrated Manufacturing
Sensors Control Systems with Flowol.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Flowchart Symbols Terminal Process Input/ Output Decision
Investigating the Law of Reflection
Algebraic Expressions
7/14/16 CTC-RI IBH Pilot Quarterly Meeting
Controlling input/output devices using Flowol
Automatic lights.
Learning Objective: to be able to design programs that use sequencing.
Do now! Can you write in your planners that the energy sheet you stuck in at the end of last lesson is for HOMEWORK due next Wednesday?
Creating Flowcharts Principles of Engineering
Iterations Programming Condition Controlled Loops (WHILE Loop)
Creating Flowcharts AIM:
BBC Microbit.
Print slides for students reference
Creating Flowcharts Principles of Engineering
Creating a completed control system
INTERMEDIATE PROGRAMMING LESSON
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Series Circuits Lesson 8.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Lesson 3 Sub-Routines.
Variables in Algebra Chapter 1 Section 1.
INTERMEDIATE PROGRAMMING LESSON
Storing Values as Variables
Introduction to Algorithms and Programming
Investigating the Law of Reflection
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Paper, Pencil and Textbook
YOUR text YOUR text YOUR text YOUR text
Creating Flowcharts Principles of Engineering
Algebra: Variables & Expressions
Creating Flowcharts Principles Of Engineering
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Lesson 3.3 Writing functions.
Presentation transcript:

Lesson 4 Variables

Lesson Objectives To understand what variables are To understand how they can be used in control technology

Variables In which other subjects have you used variables? What do we use them for?

Variables A variable assigns any value to a letter. Like in algebra a2xb2=c2 , a b and c are all equal to numbers.

Task 1: Open Flowol and open the Big Wheel mimic. This mimic has 4 inputs and 4 outputs You can control 3 lights and 1 motor

How does it work? How does a Big Wheel actually work? They move around but stop each time to let people on and off.

Click the big wheel Notice how every time the big wheel goes around, the light on the steps lights up How could we use this to make the wheel stop each time to let people on?

With a variable! We need to create a variable. We will call it x. Each time the light on the steps lights up it stop the wheel and add 1 to x. When x equals a certain number (when all the people are on) we can make it rotate normally.

Create a new variable At the top right, click the XY symbol. This will automatically create 2 variables called X and Y that you can see here.

X=0 Before we start we need to make sure that x=0. Create this flow chart

Create a flow diagram which does the following Turn wheel forward Is the light on the steps on? If yes, turn wheel off. If no, loop to turning wheel forward Delay Let A=A+1 Is A = to 24? If it is all the people are on and the wheel can keep going. If not, loop back to turn wheel forward Delay as long as the ride is Turn wheel off.