Autonomous Robot Control Circuit

Similar documents
Electronic Components

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

DC-Motor Driver circuits

Low Voltage, High Current Time Delay Circuit

Chapter 6: Transistors and Gain

1 Second Time Base From Crystal Oscillator

Electronics Laboratory And Students kits For Self-Study And Distant Learning. By: Charbel T. Fahed

High Current MOSFET Toggle Switch with Debounced Push Button

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

HEATHKIT HD-1410 ELECTRONICKEYER

SCHEMATIC OF GRAYMARK 808 POWERED BREADBOARD

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

Long Loopstick Antenna

EXPERIMENT 5 : DIODES AND RECTIFICATION

EXPERIMENT 5 : THE DIODE

LAB PROJECT 2. Lab Exercise

Chapter Two "Bipolar Transistor Circuits"

LM555 and LM556 Timer Circuits

Fast IC Power Transistor with Thermal Protection


EDE1204 Bi-Polar Stepper Motor IC

Department of Electrical and Electronics Engineering Logic Circuits Laboratory EXPERIMENT-1 BASIC GATE CIRCUITS

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

Stepper Motor Drive Circuit

Figure 1. Block diagram of system incorporating power amplification.

Electrical, Electronic and Communications Engineering Technology/Technician CIP Task Grid

HEATHKIT ELECTRONIC KEYER HD-10

HIGH LOW Astable multivibrators HIGH LOW 1:1

Lab# 13: Introduction to the Digital Logic

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET REV. NO. : REV.

DIODE / TRANSISTOR TESTER KIT

Interfacing the isppac-powr1208 with Modular DC-to-DC Converters

Revised April Unit/Standard Number. Proficiency Level Achieved: (X) Indicates Competency Achieved to Industry Proficiency Level

DISCUSSION The best way to test a transistor is to connect it in a circuit that uses the transistor.

Figure 1: Basic Relationships for a Comparator. For example: Figure 2: Example of Basic Relationships for a Comparator

Lab 4. Transistor as an amplifier, part 2

After the initial bend, the curves approximate a straight line. The slope or gradient of each line represents the output impedance, for a particular

DIY KIT 141. Multi-Mode Timer

RC Interface Controller Board Assembly and Operation

Conventional transistor overview and special transistors

Experiment P48: Transistor Lab 1 The NPN Transistor as a Digital Switch (Power Amplifier, Voltage Sensor)

Physics 222. Lab 5: Characterizing a transistor, and using it to control motor speeds. Objectives:

Semiconductors, ICs and Digital Fundamentals

Basic Electronics Course Part 2

Revised April Unit/Standard Number. High School Graduation Years 2016, 2017 and 2018

ECE 2010 Laboratory # 5 J.P.O Rourke

Process Components. Process component

DLVP A OPERATOR S MANUAL

LM1801 Battery Operated Power Comparator

ELM334 Garage Doorman

Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller

LBI-31807D. Mobile Communications MASTR II REPEATER CONTROL PANEL 19B234871P1. Maintenance Manual. Printed in U.S.A.

GCSE Electronics 44301

Chapter 6 Digital Circuit 6-6 Department of Mechanical Engineering

Unit/Standard Number. LEA Task # Alignment

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

EXPERIMENT 5 CURRENT AND VOLTAGE CHARACTERISTICS OF BJT

EE320L Electronics I. Laboratory. Laboratory Exercise #4. Diode Rectifiers and Power Supply Circuits. Angsuman Roy

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

POWER SUPPLY MODEL XP-720. Instruction Manual ELENCO

Construction of a high-voltage Buck-Boost capacitor charger. Transformer and logic

Final Mini Project Report

Experiment 8: Semiconductor Devices

Pacific Antenna Field Strength Indicator Kit

EXPERIMENT 5 : THE DIODE

Creating an Audio Integrator

BASIC-Tiger Application Note No. 059 Rev Motor control with H bridges. Gunther Zielosko. 1. Introduction

HANDS-ON LAB INSTRUCTION SHEET MODULE 3 CAPACITORS, TIME CONSTANTS AND TRANSISTOR GAIN

EASY BUILD TIMER KIT TEACHING RESOURCES. Version 2.0 LEARN ABOUT SIMPLE TIMING CIRCUITS WITH THIS

