Sensors Material taken from Robotics with the Boe-Bot.

Slides:



Advertisements
Similar presentations
1 Signals, Circuits, and Computers John Athanasiou Part B Spring 2010.
Advertisements

IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
ELECTRONIC GUIDING CANE FINAL PRESENTATION Students : David Eyal Tayar Yosi Instructor : Miki Itzkovitz Technion – Israel Institute Of Technology Electrical.
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Outline Project overview Project-specific success criteria Block diagram Component selection rationale Packaging design Schematic and theory of operation.
Intro to Robot Movement Topics: DC motors Servos Line following.
1 Chapter 7: Navigating with Infrared Headlights Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
Obstacle Detection System for Wunderbot II Sonar and IR Sensors Members: Steve Sanko and Snehesh Shrestha.
Part A: Controlling Oscillation Frequency with Capacitors and Resistors Part B: Diodes and Light Experiment Timer.
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.
Sensors Material taken from Robotics with the Boe-Bot.
+ Proximity Sensors Tahani Almanie | Physical Computing.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Traffic Monitoring System using Acoustic Sensors Yuping Dong May 14, 2008.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Kristina Makarova Yoko Ishioka Burt Carter Carlos Rios team.
Sensors Material taken from Robotics with the Boe-Bot.
Material taken from Robotics with the Boe-Bot
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
RTLS. LOCATING / POSITIONING SYSTEMS A positioning system is a mechanism for determining the location of an object in space Interplanetary systems Global.
PHY 235 Robotics Workshop Day 5 Distance Sensing Using The Ultrasonic Ping Sensor.
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor Features… Arduino Coding – Distance Sensors.
Control Some Material taken from RobotSubsumption.pdf.
INTERNET OF EVERYTHING SDU 2016 Week 6. Getting Input from Sensors  Sensors give report on the world around it  Sensors convert physical input an electrical.
Embedded systems and sensors 1 Part 2 Interaction technology Lennart Herlaar.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
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.
Forward Until Near Stop when near a wall.
Ultrasonic Sensor TYWu.
Waves (I) S3 Physics
SENSORS.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
SENSORS k.saideep.
Assist. Prof. Rassim Suliyev - SDU 2017
ULTRASONIC DISTANCE METER USING 8051
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Sensors with Arduino A Microcontroller.
Ultrasonic Distance Sensor
Programming – Using a Range Finder
UCD ElecSoc Robotics Club 2017/2018
Arduino - Introduction
Arduino Uno and sensors
How an Ultrasonic Range Finder works
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Maxbotix Ultrasonic Distance Sensor
Material taken from Robotics with the Boe-Bot
Ultrasonic Distance Sensor
Programming – Using a Range Finder
IR Object Detection IR detector IR LED IR light reflected off object
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Elecbits.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
UNIT 7: INFRARED SENSORS
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
UNIT 7: INFRARED SENSORS
Sound Waves and Ultrasound
CTY SAR FCPS Alexander Velikanov
Ultrasonic Distance Sensor
Presentation transcript:

Sensors Material taken from Robotics with the Boe-Bot

Where Are We Going? Sumo-Bot competitions

Devices that Contain Sensors  The boebot uses sensors to interact with its environment.  There are a variety of sensors used for a variety of purposes: smoke, sound, rotation/tilt, vibration, magnetic orientation, temperature, humidity, pressure, proximity, distance, light, and so on.

Ultrasonic Distance Sensor PING Ultrasonic Range Finder PING ultrasonic distance sensor provides precise distance measurements from about 2 cm (0.8 inches) to 3 meters (3.3 yards). It works by transmitting an ultrasonic burst and providing an output pulse that corresponds to the time required for the burst echo to return to the sensor. By measuring the echo pulse width the distance to target can easily be calculated. Parallax Tutorial

Theory of Operation  The PING sensor emits a short ultrasonic burst and then "listens" for the echo.  Under control of a host microcontroller (trigger pulse), the sensor emits a short 40 kHz (ultrasonic) burst.  This burst travels through the air at about 1130 feet per second, hits an object and then bounces back to the sensor.  The PING sensor provides an output pulse to the host that will terminate when the echo is detected, hence the width of this pulse corresponds to the distance to the target.

