The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.

Slides:



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

Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Engineering Roles We will be forming groups of 3 students
Handy Board. Why the Handy Board Designed to be the controller of small, mobil robots Has many features that make it ideal for robotics projects –Integrated.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Lab 1.
Photos and Sensor Instructions
Group 6 Taylor Gould, Olivia Graffis, Taylor Guidon and Bdho Gdeh.
 Project 1: To build and program a robot that will follow a solid black line, make a U-turn, and follow the line back to the start.  Project 2: To understand.
Connecting VEX and ROBOTC
Efficient Path Determining Robot Jamie Greenberg Jason Torre.
Efficient Path Determining Robot RIT Computer Engineering Senior Design Project Jamie Greenberg Jason Torre October 26, 2004 A motorized robot will navigate.
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.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti.
Program ultrasonic range sensor in autonomous mode
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 1.
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.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
TA: Chris Reilly Group 5: Benjamin, Ramie, Zachary, Dinal.
Why do robots need to move?
Lego Robot Construction Project. Adam, Roger, Lu, Riana, Paul.
Members (from left to right): Rachel Bevill, Brae Bower, Samantha Cherbonneau, Professor Ahmadi, Anthony Contreras.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 3.
Introduction to Robo Pro
The Batmobile and Centrifuge November 11, Members (from left to right): Rachel Bevill, Brae Bower, Samantha Cherbonneau, Professor Ahmadi, Anthony.
Forging new generations of engineers
ECE 001 Final Presentation: Escape from Maze and Biomedical Centrifuge Experiment Scott Trocchia The George Washington University Computer Engineering.
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.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering –Intro to the Robotics –Introducing the IC –Discuss.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
A note on oral presentations These are the progress report presentations. Please note that the individual presentations should be ~8 min long. Since the.
The Handy Board Bryan Valentini General Robotics 2003.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
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.
Erin Halseth, Will Gottschalk, Briana Warschun, and Michaella Gaines
Engineering H193 - Team Project Gateway Engineering Education Coalition Lab 1P. 1Spring Quarter Introduction to Sensors Lab 1.
Photos and Sensor Instructions
ECE Project 1 Overview. Project Description The aim of this project is to design a robot that moves along a given path, from the Start point, towards.
ECE 002 Final Project By Brandon Minor, Adam McCormack, Benjamin Miller, Damon McCullough.
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.
ECE 002 Robots and Sensors Group 14. Objectives Research sensors and their usefulness to analyze data Research sensors and their usefulness to analyze.
EV3 Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop
The George Washington University Electrical & Computer Engineering Department Dr. S. Ahmadi Class 3.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
1 The George Washington University Electrical & Computer Engineering Department ECE 1010 Intro To Electrical and Computer Engineering Dr. S. Ahmadi Class.
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.
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 CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
LEGO Robotics Workshop
Electrical Engineer Responsibilities
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Intro to the Robotics Introducing the IC Discuss.
Electrical Engineer Responsibilities
Introducing KIPR Link/Interface and Set-up
Electrical Engineer Responsibilities
Electrical Engineer Responsibilities
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 5.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.
Photos and Sensor Instructions
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Compiled from various Internet sources Presented by Mr. Hatfield
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Getting started with LEGO EV3 Mindstorms software
Presentation transcript:

The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2

Agenda Review of Robot Building and Motor Control –Handyboard connections –Attaching a motor and controlling it Brief Review of 2 Analog Light Based Sensors –Light Sensor & IR “Top Hat” Sensor –Review of how to program using sensors Introduction to Project #1 –Description –Obstacle course diagram –Pictures of previous year robot designs –Optional portion of project

Review of Robot Building and Motor Control (for students who are new to ECE 001 & ECE 002)

Hardware Components HANDY-Board (Interface to motors) Serial Port Interface (Interface between Handyboard & Robot) AC Adapter (Provides power to Serial Port Interface & Handyboard) Serial Port Cable (Connects “Serial Port Interface Board” to back of PC) RJ-11 Cable (Connection btwn Handyboard & Serial Port Interface)

HANDY-Board Layout Ports 0,1,2,3 for MOTORs (Connect a wire from Port 0 to your LEFT motor And another wire from Port 2 to your RIGHT motor) LCD Screen (for output from your ROBOT) ON/OFF Button Download Connector (Connect Serial Port Interface Board to Handy-board here) I LOVE ECE001!

Building a Robot Chassis Using the Legos provided, construct a small chassis capable of carrying the load of the handy-board. Attach motors to chassis. Attach a gear to the motor, as shown on the following page (figure 1). Put a gear and wheel combination on an axle. Align two gears as shown in figure 2.

