Servo and Motor Controller

Similar documents
JX pin PIC Microcontroller Project Board

Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller

SCHEMATIC X4.1 X4.2 SPD VDD J6 PWM_OC PWM LED1 GND VSS PWM GND. PWM_Loc. GND 10u BS170G. STRn TP7 TP6 TP8 TP5 SCK SDI SDO SPD. STRn GND GND SPD.

CMU232 User Manual Last Revised October 21, 2002

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

IRAC1150-D2 Control Board User s Guide

Universal Square Wave Generator Stable all the way up to RF

' The PicBasic Pro Compiler Manual is on line at: '

A3949. DMOS Full-Bridge Motor Driver. Features and Benefits Single supply operation Very small outline package Low R DS(ON)

A3959. DMOS Full-Bridge PWM Motor Driver

SR A, 30V, 420KHz Step-Down Converter DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATION

User s Manual ISL71218MEVAL1Z. User s Manual: Evaluation Board. High Reliability Space

Frequency Synthesizer Project ECE145B Winter 2011

SPY ROBOTIC MODULE USING ZIGBEE

Logosol AC/DC Intelligent Servo Drive for Coordinated Control LS-174WP

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

PRODUCT DESCRIPTION A NEW SERIAL-CONTROLLED MOTOR-DRIVER IC. by Thomas Truax and Robert Stoddard

Brushless DC Motor Controller

Digital Servo Motor Driver

HM V 2A 500KHz Synchronous Step-Down Regulator

Laboratory Exercise 1 Microcontroller Board with Driver Board

A3984. DMOS Microstepping Driver with Translator

SCHEMATIC CN1 HC- HC+ HB- HB+ HA- HA+ PHA PHA VREF. Shunt VREF. 0.22uF VREF 8 HC- PHA HA- HC+ HB+ A SLUG OUTB GND. 10uF VBB PWM SEL FG JP2

RX23T inverter ref. kit

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Motor Control Development Kit

LSI/CSI LS7560N LS7561N BRUSHLESS DC MOTOR CONTROLLER

Servo click. PID: MIKROE 3133 Weight: 32 g

MAINTENANCE MANUAL AUDIO AMPLIFIER BOARD 19D904025G1 (MDR) AUDIO AMPLIFIER BOARD 19D904025G2 (MDX)

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Pin-out Diagram VBB1 HOME SLEEP DIR ENABLE OUT1A OUT1B PFD RC1 AGND REF RC2 VDD OUT2A MS2 MS1 CP2 CP1 VCP PGND VREG STEP OUT2B RESET SR SENSE2

7I30 MANUAL Quad 100W HBridge

A Phase Sinusoidal Motor Controller. Description

UHF RFID Micro Reader Reference Design Hardware Description

HM V 3A 500KHz Synchronous Step-Down Regulator

Design and Construction of PIC-based IR Remote Control Moving Robot

SCHEMATIC TACHO_O DIAG_O PWM_I X1.6 X1.5 X1.8 X1.7 GND R28 R27 R25 R26 DIAG LED1 TP:DIAG R18. 47k. 6k8 R19 R17. 6k8 OFF TP:PWM R23.

Assembly Manual for VFO Board 2 August 2018

MicroToys Guide: Motors N. Pinckney April 2005

A5977. Microstepping DMOS Driver with Translator

DASL 120 Introduction to Microcontrollers

A3987. DMOS Microstepping Driver with Translator

Evaluates: MAX MAX20735 Evaluation Kit. General Description. Getting Started. Features. Required Equipment. Procedure

M/V Series Servo Drive AB250A060

A3982. DMOS Stepper Motor Driver with Translator

Closed Loop Speed Controller For 3-Phase Brushless DC Motor MP-3T Package

Designing and Fabricating Fuzzy Controller of DC Servo Motor with HMI

DISCONTINUED PRODUCT FOR REFERENCE ONLY.

Supertex inc. MD1822DB3. MD TC8220: Three Level High Speed ±100V 3.0A Pulser Demoboard. Waveform Generator CPLD.

XR FSK Modem Filter FUNCTIONAL BLOCK DIAGRAM GENERAL DESCRIPTION FEATURES ORDERING INFORMATION APPLICATIONS SYSTEM DESCRIPTION

Logosol Intelligent Hall-Servo Drive LS-173U Doc # / Rev. C, 02/12/2008

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

Simple Bridge Stand Alone H-Bridge Data Sheet Revision 1 August 2005

Design and Implementation of Automatic Phase Changer for the Distribution Network using PIC Micro Controller 16F877A

CV Arpeggiator Rev 1. Last updated

DISCONTINUED PRODUCT 8902 A REPLACED BY A8904SLB & A8904SLP 3-PHASE BRUSHLESS DC MOTOR CONTROLLER/DRIVER WITH BACK-EMF SENSING FEATURES

PIC-SERVO SC (v.10) Servo Motion Control I.C.

The NMIH-0050 H-Bridge

All drive and motor parameters are stored in nonvolatile. Features