PWM BASED DC MOTOR SPEED CONTROLLER USING 555 TIMER

EXPERIMENT 6 REPORT Bipolar Junction Transistor (BJT) Characteristics

As you can see, by varying the turn-on point, the amount of power getting to the bulb is adjustable, and hence the light output can be controlled.

User s Manual. ACPL-339J Isolated Gate Driver Evaluation Board. Quick-Start. Testing Either Arm of The Half Bridge Inverter Driver (without IGBT)

Introduction PNP C NPN C

Logic Families. Describes Process used to implement devices Input and output structure of the device. Four general categories.

Federal Urdu University of Arts, Science & Technology Islamabad Pakistan SECOND SEMESTER ELECTRONICS - I

Operation and Maintenance Manual

ES330 Laboratory Experiment No. 9 Bipolar Differential Amplifier [Reference: Sedra/Smith (Chapter 9; Section 9.2; pp )]

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

.dc Vcc Ib 0 50uA 5uA

Experiment (1) Principles of Switching

Learn about the use, operation and limitations of thyristors, particularly triacs, in power control

E B C. Two-Terminal Behavior (For testing only!) TO-92 Case Circuit Symbol

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

Application Note AN-3006 Optically Isolated Phase Controlling Circuit Solution

Laboratory 6 Diodes and Transistors

12V Dimmer Kit, version 2

Experiment P49: Transistor Lab 2 Current Gain: The NPN Emitter-Follower Amplifier (Power Amplifier, Voltage Sensor)

Home Map Projects Construction Soldering Study Components 555 Symbols FAQ Links

Electronics. RC Filter, DC Supply, and 555

3 Circuit Theory. 3.2 Balanced Gain Stage (BGS) Input to the amplifier is balanced. The shield is isolated

Line-Following Robot

UNIVERSITY OF UTAH ELECTRICAL ENGINEERING DEPARTMENT

LM124/LM224/LM324/LM2902 Low Power Quad Operational Amplifiers

Adaptive Power MOSFET Driver 1

University of Utah Electrical & Computer Engineering Department ECE 1250 Lab 4 Pulse Width Modulation Circuit

NJM4151 V-F / F-V CONVERTOR

Tech Tutorials > H-Bridge

Transcription:

Autonomous Robot Control Circuit - Theory of Operation - Written by: Colin Mantay Revision 1.07-06-04 Copyright 2004 by Colin Mantay No part of this document may be copied, reproduced, stored electronically, distributed or modified without explicit written authorization from the author. While reasonable care has been exercised with respect to accuracy, the author assumes no responsibility for errors, omissions or suitability of contents for any applications. Nor does the author assume any liability for any damages resulting from the use of the information contained in this document. It is the reader s responsibility to determine if use, sale or manufacture of any device that incorporates information contained in this documents infringes any patents, copyrights or other rights. Use at your own risk.

Page 2 of 11 Introduction This document will look at the construction of the electronics section of a skid-steering edge-sensing autonomous robot whose sole purpose is to randomly navigate a flat, elevated driving surface without falling off. The ideas presented in this document are geared towards people who already have some experience in building basic remote controlled robots and some experience in electronics. It will be assumed that the reader has a basic understanding of electronic components, wiring diagrams, and terminology.

Page 3 of 11 Section 1: Robot Navigation The navigation technique used by the robot is quite simple; drive forward until it finds an edge. Once it finds an edge it will respond by backing away, reorienting itself (so it doesn t drive straight into the same edge) and go forward again. With a skid-steer setup it becomes quite easy to control forward, reverse and steering functions. To perform the forward function it s as simple as applying voltage to the motors so that they both turn in a forward direction. The same goes for reverse except that the polarity to the motors is reversed. To steer the robot it s a matter of making one motor go forward and the opposite motor go in reverse. This causes the chassis to spin in clockwise or counter-clockwise direction around an axis that is located between the two drive wheels. To perform the function of backing away from an edge and turning around is a matter of making both motors go in reverse, once the robot has backed up a significant distance, make one motor go forward therefore turning the robot around, then making the second motor go forward so the robot can drive off to the next edge. This whole operation can be accomplished using two simple resettable timer circuits. Two timer circuits could be set up so that while they were active the motors would turn in reverse, then once the timer became inactive (timed out) the motor would go forward. An edge-sensing device could then be set up to reset the timers forcing the motors to reverse and cause the robot to back away from an edge. If the two timers were set up to have different time limits then that would cause the robot to turn as one motor started turning forward before the other. For example: If Timer1 was connected to the left motor and had a delay of 1 second and Timer2 was connected to the right motor and had a delay of 1.5 seconds. Once the robot reached an edge, both timers would become active causing the robot to reverse for one second. Timer1 would then time out and the left motor would go forward while the right motor stayed in reverse. The robot would then turn clockwise for half a second until Timer2 timed out and the right motor went forward as well causing the whole robot to move forward.