Figure 1 Attaching Gear/Axle to Chassis

Connecting Motor to Gears Figure 2

Wire Connections From Motors to Handy-Board Figure 3

Procedure to Attach and Test Motors on Robot 1.Attach the two motors to the connector wires. Next, attach the wire plugs to Handyboard ports. 2.Turn the Handyboard on. 3.Open your Interactive C software. Make sure the computer is talking to the controller. 4.In interactive window, type “fd(1);” 5.After making sure motor connected correctly, type “off(1);” 6.Turn on motor 1 using the motor(n,x) command. 7.Make motor 1 alternate between a forward and backward direction. 8.You can change the speed of your motors. For example motor(1,100) means motor 1 is turning at 100 or full speed.

Sample Motor program void main() { printf("Press START to test motors\n"); while(!start_button()); // wait for start button press fd(1); // motor in port 1 go forward sleep(2.0); // sleep for 2 seconds bk(1); // motor in port 1 go backward sleep(2.0); off(1); // turn motor in port 1 off fd(3); // motor in port 3 go forward sleep(2.0); bk(3); // motor in port 3 go backward sleep(2.0); off(3); }

Analog Sensor Review

Analog Sensors Outputs a range of integer values, depending on the input signal that is sensed. The main analog ports are ports 2 – 6, and ports 20 – 23. Actual ports that should be used will depend on the sensor being used. The three main analog sensors that we will be using are the Light Sensor, the Optical Rangefinder Sensor and the Ultrasonic Sensor, also known as the Sonar. In today’s project, only the light sensor will be utilized.

Analog Sensor 1: Light Sensor The light sensor included in the kit, can “sense” lightness and darkness. Connect to analog ports 2-6 or Access with function analog(port#) Analog values range from A low value indicates bright light or close proximity to an obstacle A high value indicates dark light or far proximity from an obstacle Enlarged Light Sensor

Analog Sensor 2: IR Reflectance Sensor “Top Hat” The IR sensor included in the kit, can also “sense” lightness and darkness like the light sensor Connect to analog ports 2-6 or Access with function analog(port#) Low values indicate bright light, light color, or close proximity High values indicate low light, dark color, or distance of several inches Sensor has a reflectance range of about 3 inches Enlarged IR Sensor

Light Sensor Sample Code /% Program that measures the reads from the light sensor and displays its output values continuously. %/ void main() { int color=0; printf(“\n Light Sensor Sample Program"); while(!start_button()); // Press Start Button while(1) // Continue infinitely { sleep(0.5); color = analog(6); // Read “lower deck” analog port 6 printf(“\n Color is %d”, color); // if near 0 – WHITE // if near BLACK }

Project 1 Overview

Project Description The aim of this project is to design a robot that moves along a given path, from the Start point, towards the Finish line. The thick black line acts as the guide for the robot to follow. As an optional element to the project, after reaching the finish line, the robot should turn around, and go back along the path it came to the starting point. Robot will be judged on smoothness of journey, and robot design. It is the student responsibility to make sure that the Handy Board is fully charged Each group will have one chance to demonstrate their project to the judges. Therefore, fully test your project before demonstration.

Project #1 - Route 2m Start Finish

Diagram of Robot with Light Sensor RO BOT Right LIGHT SensorLeft LIGHT Sensor When RIGHT sensor senses black line turn right (and vice-versa)

Some Sample Robots

Some Sample Robots (cont)

Optional Portion of Project As an optional objective, we wish to make the robot U-turn, and go back along the path to the starting point. This can be carried out in the following way: –After sensing a black surface on BOTH light sensors, the robot stops, and then starts to rotate in either direction. –The robot rotates until the first sensor senses the black line, it CONTINUES rotating, but stops once the second sensor detects the black line. –Once the rotation has been completed, the robot moves along the line in the same way as in the main part of the project until it reaches the start line.

Main Functions of Week 2 –fd (n); Rotate motor ‘n’ forward –bk(n); Rotate motor ‘n’ backwards. –motor(n, s); move motor ‘n’ at speed ‘s’ »‘s’ range: -100 ~ +100 »‘s’>0 forward »‘s’<0 reverse –off(n); turn off motor ‘n’ –ao(); turn off all motors –sleep(x); // Delays execution of next statement for ‘x’ secs. –msleep(x); // Delays execution of next statement for ‘x’ millisecs. –beep(); // Causes the handy-board to Beep. –analog(x) ; // reads input from an analog sensor on port x –Digital(x) ; // reads input from a digital sensor on port x –sonar() ; // read input from the analog sonar sensor