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.

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

EMS1EP Lecture 6 Digital Inputs
Lab7: Introduction to Arduino
Control of salinity living with the lab © 2012 David Hall.
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
PHY 235 Robotics Workshop Day 3 IR Distance Sensing.
1 Chapter 7: Navigating with Infrared Headlights Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Calibration of conductivity sensors living with the lab.
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
Beginning Arduino Session 2 AN INTRODUCTION TO HACKING THE WORLD’S MOST POPULAR MICROCONTROLLER PLATFORM
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.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Embedded Programming and Robotics
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
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.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Sensors Material taken from Robotics with the Boe-Bot.
Switches & whiskers on the Arduino living with the lab lever arm switches mounted to Arduino © 2012 David Hall.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Introduction to the Arduino
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Cascade switching of an LED EAS 199B Winter 2013.
Material taken from Robotics with the Boe-Bot
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
Arduino libraries Datatekniker Udvidet hardware/software.
Using for loops to control LEDs living with the lab 1 1 arduino.cc the for statement allows us to repeat a block of commands a limited number of times.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
IR sensors for beacon location
UTA010 : Engineering Design – II
Light Detection Circuit
Ultrasonic Distance Sensor
European Robotic LABoratory
INC 161 , CPE 100 Computer Programming
Lecture 2-2: Arduino Programming
Introduction to Arduino Microcontrollers
Analog Input through POT
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
Arduino Analog I/O Analog input pins: 0 – 5
Ultrasonic Distance Sensor
using the Arduino to make LEDs flash
Using Photoresistors with an Arduino
Implementing Switches Using Interrupts
Arduino: For Loops.
IR Object Detection IR detector IR LED IR light reflected off object
Sensors and actuators Sensors Resistive sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Uno circuit basics
SAURABH GINGADE.
Arduino程式範例.
Ultrasonic Distance Sensor
Presentation transcript:

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 off an object. The reflected light travels back to an IR receiver. The IR receiver “detects” the presence of the object. The object does not need to move to be detected.

living with the lab 2 Panasonic PNA4602M supply voltage: 4.8V – 5.2V current: 3mA This sensor detects infrared (IR) light. However, to avoid detecting the IR component of regular sunlight or light from other stray IR sources, the sensor only looks for light coming in at 38 kHz. IR LED (not your usual LED) outputs 940 nm wavelength light We write an Arduino sketch to make this LED flash 38,000 times per second so it can be detected by the PNA4602M. The Parts

living with the lab 3 IR Light IR detector is most sensitive around 950 nm or 0.95(10) -6 m wikipedia.org Panasonic documentation for PNA4602M

living with the lab 4 Install an LED Shield It is important to install the LED in an enclosure to properly direct the IR light. Your kit includes the black pieces shown. Insert the legs of the LED through the holes in the longer black cylinder, and then install the smaller top piece over the exposed end of the LED. If you don’t have a shield, a piece of paper can be rolled up and taped around the LED. Your LED will look like this after shielding.

living with the lab 5 220Ω from digital output pin on Arduino LED Circuit IR Receiver Circuit Be sure to aim your LED and IR detector so that they have a clear view (nothing in the way) 5V 220Ω to digital input pin on Arduino

living with the lab 6 Arduino Sketch nothing is detected by IR sensor something is detected by IR sensor long freq = 38000; long period; int IR_status; void setup() { Serial.begin(9600); pinMode(2,OUTPUT); pinMode(3,INPUT); period= /freq/2; // compute the half period in microseconds } void loop() { for(int i=0;i<200;i++) // detector needs lots of pulses to work (try 200) { digitalWrite(2,HIGH); // manually build a square wave for IR LED delayMicroseconds(period); digitalWrite(2,LOW); delayMicroseconds(period); IR_status = digitalRead(3); // read the status of the sensor } Serial.println(IR_status); // print the status of the sensor delay(200); }

living with the lab 7 Alternate Arduino Sketch try the sketch below if the one on the previous page doesn’t work void setup() { Serial.begin(9600); // allows output to display pinMode(2, OUTPUT); // define digital pin 2 as an output (output to LED) pinMode(3, INPUT); // define digital pin 3 as an input (input from sensor) } void loop() { tone(2,38000); // output a LOW HIGH LOW sequence at 38,000 Hz int IR_status= digitalRead(3); // acquire the status of the IR sensor Serial.println(IR_status); // display the status of the IR sensor delay(100); // wait 100ms between sensor queries }