Page 4 of 11 Section 2: RC Timer Circuit. The schematic in Figure 1 shows a basic resistorcapacitor (RC) charging circuit. Since the circuit operation is the same regardless of component value or supply voltage, components have not been given values. Assuming the power to the circuit has been turned off for a while, the capacitor (C1) will have no voltage across it, therefore the point Vc will read 0V when measured. Ia +V C1 Vc The instant the power is switched on or connected to the circuit, regardless of the power supply voltage, a current (illustrated by arrow labeled Ia) will flow through the resistor () and C1. C1 will then begin to charge. Figure 1 - RC circuit The rate at which C1 charges is dependant on the current flowing through it, the higher the current the faster the charge. The current that will charge C1 will start off at a maximum and will taper off to no current once C1 is fully charged. The maximum current can easily be calculated using Ohm s law. Because the initial voltage of C1 is 0V, the full Vc voltage of the power supply is across therefore the maximum current will be: Vs Imax = Vs/. 0V 0s Vs Ia Voltage on capacitor at point Vc time The two graphs in Figure 2 show the voltage on C1 and the current through the RC network. The dotted lines at the top of the graph illustrate the maximum values. For the first graph the maximum voltage on C1 is limited by Vs and in the second graph the maximum current is limited by. This charging effect could be used in conjunction with a voltage-controlled switch time that could be off when power was applied, but 0s Current Ia then turn on once the capacitor has charged to a certain voltage. The simplest voltage controlled switches available are the diode and transistor. To operate a diode or transistor there is a minimum voltage, or forward voltage that must be met before the device will start to conduct current. By adding a diode and a transistor to the circuit an RC timed switch can be constructed. 0mA Figure 2 - RC charging graphs The typical forward voltage for a diode and transistor is 0.65V. This voltage can be measured between the anode and cathode of a diode and the base and

Page 5 of 11 emitter of a transistor. If both a diode and transistor were added to the circuit, as shown in Figure 3, then the combined forward voltage of the diode and transistor would be about 1.3V. In this case the voltage on C1 would only reach 1.3V because once the diode and transistor were both switched on, the current flow would effectively be diverted from the capacitor into the diode and transistor. The capacitor would then stop charging after only attaining a voltage of 1.3V. In the case of the circuit in Figure 3 when the power was first switched on current Ia would start to flow and charge the capacitor. Currents Ib and Ic would be zero. The voltage at the output point (Vo) would be measured as +V because of the collector resistor. Once the capacitor has charged to 1.3V, D1 and Q1 will be forward biased and current Ib will start to flow. Because D1 and Q1 have very low resistance the majority of current will flow through them and only enough current will flow through C1 to keep it charged at 1.3V. Because of the base current in Q1, a collector current will flow as well. The collector current (marked Ic) flows through a collector resistor (). The current in produces a voltage drop across causing the point Vo to read zero volts. It can be seen that while the C1 is charging, the output would read +V (HIGH) and as soon as the capacitor has reached 1.3V the output drops to zero volts (LOW). This is the operation of a simple RC timer circuit. +V Ia Ib Ic C1 D1 +V Q1 Vo Figure 3 - RC circuit with transistor and diode

