1 / 11

Automated Mechanisms Help

Automated Mechanisms Help. 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 Look in the natural Language Library to see how to write code

svea
Télécharger la présentation

Automated Mechanisms Help

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Automated Mechanisms Help

  2. 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 • Look in the natural Language Library to see how to write code for use [ slides 40 & 45 until commands]

  3. 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.

  4. Potentiometers • View the debugger window (under robot) and notice the value change as you turn the potentiometer.

  5. Using the ROBOTC Natural Language Library • The Natural Language is an additional Platform Type in ROBOTC:

  6. ROBOT Motion • Commands that cause the entire robot to perform a behavior

  7. Setup • Allows you to specify what type of robot configuration you have from pre-specified models (RECBOT, Swervebot)

  8. Movement • Commands that allow you to control individual motors

  9. Special • Commands that control the more unique VEX Hardware – LED’s

  10. Until • Commands that allow you to create behaviors where the robot acts “until” a certain event • Button Press • Line Tracker Value • Potentiometer Value

  11. Wait • Commands that wait for an elapsed amount of time in seconds or milliseconds

More Related