Dr. Gary Stewardson, Raymond Boyles Hello again, Sparkey here. Slippery and I will help you explore how to create a program that simulates outputs on a.

Slides:



Advertisements
Similar presentations
CS 240 Computer Programming 1
Advertisements

Selection Flow Charts If statements. Flow of Control The flow of control is a concept we’ve already encountered. The concept of control relates to the.
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.
Creating Flowcharts Principles Of Engineering
FLOWCHART BASED DESIGN A flowchart is ideal for a process that has sequential process steps. The steps will be executed in a simple order that may change.
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
CS 240 Computer Programming 1
Flow Chart.
PIC Programming with Logicator
Photos and Sensor Instructions
Ladder Logic PLC Programs are made up of combinations of AND; OR; NAND; NOR; and other gates, along with timers, inputs, outputs, counters, comparators,
Chapter 2- Visual Basic Schneider
PRESENTED BY NASIR ABBAS. FLOW CHART CONTENTS What is a flow chart? Flow chart symbols.
Developing logic (Examples on algorithm and flowchart)
The Program Design Phases
Algorithm & Flowchart.
PICS / Microcontrollers
Hello there, I am Smasher. Shorty, Smiley and myself will be assisting you as we learn how to wire a simple circuit. When you are finished with this lesson.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Hello, I am Smasher. I would like to introduce Sparky, Slippery, Shorty, and Smiley. We are going to be helping you to safely work with basic electrical.
Programming PLCs using LADDER Logic
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
Dr. Gary Stewardson, Raymond Boyles Smasher here. Slippery and I will help you explore wiring parallel circuits. 1 Smasher Slippery.
Flowcharts.
Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to.
LO: We’re learning to demonstrate the need for breaking down problems into smaller ones.
3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS.
H E A T W A V E By Brittany Romatowski. Research To get some ideas on different designs and functions of computer mice, we researched ones that were already.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Flowcharting An Introduction. Definition A flowchart is a schematic representation of an algorithm or a process.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Introducing block scheme programming March 17. Algorithm / Flow chart An algorithm or a flowchart is a step-by-step procedure for solving a particular.
Selection Flow Charts If statements. Flow of Control The flow of control is a concept with which we’re already familiar. The concept of control relates.
Software using a flowchart method of creating a control programme.
Flowcharts. Learning Objectives To learn how to break down tasks How to create a flowchart.
S3 INNOVATION ELECTRONICS. LESSON TITLE: ELECTRONICS Learning Intention: To understand when to use different types of logic gates Activity: Building own.
Learning Objective To be able to… Understand flow chart symbols Complete and correct flow chart algorithms Create a program based on a flow chart.
Lesson 2 Inputs. Lesson objectives To understand how inputs can be used to control an output To consider how to make mimics more realistic.
Hello there. Smiley, Smasher, and myself will be assisting you as we learn how to wire a mechanical relay circuit. When you are finished with this lesson.
Introduction to the DE0 Board Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Computer Logic Design.
Dr. Gary Stewardson, Raymond Boyles Shorty here. Smiley and I will help you explore wiring series circuits. 1 Shorty Smiley.
PLC APPLICATIONS MODULE 3 Time sequence processes.
FLOW CHARTS IN PROCESS DESCRIPTION FRANK CHINGARANDE.
Problem Solving Flowcharts. Flowcharts Introduction  Flowcharts allow us to create a visual representation of a solution to a problem DRAW  With flowcharts,
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
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
Dr. Gary Stewardson, Raymond Boyles
7/14/16 CTC-RI IBH Pilot Quarterly Meeting
COMP211 Computer Logic Design Introduction to the DE2 Board
Programming Flowcharts
Computer Programming Flowchart.
Creating Flowcharts Principles of Engineering
Creating Flowcharts AIM:
Creating Flowcharts Principles of Engineering
Crumble PowerPoint 3.
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Lab 1. Introduction to the DE2 Board
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Creating Flowcharts Principles of Engineering
Oregon Robotics Tournament and Outreach Program
Creating Flowcharts Principles Of Engineering
Creating Flowcharts Name of PowerPoint CIM Name of Lesson
Introduction to Flowcharts
Presentation transcript:

