Available at: www.etcurr.comLesson 3.3 – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Engineering Roles We will be forming groups of 3 students
VEX Robotics Platform and ROBOTC Software Introduction.
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
Photos and Sensor Instructions
VEX Robotics Platform and ROBOTC Software
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
DC Motors DC Motors are widely used in robotics because of their small size and high energy output. Key characteristics of DC motors include: 1. High Speed.
Connecting VEX and ROBOTC
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. CAN I MAKE MY OWN SENSOR 2 This lesson will explain how to hook a standard dial potentiometer into.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Working with Arduino: Lesson #3: Force Sensitive Resistors EGN1007.
VEX Robotics Platform and ROBOTC Software
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
Do Now Describe what you think happens electrically when you dim a light.
Program ultrasonic range sensor in autonomous mode
ROBOTC for VEX On-Site Professional Development
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Introduction to the VEX ® Robotics Platform and ROBOTC Software © 2012 Project Lead The Way, Inc.Principles of Engineering.
Investigation 16B  Key Question: What is the relationship between current and voltage in a circuit? Resistance and Ohm’s Law.
Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Working with Arduino: Lesson #4: Servos EGN1007. Learning Goals Learning Goals: The student will be able to: 1.Build a complete circuit using the Arduino.
Question ONE What is the name of this component?.
Develop a Gantt Chart.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
VEX Robotics Design System Sensors A Brief Overview
Robot C and Natural Language
Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Photos and Sensor Instructions
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Automated Mechanisms Help. Potentiometers Potentiometer Check –Analog Port 2 How they work –Analog sensor –Measures rotation of a shaft between 0 and.
Available at: – Program Functions to Accept Values Program Functions to Accept Values.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Available at: – Program Functions for VEX Robots Program Functions for VEX Robots.
Potential – Learning Outcomes  Draw and discuss a potential divider.  Demonstrate a potential divider.  Discuss potentiometers and their use in variable.
Modern Control Systems Lab#04 PID Position and speed control of D.C Motor Dr. Imtiaz Hussain
Vex Robotics program three: using motors and sensors together.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Connect VEX and ROBOTC Electrical Engineer Responsibilities © 2011 Project Lead The Way, Inc.Automation and Robotics VEX.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
Introduction to VEX® components
Project Overview  Introduction  Frame Build  Motion  Power  Control  Sensors  Advanced Sensors  Open design challenges  Project evaluation.
Electrical Engineer Responsibilities
VEX® Robotics Platform and ROBOTC Software
Programming & Sensors.
Control Devices/Electrical Conditioners
Know your Robot Electrical Parts
- Usable range of 0 to 6 feet. - Find dark or bright areas.
VEX® Robotics Platform and ROBOTC Software
ROBOTC for VEX Online Professional Development
Electrical Engineer Responsibilities
VEX Robotics Platform and ROBOTC Software
ROBOTC for VEX On-Site Professional Development
ROBOTC for VEX Online Professional Development
DC MOTOR SPEED CONTROL 1. Introduction
Electrical Engineer Responsibilities
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Basics for Robotics Programming
Electrical Engineer Responsibilities
VEX® Robotics Platform and ROBOTC Software
Potential Dividers Electric Circuits ☞.
VEX® Robotics Platform and ROBOTC Software
VEX® Robotics Platform and ROBOTC Software
Photos and Sensor Instructions
Programming & Sensors.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Presentation transcript:

Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode

Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode  Performance Objective: Given the components of a VEX robotics design system program potentiometer in autonomous mode to have a robot arm move up or down depending on the start position.  Enabling Objectives:  explain the purpose of a potentiometer  explain how a potentiometer operates  draw a flow chart for using a potentiometer  program a potentiometer

Available at: – Program Potentiometer in Autonomous Mode Potentiometer  A potentiometer is an electrical component whose resistance is adjustable  You can therefore adjust the degree to which the potentiometer opposes electric current through it, simply by turning a shaft that is attached to the center of the potentiometer  As the resistance of the potentiometer changes, so does the voltage across the resistor  This varying voltage is directly proportional to the angular position of the shaft connected to the center of the potentiometer  This allows you to obtain an analog measurement of an angular position.

Available at: – Program Potentiometer in Autonomous Mode Potentiometer Limits  It is important to ensure that the shaft that is being measured by the potentiometer does not travel more than 260° (the potentiometer can only move approximately 265 ° ±5 ° and can only electrically measure 250 ° ±20 °)  To measure the motion of an attached component that rotates more than 230 °, try gearing down the shaft’s motion such that the gear attached to this “primary” shaft turns a larger gear attached to a “secondary” shaft  This secondary shaft will therefore rotate less distance than the primary shaft  This way, you should be able to indirectly measure the rotation of the primary shaft by directly measuring the rotation of the secondary shaft

Available at: – Program Potentiometer in Autonomous Mode Finding the limits of a potentiometer  In order to see the limits of the potentiometer on a specific robot you should run the test code and move the robot arm by hand  By moving the arm you can physically see the limits as well as see what values represent each limit

Available at: – Program Potentiometer in Autonomous Mode Downloading the test code  Before downloading the test code, plug in the potentiometer to an analog input port  In easyC open the test code by clicking on open, in the projects folder click on the samples folder, from the samples folder open the potentiometer test folder, in this folder open the potentiometer test project  Download this code  Move the arm and notice the range in values of the potentiometer when you move the arm up and down

Available at: – Program Potentiometer in Autonomous Mode Program the potentiometer  Draw the flow chart for this program code  Program the robot to change the position of the arm from up to down or visa versa depending on the start position of the arm using the potentiometer

Available at: – Program Potentiometer in Autonomous Mode Program the potentiometer  Open a new competition project  Set the configuration for the microcontroller  Define a new global variable for the potentiometer

Available at: – Program Potentiometer in Autonomous Mode Program the potentiometer  Insert the function block to get the input of the potentiometer  Set the port number  Set the variable to retrieve the value

Available at: – Program Potentiometer in Autonomous Mode Program the potentiometer  Insert an If statement to move the arm up if the arm starts in the down position

Available at: – Program Potentiometer in Autonomous Mode Program the potentiometer  Insert an Else-If statement to move the arm down if the arm starts in the up position

Available at: – Program Potentiometer in Autonomous Mode Test the program  Download you code and use the Competition Switch Simulator to test the code  If you start the program and the arm moves to the opposite position, great!  If you started the arm up in the first test, start it in the down position and retest the program to ensure it works for both directions

Available at: – Program Potentiometer in Autonomous Mode Show it off  If your code works, show it to your instructor!  You are now finished programming the potentiometer  For additional technical information visit: