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

Similar documents
Experiment#6: Speaker Control

ME 2110 Controller Box Manual. Version 2.3

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

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

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.

Lab Exercise 9: Stepper and Servo Motors

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

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

HB-25 Motor Controller (#29144)

Experiment #3: Micro-controlled Movement

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

the Board of Education

Chapter 2: Your Boe-Bot's Servo Motors

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

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

THE UNIVERSITY OF BRITISH COLUMBIA. Department of Electrical and Computer Engineering. EECE 365: Applied Electronics and Electromechanics

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

Chapter #5: Measuring Rotation

School of Engineering Mechatronics Engineering Department. Experim. ment no. 1

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

Laboratory Exercise 1 Microcontroller Board with Driver Board

Feedback Devices. By John Mazurkiewicz. Baldor Electric

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

PART 2 - ACTUATORS. 6.0 Stepper Motors. 6.1 Principle of Operation

Microcontroller interfacing

FRIDAY, 18 MAY 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer.

Contents. Acknowledgments. About the Author

Embedded Systems Lab Lab 7 Stepper Motor Application

NJM2671 NJM 2671E2 STEPPER MOTOR CONTROLLER / DRIVER

Sensors and Sensing Motors, Encoders and Motor Control

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

Stepper Motor Driver CW230

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

DC motor control using arduino

Stepper Motor Driver CW8060

Electronic Speed Controls and RC Motors

Laboratory Seven Stepper Motor and Feedback Control

Compass Module AppMod (#29113) Electro-Mechanical Compass

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

Chap. 5 Electronic Components and Sensing Devices

Half stepping techniques

*X036/12/01* X036/12/01 TECHNOLOGICAL STUDIES HIGHER NATIONAL QUALIFICATIONS 2013 TUESDAY, 21 MAY 1.00 PM 4.00 PM

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

Direct Current Waveforms

EXPERIMENT 6: Advanced I/O Programming

AN Industrial Stepper Motor Driver. Application Note Abstract. Introduction. Stepper Motor Control Method

Solar Mobius Final Report. Team 1821 Members: Advisor. Sponsor

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

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

SMART Funded by The National Science Foundation

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO

High-Voltage High-Current Stepper Motor Driver IK6019A TECHNICAL DATA

PREREQUISITES: MODULE 10: MICROCONTROLLERS II; MODULE 14: DISCRETE COMPONENTS. MODULE 13 (SENSORS) WOULD ALSO BE HELPFUL.

Sensors and Sensing Motors, Encoders and Motor Control

STATION NUMBER: LAB SECTION: RC Oscillators. LAB 5: RC Oscillators ELECTRICAL ENGINEERING 43/100. University Of California, Berkeley

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

Application Information

AC generator theory. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Stepper Motors and Control Part I - Unipolar Stepper Motor and Control (c) 1999 by Rustle Laidman, All Rights Reserved

EE Laboratory 4 - First Order Circuits *** Due in recitation on the week of June 2-6, 2008 ***

Datasheet of the MEZ Stepper Servo Drive MEZ 2D VDC, 8.2A Peak, Closed-loop, No Tuning. Version

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Motor control using FPGA

unit: mm 4130 Parameter Symbol Conditions Ratings Unit Maximum supply voltage 1 V CC 1 max No input signal 50 V Maximum supply voltage 2 V CC

Mechatronics Project Report

VLA Hybrid Gate Driver Application Information. DC-DC Converter V D 15V. V iso = 2500V RMS

LV8716QAGEVK Evaluation Kit User Guide

ServoStep technology

The Allen-Bradley Servo Interface Module (Cat. No SF1) when used with the Micro Controller (Cat. No UC1) can control single axis

2013 Technological Studies. Standard Grade General. Finalised Marking Instructions

Design of double loop-locked system for brush-less DC motor based on DSP

DISCUSSION OF FUNDAMENTALS

University of Jordan School of Engineering Electrical Engineering Department. EE 219 Electrical Circuits Lab

*X036/12/01* X036/12/01 TECHNOLOGICAL STUDIES HIGHER NATIONAL QUALIFICATIONS 2015 TUESDAY 12 MAY 1.00 PM 4.00 PM

MONDAY, 7 JUNE 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer.

Basic NC and CNC. Dr. J. Ramkumar Professor, Department of Mechanical Engineering Micro machining Lab, I.I.T. Kanpur

Exercise 9. Electromagnetism and Inductors EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION. Magnetism, magnets, and magnetic field

DC Motor Speed Control using PID Controllers

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

DMX-K-DRV-17 Integrated Step Motor Driver & Basic Controller

2 Thermistor + Op-Amp + Relay = Sensor + Actuator

Detect stepper motor stall with back EMF technique (Part 1)

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

RoHS Directive-Compliant Compact Linear Actuators DRL Series. Features

Designated client product

NJU7380 STEPPER MOTOR CONTROLLER

Step vs. Servo Selecting the Best

Single Board Computer System Undergraduate Education: Design and Fabrication of a mixed signal automated Guitar tuning system

Electronics (JUN ) General Certificate of Secondary Education June Time allowed 2 hours TOTAL

NJM3777 DUAL STEPPER MOTOR DRIVER NJM3777E3(SOP24)

Connection and Operation

EE 314 Spring 2003 Microprocessor Systems

Speed Control Of Transformer Cooler Control By Using PWM

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

Downloaded From All JNTU World

3.1.Introduction. Synchronous Machines

Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller

M57161L-01 Gate Driver

Transcription:

The Mechatronics Sorter Team Members John Valdez Hugo Ramirez Peter Verbiest Quyen Chu Professor B.J. Furman Course ME 106 Date 12.9.99

Table of Contents Description Section Title Page - Table of Contents 1 Project Overview 2 Theory of Operation Flow Chart 3 Sorter PBASIC Program Instruction 4 Sorter Step by Step Pictorial Diagram 5 BASIC Stamp Interface to Control Units 6 Individual Control Units 7 a. Conveyor Motor b. Wooden Block Sensors and Conveyor Sensor c. Motor Arm Detector d. Stepper Motor e. Electromagnetic Driver f. Power Supply Understanding the Stepper Motor 8 Sorter Key Component CAD Drawings 9 Motor Specifications/ Data Sheets 10

Project Overview Introduction Mechanical Engineering is a versatile field that covers many aspects of everyday life. Without the many devices designed by Mechanical Engineers we would not be able to enjoy the simple pleasures of life such as going for a drive or living in an air conditioned home. Mechanical Engineering is an old discipline, nevertheless the field is still as innovative as the name suggests. Furthermore, Mechanical Engineering has now taken a whole new approach to the design of better devices embraced in the principles of MECHATRONICS. This approach demands the design of devices that do not just perform repetitive tasks but that also have the ability to respond to environmental changes. This is done with the integration of sensors, motors, microcontrollers, and other electromechanical devices used in the electronics and mechanical fields. Ultimately, MECHATRONICS allows the design of more reliable, efficient, and sophisticated systems. Mechatronics Applications Devices designed under the principles of MECHATRONICS range from toys to satellites. The complexity of each device range from application to application, however the common element in every system is that it integrates electronic and mechanical components. An example of this is the conveyor belt system constructed in this project. The system is designed to sort small blocks according to the color combinations printed on their sides. To accomplish this task, the conveyor belt is equipped with four sensors. The first sensor is used to detect the block as it travels along the conveyor belt. Once the block is detected, a signal is sent to a microcontroller. The microcontroller used for this application is the Parallax BASIC Stamp. The signal informs the conveyor belt to stop and read the code printed on the block. The code is comprised of a combination of two colors, black and white, that is read by two light sensors. The microcontroller then deciphers the code and determines the appropriate bin for drop-off. The final sensor is used to determine the home position of the electromagnetic arm as it picks and places the blocks. Though the principle of the system appears simple,the challenge was to integrate the design, construction, electrical circuit layout, and programming into a cohesive, working apparatus. This is just one application in which the application of MECHATRONICS has simplified by automating a repetitive task of sorting out items. The Mechatronics Sorter

Theory of Operation Flow Chart System On Legend Command Statement Conveyor Belt Turns Decision Statement Evaluate Sensor No. 3 Condition High Low Specification Demand Conveyor Belt Halt Determine Arm Position High Evaluate Sensor No. 1 Condition Low Block 1 Yes Is Arm at Home Position No Block 2 High Block 3 Evaluate Sensor No. 2 Condition Block 4 Energize Magnet Rotate Arm Low Determine Block Type Pick Up Block Move Block Over Designated Bin De-energize Magnet

Sorter Program using PBASIC Language symbol cnvr=pin0 'Define label "cnvr"(belt switch) for I/O pin 0. symbol sensor1=pin3 'Define label "sensor1" for I/O pin 1. symbol sensor2=pin2 'Define label "sensor2" for I/0 pin 2. symbol sensor3=pin1 'Define label "sensor3" for I/O pin 3. symbol sensor4=pin4 'Define label "sensor4" for I/O pin 4. symbol magswtch=pin5 'Define label "magswtch" for I/0 pin 5. symbol stprdrctn=pin6 'Define label "stprdrctn" for I/O pin 6. symbol stprstp=pin7 'Define label "stprstp" for I/O pin 7. dirs=%11100001 pins=%00000000 'Define ports 1-4 as inputs and pins 5-7, 0 as outputs. 'Initialize all pins as low. conveyorbelt: 'Loop that senses a block. IF sensor1=0 THEN checkstate 'Sensor1 blocked branch to checkstate. IF sensor1=1 THEN state 'Sensor1 not blocked branch to state. state: cnvr=1 goto conveyorbelt 'Turns conveyor belt on. 'Sends a high signal to conveyor control pin. 'Loops back into conveyorbelt loop. checkstate: cnvr=0 pause 91 'Function that check if the arm is home. 'wait for 91 milliseconds. 'Turns conveyor belt off. IF sensor4=1 THEN reset IF sensor4=0 THEN arm 'Arm not in place branch to reset. 'Arm in place branch to arm. arm: 'Function, checks for possible cases. IF sensor2=1 AND sensor3=1 THEN bin1 'First case branch to bin1. IF sensor2=1 AND sensor3=0 THEN bin2 'Second case branch to bin2. IF sensor2=0 AND sensor3=1 THEN bin3 'Third case branch to bin3. IF sensor2=0 AND sensor3=0 THEN bin4 'Fourth case branch to bin4. bin1: pause 500 magswtch=1 pause 500 stprdrctn=0 For b1=1 to 20 PULSOUT 7,25 pause 25 NEXT goto magcntrl 'White-White case move are to bin one. 'wait for half a second. 'Turns magnet on. 'Wait for half a second. 'Direction of motor set to turn CCW. 'Step counting loop (20 steps). 'Pulses motor with a 25 millisecond 'pulse for 25 milliseconds. 'Loop back until b1=20 (20 steps). 'Branch to magnet control function (magcntrl). magcntrl: pause 1500 magswtch=0 pause 300 stprdrctn=0 'Magnet control function. 'pause for one and a half seconds. 'Turn magnet off. 'Wait.3 seconds. 'Direction of motor is set CCW.

Sorter Program using PBASIC Language (con t con t.) reset: goto reset stprdrctn=1 PULSOUT 7,20 pause 25 'Branch to reset function. 'Reset function checks if arm is home. 'Set direction of motor to CW. 'Pulses motor with a 20 millisecond 'pulse for 25 milliseconds. IF sensor4=0 THEN conveyorbelt 'Arm in place branch to converbelt. IF sensor4=1 THEN reset Arm not in place branch to reset. bin2: pause 500 magswtch=1 pause 500 stprdrctn=0 'White-Black case. 'wait for half a second. 'Turn magnet on. 'Wait for half a second. 'Direction of motor is set to CCW. For b1=1 to 40 PULSOUT 7,25 pause 25 NEXT 'Step counting loop (40 steps). 'Pulses motor with a 25 millisecond 'pulse for 25 milliseconds. 'Loop back until b1=40 (40 steps). bin3: goto magcntrl 'Branch to magnet control function (magcntrl). 'Black-White case. pause 500 'wait for half a second. magswtch=1 'Turn magnet on. pause 500 'Wait for half a second. stprdrctn=0 'Direction of motor is set to CCW. For b1=1 to 60 PULSOUT 7,25 pause 25 NEXT goto magcntrl 'Step counting loop (60 steps). 'Pulses motor with a 25 millisecond 'pulse for 25 milliseconds. 'Loop back until b1=60 (60 steps). 'Branch to magnet control function (magcntrl). bin4: pause 500 magswtch=1 pause 500 stprdrctn=0 'Black-Black case. 'wait for half a second. 'Turn magnet on. 'Wait for half a second. 'Direction of motor is set to CCW. For b1=1 to 80 PULSOUT 7,25 pause 25 NEXT goto magcntrl 'Step counting loop (80 steps). 'Pulses motor with a 25 millisecond 'pulse for 25 milliseconds. 'Stay in loop until b1=80 (80 steps). 'Branch to magnet cntrl loop(magcntrl). End of Program

Step by Step Operation 1) Block set on Conveyor 2) Block Enters Guides 3) Sensors Read Color Code & Electromagnet Energizes 4) Arm Rotates Block to Appropriate Bin 5) Electromagnet is de-energized

Basic Stamp I Interface to Individual Control Units Block Diagram Stepper Motor CTL Electromagnetic Driver Conveyor Controller P2 P3 P1 Basic Stamp I P6 P7 P5 Dir. Step Stepper Motor CTL Electromagnetic Driver +12V +12V Arm Homing Controller P4 P0 Conveyor Controller +12V +12V - +14V Input Power Supply +12V +5V Circuit Assembly Unit

Conveyor Control Unit Schematic Diagram 2.2KW P0 1.5kW BS1 I/O R B +12 V Conveyor Motor 2N3904 IN4001 Note Conveyor motor draws ~ 50 ma @ 12V. Measurements performed using Fluke Digital Multimeter Determining R B I C = 55 ma (Assume h Fe = 20) I B = I B = 55 20 5-0.7 R B = 2.5 ma = 2.5 ma R B = 4.3 2.5 x 10 3 Circuit Assembly Unit Conveyor Motor Construction Maxon DC motor with gearhead. This high-torque, low-speed motor is used to drive the conveyor belt.

Wooden Block Sensors and Conveyor Sensor Control Unit Schematic Diagram +5V I/O Sensor Function P2 No. 1 Block Determination P3 No. 2 Block Determination P3 No. 3 Conveyor Motion Out 2.2KW BS1 I/O Pot @ Min Potentiometer Sensitivity Pot @ Min 280W 280W OMRON EE-S B 5V 280W 5KW 5KW 5KW I LED = 5-1.6 280 5-1.6 I LED = 280 + 5K Circuit Assembly Unit Light Sensors Construction OMRON reflective opto-switches. Emit infrared light and capture reflections. Opaque objects placed near the sensor causes a logic low level. These are used to detect the presence of a block at the end of the conveyor and to read block color codes. Conveyor Motion Sensor Block Decoder Sensors

Motor Arm Detector Control Unit Schematic Diagram +5V Sensor Operation 5KW 5.6KW Beam Blocked Beam Present 390KW 280W P4 BSI I/O LED = On LED = Off 2N2102 Output = Low Output = High Circuit Assembly Unit Photo- Interrupter Construction Optek photo-interrupter switch. Emits infrared from one pole and is collected at other pole. Opaque object between poles causes a logic low output. This is used in the sorter system as a means of locating a home position for the stepper motor.

Stepper Motor Control Unit Schematic Diagram +12 V 240Ω 100Ω 240Ω 10µF + 0.1µF 15KΩ 15KΩ 15KΩ 14 13 2.2KΩ 2.2KΩ 2.2KΩ 2.2KΩ 4 2 V CC1 Rx R V CC2 Q1 6 (Blue) P7 P6 91KΩ 2N3904 91KΩ 2N3904 (Step) 15 (Direction) 3 C M Q2 Q3 Q4 8 (Green) 9 (Brown) 11 (Red) V EE1 5 V EE2 12 Circuit Assembly Unit Motor Arm Construction Howard Industry stepper motor. Direction identification and pulses sent to the motor from a stepper motor control circuit cause the motor to rotate at a specific increment. The stepper motor is used to rotate the blocks to the appropriate bin.