Limited Detection Range

Simple to Connect /

Code---Without Library Support Programs With the Ping library:Ping library #include int PingPin = 9; Ping sonar(PingPin); void setup() { Serial.begin(9600); } void loop() { delay(50); sonar.fire(); Serial.print("Ping: "); Serial.print(sonar.inches()); Serial.println("in"); }

Object Detection Using IR

The IR Detector  The IR detector is only looking for infrared that’s flashing on and off 38,500 times per second. It has built-in optical filters that allow very little light except the 980 nm infrared. It also has an electronic filter that only allows signals around 38.5 kHz to pass through.  This prevents IR interference from common sources such as sunlight and indoor lighting.

Schematics / Ground

IR Detection Range  Less series resistance will make an LED glow more brightly.  Brighter IR LEDs can make it possible to detect objects that are further away.

Detecting IR The key to making each IR LED/detector pair work is to send 1 ms of a 38.5 kHz IR signal, and then, immediately store the IR detector’s output in a variable. The IR detector’s output state is HIGH (1) when it receives NO IR signal. When the IR detector sees the Hz signal reflected by an object, its output is LOW (0). The IR detector’s output only stays LOW for a fraction of a millisecond after the 38.5 kHz signal is sent, so it’s essential to store the IR detector’s output in a variable immediately after sending the 38.5 kHz signal.

Code for Testing IR int LeftIRDec = 11; int LeftIREmit = 10; int RightIRDec = 4; int RightIREmit = 5; void setup() { pinMode(LeftIRDec, INPUT); pinMode(LeftIREmit, OUTPUT); pinMode(RightIRDec, INPUT); pinMode(RightIREmit, OUTPUT); Serial.begin(9600); } void loop() { int irLeft = irDetect(LeftIREmit, LeftIRDec, 38000); int irRight = irDetect(RightIREmit, RightIRDec, 38000); Serial.print(irLeft); Serial.print(" "); Serial.println(irRight); delay(100); } int irDetect(int irLedPin, int irReceiverPin, long frequency) { tone(irLedPin, frequency, 8); delay(1); int ir = digitalRead(irReceiverPin); // IR receiver -> ir variable delay(1); // Down time before recheck return ir; // Return 1 no detect, 0 detect }

Object Detection And Avoidance Code Customizing the code: Assign names to the pins Remove the call to tone() in setup() Change from avoidance to pursuit More?

QTI Line Sensor

 The QTI is a reflective object sensor. There’s an infrared LED behind its clear window and an infrared phototransistor behind its black window.  When the infrared light emitted by the LED reflects off a surface and returns to the black window, it strikes the infrared phototransistor’s base, causing it to conduct current.  The more infrared incident on the phototransistor’s base, the more current it conducts. How it Works

Like an RC Circuit /

Code for Testing QTIs int LeftQTI = 8; int RightQTI = 2; void setup() { Serial.begin(9600); } void loop() { long tLeft = rcTime(LeftQTI); long tRight = rcTime(RightQTI); Serial.print("tLeft = "); Serial.print(tLeft); Serial.println(" us"); Serial.print("tRight = "); Serial.print(tRight); Serial.println(" us"); delay(1000); } long rcTime(int pin) { //..returns decay time pinMode(pin, OUTPUT); // Charge capacitor digitalWrite(pin, HIGH); //..by setting pin ouput-high delay(1); //..for 5 ms pinMode(pin, INPUT); // Set pin to input digitalWrite(pin, LOW); //..with no pullup long time = micros(); // Mark the time while(digitalRead(pin)); // Wait for voltage < threshold time = micros() - time; // Calculate decay time return time; // Return decay time }

Code for Detecting Reflection Customizing the code: Assign names to the pins Remove the call to tone() in setup() Use multiple QTI sensors More?

Simple Connections /

Mount the QTI sensor close to the ground