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

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Lab 1.
VEX Robotics Platform and ROBOTC Software
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 Lab 4: VTC & Power.
Electrical Engineering 1 WISE Investments Electrical Engineering Lab Digital Logic Tutorial and Design Dr. Keith Holbert.
Magnetism r1.04.
Arduino Week 3 Lab ECE 1020 Prof. Ahmadi. Objective Data acquisition (DAQ) is the process of measuring an electrical or physical phenomenon such as voltage,
MicroLab™ and Calibration Curves
Introduction to Sensors
EducateNXT NXT... an introduction The Kit and the Software.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti.
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.
Robotics NXT sensors Back to Light sensor: red vs blue ball.
TA: Chris Reilly Group 5: Benjamin, Ramie, Zachary, Dinal.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Stephen Joo and Daniel Kattan April 16, 2010 ECE 002, Group 8.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 3.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 Lab 4: VTC & Power.
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.
Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something.
Graphic Equalizer Table Top View
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
EGR 101 Resistance Lab Read this before class on Tuesday 9/18.
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.
ELECTRICAL ENGINEERING DIGITAL LOGIC TUTORIAL AND DESIGN 1.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
WELCOME TO ARDUINO E-DAY CAR PROJECT MEETING – ITALY MARCH.
Slide 1 Welcome to SimELMO; Newspaper (Print Front and Back) Edition! In this simulation you will learn to display newsprint pages that have text on both.
(from left to right) ASHLEY FRIEND, SUBHASIS GHOSH, EMMANUELLE DORVIL, DHRUV GAUR.
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.
Bar code scanner Department of Computer Engineering, M.S.P.V.L. Polytechnic College, Pavoorchatram.
The George Washington University Electrical & Computer Engineering Department Dr. S. Ahmadi Class 3.
HOW SCANNERS WORK A scanner is a device that uses a light source to electronically convert an image into binary data (0s and 1s). This binary data can.
1 The George Washington University Electrical & Computer Engineering Department ECE 1010 Intro To Electrical and Computer Engineering Dr. S. Ahmadi Class.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Tables & Graphing Laboratory Skills. Basic Tables Tables, or charts, are used to organize information Tables, or charts, are used to organize information.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
ECE Group Members Samantha Starr BME Arduino Arianna Weinshel BME Sensors, Circuits Eden Woldemichael CE AM Radio Taylor Brooke EE Instrumentation,
Introduction to VEX® components
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Arduino Week 3 Lab ECE 1020 Prof. Ahmadi. Objective Data acquisition (DAQ) is the process of measuring an electrical or physical phenomenon such as voltage,
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Intro to the Robotics Introducing the IC Discuss.
AS Computer Studies Finite State Machines 1.
ROBOTC for VEX Online Professional Development
Introducing KIPR Link/Interface and Set-up
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
RobotC Sensors.
RobotC Sensors.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
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.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Group 4: Final Presentation
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

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

Class Agenda Review of Digital Sensors Analog Sensors –Light Sensors. –Optical Rangefinder Sensors. –Ultrasonic Sensors (Sonar). Analog Sensor Characterization

Digital Sensors Review Digital Sensors: –Can only return two values, a ‘0’ or a ‘1’: –‘0’ indicates switch is open (Nothing has happened), –‘1’ indicates the switch has been closed. –Includes such devices as switches or bumpers. Digital sensors are connected to ports 7 – 15 on the handyboard. Are accessed using the function digital(port#).

For more information on different digital sensors available to you, refer to the Botball Kit Documentation, slides 42, 43, 51.

Sample Digital Sensor Code Connect a digital sensor, either a bumper or a switch, to one of the digital ports (7 through 15). Here we will use port 9. Start a new program: // Program to test if digital sensor working. void main() { while(1) // Loop forever. { if(digital(9)==1) //If switch on port 9 HIT, execute this code. { beep(); }

Analog Sensors Output a range of values, depending on the input read. 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.

Light Sensors Access with function analog(port#) Connected to ports 2-6 or Analog values range from A low value indicates bright light, and vice versa.

Optical Rangefinder Sensors Access with function analog(port#) Connected to ports Analog values range from Low values indicate far distance from an obstacle High values indicate close proximity to an obstacle ~4 inches

Ultrasonic Sensors (Sonar) Connect red to upper deck board - port #0 Connect gray to Digital #7 Access with function sonar() Returned value is distance in mm to closest object in field of view Range is approximately mm When objects are too close or too far, gives value of 32767

Sonar Sample Code /% Program that measures the sonar reading at different input values. %/ void main() { int range=0; printf(“\n Sensor Sample Program"); while(!start_button()); // Press Start Button while(1) // Continue infinitely { sleep(0.5); range = sonar(); printf(“\nOutput is %d”, range); }

Analog Sensor Characterization The purpose of this exercise is to tabulate the readings from the three different analog sensors mentioned, when different inputs are sensed: –Light Sensor: Using the attached color scale, move the light sensor along the sheet, and record the values read at different intervals. –Optical Rangefinder: Using the provided boards, at different distances record the outputs read from the sensor. –Ultrasonic Sensor: Similar to the Optical Rangefinder, record the output from the sensor at different input distances.

Light Sensor Color Scale 50% 0%100% ½”

Lab Requirements Collect Data for at least one sensor. (Data to be handed in at end of lab, and you’ll need it for your HW.) FOR LIGHT SENSOR: Take 10 equally spaced readings. FOR SONAR SENSOR: Take enough readings to characterize sensor (more when measurements are non- linear, less when data is predictable) Insert the data into an Excel spreadsheet Plot the data (X-axis for distance, Y-axis for sensor readings). the spreadsheet to all group members to complete HW

Sensor Range Sensors have an established operating range. Determine what this is for your sensor. Choose your ten points so that they span the complete operating range of the sensor.

Example Plot of Sensor Characterization – RANGE FINDER SENSOR

Due in Lab Today After tabulating the results, plot the graph for each sensor type, to see if the relationship turns out linear or not. Draw the curve to fit the graph. Note: To simplify your work, write a short program that can continually print out the reading of the sensor on the Handyboards display.