introduction to robolab programming (1)
TRANSCRIPT
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 1/21
Introduction to Robolab Programming
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 2/21
New VI
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 3/21
Show Functions Palette
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 4/21
Windom Show Tools Pallette
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 5/21
Drive For ward 4 Seconds
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 6/21
The Tower Used to program Robot with
Computer
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 7/21
Download your program
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 8/21
Run your Program
Turn ON Select Program
Run Program
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 9/21
How does a robot turn?
� One wheel for ward, the other off � One wheel for ward, the other r everse
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 10/21
Program: Go for ward for 2
seconds, stop all motors, spinfor 2 seconds, stop all motors,
r everse for 2 seconds, stop
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 11/21
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 12/21
Day T
wo RoboLabProgramming
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 13/21
Following a line with a light
sensor
Which is brighter, white or black?
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 14/21
C A
C A
C A
C A
Deriving the
Algorithm
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 15/21
C A
Following
the Line Animation
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 16/21
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 17/21
Follow a line while touch is released, thenback up for 2 seconds
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 18/21
Extended Topics
� Adding Comments to your code� Powers of motors� Piano player � How the program works� Diff er ent kinds of loops (for, while, do)� Jumps ( GoTo)
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 19/21
Announce Your Group Name and Your Robot¶s Name
Describe the robot (including light sensor,touch sensor, driving base, motors, gears,
RCX brain, wir es)De
scribe wh
at your group programmed your robot to do (including follow the line with the
light sensor until the touch sensor is pushed)Run the robot
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 20/21
5/8/2018 Introduction to Robolab Programming (1) - slidepdf.com
http://slidepdf.com/reader/full/introduction-to-robolab-programming-1 21/21
Can you pr edict what this might do?