Page 6 of 11 Section 3: Output Section The entire motor control circuit is designed around a Quad Half H-Bridge Driver IC. The most common part numbers for this IC are L293D and SN754410. They both have the same pin out as illustrated in Figure 4. The main function of the IC is to convert low voltage, low current logic signals to high voltage, high current signals to directly drive a motor. The most common way of connecting a motor to this IC is directly across two of the output pins, meaning that the positive lead of a motor would be connected to output 1Y or 3Y and the negative lead of the motor would be connected to the respective output pin 2Y or 4Y. 16 1 2 7 10 15 9 4 5 IC1 VCC1 1,2EN 1A 2A 3A 4A 3,4EN VCC2 1Y 2Y 3Y 4Y 8 3 6 11 14 13 12 By applying a positive voltage to the input pin Figure 4 H-Bridge IC pinout 1A or 3A and by connecting input pin 2A or 4A to ground the motor will spin forward. If the inputs were reversed (1A or 3A LOW and 2A or 4A HIGH) the motor would spin in the reverse direction. In order to make the IC function properly the remainder of the pins must be connected as well. The two VCC pins (VCC1 and VCC2) must be connected to supply voltages. VCC1 is connected to the logic supply voltage which is the same power supply that any logic level devices are connected, which is typically +5V. VCC2 is the motor supply voltage, which can be anything up to the IC s maximum rated voltage, which is typically +36V. The four ground pins must be connected to a good ground connection. Because the ground connections are also used as a heat sink for the IC it is a good idea to make the ground connections using heavier copper wire to help dissipate the heat generated by the device. The two enable pins (1,2EN and 3,4EN) allow pairs of Half-H drivers to be individually enabled. By forcing the enable pins HIGH it allows the pair of Half-H drivers to output. When the enable pin is LOW the pair of drivers is disabled and regardless of the input to the drivers the output will be zero. The enable pins will be used later to provide a 5 second power-on delay that is required for autonomous entries in most robot games events. It can be noted that the Half-H Bridge needs two inputs to control the direction of the motor and that the two inputs must be opposite of each other (complementary), meaning that when one input was HIGH then the other input would have to be LOW. In order to use one of these ICs with the RC

Page 7 of 11 timer circuit proposed earlier, the output of the RC timer could be connected to one of the Half-H drivers and some form of inverter would be required to provide a complementary signal for the corresponding Half-H driver. Figure 5 shows the first of two types of inverters that will be used in this project. The first inverter is designed around a PNP transistor. The input of the inverter is located at point A and the output of the inverter is point Y. When the input of the inverter is LOW it forward biases the transistor and current Ib is allowed to flow. Because there is a base current flowing through the transistor the collector current Ic is allowed to flow. The current Ic causes a voltage to appear across and the output of the inverter is HIGH. +V Ib A Q1 Figure 5 - PNP inverter Ic Y When the input to the inverter is HIGH current Ib cannot flow, therefore current Ic will not flow either allowing to pull the output to ground giving a LOW output. Figure 6 shows the second inverter, which is designed around a NPN transistor. The theory works the same way as the first inverter except everything is reversed. When the input (point A) +V +V is HIGH the transistor is forward biased and current Ib can flow allowing collector current Ic Ib Ic to flow. Once again, because of current Ic a Q1 Y voltage appears across but this time the A output is LOW. When the input to the inverter is LOW current Ib will not flow; current Ic will not flow and the resistor will pull the output HIGH. By connecting the two inverters back-to-back two complementary outputs can be created that Figure 6 - NPN inverter can be used to drive the quad Half-H driver IC. Figure 7 shows how the inverters are connected together, then to the motor control IC. The schematic shown in Figure 7 is half of the output section that will be used in the final design of the control circuit.

Page 8 of 11 +V +V +V +V IC1 VCC1 VCC2 R4 1,2EN + Motor1 A Q1 R3 1A 2A 1Y 2Y Q2 3A 3Y 4A 4Y 3,4EN Figure 7 Inverters and motor connected to Half-H driver IC

