E11 Lecture 11: Sensors & Actuators. Profs. David Money Harris & Sarah Harris Fall 2011

Similar documents
Actuators. DC Motor Servo Motor Stepper Motor. Sensors

1. Controlling the DC Motors

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

Project 27 Joystick Servo Control

Using Servos with an Arduino

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011

Design with Microprocessors Year III Computer Science 1-st Semester

Schematics for Breakout Examples

Administrative Notes. DC Motors; Torque and Gearing; Encoders; Motor Control. Today. Early DC Motors. Friday 1pm: Communications lecture

Figure 1. Digilent DC Motor

Sensors and Actuators

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

Sensors and Sensing Motors, Encoders and Motor Control

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

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

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

Lab Exercise 9: Stepper and Servo Motors

Lab 06: Ohm s Law and Servo Motor Control

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

University of Florida Department of Electrical and Computer Engineering Intelligent Machine Design Laboratory EEL 4665 Spring 2013 LOSAT

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

Assignments from last week

PRESENTED BY HUMANOID IIT KANPUR

Electronic Systems - B1 23/04/ /04/ SisElnB DDC. Chapter 2

ELECTRONIC SYSTEMS. Introduction. B1 - Sensors and actuators. Introduction

Bill of Materials: PWM Stepper Motor Driver PART NO

Tektronix AFG10022 Function Generator. Coming soon to B10: Sin, Square, Ramp, Swept, Arbitrary, Noise. Linear Actuators. Non-magnetized iron plunger

Electronics, Sensors, and Actuators

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

Autonomous Following RObot Initial Design Review

Sensors and Sensing Motors, Encoders and Motor Control

Coding with Arduino to operate the prosthetic arm

Autonomous Following RObot Critical Design Review

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Job Sheet 2 Servo Control

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

HEDS-9730, HEDS-9731 Small Optical Encoder Modules 480lpi Digital Output. Features. Applications VCC 3 CHANNEL A 2 CHANNEL B 4 GND 1

Arduino. AS220 Workshop. Part II Interactive Design with advanced Transducers Lutz Hamel

1. Introduction to Analog I/O

ANGULAR POSITION CONTROL OF DC MOTOR USING SHORTEST PATH ALGORITHM

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

Motors and Servos Part 2: DC Motors

Using Transistors and Driving Motors

Features DIMENSIONS ARE MILLIMETERS INCHES LEAD THICKNESS: CH B CH A. Gnd VCC X 50 H97X

o What happens if S1 and S2 or S3 and S4 are closed simultaneously? o Perform Motor Control, H-Bridges LAB 2 H-Bridges with SPST Switches

ILR #1: Sensors and Motor Control Lab. Zihao (Theo) Zhang- Team A October 14, 2016 Teammates: Amit Agarwal, Harry Golash, Yihao Qian, Menghan Zhang

Interface H-bridge to Microcontroller, Battery Power and Gearbox to H-bridge Last Updated September 28, Background

THE IMPORTANCE OF PLANNING AND DRAWING IN DESIGN

Data Sheet. HEDL-65xx, HEDM-65xx, HEDS-65xx Series Large Diameter (56 mm), Housed Two and Three Channel Optical Encoders. Description.

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

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

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module

CENG 5931 HW 5 Mobile Robotics Due March 5. Sensors for Mobile Robots

Real Time Embedded Systems. Lecture 1 January 17, 2012

Introduction: Components used:

Arduino Control of Tetrix Prizm Robotics. Motors and Servos Introduction to Robotics and Engineering Marist School

Convert a Hitec HS-300 Servo to Continuous Operation

Robot Sensors Introduction to Robotics Lecture Handout September 20, H. Harry Asada Massachusetts Institute of Technology

30-80V, 8.2A Peak, No Tuning, Nulls loss of Synchronization

LINE MAZE SOLVING ROBOT

DC motor control using arduino

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

Agilent AEDS-962x for 150 LPI Ultra Small Optical Encoder Modules

Data Sheet. AEDx-8xxx-xxx 2- or 3-Channel Incremental Encoder Kit with Codewheel. Description. Features. Assembly View. Housing.

3.5 hour Drawing Machines Workshop

Abstract. 1. Introduction

Introduction. Theory of Operation

Data Sheet. HEDS-978x Series Small Optical Encoder Modules. Description. Features. Package Dimensions

Brushed DC Motor System

The line driver option offers enhanced performance when the encoder is used in noisy environments, or when it is required to drive long distances.

Pololu Dual G2 High-Power Motor Driver for Raspberry Pi

Arduino Application: Speed control of small DC Motors

Mechanisms and Fabrication Part II ME2110 Spring 2019 Kyle Saleeby

Development of intelligent systems

Programming 2 Servos. Learn to connect and write code to control two servos.

Electronics II. Calibration and Curve Fitting

