Lecture 5: Sensors. A sensor is any element that provides information from the to the robot, either about the environment or about the robot itself. Sensing.

Slides:



Advertisements
Similar presentations
Transducers PHYS3360/AEP3630 Lecture 33.
Advertisements

EMS1EP Lecture 6 Digital Inputs
Unit 7 Discrete Controllers
Programming Logic Controllers
Chapter 1 — Computer Abstractions and Technology — 1 Lecture 7 Carry look ahead adders, Latches, Flip-flops, registers, multiplexors, decoders Digital.
INTRODUCTION TO ROBOTICS INTRODUCTION TO ROBOTICS Part 4: Sensors Robotics and Automation Copyright © Texas Education Agency, All rights reserved.
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
Data Acquisition Concepts Data Translation, Inc. Basics of Data Acquisition.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
ELECTRICAL. Circuits Outline Power Hub Microcontroller Sensor Inputs Motor Driver.
Elec467 Power Machines & Transformers
1 Sensors, Actuators, Signals, and Computers Part D Ping Hsu, Winncy Du, Ken Youssefi.
Blogics! It’s a logic circuit simulator aimed at beginners. It introduces simple concepts in the design of interactive physical computing systems such.
ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265.
SENIOR DESIGN 10/16.
Copier Jam Detector Design Problem
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 4.1 Actuators  Introduction  Heat Actuators  Light Actuators  Force, Displacement.
PLC Fundamentals Module 2: Hardware and Terminology.
Digital I/O Connecting to the Outside World
Module 2: Hardware and Terminology
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
EKT314/4 Electronic Instrumentation
RM2F Input / Output (I/O) Pin grouping code!. I/O Pin Group Operations: The Spin language has provisions for assigning values to groups of bits in the.
Electro-Pneumatics Module 1
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Engineering 1040: Mechanisms & Electric Circuits Winter 2015 Interfacing Light-Emitting Diodes (LEDs) & Push Buttons to Microcontrollers.
Introduction to Mechatronics. Introduction Mechanical + Electronics.
Modular Electronics Use the systems approach.
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
Investigating Basic Circuits Post-Activity Discussion
INTRODUCTION TO ROBOTICS INTRODUCTION TO ROBOTICS Part 4: Sensors Robotics and Automation Copyright © Texas Education Agency, All rights reserved.
Lecture 9: Modeling Electromechanical Systems 1.Finish purely electrical systems Modeling in the Laplace domain Loading of cascaded elements 2.Modeling.
The PC Game Adapter. The game adapter card typically contains a DB15 connector into which you plug an external device. The digital joystick is probably.
DPCL Solid State Device Discrete Control Lecture.
Final Year Project(EPT4046) Development of an internet controlled Surveillance Mobile Robot By Mimi Madihah Bt Mohd Idris Id: BACHELOR OF ENGINEERING.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Actuators and Control, Part 5 Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Mechatronics – a design process that includes
Introduction to Mechatronics
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Electronic Control Systems Week 3 – Switches and Sensors
ECET 402 Help Bcome Exceptional / snaptutorial.com
Motor Control Solutions
For further information
Robotics Sensors and Vision
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Session III Architecture of PLC
Electronic Control Systems Week 4 – Relays and Solenoids
Lesson 9: Digital Input-Output Signal Interfacing
PLC Hardware Components.
Motor Control Solutions
Parallel and Series Circuits
Copier Jam Detector Design Problem
Introduction to Wiring Logic Gates
ACOE347 – Data Acquisition and Automation Systems
UNIT 9 Relays.
Programmable Logic Controllers (PLCs)
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
UNIT 9 Relays.
Motor Control Solutions
Introduction to Electro-pneumatic
Presentation transcript:

Lecture 5: Sensors

A sensor is any element that provides information from the to the robot, either about the environment or about the robot itself. Sensing can include contact switches, pressure transducers, encoders and resolvers, position, motion and rate detectors, photo-detectors, temperature sensors, imagers, microphones, IR, ultrasonic range detectors and even monitors for internal circuit loads.

We will investigate a number of different categories of sensors that can be implemented with the BasicX-35 microcontroller. Generally we need a way to convert a voltage level into a digital value. The BX-35 has 8 inputs that accept analog inputs (voltage levels) and convert them to numeric values (digital samples). These A/D converters are connected to pins

Contact Sensors Switches - The simplest type of contact sensor is the switch. A switch can be a toggle type that can be set to remain on or off (i.e. the electrical path through the switch is connected or unconnected). Switches can be momentary switch is spring loaded so that once the force used to trip the switch is removed it returns to its original condition. Momentary switches can be normally open (no connection) or normally closed. Switches can be combined with some type of mechanical bumper or wisker to produce a contact sensor. Microswitches are types of switches that require a very small pressure or contact force to make/break the connection. Typically a microswitch is a momentary type. In order to permit a microprocessor to read the condition of a switch we need to provide a mechanism in which the switch varies a voltage level being read by the processor. Simple on/off measurements can be read by either a digital input or an analog input. In addition to the 8 A/D inputs the BX-35 has 8 digital input/output pins that can be used to drive other circuits such as our robot servo drive motors.

BasicX-35 Example Programs - This example program assumes that you're using I/O pin 25 of a BX-35 and that you have a switch wired according to the diagram shown previously. The program reads the state of any switch connected to the pin and writes that value to a second pin (I/O pin 26, in this case). The logical state of the second I/O pin can then be verified with an oscilloscope or logic probe. An LED can also be used as shown: Sub Main() Dim State as Byte Do ' Read I/O pin 25. State = GetPin(25) ' Copy the state to pin 26. Call PutPin(26, State) Loop End Sub This program works well with any type of switch, but if you try this example using a momentary switch you will notice that pin 26 only stays in the active state as long as the button is pressed. This program would not work if you wanted to toggle the state of an I/O pin for some time after the sense switch is closed. This section taken from the Application Notes for the BasicX-24 by NetMedia. The program above is contained in a separate file called Buttons.bas provided on the BasicX-24 CD.

Sub Main() ' This program reads the state of a switch and toggles the ' state of an output pin whenever the switch is pressed. Const InputPin As Byte = 25 Const OutputPin As Byte = 26 ' Configure pins. Call PutPin(InputPin, bxInputTristate) Call PutPin(OutputPin, bxOutputHigh) Dim State as Byte State = 0 Do ' Toggle State if switch is pressed. If GetPin(InputPin) = 0 Then State = State Xor 1 ' Pause a quarter-second for button de-bounce. Call Delay(0.25) End If ' Write State to output pin. Call PutPin(OutputPin, State) Loop End Sub In order to make use of momentary buttons or switches a different approach is needed. This example program assumes that you are using pin 25 for the input and pin 26 for the output and have a momentary push button wired according to the diagram above. In this program we use the bitwise binary XOR operation to toggle the state of pin 26 each time the momentary button is pressed.

Pressure Transducers Transducers are made from a material that converts one form of energy into another. In this section we will study a type of transducer that converts pressure or vibration into electrical energy (and vice versa). Piezoelectric polymer sensors are one of the most versatile and economical forms of pressure transducers available. There have been significant developments in the technology of piezoelectrics since the discovery of the piezoelectric effect by the Curie brothers over 100 years ago. They found that a quartz crystal changed its size when subjected to an electrical field and that the crystal produced an electrical charge when it was mechanically deformed.