©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
-
date post
21-Dec-2015 -
Category
Documents
-
view
215 -
download
0
Transcript of ©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
©2006 CSUC Institute for Research in Intelligent Systems
Introduction to Coding
June 15, 2006
©2006 CSUC Institute for Research in Intelligent Systems
Basic Elements
Function: Repeat ForeverDescription: Code placed in block with begin running when program is activated and will never stop.
Function: Set PowerDescription: Set the power level from 1 to 10 for the motor. Right-click once to get the control screen
©2006 CSUC Institute for Research in Intelligent Systems
Basic Elements
Function: Set DirectionDescription: Set the direction for motor to turn. Right-click once to get control screen. Arrow in the same direction mean to turn wheel (left/right). Arrow in opposite direction means to go forward or backward.
Function: OnDescription: Turn motor on for 1.0 to 10.0 seconds. Right-click once to get control screen.
©2006 CSUC Institute for Research in Intelligent Systems
Basic Elements
Function: Touch SensorDescription: If touch sensor is pressed then codes will activate. Right-click once to change setting.
Function: Light SensorDescription: If light amount is within sensor range, then light or dark is indicated, and codes will activate. Right-click once to change setting.
Function: Off Description: Turn motor off completely (coast) or just brake.
©2006 CSUC Institute for Research in Intelligent Systems
Driving
Subroutine Description:
Turn left slowly for 1 second and then drive
forward fast for 3 seconds.
©2006 CSUC Institute for Research in Intelligent Systems
Bumper Sensor Navigation
Subroutine Description:
If touch sensor is pressed then motor will brake, backup slowly for 1 second, and make a
turn for 3 seconds.
©2006 CSUC Institute for Research in Intelligent Systems
Light Sensor Color Detection
Subroutine Description:
If light is within sensor range, then light or dark is indicated, and motor is turned off and a tune is
played to indicated finish.