LV8716QAGEVK Evaluation Kit User Guide

PIC18F2X1X/4X1X. 28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanowatt Technology. Flexible Oscillator Structure: Power-Managed Modes:

B Robo Claw 2 Channel 25A Motor Controller Data Sheet

Operational Description

ST12 CODEC IR/RF Remote Control Encoder/Decoder IC 1. Overview

4 Channel RF Remote Controller with Momentary Outputs

DigiFlex Performance Servo Drive DZCANTE-020L080

Digital Proportional Remote Controller. Digital proportional Remote Controller. Application Notes. Page 1

Preliminary Rev. M Accusilicon AS318-B Series Professional Audiophile Crystal Oscillator

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

A3977. Microstepping DMOS Driver with Translator

PAM2421 EVB User Guide

MP2482 5A, 30V, 420kHz Step-Down Converter

A5976. Microstepping DMOS Driver with Translator

PRELIMINARY AVB250A060 PRELIMINARY. Servo Drive. Peak Current (10 seconds)

Current-Mode PWM Multiple Output Flyback Converter

MP A, 30V, 420kHz Step-Down Converter

Variateur analogique courant continu série AZ et AZB

BMC040. Dual Logic. Last updated

DRV8801 Single Brushed DC Motor Driver Carrier

Servo Systems Co. 53 Green Pond Road, Suite #2 Rockaway, NJ (973) Toll Free: (800) Fax: (973)

MEGORAS Technology - TB6600 STEP MOTOR Driver.

HM8113B. 3A,4.5V-16V Input,500kHz Synchronous Step-Down Converter FEATURES GENERAL DESCRIPTION APPLICATIONS TYPICAL APPLICATION

QUASAR PROJECT KIT # /24 HOUR GIANT CLOCK

PS2-SMC-06 Servo Motor Controller Interface

Bill of Materials: PWM Stepper Motor Driver PART NO

2A,4.5V-21V Input,500kHz Synchronous Step-Down Converter FEATURES GENERAL DESCRIPTION APPLICATIONS TYPICAL APPLICATION

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

The CYF115 transmitter solution is ideal for industrial and consumer applications where simplicity and form factor are important.

Enpirion EN6360QI 8A DC/DC Converter w/integrated Inductor Evaluation Board

36V, 1MHz, 0.6A Step-Down Converter With 35μA Quiescent Current VOUT 3.3V/0.6A

DUAL STEPPER MOTOR DRIVER

MP2313 High Efficiency 1A, 24V, 2MHz Synchronous Step Down Converter

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

BOOST/BUCK-BOOST/BUCK/CONTROLLER IC with External MOSFET

AMC A Power LED Driver

BMC029. Single Multiplier/Divider Last updated

MP V, 4A Synchronous Step-Down Coverter

Motor Control Demonstration Lab

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

Counter/Timers in the Mega8

Transcription:

Servo and Motor Controller Date: August 0, 00 Description: The servo motor controller drives three R/C servomotors and one brushless DC motor. All four motors are controlled by PWM signals sent from a PIC F microcontroller. The PWM signal to the brushless motor is used to toggle on/off an Allegro A9 three-phase PWM motor driver. The servo controller regulates the shaft velocity of the brushless motor with encoder feedback, which is decoded by an HCTL000 quadrature decoder. An in-circuit serial programming connector is provided on the PCB to allow for in board reprogramming of the PIC micro-controller. PCB Block Diagram: R/C Servo R/C Servo R/C Servo Serial Comms Microcontroller (PICF) PWM motor Driver (A9) -Phase Brushless Motor V Logic Supply Hall Sensors V Motor Supply Quadrature Decoder (HCTL000) Encoder Feedback Power Consumption: Logic Supply: V (max current:. A) Motor Supply: V (operates between V 0V, max current: A) Data Interface: TTL-level -wire serial

Control System: The DC motor sends out encoded position signals to the quadrature decoder chip. The microcontroller reads the position feedback information from the decoder and converts it into a velocity reading. This velocity data is then compared to the desired speed and an error signal is generated, which is used to calculate the PD compensation. Desired Speed - Controller (PICF) Plant (Motor) Shaft Velocity Encoder Circuit Schematics: J J J Serv omotor Serv omotor Serv omotor C00 C0 pf C pf ENABLE Y CRYSTAL/SM 9 0 U Vpp RB RA0/AN0 RB RA/AN RB RA/AN/VREF- RB RA/AN/VREF+ RB RA/T0CK RB RA/AN/SS/LVDIN RB/INT VSS RB0/INT0 OSC/CLK 0 9 OSC/CLO0/RA VSS RC0/TOSO/TCLKL RC/RX/DT RC/TOSI/CCP RC/TX/CK RC/CCP RC/SDO RC/SCK/SCL RC/SDI/SDA PICF 9 J 0 HEADER x/m signal_groud C0.uF.uF J RX TX GND RS(TTL) DIR C00 U Output enable Vcc GND Output MX0 Oscillator C00.uF U CHA D0 CHB D D CLK D D OE D 0 RST D 9 SEL D GND HCTL000.uF Schematic : Logic Section C C C C 0.mF J v GND A B Z C C C Motor Signals

