Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.

Slides:



Advertisements
Similar presentations
Engineering Roles We will be forming groups of 3 students
Advertisements

Build the Tumbler.
Automation and Robotics
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Photos and Sensor Instructions
V EX C OACHES ' T RAINING October 12, Agenda for Today 9 – 10 AM : Tina Reeves and the Engineering Notebook 10 – Noon : Finish Building, Basic Robot.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
Connecting VEX and ROBOTC
Technical Topics for Teams August BEST GAME RULES.
Controller, Sensors and Motors Ding Ke Tutorial 1, UGB 230N.
Program ultrasonic range sensor in autonomous mode
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell.
Introduction to the VEX ® Robotics Platform and ROBOTC Software © 2012 Project Lead The Way, Inc.Principles of Engineering.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
VEX Parts – Batteries, Logic, and Controls
Teacher/Mentor Institute Hands-On Session: Building a Robot Carolyn Bauer July 30-31, 2015.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Photos and Sensor Instructions
Lynxmotion Robotic Arm
Vex Robotics Program four: reversing and turning.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
By Joshua Shaw.  Now that we have a program, we should see how it works in the real world  To do this we need the Cortex and the orange USB cable 
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Vex Robotics program three: using motors and sensors together.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
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  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
Basic Programming: Until Commands. The Problem with Wait States Motor Speed is affected by battery power. –If the battery is fully charged, the motors.
Project Overview  Introduction  Frame Build  Motion  Power  Control  Sensors  Advanced Sensors  Open design challenges  Project evaluation.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Teacher/Mentor Institute Hands-On Session: Building a Robot Carolyn Bauer July 21-22, 2016.
Electrical Engineer Responsibilities
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Know your Robot Electrical Parts
Download the GOTO BEACON program from the E10 website, Robot lab section,
ROBOTC for VEX Online Professional Development
Electrical Engineer Responsibilities
ROBOTC for VEX Online Professional Development
Project Overview Introduction Clawbot Build Design Modification
Electrical Engineer Responsibilities
Automation and Robotics
Vex Ultrasonic Sensor (US) Interfacing and Programming
Programming Part 2 Mod Kit
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Basics for Robotics Programming
Electrical Engineer Responsibilities
Sensors Training.
Automation and Robotics
Download the GOTO BEACON program from the E10 website, Robot lab section,
TECH 1 BAMS Technology Education
Holyoke Codes LEGO ROBOTICS
Storing Values as Variables
Photos and Sensor Instructions
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
LEGO MINDSTORMS NXT PROGRAMMING
Introduction to Programing the Cortex for BEST
Presentation transcript:

Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1

7.2 V, 3000 mAh battery pack and charger Ken Youssefi Introduction to Engineering – E10 2

Ken Youssefi 3 Controller (Cortex) Motor and Servo ports 8 analog and 12 digital ports. Digital ports are used for Limit, Bumper and Ultrasonic sensors Introduction to Engineering – E10

Ken Youssefi 4 Side view of the VEX Controller Batter Ports Backup Batter Port (not available) On/Off switch Introduction to Engineering – E10

Orange cable (USB connections at both ends) used to download programs from computer to the controller Battery connection Ken Youssefi Introduction to Engineering – E10 5

Hsu/Youssefi 6 Mechanical Components – Motor (Cortex) The new robot kit includes three 2-wire motors that can be converted to a 3-wire motor using the controller 29. Ports 1 and 10 on the new controller are designated for 2-wire motors only. 2 pins 3 pins

Ken Youssefi 7 Servo are used to control the rotation of a shaft (controls the motion of the robot arm). Make sure the clutch module is always used. It prevents damage to the motor in case of large torque. Servo and Clutch Introduction to Engineering – E10 Clutch

VEX Sensors Ultrasonic Sensor Bumper Switch Sensor Limit Switch Sensor Attach all digital sensors to 1-12 ports in Digital section Ken Youssefi Introduction to Engineering – E10 8

Infrared Receiver Board (IRB), the eyes of the robot. 8 Detectors, cover a field of view of 100 O Ken Youssefi Introduction to Engineering – E10 9

Do’s and Don’t’s Do not place the VEX manual in your box, leave it on the table. Do not tamper with other group’s robot. Do not leave your box on the table, store it on top of the work bench that includes your box number. Clean up before leaving There are two size of allen wrenches used for tightening screws. Leave the allen wrenches on the table for all to share. Make sure the battery is charged. Ken Youssefi Introduction to Engineering – E10 10

Design Considerations The best design is the simplest design. Make your robot using the fewest number of parts. You will have to plug and unplug components from the controller, leave space so the top of controller is readily accessible. Plan ahead the location of the major components (controller, battery, electronic board, the arm, sensors The electronic board should be in the front and the white LEDs should have an unobstructed view of the beacon. The height of the LEDs should be roughly the same as the ones in the beacon. The electronic board should be insulated from the metal parts of the robot. Otherwise the IRB will be shorted Ken Youssefi Introduction to Engineering – E10 11

EasyCcortex Select New Standalone Project Choose Autonomous Only Project Ken Youssefi Introduction to Engineering – E10 12

From Window option select the Block & C Programing option to view the code Function blocks Flow chart Program code Ken Youssefi Introduction to Engineering – E10 13

EasyCcortex Layout Function blocks Flow chart window Program code window Your program is inserted here Ken Youssefi Introduction to Engineering – E10 14

Program blocks Sensor blocks Outputs options Ken Youssefi Introduction to Engineering – E10 15

Adding Continuous motor Select Motor, drag and drop on the line between Begin and End Enter motor number, as connected to the Controller motor port Max. speed counterclockwise Max. speed clockwise Custom speed Ken Youssefi Introduction to Engineering – E10 16

Servo motor Servos control the position of the motor shaft, angle of rotation Connect the Motor Controller 29 to the 2-wire Motor. This converts a 2-wire motor to a 3-wire servo. Connect Red to Red wire Ken Youssefi Introduction to Engineering – E10 17

Robot moves forward at high speed Robot moving forward Motor 2 rotates at max speed counterclockwise Motor 1 rotates at max speed clockwise Ken Youssefi Introduction to Engineering – E10 18

The Wait function Enter time in millisecond (5000 msec) Ken Youssefi Introduction to Engineering – E10 19

Robot goes forward at top speed for 5 seconds and then stops Robot goes forward at top speed for 5 seconds and then stops. It waits 1 second and then it turns right at half speed for 2 seconds and goes forward. Ken Youssefi Introduction to Engineering – E10 20

Objective Write a program so that the robot, upon encountering any obstacle, would back up, turn and continue. Define all sensors: Limit and Bumper switches on the right and left side of the robot. Right click on the Variable and Edit the Block Ken Youssefi Introduction to Engineering – E10 21

Initializing and scanning the sensors Inside a While Loop, drag and drop all sensors Add an IF statement to check if the sensors have been activated or not (robot has hit an obstacle or not) Ken Youssefi Introduction to Engineering – E10 22

ELSE  one of the sensors is activated (o) Stop both motors for 1 second Back up for 2 seconds Turn for 2 seconds Go forward Ken Youssefi Introduction to Engineering – E10 23

Downloading the Program to the Controller Connect the PC to the Controller using the USB orange cord. Select Build and Download option. Follow the on screen instructions. Check for compilation errors in the Program Code section. Ken Youssefi Introduction to Engineering – E10 24