Sensors Material taken from Robotics with the Boe-Bot.

Slides:



Advertisements
Similar presentations
LIGHT SENSORS Sensor Technology Metropolia University Kiia Tammi Jonathan Malangoni.
Advertisements

1 Signals, Circuits, and Computers John Athanasiou Part B Spring 2010.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Electricity Circuits.
Programming Logic Controllers
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
1 Chapter 7: Measuring Light Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
Boe-bots and STEM Boe-bots and STEM – This sectional will introduce participants to a programmable robot that is useful for engaging students in building.
IR Control Materials taken from IR Remote for the Boe-Bot by Andy Lindsay.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
1 Chapter 7: Navigating with Infrared Headlights Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed.
Digital Tachometer ENGR 4803 Electromechanical Systems & Mechatronics.
Basic Stamp II is kinda cool Bytes of EEPROM(non-volatile) - Clock speed of 20 MHz. - Holds 600 lines of code in EEPROM - executes an average of.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Part A: Controlling Oscillation Frequency with Capacitors and Resistors Part B: Diodes and Light Experiment Timer.
Capacitors in a Basic Circuit
ENGR. VIKRAM KUMAR B.E (ELECTRONICS) M.E (ELECTRONICS SYSTEM ENGG:) MUET JAMSHORO 1 CAPACITOR.
IEEE’s Hands on Practical Electronics (HOPE)
Digital I/O Connecting to the Outside World
1 Chapter 5: Measuring Rotation Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
CAPACITORS & RESISTORS. RESISTORS A resistor, like batteries and lights, can also be present in an electrical circuit. A resistor limits the flow of electricity.
Lec. (4) Chapter (2) AC- circuits Capacitors and transient current 1.
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.
Capacitors and Inductors.  A capacitor is a device that stores an electrical charge  It is made of two metallic plates separated by an insulator or.
Sensors Material taken from Robotics with the Boe-Bot.
Chapter 12.
Sensors Material taken from Robotics with the Boe-Bot.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Control Some Material taken from RobotSubsumption.pdf.
1 A Modification of Chapters 5 & 7 Slides Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by:
1 Chapter 6: Light Sensitive Navigation With Photoresistors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation.
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.
Capacitors are one of the fundamental passive components. In its most basic form, it is composed of two conductive plates separated by an insulating dielectric.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
IR Communication October 27, Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v
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.
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
PHY 235 Robotics Workshop Day 4 Robotic Behaviors, Light Sensing, Voltage Dividers, LCD-MOD.
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.
ENGR 101: Robotics Lecture 6 – Follow That Light! Outline  The Scribbler's Light Sensors  Using EEPROM Memory References 
1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT.
CAPACITORS. IF A CAPACITORS JOB IS TO STORE ELECTRICAL CHARGE, WHERE WOULD THEY BE USEFUL?
Chapter 9 CAPACITOR.
Capacitance. Device that stores electric charge. Construction: A capacitor is two conducting plates separated by a finite distance Typically separated.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
SENSORS.
SUBMITTED BY EDGEFX TEAM
Prototyping with Microcontrollers and Sensors
HIGHWAY LIGHTING SYSTEM WITH AUTO TURN OFF ON DAY TIME
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
(EVENING ON TO MORNING OFF)
SUN SET TO SUN RISE LIGHTING SWITCH (EVENING ON TO MORNING OFF)
GOVT WOMEN ENGINEERING COLLEGE AJMER
Some Material taken from RobotSubsumption.pdf
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Material taken from Robotics with the Boe-Bot
Ultrasonic Distance Sensor
Light Emitting Diode: LED
UNIT 7: INFRARED SENSORS
Chapter 7: Measuring Light
Chapter 5: Measuring Rotation
UNIT 7: INFRARED SENSORS
Sound Waves and Ultrasound
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: Pressure, rotation, temperature, smoke, tilt, vibration, light, proximity and so on.

Ultrasonic Proximity 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.

Simple to Connect

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

Basic Program ' -----[ I/O Definitions ] Ping PIN 15 ' -----[ Constants ] Trigger CON 5 ' trigger pulse = 10 uS Scale CON $200 ' raw x 2.00 = uS RawToIn CON 889 ' 1 / (with **) RawToCm CON 2257 ' 1 / (with **) IsHigh CON 1 ' for PULSOUT IsLow CON 0 ' -----[ Variables ] rawDist VAR Word ' raw measurement inches VAR Word cm VAR Word ' -----[ Initialization ] Reset: DEBUG CLS, "Parallax PING))) Sonar", CR, ' setup report screen "======================", CR, CR, "Time (uS)..... ", CR, "Inches ", CR, "Centimeters... "

