The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.

Slides:



Advertisements
Similar presentations
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Advertisements

Control of Salinity EAS 199B Modifications of ENGR 121 living with the lab.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Lab 1.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 Lab 4: VTC & Power.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
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
Basics of Sensors. A sensor is a device which is used to sense the surroundings of it & gives some useful information about it. This information is used.
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Basic Circuits – Lab 2 Arduino and Sensors
ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 1.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Senior Project 2006 Union College Department of Electrical and Computer Engineering The main purpose of this project is to design and implement a system.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 3.
Lab 6. o Do not surf the web o Do not check your unless it’s related to this course o Do not print materials unrelated to lab o Do not connect.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 Lab 4: VTC & Power.
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi. Objectives 1. Control the rotation of standard servo motor  A standard servo motor is limited in its rotation.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
Material taken from Robotics with the Boe-Bot
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
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.
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.
Final Term Project Hi-Tek Smoke Detektor By: Rohan Sharma.
1 The George Washington University Electrical & Computer Engineering Department ECE 1010 Intro To Electrical and Computer Engineering Dr. S. Ahmadi Class.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Electronic instrumentation Digitization of Analog Signal in TD
Ultrasonic Sensor TYWu.
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
ME 120: Photoresistors and Arduino Programming Arduino Programming Case Study: Photoresistor Measurements ME 120 Mechanical and Materials Engineering Portland.
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.
Introduction to Sensors and Actuators
Sensors with Arduino A Microcontroller.
Ultrasonic Distance Sensor
Programming – Using a Range Finder
Arduino - Introduction
Speed Sensor Calibration
Arduino Uno and sensors
Control a motors angular position with a flex sensor
Introducing KIPR Link/Interface and Set-up
I/O Organization and Peripherals
Roller Coaster Design Project
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Maxbotix Ultrasonic Distance Sensor
Conductivity Sensor.
Product Evaluation & Quality Improvement
Ultrasonic Distance Sensor
Programming – Using a Range Finder
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Product Evaluation & Quality Improvement
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
CS4101 Introduction to Embedded Systems Lab 8: Arduino DAC and PWM
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.
Calibration of Conductivity Sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Introduction to Arduinos
CTY SAR FCPS Alexander Velikanov
Ultrasonic Distance Sensor
Presentation transcript:

The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1

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

Arduino !

Two Distinct Categories of Sensors Digital and Analog Digital sensors have two states: 0 or 1 Analog sensors have a range of states depending on their input Example: A door can be open or closed What type of representation of the condition of the door is this? How far the door is open (0 to 180 degrees!)

Digital Sensors A digital sensor is an electronic or electrochemical sensor, where data conversion and data transmission are done digitally. Sensors are often used for analytical measurements, i.e. the measurement of chemical and physical properties of liquids. Typical measured parameters are pH value, conductivity, oxygen, redox potentials and others. Such measurements are used in the industrial world and give vital input for process control.

Analog Sensors Output a range of values, depending on the input read. The main analog ports are A0….7 Ports to be used can be programmed by the user. 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 The sensor : qrd1114

Optical Rangefinder Sensors (Proximity Sensor) The Sensor : sharp 2y0a21

Ultrasonic Sensors (Sonar) The sensor: sfr04

Sonar Sample Code int triggerPin = 8; //to send a trigger pulse to sonar sensor int dataReadPin = 11; //read the length of echo(PWM) void setup() { Serial.begin(9600); pinMode(triggerPin, OUTPUT); pinMode(dataReadPin, INPUT); } void loop() { digitalWrite(triggerPin, HIGH); delayMicroseconds(20); //send a high pulse for 20 us digitalWrite(triggerPin, LOW); Serial.println(pulseIn(dataReadPin, HIGH)); //read the duty cycle of high pulse delay(50); //repeat after 50ms

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 Sample Code int readPin = 0; //analog read pin void setup() { Serial.begin(9600); pinMode(readPin, INPUT); } void loop() { Serial.println(analogRead(readPin)); delay(50);

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

½” ½” ½” ½”

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). Email 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. Take a look at HW#1(Comprehensive Report on the Characterization of Robot’s Sensors), save your data/graphs for HW#1.