Today s Menu. Near Infrared Sensors

Similar documents
Abstract. 1. Introduction

GROUP BEHAVIOR IN MOBILE AUTONOMOUS AGENTS. Bruce Turner Intelligent Machine Design Lab Summer 1999

Department of Electrical and Computer Engineering EEL Intelligent Machine Design Laboratory S.L.I.K Salt Laying Ice Killer FINAL REPORT

Introduction. Theory of Operation

University of Florida Department of Electrical and Computer Engineering EEL 5666 Intelligent Machines Design Laboratory GetMAD Final Report

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

EEL5666 Intelligent Machines Design Lab. Project Report

EEL5666C IMDL Spring 2006 Student: Andrew Joseph. *Alarm-o-bot*

Experiment #3: Micro-controlled Movement

Sten BOT Robot Kit 1 Stensat Group LLC, Copyright 2016

Alph and Ralph: Machine Intelligence and Herding Behavior Megan Grimm, Dr. A. Antonio Arroyo

EE 314 Spring 2003 Microprocessor Systems

Embedded Robotics. Software Development & Education Center

High Current DC Motor Driver Manual

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

A Day in the Life CTE Enrichment Grades 3-5 mblock Programs Using the Sensors

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

FABO ACADEMY X ELECTRONIC DESIGN

Using a Sharp GP2D12 Infrared Ranger with BasicX

Final Report Metallocalizer

LDOR: Laser Directed Object Retrieving Robot. Final Report

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

Distance Measurement of an Object by using Ultrasonic Sensors with Arduino and GSM Module

Project Proposal. Underwater Fish 02/16/2007 Nathan Smith,

MULTI ROBOT COMMUNICATION AND TARGET TRACKING SYSTEM AND IMPLEMENTATION OF ROBOT USING ARDUINO

IR Detector for Mid Range Proximity Sensor

EE 308 Lab Spring 2009

Voice Guided Military Robot for Defence Application

DASL 120 Introduction to Microcontrollers

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

UNIT1. Keywords page 13-14

Project Name Here CSEE 4840 Project Design Document. Thomas Chau Ben Sack Peter Tsonev

MICROCONTROLLER BASED SPEED SYNCHRONIZATION OF MULTIPLE DC MOTORS IN TEXTILE APPLICATIONS

Range Rover Autonomous Golf Ball Collector

Agent-based/Robotics Programming Lab II

Citrus Circuits Fall Workshop Series. Roborio and Sensors. Paul Ngo and Ellie Hass

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Object Detection for Collision Avoidance in ITS

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Understanding the Arduino to LabVIEW Interface

Designing VCNL4000 into an Application

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

ECE 477 Digital Systems Senior Design Project Rev 8/09. Homework 5: Theory of Operation and Hardware Design Narrative

Boe-Bot robot manual

HVW Technologies Analog Infra-Red Ranging System (AIRRS )

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control

Quantizer step: volts Input Voltage [V]

Critical Design Review: M.A.D. Dog. Nicholas Maddy Timothy Dayley Kevin Liou

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

MD03-50Volt 20Amp H Bridge Motor Drive

Gusano. University of Florida EEL 5666 Intelligent Machine Design Lab. Student: Christian Yanes Date: December 4, 2001 Professor: Dr. A.

AUTOMATIC MISSILE DETECTOR USING ULTRASONIC PROXIMITY DETECTOR

Robotics & Embedded Systems (Summer Training Program) 4 Weeks/30 Days

University of Florida. Department of Electrical Engineering EEL5666. Intelligent Machine Design Laboratory. Doc Bloc. Larry Brock.

Touchless Control: Hand Motion Triggered Light Timer

POKER BOT. Justin McIntire EEL5666 IMDL. Dr. Schwartz and Dr. Arroyo

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Digital Imaging Rochester Institute of Technology

Lab book. Exploring Robotics (CORC3303)

IR Detector for Mid Range Proximity Sensor

Figure 1. Overall Picture

TENTATIVE PP800D120-V01

Walle. Members: Sebastian Hening. Amir Pourshafiee. Behnam Zohoor CMPE 118/L. Introduction to Mechatronics. Professor: Gabriel H.

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

The ROUS: Gait Experiments with Quadruped Agents Megan Grimm, A. Antonio Arroyo

OBSTACLE EVADING ULTRASONIC ROBOT. Aaron Hunter Eric Whitestone Joel Chenette Anne-Marie Cressin

Today s Menu. Resistors

Shock Sensor Module This module is digital shock sensor. It will output a high level signal when it detects a shock event.

COSC343: Artificial Intelligence

Special Sensor Report

