Tarocco Closed Loop Motor Controller

Similar documents
Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Brushed DC Motor Control. Module with CAN (MDL-BDC24)

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

µservo drive user s guide

Tech Note #3: Setting up a Servo Axis For Closed Loop Position Control Application note by Tim McIntosh September 10, 2001

TECHNICAL DATASHEET #TDAX Universal Input, Single Output Valve Controller CAN (SAE J1939)

Integrated Servo Motor UCS57

X3M. Multi-Axis Absolute MEMS Inclinometer Page 1 of 13. Description. Software. Mechanical Drawing. Features

Pololu Jrk USB Motor Controller

High Current DC Motor Driver Manual

DC servo axis controller (Mammut) user s guide

HB-25 Motor Controller (#29144)

High Performance Microstep Systems

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

maxon document number:

Cost efficient design Operates in full sunlight Low power consumption Wide field of view Small footprint Simple serial connectivity Long Range

MTY (81)

MTY (81)

Cost efficient design Operates in full sunlight Low power consumption Wide field of view Small footprint Simple serial connectivity Long Range

DC servo axis controller (Mammut) user s guide

FOD Transmitter User s Guide

User manuel. Hybrid stepper servo drive

G320X MANUAL DC BRUSH SERVO MOTOR DRIVE

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

STEPPING MOTOR EMULATION

Integrated Easy Servo

SilverMax Datasheet. QuickSilver Controls, Inc. NEMA 23 Servomotors.

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

ies-2309 Integrated Easy Servo

WTPCT-M. eeder. Pulse Counter/Timer Module. Technologies FEATURES SPECIFICATIONS DESCRIPTION. Weeder Technologies

MASTER/SLAVE TENSION CONTROL

10.9. Serial communication parameters Motor parameters Paramters handling Status monitor

Ultrasonic Multiplexer OPMUX v12.0

Figure 1. DMC 60 components.

PSoC Academy: How to Create a PSoC BLE Android App Lesson 9: BLE Robot Schematic 1

Enhanced SmartDrive40 MDS40B

FOD Transmitter User s Guide

POLOLU DUAL MC33926 MOTOR DRIVER FOR RASPBERRY PI (ASSEMBLED) USER S GUIDE

Ametek, Inc. Rotron Technical Products Division. 100 East Erie St., Suite 200 Kent, Ohio User's Guide. Number Revision F

EULAMBIA ADVANCED TECHNOLOGIES LTD. User Manual EAT-EOM-CTL-2. Alexandros Fragkos

PM50. Technical Data TECHNOSOFT. DSP Motion Solutions. Power Module for DC, Brushless DC and AC Motors. Version 3.0. PM50 v3.0.

Pololu Dual G2 High-Power Motor Driver for Raspberry Pi

Datasheet of the Easy Servo Drive ES-D VAC or VDC, 8.2A Peak, Close-loop, No Tuning. Version

Understanding the Arduino to LabVIEW Interface

B Robo Claw 2 Channel 25A Motor Controller Data Sheet

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

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

DESCRIPTION DOCUMENT FOR WIFI / BT HEAVY DUTY RELAY BOARD HARDWARE REVISION 0.1

Catalog

Lab 5: Inverted Pendulum PID Control

Stellaris Brushed DC Motor Control Reference Design Kit. User s Manual. Copyright Texas Instruments

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.

instruction manual for Open LRS New Generation

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

CMU232 User Manual Last Revised October 21, 2002

3DM phase Digital Stepper Drive

Datasheet of the Easy Servo Drive ES-D VDC, 8.0A Peak, Closed-loop, No Tuning

NX Series Inverters. HVAC Pocket Programming Guide

Confirm entry value Set display to value from Actual value and input display Select datum P79 (P80!) (7-segment LED,

USB-MC USB Motion Controller

BLuAC5 Brushless Universal Servo Amplifier

Analog Servo Drive 25A20DD

CT435. PC Board Mount Temperature Controller

HOMANN DESIGNS. DigiSpeed. Instruction manual. Version 1.0. Copyright 2004 Homann Designs.

IRT Mini Evo. Technical Manual. quality IN MOTION. quality IN MOTION

Pic-Convert Board Instructions

TECHNICAL DATASHEET #TDAX INPUTS, 5 OUTPUTS VALVE CONTROLLER

OVEN INDUSTRIES, INC. Model 5C7-362

HPVFP High Performance Full Function Vector Frequency Inverter

SRVODRV REV7 INSTALLATION NOTES

Multi-Sensor Integration and Fusion using PSoC

EG medlab. Three Lead ECG OEM board. Version Technical Manual. Medlab GmbH Three Lead ECG OEM Module EG01010 User Manual

DigiSpeed-SL DC-04. Isolated Control Voltage Generator User s Guide. DigiSpeed PCB Ver:1.0 Firmware Ver: 1.0 Mach3 Ver: Updated: 5.

YDLIDAR F4PRO DATASHEET

FIRST Robotics Control System

DM8010 tm. Hardware Reference Manual. Document Revision B3 May 16, 2018

T5x Error Codes DGC5X Console Board W/ ACD3X LCB

Analog Servo Drive. Peak Current 16 A (11.3 A RMS )

EE 314 Spring 2003 Microprocessor Systems

No Gain Tuning. Hunting. Closed Loop System

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

TLE9879 EvalKit V1.2 Users Manual

DeviceCraft Revision #1 11/29/2010

Analog Servo Drive 20A20

Section 2: Functions... 7 PI Tuning... 8

TMCM-160 Hardware. BLDC motor controller/driver module 5A/36V with RS232 / RS485 and analog interface. V1.11 August 8 th, 2007

Galil Motion Control. DMC 3x01x. Datasheet

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

DESCRIPTION DOCUMENT FOR WIFI/BT QUAD RELAY BOARD HARDWARE REVISION 0.1

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

The LEBOW 7554 Operator's Manual 7.2

DCS Series Brush DC Servo Drive. Datasheet

Ocean Controls KT-5221 Modbus IO Module

High-speed and High-precision Motion Controller

Servo click. PID: MIKROE 3133 Weight: 32 g

Inverter Drive /Vector Drive Motors & Controls

DMMDRV Software User Manual. Version: A10 50 / December 2015 Manual Code: DSFEN A

ASP-X2. Accelus Panel. Control Modes Current (torque, force)

AMP-19520/40. Multi-axis Brushless/Brush Servo Amplifier. By Galil Motion Control, Inc. Rev. 1.0d

BRB900 GPS Telemetry System August 2013 Version 0.06

Transcription:

Contents Safety Information... 3 Overview... 4 Features... 4 SoC for Closed Loop Control... 4 Gate Driver... 5 MOSFETs in H Bridge Configuration... 5 Device Characteristics... 6 Installation... 7 Motor and Power Supply Connectors... 7 Control Signal Connectors... 7 Serial port tuning... 8 Command Table... 10 Operation... 11 Fault Conditions... 11 Updating the firmware... 13 Dimensional Drawing... 16 1

Safety Information You should read these notes before installing this device. The motor controller is capable of operating up to 36 V and 10 A continuously. Be careful when close to the device while in operation, it may get hot. The user needs to mind power supply polarity, as the device does not possess reverse polarity protection for any of the inputs. Disconnecting the motor from this device when powered is not advised, as it could damage the electronics. Avoid shorting the motor output terminals. 2

Overview This device is designed to control DC brushed motors up to 36 V and 10 A (almost ½ hp) for axis positioning in CNC machines such as routers, milling machines, laser cutters and 3D printers. It could also be used as the power stage of a mobile robot that requires odometry. Other uses are possible with firmware modification. Features The board accepts the common STEP/DIR signals that are ubiquitous to low cost machine controllers, such as the RAMPS board and parallel port breakout boards for Mach3, LinuxCNC and Machinekit. Position sensing is achieved by means of an incremental quadrature encoder. The controller is capable of stopping the machine when it detects one of several fault conditions (discussed later) to avoid ruining a job. A full duplex serial port is available for easy configuration and tuning of the servo driver. Shrouded and keyed headers for the signal connections are installed on the board to keep the end user from accidentally shorting two pins together or plugging a connector backwards. Pluggable screw terminals for the power connections allow the board to be easily installed inside a case or in tight spaces without having the cables getting in the way of the user. SoC for Closed Loop Control A Cypress Semiconductor PSoC4 chip (ARM Cortex M0 core plus internal programmable logic and analog hardware) is present to read the STEP/DIR signals from the machine controller, read the encoder input and perform the calculations required for closed loop control of the motor kinematics. It controls two indicator LEDs for signaling the different fault modes the device is able to detect, such as motor overcurrent, driver undervoltage, missing encoder, exceeded encoder pulse rate and motor not able to reach position. It can also send an alarm to the rest of the motor drivers. 3

Gate Driver A full bridge MOSFET gate driver switches four transistors with an appropriate voltage with the appropriate commutation speed, while also protecting them from being damaged by a shoot-through condition or overheating due to insufficient gate voltage or an overcurrent event. The IC also amplifies the voltage drop from an external 5 mohm shunt resistor for low side current sensing. Finally, the driver also performs current chopping (set at 12 A) to provide a second layer of overcurrent protection. The current level is set via two resistors in a voltage divider configuration. MOSFETs in H Bridge Configuration The device utilizes four ~5 mohm (at 25 ºC) N channel MOSFETs with a 60 V breakdown voltage. The transistors use the board as a heatsink. 4

Device Characteristics Parameter Min Max Unit Motor side voltage 6 36 V Continuous current output1 0 10 A Logic side voltage (VLOGIC) 1.8 5 V Current consumption 50 ma Step signal frequency 0 1000 khz Encoder frequency (4x) 0 1000 khz Error signal output current 4 ma Serial port speed 19200 baud Weight 17(0.6) g(oz) Operating ambient temperature 1 2 Typ 2 0 40 C The use of 16 AWG cable is recommended for maximum continuous current output. 40 ºC is the maximum ambient air temperature for which the current output value is valid 5

Installation Motor and Power Supply Connectors The device comes with two pluggable screw terminals installed. The one labeled MOTOR-A/MOTOR-B should be connected to the pair of cables coming from the brushed motor. The other terminal, marked V+/V- should be connected to a power supply of adequate voltage for the motor, ensuring the correct polarity of the connection. Control Signal Connectors One of the 4-way PH headers accepts the two quadrature inputs (A and B) from the encoder and supplies VLOGIC (typically 5V, but can be lower) to said encoder. The quadrature encoder signal must be present for the controller to work, in order to protect the machine and user when it cannot sense the position of the motor. 6

The onboard PsoC can work with encoder pulse rates up to 1000 khz (in 4x decoding mode). If the motor s angular speed in rpm and the number of counts per revolution (cpr) from the encoder are given, the pulse rate can be calculated as follows: Pulse Rate [ Hz] = rpm cpr 60 So for example, a motor with a maximum angular speed of 4500 rpm and a 1600 cpr encoder would give a maximum pulse rate of 120 khz, well within the range of operation of the motor controller. Some manufacturers give the counts per revolution value for a single encoder channel. In this case, the pulse rate is the value obtained with the above formula times four. The 6-way PH header has the board power supply input, STEP/DIR inputs, RESET input and the open drain ERROR output. The GND and VLOGIC pins must be connected to a 1.8 to 5 V power supply, minding the polarity of this connection. When VLOGIC is supplied, the two onboard LEDs will pulse in lockstep for three seconds (it signals that the board can be programmed via its bootloader). After this period, only the VIN LED will remain lit, signaling that the controller its executing its program. The RESET signal is active low to allow the ERROR signal to self reset the board. A general system stop can be achieved by connecting the ERROR and RESET pins form every controller together. When a fault condition is detected by one of the drives, its ERROR pin will pull low the RESET pin from every device. An emergency stop button can be easily included in this configuration. The other 4-way PH header provides a full duplex serial port. It is used to configure and tune the device to drive the particular motor the user has with optimal performance. Make sure that the TXD pin on the Tarocco is connected to the RX pin on your USB serial converter and that the RXD pin on the Tarocco is connected to the TX pin on the converter. Serial port tuning The motor controller can be configured on the fly by sending the appropriate 7

commands to its serial port. The new values will be stored on its non volatile memory. The serial port is configured as: Baud rate: 19200 Data bits:8 No parity bit One stop bit A valid command is a packet with the following structure: Command type Value - End character Command type is an ASCII character that tells the device the variable that must be updated with Value. Value consist on ASCII characters that represent the magnitude of the variable chosen to be updated. End character is simply an ASCII semicolon. A valid command could be, for example, p107; that loads the variable corresponding to the proportional coefficient with a value of 107 units. The serial port is also configured to report the position error and motor s current. It sends the following ASCII packet approximately 100 times a second. Start character Position error Current End character Start character is simply a $. Current consist on one to five ASCII character representing the motor s current in ma. Position error consist on one to five ASCIIcharacter representing how many encoder counts the motor its off from the desired position. It has an offset of 500 units (a value of 500 means no error). End character is, again, a semicolon. 8

Command Table Command 1 Description Default p Proportional term coefficient (0 to 65535) 2500 i Integral term coefficient (0 to 65535) 0 d Derivative term coefficient (0 to 65535) 0 c Current limit value in ma/40 (0 to 255) 255 (10.2 A) r Invert direction of rotation flag (boolean) (0 to 1) f Maximum allowable following error in encoder counts (0 to 32000) 1 u Transmit diagnostic data flag (boolean) (0 to 1) 1 e Clear all faults (boolean) (0 to 1) 0 + Move the motor the given number of counts (0 to 255) n/a - Move the motor the given number of counts in the opposite direction (0 to 255) n/a 0 255 It is possible to use a higher value, but it is not recommended, as it will allow the error counter to overflow before signaling a fault. 9

Operation The first step should be adjusting the motor controller parameters for a satisfactory operation. If you need information on how to tune a PID controller check the Resources section. After the device has been tuned, it will attempt to make the motor spin to the position given by the state of the DIRECTION pin and number of STEP pulses it receives. Fault Conditions The controller can detect errors in three different subsystems. These subsystems are the encoder, MOSFET gate driver and current measurement. The encoder fault condition is triggered when the position error exceeds the following error value. This could mean: Failure mode Fix Motor torque is exceeded, and cannot spin to the commanded position Check the machine mechanism for defects Motor spins in the wrong direction Set the invert direction flag Encoder signal is lost Verify that the encoder s signal is reaching the board Verify motor is not at end of travel This condition stops the motor and activates the ERROR output. The condition is signaled by turning on the ERR and VIN LEDs. The board will need a reset (remove the VLOGIC supply) to clear the fault. 10

A gate driver fault could mean: Failure mode Not enough voltage to turn on the MOSFETs Fix Check power supply connections Make sure the power supply is on or is delivering enough voltage Board is too hot Provide better cooling to the controller Motor power supply takes too much time to turn on. The power supply has one second to turn on after VLOGIC is supplied Turn the PSU on earlier. This condition stops the motor and activates the ERROR output. The condition is signaled by turning on the ERR LED. The board will need a reset (remove the VLOGIC supply) to clear the fault. 11

Updating the firmware Every Tarocoo board comes with a bootloader already installed. You can reprogram it using just a USB to serial converter. You ll need to download and install PsoC creator for Windows. You also need to download cncboot and the latest firmware version from the Tarocco github repository. http://www.cypress.com/products/psoc-creator-integrated-design-environment-ide https://github.com/ottoragam/tarocco/tree/master/bootloader https://github.com/ottoragam/tarocco/tree/master/firmware The next step is to load the Tarocco project to in Psoc Creator. 12

Then, open TopDesign.cysch by double clicking on it. Double click on the box for the component named Bootloadable_1, and make sure the path for the cncboot.hex and cncboot.elf files in the Dependencies tab is correct. Then click the Build menu and Clean and Build Tarocco. 13

Open the Bootloader Host application in the tools menu, and adjust the parameters as seen in the image (select the COM port for your USB to serial converter and verify that the path for the firmware file you want to load is correct). The bootloader operates at 57600-8-N-1. Reboot the controller and start the programming process when the green and red LEDs start to blink in lockstep. Keep in mind that you have three seconds to press the program button, or else the bootloader will exit and the board will start to run its firmware. You can put the board in bootloader mode too if you keep the RESET pin low before powering the board. After programming the board, make sure the RESET pin is no longer kept low. You should see the Programming Successful log event when the process is done. If you re getting the message "the flash row is not valid for the selected array" try using the alternative cncboot project present in the repo: https://github.com/ottoragam/tarocco/tree/master/bootloader/ cncboot_no_optimizations/cncbo ot.cydsn Remember to build the project each time you make changes to it. 14

Dimensional Drawing 15