BAMS TECHNOLOGY EDUCATION TECH 1 BAMS Technology Education

BAMS TECHNOLOGY EDUCATION TECH 1 BAMS Technology Education

BAMS TECHNOLOGY EDUCATION TECH 1 BAMS Technology Education 2/24/20 BAMS TECHNOLOGY EDUCATION BELL RINGER Log on to a computer and open Chrome my.pltw.org Log on change password under settings

Agree to termsLMSCoursesAR Assignment Download Pegboard Toy word document and read instructions. BAMS TECHNOLOGY EDUCATION Basic Programming: Motor and Wait Commands BAMS TECHNOLOGY EDUCATION

VEX Motors Main Type: 2-wire motor 269 Newer 2-wire motor 269 Newer 2-wire motor 393 All motors are programmed the same way in ROBOTC Accept values between 127 (full forward) and -127 (full reverse) BAMS TECHNOLOGY EDUCATION

Connecting the Motors Two-wire motors can be plugged directly into MOTOR ports 1 & 10 on the Cortex, Connect 2-9 using the Motor Controller 29 BAMS TECHNOLOGY EDUCATION

Motor 2 for 5 Seconds BAMS TECHNOLOGY EDUCATION Motor 2 for 5 Seconds Displays configuration changes from the Motors and Sensors Setup Defines the main task of the robot All commands belonging to task main must be in-between these curly

braces BAMS TECHNOLOGY EDUCATION Motor 2 for 5 Seconds Turns the port2 rightMotor on at half power forward BAMS TECHNOLOGY EDUCATION Motor 2 for 5 Seconds

Causes the robot to wait here in the program for 5.0 seconds BAMS TECHNOLOGY EDUCATION Motor 2 for 5 Seconds Stops the port2 rightMotor. End Result: rightMotor spins for 5.0 seconds.

BAMS TECHNOLOGY EDUCATION Naming Rules The Motors and Sensor Setup window allows you to give your motors and sensors custom names. The names, however: Should be descriptive of the sensor or motor they refer to (rightMotor, frontBumper, ect.) Must be all one word made up of letters, numbers, and spaces Must contain no special characters (&, $, /,

ect.) BAMS TECHNOLOGY EDUCATION Sensor Information: Touch Sensors BAMS TECHNOLOGY EDUCATION Touch Sensors Touch Sensor Check Plugged into Digital 1 & 2

How they work Digital sensor - Pressed or Released 1 = pressed 0 = released Two Types Limit Switches Bumper Switches Using them The SensorValue[] command

untilTouch, untilRelease, untilBump NL commands BAMS TECHNOLOGY EDUCATION Touch Sensors Other Properties Limit Switch arm can be bent to create a more ideal hit area Both sensors spring back to open position Limitations Watch out for bouncing. As the sensor is pressed or released, it may bounce

between 0 and 1 very briefly and quickly. A very brief wait can be inserted after touch sensor related commands to reduce the bouncing effect: BAMS TECHNOLOGY EDUCATION VEX LED Plugged into DIGITAL Port 12

Set as VEX LED In the debugger 0 is ON and 1 is OFF Red, Green, and Yellow colors available BAMS TECHNOLOGY EDUCATION VEX LED Before connecting the LED to the Cortex using an extension cable, first

connect it directly to the Cortex to see how it is properly inserted. You'll notice that one side is "keyed", which only allows it to be inserted in one direction. Plug it in on one of the DIGITAL ports. Notice that the two prongs are inserted toward the center of the Cortex. Unplug the LED. Plug the PWM Extension wire into the desired DIGITAL Port on the VEX Cortex. Newer extension wires are keyed in a similar manner to the LED and other VEX sensors; older wires may not be.

Plug the extension wire in so that the white wire is closest to the center USB port on the Cortex. Connect the LED to the PWM Extension wire. The outer terminal on the LED should be plugged in on the white wire. The center terminal on the LED should be plugged in on the red wire. The black wire should have nothing connected. BAMS TECHNOLOGY EDUCATION

