SMART Funded by The National Science Foundation

Similar documents
Pulse Generation. Pulsout. 555 Timer. Software version of pulse generation Pulsout pin, Period

Lecture 10. Thermal Sensors

Chapter #5: Measuring Rotation

Feed-back loop. open-loop. closed-loop

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

Directions for Wiring and Using The GEARS II (2) Channel Combination Controllers

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

Introduction to Electronics and Breadboarding Circuits

Electronics. RC Filter, DC Supply, and 555

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

Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller

Lab Exercise 9: Stepper and Servo Motors

Experiment #3: Micro-controlled Movement

DC motor control using arduino

In this activity, you will program the BASIC Stamp to control the rotation of each of the Parallax pre-modified servos on the Boe-Bot.

Solid State Devices (2)

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

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

MSK4310 Demonstration

THE NAVIGATION CONTROL OF A ROBOTIC STRUCTURE

I 2 C RedBot & DC Motor Servo Motor Control

Use and Copyright Microcontroller Motion Activity #1: Connecting and Testing the Servo Servo on Board of Education Rev. C Servo on Board of Education

PROGRAMMABLE CFE PULLER

Lecture 6. Interfacing Digital and Analog Devices to Arduino. Intro to Arduino

Autonomous Refrigerator. Vinícius Bazan Adam Jerozolim Luiz Jollembeck

Microcontroller interfacing

Electronic Components (Elements)

It s All About Angles

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