Dr. Gary Stewardson, Raymond Boyles Hello again, Sparkey here. Slippery and I will help you explore how to create a program that simulates outputs on a traffic light. Make sure you have your guided notes. 1 Flowcharts

Dr. Gary Stewardson, Raymond Boyles Flowcharts can be a useful tool that better enable us to organize, problem solve, and brainstorm when we are writing a program. Flowcharts are similar to thinking maps and concept maps we use to organize, problem solve, and brainstorm when we are writing a paper. Flowcharts 2

Dr. Gary Stewardson, Raymond Boyles In our last program, we wrote a program to turn on a light for two seconds. Let’s use symbols to represent the logical flow of this program. Flowcharts 3

Dr. Gary Stewardson, Raymond Boyles Symbols Start and Stop symbols represent the beginning or end of a program. These symbols are simply a place holder and are oval. 4

Dr. Gary Stewardson, Raymond Boyles Input and outputs from the computer can be represented by the parallelogram symbol below. We use this symbol to represent when we turned the light on. 5 Symbols

Dr. Gary Stewardson, Raymond Boyles Symbols We can also use this symbol to represent a switch or a touch sensor. 6

Dr. Gary Stewardson, Raymond Boyles Symbols Process symbols represent computational action as rectangles or blocks and represent “Action”. For example, we use this symbol to represent the timer counting two seconds. 7

Dr. Gary Stewardson, Raymond Boyles Symbols The decision symbol represents a yes/no and is in the shape of a diamond. We use this symbols to represent testing if the counter has counted to two. 8

Dr. Gary Stewardson, Raymond Boyles Symbols The decision symbol can also represent if a switch or a touch sensor is pushed or not. 9

Dr. Gary Stewardson, Raymond Boyles Symbols The arrow symbols represent the direction of flow in a program. The arrow symbols shows how the logic flows in a computer program. 10

Dr. Gary Stewardson, Raymond Boyles Complete Flowchart The connection of all the symbols shows a process. The flowchart to the right represents the process of turning a light on for two seconds, then turning off the light, and then ending the program. 11

Dr. Gary Stewardson, Raymond Boyles Complete Flowchart 1.Start the process 2.Turn on the light 3.- If (Yes) the time has expired then: Go to Stop - If (No) the time has not expired then keep counting 4.Turn off the light 5.Stop 12

Dr. Gary Stewardson, Raymond Boyles Flow Chart Activity Our next program will perform the following so please write these down in your activity guided notes: The green light and red light will turn on for two seconds. The green and red light will turn off. The green and yellow light will turn on for one second The green and yellow light will turn off 13

Dr. Gary Stewardson, Raymond Boyles Flow Chart Activity Wiring: The green light is connected to Port A of the NXT controller and relay 1 on the relay board. The yellow light is connected to Port B of the NXT controller and relay 2 on the relay board The red light is connected to Port C of the NXT controller and relay 3 on the relay board 14

Dr. Gary Stewardson, Raymond Boyles Pre-Programming Activity With the symbols below and the PowerPoint guided notes, create a flow chart that represents a computer program that will logically follow the steps you have just written in your Activity 10 guided notes. 15

Dr. Gary Stewardson, Raymond Boyles Flow Chart 16 Your flow chart should look something like the flowchart pictured to the right.

Dr. Gary Stewardson, Raymond Boyles Flow Chart NXT Object Reference 17 Your computer program should look something like the flowchart pictured to the right.

Dr. Gary Stewardson, Raymond Boyles Complete Flowchart Can you flowchart the process of a traffic light? 18

Dr. Gary Stewardson, Raymond Boyles Complete Flowchart Now, let us complete Activity 10 19