Sensor Information Line Tracker BAMS TECHNOLOGY EDUCATION Line Tracking Active Light Sensor Set of 3 Analog Sensors Sends out a IR beam, and measure how much is reflected back Each reads values between 0

and 4095 Using them The SensorValue[] command untilDark, untilLight, lineTrackforDistance, lineTrackforTime BAMS TECHNOLOGY EDUCATION Line Tracking Other Properties The Line Tracker should be kept between 1/4

and 1/8 of an inch of what its measuring for the best results. Constant, consistent lighting is also very important for achieving repeatable robot behavior. In order to use the Line Tracking sensor(s) you must first calculate a threshold that allows it to distinguish light from dark. BAMS TECHNOLOGY EDUCATION Sensor Information:

Potentiometer BAMS TECHNOLOGY EDUCATION Potentiometers Potentiometer Check Analog Port 2 How they work Analog sensor Measures rotation of a shaft

between 0 and ~265 degrees Cortex returns values 0 - ~4095 Using them The SensorValue[] command untilPotentiometerGreaterThan untilPotentiometerLessThan BAMS TECHNOLOGY EDUCATION Potentiometers Other Properties

Internal mechanical stops prevent the potentiometer from turning a full revolution. Limitations Caution: Excess torque against the internal mechanical stops (can be caused by hand or by a VEX motor) will cause them to wear away. The potentiometer will continue to function, but will have a dead zone where the mechanical stops were, where no new values are sent. Switching the direction the potentiometer is facing will also switch the direction it counts. For example: counter-clockwise turns will count 0 to 4095 on one side; on the other

counter-clockwise turns will count 4095 0.

Recently Viewed Presentations

  • Discussion with LHCC Referees November 18, 2008 Memo

    Discussion with LHCC Referees November 18, 2008 Memo

    Discussion with LHCC Referees November 18, 2008 Memo sent to LHCC by LHCf Answers to Michelangelo's questions Open point left from the previous meetings with referees
  • Postgraduate Research Studies Induction and Welcome Professor Barry

    Postgraduate Research Studies Induction and Welcome Professor Barry

    Research Student activities Research Student activities Research Student Reception Monday 4th October 4 pm Professor Tom Kirkwood CBE Director, Institute for Ageing & Health Thank you and best wishes for successful studies * * * * * * * *...
  • Community Shuttles RFQ Information Session March 9, 2017

    Community Shuttles RFQ Information Session March 9, 2017

    Results-Based Accountability Framework (pg. 5) HSD's Theory of Change ensures that data informs our investments - particularly around addressing disparities - and shows the logical link between the desired results, indicators of success, racial equity goals based on disparity data,...
  • 9 - Informal Fallacies

    9 - Informal Fallacies

    B: That cannot be true. My grandfather has smoked since he was 16 and he is still very healthy. 7. Fallacy of Missing the Point * Ignoratio elenchi This happens when the premises of an argument lead, or seem to...
  • Everett, Washington Districting Commission

    Everett, Washington Districting Commission

    When are the public forums to present your plan? When does it have to be approved? Who is responsible for the development of the plans? State Leg, Gov. Appointed Committee, City Council, Mayor, Independent Committee, etc. How does your jurisdiction...
  • PowerPoint プレゼンテーション - University of Queensland

    PowerPoint プレゼンテーション - University of Queensland

    Online Syllabus Service @ https://syllabus.cels.hit-u.ac.jp/ HU Course Coding System - How to identify course levels. Click on a course title to see the course syllabus. Which faculty, school, or a program the course is offered under can be also found...
  • Pulling it together

    Pulling it together

    Third person. But normally we use the third person (he, she, they, one) for less personal narrations. Sometimes we can call on it for amusing effect: Belly dancers in the British Embassy under the patronage of Lady Ramsbotham have danced...
  • Indonesian Culture - Global Learning Circles

    Indonesian Culture - Global Learning Circles

    The examples of the Indonesian culture are the Dangdut music, Rendang food and the Silat Minangkabau martial arts INDONESIAN CUISINE Indonesian cuisine is a reflection of the diverse cultures and traditions derived from archipelago consisting of 6,000 islands and holds...