Integrated Easy Servo

YDLIDAR G4 DATASHEET. Doc#: 文档编码 :

Laboratory Seven Stepper Motor and Feedback Control

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

The Motor sketch. One Direction ON-OFF DC Motor

User Interface Engineering FS 2013

Data Sheet. AEDT-9140 Series High Temperature 115 C Three Channel Optical Incremental Encoder Modules 100 CPR to 1000 CPR. Description.

Dimensions: Specifications:

Understanding RC Servos and DC Motors

العطاء رقم )7106/67( الخاص بشراء أجهز لقسم الهندسة الكهربائية على حساب البحث العلمي

Lab 5: Inverted Pendulum PID Control

The Robot Builder's Shield for Arduino

ES86 Series Closed-loop Stepper Drive + Motor System (Drive+ Motor/Encoder)

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

Speed Control of DC Motor Using Microcontroller

DeviceCraft Revision #1 11/29/2010

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

Sensors and Motor Control Lab Individual lab report #1 October 16, 2015

Assembly Language. Topic 14 Motion Control. Stepper and Servo Motors

istand I can Stand SPECIAL SENSOR REPORT

WELCOME TO THE SEMINAR ON INTRODUCTION TO ROBOTICS

Sensor and. Motor Control Lab. Abhishek Bhatia. Individual Lab Report #1

HBS Series Hybrid Servos


Transcription:

E11 Lecture 11: Sensors & Actuators Profs. David Money Harris & Sarah Harris Fall 2011

Outline Actuators DC Motor Servo Motor Stepper Motor Sensors Phototransistor Reflectance Sensor IR Distance Sensor Contact Switch Bend Sensor Other Sensors 2

Logistics Bring your laptop, robot, programming cable to the rest of the lab sessions this fall Pick your partner for Lab 6 & Final Project Must be in your lab section 3

DC Motor DC motors spin when a steady voltage is applied Can draw significant current (~ 1A or more) Fixed permanent magnet Rotating coil Brushes M 4 http://humanoids.dem.ist.utl.pt/servo/overview.html

E11 Motors Operating Voltage: 3-12 V At 6 V operation: Free run speed: 11,500 RPM Unloaded current: 70 ma Stall current: 800 ma ~0.5 oz-in torque 5

Gearing DC motors spin too fast And too little torque Gears slow the load rotation Also increase torque In this example, load spins at half the speed of the driver Gear ratio: ω B ω A = N A N B motor load 6

Example: Tamiya Gear Box Gear Ratio: Final to Blue1 36:12 Blue1 to Blue2 36:12 Blue2 to Crown 36:12 Crown to Pinion 34:8 Total: 114.75:1 pololu.com 7

H-Bridge Motors require large current to operate But Arduino outputs only offer 40 ma H-Bridges are used to drive the large current A B C D Motor ON OFF OFF ON Forward OFF ON ON OFF Backward ON OFF ON OFF Brake OFF OFF OFF OFF Coast ON ON OFF OFF H-Bridge Magic Smoke A B V motor M C D 8

SN754410 H-Bridge 754410 Dual H-Bridge is easy to control with digital logic V CC1 = Logic Supply (5V) V CC2 = Motor Supply (4.5-36 V) 12En 1A 2A Motor 0 X X Coast 1 0 0 Brake 1 0 1 Backward 1 1 0 Forward 1Y M 2Y 1 1 1 Brake Contains two H-Bridges to drive two motors 9

Mudduino H-Bridge Interface 10

Motor Driver Software #define LEN 6 #define LPLUS 9 #define LMINUS 8 void forward(void) { digitalwrite(len, 1); digitalwrite(lplus, 1); digitalwrite(lminus, 0); // similar for right motor } 11

Shaft Encoding Sometimes it helps to know the position of the motor Optical shaft encoder Disk with slits attached to motor shaft Light and optical sensor on opposite sides of disk Count light pulses as the disk rotates Analog shaft encoder Connect potentiometer (variable resistor) to shaft Resistance varies as shaft turns Our DC motors don t have shaft encoders built in 12

Servo Motor Servo motors are designed to be easy to use DC motor Gearing Analog shaft encoder Control circuitry High-current driver Three wires: 5V, GND, Control servocity.com Turn from 0 to 180 degrees Position determined by pulses on control wire 13

Servo Pulse Width Modulation Control position with 50 Hz (20 ms) pulses Pulse width modulation (PWM) 1 ms = 0 1.5 ms = 90 2 ms = 180 servocity.com 14

SG90 Servo 4.0 7.2 V Operation At 4.8 V Speed: 0.12 sec / 60 degrees (83 RPM) Stall Torque: 16.7 oz-in hobbypartz.com 15

Arduino Servo Library Arduino offers a servo library for controlling servos // servotest.pde // David_Harris@hmc.edu 1 October 2011 #include <Servo.h> // pins #define SERVOPIN 10 // Global variable for the servo information Servo servo; void testservo() { initservo(); servo.write(90); // set angle between 0 and 180 degrees } void initservo() { pinmode(servopin, OUTPUT); servo.attach(servopin); } 16

Stepper Motor Stepper motors are also popular Motor advances in discrete steps Input pulses indicate when to advance Example: Pololu 1207 Stepper Motor 1.8 steps (200 steps/revolution) 280 ma @ 7.4 V 9 oz-in holding torque Needs H-Bridge driver Ground C and D Alternate pulses to A and B 17

Phototransistor Converts light to electrical current Vishay BPW77NA NPN Phototransistor Dark current: 1 100 na Angle of half sensitivity: ±10 jameco.com vishay.com 18

Phototransistor Circuit Leave base terminal unconnected V out = 5 I photo 330 kw In dark, V out 5 V For I photo > 15 ma, V out drops to ~0 Large resistor gives sensitivity to weak light 19

Other Light Sensors Photodiodes Similar to phototransistors Lower sensitivity Cadmium Sulfide (CDS) Cell Resistance changes with light From > 1 MW in dark to 200 W in full light Slow response time goldmine-elec-products.com 20

Sensor Read Code #define PHOTO_TRANS 19 void setup() { Serial.begin(9600); } // configure sensors pinmode(photo_trans, INPUT); void loop() { int sensor; } // test sensors sensor = analogread(photo_trans-14); // analogread uses analog port # Serial.print("Reflectance sensor: "); Serial.println(sensor); delay(500); 21

Sensor Averaging Sensors are subject to noise Average multiple readings for more stable results 22

Reflectance Sensor Infrared LED and phototransistor pair LED illuminates surface Phototransistor receives reflected light Daylight filter on sensor reduces interference Sensitive to distance, color, reflectivity Fairchild QRD1114 Reflectance Sensor ~20 ma LED current 1.7 V LED ON voltage 940 nm wavelength (near infrared) fairchild.com 23

Reflectance Sensor Circuit I LED = (5-1.7 V) / 220 W = 15 ma V out = 5 I photo 10 kw Resistor was selected to give a good range of response 24

IR Distance Sensor Sharp GP2Y0A21YK0F Range of 8 to 60 Triangulates with linear CCD array Three terminals: 5V, GND, Signal 25

Ultrasonic Distance Sensor Measure flight time of ultrasonic pulse Less sensitive to ambient light More precise More expensive Example: LV-MaxSonar-EZ 42 KHz ultrasonic beam Range of 254 with resolution of 1 2.5 5.5 V operation Analog voltage output maxbotix.com 26

Switches Switches are useful for proximity detection Three terminals COM: NO: NC: Common Mounting issues Normally Open Normally Closed Good supporting surface To Digital Input Gang 2 or more with plate between +5 sparkfun.com 27

Flex Sensors Resistance changes with flex Example: Spectra Symbol Flex 4.5 length 10 KW ± 30% when flat 60-110 KW when bent Sample Circuit V out = 2.5 V when flat Increases when bent 10 kw Flex Sensor To Analog Input sparkfun.com 28

Tilt Switches Mercury or Ball Warn if your bot is about to topple! Tilt Switch 10 kw +5 To Digital Input 29 ladyada.net

Navigation Sensors Track your position Watch for operating voltage and analog/digital interface Some of these sensors are expensive! Sparkfun HMC6352 Digital Compass MLX90609 Single Axis Gyroscope ITG-3200 Triple Axis Gyroscope ADXL322 Dual Axis Accelerometer Inertial Measurement Units 30

Mounting Sensors & Actuators Secure mounting is half the challenge Poorly mounted sensors will fail at an inopportune time Tangles of cables will catch on obstructions and pull loose High center of gravity leads bots to topple in collisions Consider building a custom mount Machine shop 3D printer Use Breadboard to test electronics Solder final electronics onto front of Mudduino for security 31

Adhesives Cynoacrylate (CA) Glue (aka Super Glue) Fast drying, good for bonding plastic Low shear strength Don t bond your fingers wear gloves Hot Glue Electrical Tape Insulator, low strength Gaffer s Tape Like duct tape, but stronger and removes cleanly 32

Suppliers Engineering Stockroom Hobbyist Pegasus Hobbies 5515 Moreno St., Montclair, an easy bike ride from campus Sparkfun Pololu Jameco All Electronics, Futurlec, Inventables, Goldmine Electronics, Professional DigiKey (very wide selection, fewer hobby parts, higher cost) 33

Summary On-Board Actuators: Twin DC Motors + Gearbox Servo Motor On-Board Sensors: Phototransistor (A5) Reflectance Sensor (A4) Distance Sensor (A0) In E11 Stock: Snap Action Switch Flex Sensors Boundless possibilities! 34