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.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Vex Robotics Program five: using the radio control transmitter.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Lab7: Introduction to Arduino
Engineering Roles We will be forming groups of 3 students
Automation and Robotics
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Developed in collaboration with Introduction to Programming.
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.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Connecting VEX and ROBOTC
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
An Intro to Robots and Computer Programming
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
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.
Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Coding for the FIRST Tech Challenge: RobotC
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
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.
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)
Programming a light sensor to follow a black line.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
Vex Robotics Programming Sequence. Now that you’ve had some practice downloading and using the included programs, it's time to learn to write some of.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
Programming Design ROBOTC Software Principles of Engineering
Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included.
Vex Robotics Program six: combining autonomous and radio control.
Xtreme Robot Olympiad Programming Basics Dr. Peter Laz Associate Professor Department of Engineering University of Denver.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Engineering H193 - Team Project Gateway Engineering Education Coalition Lab 1P. 1Spring Quarter Introduction to Sensors Lab 1.
Vex Robotics Program four: reversing and turning.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
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.
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.
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.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
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.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
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 CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Introduction to LEGO Mindstorms EV3 What is in the box?
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Introduction to Programming
VEX Test Kit Introduction
Introduction To Programming with LEGO NXT 2
Introducing KIPR Link/Interface and Set-up
Automation and Robotics
Programming Design ROBOTC Software Computer Integrated Manufacturing
Programming Part 2 Mod Kit
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
IMDL Summer 2007: RoBeDeS by David Ladolcetta.
Sensors Training.
Automation and Robotics
Holyoke Codes LEGO ROBOTICS
Obstacle Detection.
Programming Design ROBOTC Software Principles of Engineering
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
LEGO MINDSTORMS NXT PROGRAMMING
Introduction to Programing the Cortex for BEST
Presentation transcript:

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 to Engineering – E10 1

Motors Clutch Make sure the clutch module is always on. It prevents damage to the motor in case of large torque (resistance to motion). Continuous motor Servo motor, rotates through a specified angle. Ken Youssefi Introduction to Engineering – E10 2

Bumper Switch Sensor Limit Switch Sensor attach all sensors to 5-8 ports on Analog/Digital section Ultrasonic Sensor Sensors Ken Youssefi Introduction to Engineering – E10 3

Micro Controller Sensor ports Motor ports Infrared Receiver Board, the eyes of the robot. Detectors, cover a field of view of 100 O Ken Youssefi Introduction to Engineering – E10 4

EasyC Select File and choose New Project Ken YoussefiIntroduction to Engineering – E105

Drag and Drop program window Code window Ken Youssefi Introduction to Engineering – E10 6

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

Servo motor Servos control the position of the motor shaft, angle of rotation Ken Youssefi Introduction to Engineering – E10 8

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

The Wait function Provide time in millisecond Ken Youssefi Introduction to Engineering – E10 10

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 turns right for 2 seconds and goes forward. Ken Youssefi Introduction to Engineering – E10 11

Controller Motor ports Sensor ports Ken Youssefi Introduction to Engineering – E10 12

Ports 5 – 8 are for bumper sensors and limit switches Ports 9 and 10 are preprogrammed for stops when bumper sensor is activated Ports 1 – 4 are for light sensors The section labeled “Analog/Digital” represents the sensor ports on the controller Ken Youssefi Introduction to Engineering – E10 13

While Loop The While Loop code is executed as long as the condition is true Ken Youssefi Introduction to Engineering – E10 14

If & Else Statement The If condition is evaluated (bumper==1). If the condition is true the code within the If brackets is executed. If the condition is not true the code within the Else brackets is executed Ken Youssefi Introduction to Engineering – E10 15

Objective Write a program so that the robot, upon encountering any obstacle, would back up, then turn and continue. Testing (scan) the 4 sensors If all sensors off (no obstacle), then go forward Ken Youssefi Introduction to Engineering – E10 16

ELSE  one of the sensors is enabled Stop both motors for 1 second Back up for 1 second Turn for 2 seconds Go forward Ken Youssefi Introduction to Engineering – E10 17

To down load the program to the controller mounted on the robot, select Build & Download from the pull down menu Build & Download. Connect the computer via USB to the controller for the down load (orange cables), follow the screen instructions. Make sure the COM port is correct, change the COM port using the Loader Setup. Check for compilation errors and other errors on the Troubleshooting section of the manual. Ken Youssefi Introduction to Engineering – E10 18