Page 9 of 11 Section 4: Input Section In order for the edge sensors to control the motor direction some sort of input section is required to instantaneously control the voltage on the capacitor in the RC timer circuit. By using active LOW sensors, meaning that the sensor s output goes LOW when an edge is detected, it becomes very easy to reset the timer when the robot encounters an edge while it s traveling forward. By simply connecting a diode to the capacitor the capacitor will be shorted to ground when an edge is detected and the timing cycle will re-start causing the robot s motor to momentarily go in reverse. The purpose of the diode is to isolate the capacitors should two timer circuits, with different charge rates, be connected together. Figure 8 shows the modified RC Timer circuit with the forward-edge detect input. There is a possibility that the robot could wind up in a corner and while backing up would turn and drive backwards off the driving surface. By adding a reverse edge detector this problem is avoided. By using a transistor the RC timer capacitor could be charged virtually instantaneously causing the robot to drive forward again preventing it from backing over an edge. Figure 9 illustrates the addition of the transistorized reverse edge detect input. +V FWD_EDGE D1 C1 Figure 8 - RC Timer with front edge input When the rear edge detector goes low it will cause Q1 to become forward biased +V Ib Ic and current Ib will flow causing current Ic to flow as well. is included to REV_EDGE protect the transistor from excessive Q1 current draw. By selecting a value for approximately 1000 times smaller than D1 C1 the value of when Q1 is switched on FWD_EDGE the current flowing through C1 will be as if it were shorted to +V as compared to the low charging current provided by. C1 will charge to the required 1.3V 1000 Figure 9 - RC Timer with both inputs times faster than it would normally thereby making the switch from reverse to forward seem instantaneous. As long as the robot was at the edge of the driving surface the input(s) will remain low causing the robot to go in reverse. As soon as the robot has cleared the offending edge the corresponding input will return HIGH and C1 will begin to charge through. Once C1 has reached the nominal 1.3V the corresponding motor will go forward once again.

Page 10 of 11 Section 5: Power-on delay In order to satisfy the requirements of a 5 second power-on delay implemented in the rules of most autonomous robot games events another RC timer circuit will be added and connected to the enable pins of the quad Half- H bridge driver IC. The timer is reset by a push-button switch that can be held down during the power-on of the robot and released once the start signal is given. The schematic for the power-on timer is given in Figure 10. The power-on timer functions the same way as the motor control timer. is added so the timer s exact duration can be fine-tuned to exactly 5 seconds. As long as the switch is held down the capacitor is prevented from charging. Once the switch is released the capacitor will begin to charge. Once it has reached 1.3V Q1 will switch on in turn switching on Q2 allowing current to flow through R4 creating a HIGH signal on the output of the SW1 Reset Adjust 100k power-on timer. While the reset switch is held, or while the capacitor is charging, R4 pulls the output LOW and disables the output from the quad Half-H bridge driver IC. 150k C1 100uF +5V D1 1N4148 R3 10k Q1 2N3904 Figure 10 - Power-on timer schematic Q2 2N3906 R4 1k Out

Page 11 of 11 Section 6: Putting it all together The completed motor control schematic can be found on the last page of this document. It consists of one power-on reset timer connected to the enable inputs of the quad Half-H bridge driver IC, two RC timer circuits, one for controlling the left motor and one for controlling the right motor, two inverter circuits per RC timer to provide complementary signals for the H-Bridge, a quad Half-H Bridge Driver IC and motors. Both motor control RC circuits have potentiometers to adjust the charging rate of the capacitor. This adjustment can be used to control how the robot performs its reverse-and-turn function.

1 1 2 2 3 3 4 4 5 5 6 6 D D C C B B A A 1,2EN 1A 1Y 2Y 2A 3,4EN 3A 3Y 4A 4Y VCC1 VCC2 SN754410 IC1 + Motor1 + Motor2 +5V +5V 2N3904 Q14 2N3906 Q13 1k 7 1k 5 10k 4 10k 6 2N3904 Q12 100uF C11 100k 3 Adjust 50k 2 2N3906 Q11 100 1 1N4148 D11 Front Left SW2 Rear Left SW1 2N3904 Q24 2N3906 Q23 1k 7 1k 5 10k 4 10k 6 2N3904 Q22 100uF C21 150k 3 Adjust 100k 2 2N3906 Q21 100 1 1N4148 D21 Front Right SW4 Rear Right SW3 +5V +5V 100k R3 150k R4 100uF C1 +5V 1N4148 D1 2N3904 Q2 10k 2N3906 Q1 1k Reset SW5 1N4148 D12 1N4148 D22