The PmodIA is an impedance analyzer built around the Analog Devices AD bit Impedance Converter Network Analyzer.

Revision for Grade 7 in Unit #1&3

Exercise 5: PWM and Control Theory

JAWS. The Autonomous Ball Collecting Robot. BY Kurnia Wonoatmojo

Embedded Systems & Robotics (Winter Training Program) 6 Weeks/45 Days

Name & SID 1 : Name & SID 2:

ECE 511: MICROPROCESSORS

Evaluation Kits EVA 100 and EVA 105

Solar Powered Obstacle Avoiding Robot

AUTOPILOT CONTROL SYSTEM - IV

A Lego-Based Soccer-Playing Robot Competition For Teaching Design

UNIT 4 VOCABULARY SKILLS WORK FUNCTIONS QUIZ. A detailed explanation about Arduino. What is Arduino? Listening

Industrial Automation Training Academy. Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours)

Enhanced SmartDrive40 MDS40B

POLITECNICO DI MILANO

Electronics, Sensors, and Actuators

Adafruit 16-Channel PWM/Servo HAT & Bonnet for Raspberry Pi

Distance Measurement. Figure 1: Internals of an IR electro-optical distance sensor

understanding sensors

HB-25 Motor Controller (#29144)

Design and Implementation of Cell-Phone Detection based Line follower Robot Kanwaljeet Singh 1, Mandeep Singh 2, Dr.Neena Gupta

Obstacle Avoiding Robot

Onwards and Upwards, Your near space guide

Welcome to EGN-1935: Electrical & Computer Engineering (Ad)Ventures

Figure 1. CheapBot Smart Proximity Detector

USING RS-232 to RS-485 CONVERTERS (With RS-232, RS-422 and RS-485 devices)

Emergent Behavior Robot

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

Balancing Bi-pod Robot

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Transcription:

Today s Menu Near Infrared Sensors CdS Cells Programming Simple Behaviors 1 Near-Infrared Sensors Infrared (IR) Sensors > Near-infrared proximity sensors are called IRs for short. These devices are insensitive to the long infrared wavelengths detected by pyro-electric sensors, instead being sensitive in the range just below visible light, often around the 880 nanometer (nm) wavelength. The human eye cannot see this light, but charge coupled (CCD) cameras (e.g., camcorders) are sensitive to it. An infrared emitter detector pair can be built from a Sharp detector and a simple IR LED (available from Radio Shack). > The Sharp detector responds to a modulated carrier signal (rapidly turning on and off the transmitter) of 40 KHz emitted by the IR LED. This means that the would be user of this detector must blink the LED in a certain pattern such that the detector will respond. This modulated carrier protocol increases the signalto-noise ratio the source of the light can easily be detected from varying background illumination even if the actual amount of modulated light is very small. 2 1

Infrared Sensors Infrared (IR) Sensors > IR sensors are available in Analog and Digital versions from Sharp for approximately the same price, $8-$16. They are packaged with an IR LED and a photo-receiver in the same circuit. The digital version detects up to about 16cm and gives a logic 1 or 0 as output. The analog version gives a value that is proportional to distance. Typical models include GP2D* where *={02,120,12,05,15} > Interface consists of a simple 3 wire connector with V CC, GND and Signal GND Signal v Dead Space Nearly Linear V CC 4 2 3 3 Infrared Sensors Infrared (IR) Sensors >Sharp cans are not as readily available as they once were, but one can still find them in ebay and Tower Hobbies. They cost about $3 each. 4 2

Infrared Sensors Infrared (IR) Sensors > MIL has published a document with instructions to hack a Sharp can to obtain an analog detector yielding values in an A/D pin between 80 and 140. Thus, together with a $0.50 IR LED, a ranging sensor can be constructed for under $5. 5 Sensors Sensor Types: Two basic types Analog & Digital. Digital sensors are intended to be plugged into the digital ports (pins) of a µc and always return either 0 or 1. For digital sensors 0 or LOW or 0v or 0 and 1 or HIGH or 5v or 255 Analog sensors are connected to the ADC input pins in a µc The analog to digital converter (ADC) in the robot board (µc) convert the input voltage to a n-bit value, where n is usually 8, 10, or 12 bits. In the 1935 robots, the Atmega128 chip uses 10 bits. The input voltage must be between 0v and 5v (newer µcs use 3.3v) For 2 bits: the binary values are 00 2, 01 2, 10 2, 11 2 (0,1,2,3 in decimal). There are 4 total values a 5v value is represented as 5v 4=1.25v per number (0v for 00 2, 1.25v for 01 2, 2.5v for 10 2 & 3.75v for 11 2 ) For 8-bits: 0 value 255 (2 8-1); for 10-bits: 0 value 1023 (2 10-1) For an 8-bit ADC (2 n=8 is 256 symbols) 0v 0 & 5v 255 (2 8-1) For a 10-bit ADC (2 10 is 1024 symbols), 0v 0 & 5v 1023 (2 10-1) 6 3

Simple Behaviors Simple Behavior Software Surprisingly simple behaviors can be accomplished with the sensors and hardware we have seen in class. Motors > We ll assume the existence of a motor(m,s) function where argument m ={0 or 1} for the left or the right motor, respectively, and argument s = speed, which is a value between -100 to +100, as a percent of full speed. motor(0,100) means move the left motor 100% forward motor(1,-100) means move the right motor 100% backward motor(0,0) means stop the left motor > Alternatively, we could create functions: forward, reverse, left, right and speed which yield equivalent functionality. > init_motor( ) turns on the PWM system 7 Simple Behaviors ADC >We ll assume the existence of an analog(c) routine where c is an integer representing the available channel in the A/D system. analog(0) returns the 10-bit integer value in ADC channel 0 init_analog( ) turns on the ADC system Timing >We ll assume a timing routine to gives us a desired delay, delay(tms) where tms is an integer value representing time in ms (1/1000 of a second) delay (500) wait 500 ms (1/2 a second) before continuing 8 4

Simple Behaviors Printing > We ll assume we ll have a way to print values to the LCD Function lcd_int(integer); prints an integer to the LCD Function lcd_string( string ); prints a constant string to the LCD Function lcd_ clear(); clears the LCD Function lcd_row(0 or 1); determines which line to write on the LCD Function init_lcd(); initializes the LCD system Conditionals > We will also assume we have a way to test a condition (usually a sensor value) and issue an actuator command which might change depending on the condition. This is analogous to an if statement in a high-level language. if (left_ir >125) /* If the Left IR indicates we are close */ speedr = -100; /* to an obstacle, turn right */ 9 Simple Behaviors Testing the sensors >We should always test the values of the sensors and actuators (motors) under software control to verify the correct operation of our sensory systems under run-time conditions >For IRs and CdS cells, we should connect them into the AD system and display the values sensed on the LCD. We need to find out what is the value in the AD corresponding to too close. >For motors and servos, we should verify correct operation & measure timing for various maneuvers. 10 5

Testing Motors 1 11 Testing Motors 1 12 6

Testing Motors 2 13 Testing Motors 2 14 7

Testing Motors 2 15 CdS Cells When light shines on a CdS cell, R 2 below decreases to a minimum, say 1K, causing the AD value to decrease to 1/48 Vcc or 21 When a small amount of light shines on the CdS cell, the value of R 2 increases to a maximum value, say, 10K so the AD will read 10/57 Vcc or 180. We will pick R 1 so that these values are from 500-900 16 8

Testing IRs 17 Testing IRs 18 9

Simple Behaviors Obstacle Avoidance >Read the IRs >If the left IR is too close reverse the right motor >If the right IR is too close reverse the left motor >If the center IR is too close back up 500ms & random turn >To get a uniform random number take the low order bit of the 16-bit Timer1 counting register (TCNT1). If it is 0 turn one way, else turn the other way. Take the remainder of TNCT1%1023 and use it as the amount of ms to turn (a minimum of 500ms) 19 Obstacle Avoidance 20 10

Obstacle Avoidance 21 Obstacle Avoidance 22 11

Obstacle Avoidance 23 Behaviors Multiple Behaviors >When multiple behaviors co-exist and the potential is there for contradictory values being sent to an actuator (motor), some sort of arbitration must take place to insure that the software does not generate spikes. >A simple arbitrator uses a sensor, such as a switch, or resistive sensor to determine which behavior has control >No behavior should ever control the motors directly >Let us add CdS control to Obstacle Avoidance 24 12

CdS & Obstacle Avoidance 25 CdS & Obstacle Avoidance 26 13

CdS & Obstacle Avoidance 27 CdS & Obstacle Avoidance 28 14

Hacked Servo Test 29 Hacked Servo Test 30 15

Learning is an important part of autonomy. A system is autonomous to the extent that its behaviour is determined by its immediate inputs and past experience, rather by its designer s. Agents are usually designed for a class of environments, where each member of the class is consistent with what the designer knows about what the real environment might hold in store for the agent. Truly autonomous systems should be able to operate successfully in any environment, given sufficient time to adapt. The system s internal knowledge structures should therefore be constructible, in principle, from its experience of the world The End! 31 16