Electromagnetic Driver Schematic Diagram 2.2KW +12 V Electromagnet IN4001 Note Electromagnet draws ~ 500 ma @ 12V. Measurements performed using Fluke Digital Multimeter P5 1.5kW BS1 I/O 2N3904 2N2102 Circuit Assembly Unit Electromagnet Construction Multacc 90-280 Electromagnet. Voltage applied over the coil induces a magnetic field which provides the attractive force necessary to suspend the block.

Power Supply Schematic Diagram +12 V + From External Power Supply (12.7-14 V @ 2A) - BS1 I/O 0.1mF + 100mF 5V Regulator 0.1mF + +5 V 100mF Note 100µF Electrolytic capacitor filters out low frequency noise and ripple. 0.1µF Ceramic capacitor filters out high frequency. 5V Regulator outsourced from Basic Stamp board. Circuit Assembly Unit

Understanding the Stepper Motor OVERVIEW The stepper motor used in the Mechatronics sorter apparatus was salvaged from a former SJSU students project. Since the stepper motor manufacturer was unknown, data sheets could not be obtained that would simplify the process of understanding how to make the motor work. The purpose of this document is to describe the process that was used to determine the stepper motor s type and the purpose of the five wires connected to the motor. PROCESS The only information known was that given on the label and the fact that it had five wires. The label indicated that the motor was 12 VDC and that the rotational step was 3.6 o (equating to 100 steps per revolution). Figure 1. Stepper motor used in the Mechatronics Sorter 1) Determining the Stepper Motor s Type Since stepper motors can typically be classified by two types, bipolar or unipolar, the first task was to identify the type. Bipolar stepper motors have two windings and unipolar have four (see diagrams in Figure 2). Since each winding, or coil, acts as an inductor (and since inductors have resistance) an ohmmeter was used to determine that the motor was of the unipolar type. This also determined that the black wire was the ground. BIPOLAR (2 windings) 1 2 UNIPOLAR (4windings) 1 2 5 5 4 3 4 3 Figure 2. Schematic depictions of two types of stepper motors. A speculative depiction of the stepper motor was sketched and can be seen Figure 3.