signal_groud Hall Sensors C C C R K R K + C mf R9 0K R 0K R 0K 9 0 9 0 GND GND HA+ HA- HB+ HB- HC+ HC- REF GND GND GND BRAKE SENSE SR OUTA HBIAS VBB LSS OUTB GNDa GND PFD PFD BLANK EXTMODE 0 ENABLE 9 DIR Vreg OSC GND0 GND9 GND SLEEP CP 0 CP 9 Vcp OUTC TACH VBB LSS GND GND R K ENABLE DIR C0 0.mF C 0.mF VBB C9 0.mF/00V + C mf R C 0.Ohm 0.mF/00V VBB D0 D D DIODE SCHOTTKY J VBB J J DIODE SCHOTTKY D D D9 MOTOR Motor Power Logic Power Schematic : Power Section

PCB Drawings Figure : PCB Layout Top

Figure : PCB Layout Bottom

Bill of Materials: # per Name Value Footprint Notes Vendor Part # Board C uf, 00V Cylinder Electrolytic Digi-Key P9-ND C, C9, C, C0, C 0.uF, 0V SM/C_0 Ceramic XR Digi-Key 99---ND C uf, 00V Cylinder Electrolytic Digi-Key P9-ND C0, C pf, 0V SM/C_0 Ceramic Digi-Key PCC0CQCT-ND C00, C0, C00, C00 0.uF, 0V SM/C_0 Ceramic XR Digi-Key 99-0--ND D, D, D9, D0, D, D Diode, 00V, A SM/D Fast Recovery Digi-Key FRBDICT-ND J Connector x mm ICSP connector Digi-Key J, J, J, J, J Connector x mm J Connector x mm J, J Connector x mm V motor power Digi-Key Brushless motor -phase power Digi-Key H0-ND (Recepticle) H0-ND (Header) Brushless motor logic and encoder feedback Digi-Key H-ND (Header) H0-ND (Recepticle) H0-ND (Header) IC socket pin Holds half HCTL00 Digi-Key AE90-ND R, R K SM/R 0 % /W Digi-Key P.00KLCT-ND R, R, R9 0K SM/R 0 % /W Digi-Key -0.0KLCT-ND R 0.Ohm Radial Current-Sense Res Digi-Key FR0-ND R K SM/R 0 % /W Digi-Key -.0KLCT-ND U HCTL000 Through hole Quadrature Decoder U 0MHz OSC SMD HSM9H Digi-Key CW0-ND U PIC F SOIC pin Microcontroller Digi-Key PICF-I/SO-ND Y 0MHz Crystal SMT Can ATS00SM Digi-Key CTX0-ND V, 0W, Shinano Kenshi Brushless Motor Encoder LA0-00E-NL Resettable fuse.a V SMD MF-SMCT-ND

Overview of Code: The program for the PIC is broken up into the three sections: Main program, Low Priority Interrupt Service Routine, High Priority Interrupt Service Routine INITIALIZATION Configuration Bits: Oscillator set to HS (0MHz) Disable all other bit word settings Configuration Variables: Motor speed Max = -00rpm to 00rpm Motor PWM period = FF ( clock cycles) Max motor duty cycle = 000 Fin position = 000 to 000 (000 is initialized position) Baud Rate =.k Internal clock = 0MHz MAIN PROGRAM While loop overview: Processing Command: No Command is sent: Wait for new command to be sent Poll motor speed and correct if necessary Send out PWM signals to three fins Returns motor speed and PWM signals Once command is received from DimmPC it is searched for each element Format of command: axxxxbxxxxcxxxxmxxxx (All or portions of the command may be sent) Each element is saved into a variable to be implemented in the ISR s If x is sent new speeds are not returned If e is sent speeds are returned Until a new command is received the speed is continuously polled and updated After each speed check, the speed and PWM signal is returned to the user. HIGH PRIORITY INTERRUPT Triggered by Fins Flag: step cycle: Set fin a high, Set fin a low Set fin b high, Set fin b low Set fin c high, Set fin c low One step is implement each ISR is called due to Triggered by command: When a command is received, the receive buffer triggers this ISR The ISR then saves and receives the data into a command buffer The received command flag is set so the main while loop will process the command when ISR exits LOW PRIORITY INTERRUPT Triggered by Motor Flag: Reads the decoder chip and exits ISR (repeats 0 times) Read decoder 0 times (multiple reads decreases error) Convert data to rpm (freq of 0 th read = 0.Hz) Compare with goal speed to get speed error Calculate speed comp based on error Update duty cycle and direction Triggered by Communication Error: If no command has been received in the past two seconds, the motor speed is set to zero and the fins are set to 000 (center). This is a fail safe to stop the AUV in the event that there is a communication problem between the DimmPC and the motor control card.

PCB Pictures