Basic Program ' -----[ Program Code ] Main: DO GOSUB Get_Sonar ' get sensor value inches = rawDist ** RawToIn ' convert to inches cm = rawDist ** RawToCm ' convert to centimeters DEBUG CRSRXY, 15, 3, ' update report screen DEC rawDist, CLREOL, CRSRXY, 15, 4, DEC inches, CLREOL, CRSRXY, 15, 5, DEC cm, CLREOL PAUSE 100 LOOP END Get_Sonar: Ping = IsLow ' make trigger PULSOUT Ping, Trigger ' activate sensor PULSIN Ping, IsHigh, rawDist ' measure echo pulse rawDist = rawDist */ Scale ' convert to uS rawDist = rawDist / 2 ' remove return trip RETURN

Light Sensors  Light sensors are also used in a variety of applications: Automatic street lights Camera flash and exposure controls Security alarms

Introducing the Photoresistor  While there are a variety of light sensors, a very popular one is the photoresistor in that it is easy to use and inexpensive.  As the name implies, it is a resistor that reacts to light. The active ingredient Cadmium Sulfide (CdS) allows electrons to flow more easily when light energy hits it, thus lowering it resistance (opposition to current flow).  The brighter the light the lower the resistance.

Why?  A photoresistor is made of a high resistance semiconductor.  The photons of high frequency light are absorbed by the semiconductor giving bound electrons enough energy to jump into the conduction band. The resulting free electrons (and their hole partners) conduct electricity thereby lowering resistance.

Basic Circuit As the photoresistor’s resistance changes with light exposure, so does the voltage at Vo. As R gets larger, Vo gets smaller, and as R gets smaller, Vo gets larger. Vo is what the BASIC Stamp I/O pin is detecting when it is functioning as an input. If this circuit is connected to IN6, when the voltage at Vo is above 1.4 V, IN6 will store a 1. If Vo falls below 1.4 V, IN6 will store a 0. V0V0 R

A Better Idea: Measuring Using Time  The photoresistor can also be used with the BASIC Stamp in an RC circuit (Resistor-Capacitor circuit) to obtain a value in relation to the amount of resistance, or, in this case, the amount of light hitting the sensor.  In a RC-network, the capacitor is charged and discharged at different rates determined by the resistor and the capacitor sizes.

Introducing the Capacitor  The capacitor is a device which can store an electron charge. Its size is expressed typically in microfarads (F) or millionths of Farads.  Certain types of capacitors are polarity sensitive, that is, they can only be connected in one direction. Connecting a polarity sensitive capacitor backwards can cause the device to explode. Wear safety glasses. Ensure proper polarity when connecting.

Polled RC Time  In the Polled RC Time circuit the following occurs: Button is pressed charging the capacitor. The button is released, the BASIC Stamp begins timing and the capacitor begins to discharge. 5V

Polled RC Time (continued) o The BASIC Stamp continues timing until input P7 changes to a low (drops below 1.4V). o Time is displayed in tenths of seconds. V => 1.4V Logic 1 V < 1.4V Logic 0

Polled RC Time (continued)  The time to discharge the capacitor is in proportion to the size of the resistor and capacitor network (RC).  The larger the capacitance (C), the greater the charge it can hold, increasing time.  The larger the resistance (R), the slower the capacitor will discharge, increasing time.

Reading RC-Time with BASIC Stamp  The BASIC Stamp has an instruction to perform much of the timing operation automatically: RCTIME Pin, State, Variable Where: Pin is the pin the RC network is connected. State is the initial state when timing begins. Variable is the memory location to store the results. Just like PULSOUT the time is the number of 2uS increments.

Build & Test  The RC Time circuits is configured so that the capacitor is charged by the output (P2 in this case) and the time to discharge though the resistor is measured.  In this case, as light level changes, discharge time will change.

 What happens to the value of time as the light level changes? When is it lowest? Highest?

Using A Sample Plot  This image shows a plot of the light level. Note how the value increases from left to right then drops again suddenly. Why?

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

Detecting IR  The key to making each IR LED/detector pair work is to send 1 ms of 38.5 kHz FREQOUT harmonic, and then, immediately store the IR detector’s output in a variable. FREQOUT 8, 1, irDetectLeft = IN9  The IR detector’s output state when it sees no IR signal is high. When the IR detector sees the Hz harmonic reflected by an object, its output is low.  The IR detector’s output only stays low for a fraction of a millisecond after the FREQOUT command is done sending the harmonic, so it’s essential to store the IR detector’s output in a variable immediately after sending the FREQOUT command.

Simple Display Program

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.

OBJECT DETECTION AND AVOIDANCE