Understanding the Stepper Motor N S A 1? B 2? C 3? 5 Common (Black Wire) D 4? Figure 3. Stepper motor model. Which winding corresponds to which wire? By manually turning the rotor, the stepper motor becomes a generator; current is induced in the coils and wires which can be read by an oscilloscope. The waveform measured between each winding must be in a well defined phase relationship relative to each other. It is known, because of the construction of a unipolar stepper motor, that: a) A & B are wound on the same leg of the stator, and their outputs must be in phase opposition b) C & D are wound on the same leg of the stator, and their outputs must be in phase opposition c) A and/or B will be 90 o or 270 o out of phase with C and/or D. Sketches were drawn of the induced waveforms for the different wires with ground. For example, Channel 1 of the oscilloscope was connected to the green wire (hot) and black wire (ground). Rotating the stepper motor produced a somewhat sinusoidal waveform as seen in Figure 4 (see Green-Black). This waveform was treated as the phase reference. Performing this test for each wire allowed the determination of the wire correspondence. Plots produces for each wire are provided in Figure 4. 16

Understanding the Stepper Motor 1.5 1 Green-Black (Reference) White-Black Red-Black Brown-Black 0.5 0 0 50 100 150 200 250 300 350 400 450-0.5-1 -1.5 Figure 4. Waveforms found for each wire. It is obvious that Green-Black and White-Black are exactly 180 o out of of phase, therefore, they must be found on the same leg. For similar reasons, Brown-Black and Red-black must be on the same leg. We can thus conclude that the motor looks as follows: N S Green (or White) Brown (or Red) 5 White (or Green) Common (Black Wire) Red (or Brown) Having established which winding is which, we can safely match it up with the stepper motor IC.