HB-25 Motor Controller (#29144)

Intro to Engineering II for ECE: Lab 3 Controlling Servo Motors Erin Webster and Dr. Jay Weitzen, c 2012 All rights reserved

Introduction to the ME2110 Kit. Controller Box Electro Mechanical Actuators & Sensors Pneumatics

Electronic Components

Laboratory Exercise 1 Microcontroller Board with Driver Board

AppKit: Using the LTC bit Analog-to-Digital Converter

Monitoring Temperature using LM35 and Arduino UNO

Electromagnetic spectrum

the Board of Education

ME 2110 Controller Box Manual. Version 2.3

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

Direct Current Waveforms

Junior Digital circuit experiment board. Use for the experimentation of digital circuits both TTL IC and CMOS DC supply :

Castle Creations, INC.

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

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

RC Servo Interface. Figure Bipolar amplifier connected to a large DC motor

Laboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC

Infrared Remote AppKit (#29122)

Activity 4: Due before the lab during the week of Feb

KUBE Electronics AG. KUBE TR156 Universal PIR Circuit IC. For PIR Motion and Presence Detectors. Applications. Features

Electronic Components

Hitachi HM55B Compass Module (#29123)

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

Lecture #19 Digital To Analog, PWM, Stepper Motors Embedded System Engineering Philip Koopman Monday, 28-March-2016

Lock Cracker S. Lust, E. Skjel, R. LeBlanc, C. Kim

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

B Robo Claw 2 Channel 25A Motor Controller Data Sheet

Variateur analogique courant continu série AZ et AZB

USER S GUIDE POLOLU A4988 STEPPER MOTOR DRIVER CARRIER USING THE DRIVER POWER CONNECTIONS

Sensors and Sensing Motors, Encoders and Motor Control

IT.MLD900 SENSORS AND TRANSDUCERS TRAINER. Signal Conditioning

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

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

Controlling Your Robot

CMSC838. Tangible Interactive Assistant Professor Computer Science. Week 11 Lecture 20 April 9, 2015 Motors

Introduction to Arduino HW Labs

Sensors and Sensing Motors, Encoders and Motor Control

Need Analog Output from the Stamp? Dial it in with a Digital Potentiometer Using the DS1267 potentiometer as a versatile digital-to-analog converter

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

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

Electronics, Sensors, and Actuators

The Torxis Linear Servo meets the following environmental conditions:

Contents. Part list 2 Preparartion 4 izebot. izebot Collision detection via Switch. izebot Serial Communication. izebot Remote Control

ESE141 Circuit Board Instructions

Balancing Robot. Daniel Bauen Brent Zeigler

ECE 214 Electrical Circuits Lab Lecture 8

The Mechatronics Sorter Team Members John Valdez Hugo Ramirez Peter Verbiest Quyen Chu

DC1000 (120VAC) Theory of Operations

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

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

Using Transistors and Driving Motors

SERVO MOTOR CONTROL TRAINER

11. Audio Amp. LM386 Low Power Amplifier:

DC SERVO MOTOR CONTROL SYSTEM

LSI/CSI LS7290 STEPPER MOTOR CONTROLLER. LSI Computer Systems, Inc Walt Whitman Road, Melville, NY (631) FAX (631)

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

Matlab Data Acquisition and Control Toolbox for Basic Stamp Microcontrollers

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

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

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

STPDRV-1 Stepper Motor Driver Data Sheet (R1.0) BFF Design Ltd

Lecture 2 Analog circuits. Seeing the light..

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator

Training Schedule. Robotic System Design using Arduino Platform

Command Set For EZController Model EZCTRL. Document Revision: A08 12/05/10

DASL 120 Introduction to Microcontrollers

Devices and Op-Amps p. 1 Introduction to Diodes p. 3 Introduction to Diodes p. 4 Inside the Diode p. 6 Three Diode Models p. 10 Computer Circuit

Wireless Technology in Robotics

Transcription:

Lecture 5

Capacitors 1 Store electric charge Consists of two plates of a conducting material separated by a space filled by an insulator Measured in units called farads, F

Capacitors 2 Mylar Ceramic Electrolytic Negative lead (-)

Capacitor Symbols + Fixed capacitor Polarized capacitor Variable capacitor

How to Read Capacitor Value The first two figures give us 10, the third figure gives us 0000, and the letter 10%. We normally express this as 0.1µF.

Example: Capacitor Value 1

Example: Capacitor Value 2

Example: Capacitor Value 3

Example: Capacitor Value 4

Lecture 6

Photoresistors Light sensitive resistors Resistance decreases when light intensity increases Symbol

Photoresistor: How It Works

Simple Light Meter

Light Sensitive Voltage Divider

Light Activated Relay

Photoresistor with BS2 Usually connect with a capacitor Use RCTime command to find out light intensity

+ R RC Circuit + V i C V o - - Vo ( s) V ( s ) i 1 = RCs + 1 RC is time constant, τ 63.2% of the voltage output in steady state (V A ) τ

Rctime with BS2 Software version of analog to digital converter Pbasic rctime command Rctime Pin#, state, variable Example code High 5 Pause 3 Rctime 5,1, tau

Photodiode Transforms light energy to electric current Very linear More sensitive than photoresistor Symbol

Photodiode: How It Works

Photodiode Applications

Photodiode with BS2 Polarity: cathode connects to the ground

Phototransistor The base lead of a BJT is replaced by a light sensitive surface Phototransistor Photo FET

Phototransistor: How It Works

Phototransistor Applications

Tachometer

Optoisolators 1 Closed Pair

Optoisolators 2 Slotted Pair Reflective Pair

Optoisolators 3 Integrated Optoisolators

Optoelectronic Sensors Experiments Experiments What s micro controller Basic A and D Earth measurements Chapters 8 4 (except DS1620) Robotics StampWorks 5, 7, and 19 Others

Lecture 7

Rctime with BS2 P3 Software version of analog to digital converter Pbasic rctime command High 3 Pause 3 Rctime 3,1, tau

Analog to Digital Conversion Process of converting an analog signal to a digital number Three step procedure Sampling (sample and hold) Quantization Coding

Sampling

Quantization and Coding Vo 111 7 110 101 6 5 10 = 8 1.25V 100 4 011 3 010 2 001 1 000 0 0 1.25 2.5 3.75 5 6.25 7.5 8.75 10 0V ~ 10V Vi

ADC Analog to digital converter 8-bit successive analog to digital converter 0V to 5V input range Single 5V power supply

ADC Pin Description Identifier Pin Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Description ADC is ready to do conversion when it is low 0 to 5V analog input need to be digitized Zero offset adjustment Ground Span adjustment 8 bit ADC output Clock signal from BS2 Regulated 5V (Power supply)

ADC with BS2-1 0V to 5V analog input using a potentiometer Output is from 0 to 255 8 bit resolution

Sample Code for ADC 1 adcbits var byte High 0 Low 0 Low 1 Pulsout 1,210 Shiftin 2, 1,MSBPOST, [adcbits\8] Serial communication Shiftin Data_pin, Clock_pin, mode, [variable\bits]

Sample Code for ADC 2 Q var word R var word Q = 13 /5 R = 13 // 5 Debug? Q Debug? R Quotient Remainder Debug window shows; Q= 2 R= 3

ADC with BS2-2 2V to 5V limited analog input using a potentiometer Output is from 102 to 255 8 bits resolution 2V 5V 5V 5V 255 255 = 102 = 255

ADC with BS2-3 Using two potentiometers zero and span can be adjusted to get full 8 bit resolution Set zero to 2V Set span to 3V (2 2) V 3V (5 2) V 3V 255 255 = = 0 255

ADC with BS2-4 0V to 4V limited analog input using a potentiometer Output is from 0 to 204 8 bits resolution 0V 5V 4V 5V 255 = 255 = 0 204

ADC with BS2-5 Using another potentiometer to span can be adjusted to get full 8 bit resolution Set to 4V 0V 4V 4V 4V 255 255 = = 0 255

ADC with BS2-6 2V to 4V limited analog input using a potentiometer Output is from 102 to 204 8 bits resolution 2V 5V 4V 5V 255 = 102 255 = 204

ADC with BS2-7 Using 2 potentiometers zero and span can be adjusted to get full 8 bit resolution (2 (4 2) V 2) V 255 = 0 Set zero to 2V Set span to 2V (4 (4 2) V 2) V 255 = 255

ADC0831 Experiments Experiments What s micro controller Basic A and D Chapters 1, 3 Earth measurements Robotics StampWorks 27 Others

Lecture 8

Servo Motor DC motors with feedback position control As long as the coded signal exists on the input line, the servo will maintain the angular position of the shaft As the coded signal changes, the angular position of the shaft changes

Servo Motor: How It Work? Consists of some control circuit and a potentiometer This potentiometer allows the control circuitry to monitor the current angle of the servo motor If the shaft is at the correct angle, then the motor shuts off If the circuit finds that the angle is not correct, it will turn the motor in the correct direction until the angle is corrected

Servo Motor Wiring

Servo Motor with BS2 Only when you use AA battery pack 2 servo motors only Need another capacitor for additional servo motors

Sample Code X var byte Output 12 Here: For X = 1 to 100 Pulsout 12, 500 Pause 10 Next Pause 500 Pulsout Pin #, Duration 12 is pin number of BS2 500 means 1milisecond For X = 1 to 100 Pulsout 12, 1000 Pause 10 Next Pause 500 Goto Here

PWM Pulse-Width-Modulation An efficient method to deliver controlled amount of power to loads such as motors Use square voltage pulses Modulation Process of controlling the duty cycle of square wave Pulse-width-modulator The circuit used to achieve modulation tasks

PWM - Duty Cycle Amount of power delivered to load depending on duration of each pulse

The Basic PWM Control

Stepper Motor Do not spin freely with just power Driven by the interaction (attraction and repulsion) of magnetic fields With proper sequence of the on-off pattern of the magnetic fields, the stepper turns (when it s not, the stepper sits and quivers).

Stepper Motor with BS2 ULN 2803 high-current transistor driver

Motor Experiments Experiments What s micro controller Basic A and D Chapters 3 and 4 Earth measurements Robotics StampWorks 25 and 26 Others