Pololu Jrk USB User Manual

Browse online or download User Manual for Hardware Pololu Jrk USB. Pololu Jrk USB User Manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - User's Guide

Pololu Jrk USB Motor ControllerUser's GuidePololu Jrk USB Motor Controller User's Guide © 2001–2014 Pololu Corporationhttp://www.pololu.com/

Page 2

2. Contacting PololuYou can check the Pololu Jrk 21v3 USB Motor Controller page[http://www.pololu.com/product/1392] or the Pololu Jrk 12v12 USB MotorC

Page 3 - 1. Overview

3. Configuring the Motor Controller3.a. Installing Windows Drivers and the Configuration UtilityIf you use Windows XP, you will need to have Service P

Page 4 - Included Hardware

7. On the second screen of the “Found New Hardware Wizard”, select “Install the software automatically” andclick “Next”.Pololu Jrk USB Motor Controlle

Page 5

8. Windows XP will warn you again that the driver has not been tested by Microsoft and recommend that youstop the installation. Click “Continue Anyway

Page 6

If you use Windows XP and experience problems installing or using the serial port drivers, the cause of your problemsmight be a bug in older versions

Page 7

Windows 8 device manager showing the Pololu Jrk 21v3 Motor ControllerWindows XP device manager showing the Pololu Jrk 21v3 MotorControllerSome softwar

Page 8 - 1.c. PID Calculation Overview

3.b. Input OptionsThe Input tab of the Jrk Configuration UtilityThe Input tab of the jrk configuration utility contains settings for how the feedback

Page 9

Input scalingThe scaling options in this tab determine how the raw input values map to target values, which determine the outputof the system. The par

Page 10 - 2. Contacting Pololu

3.c. Feedback OptionsThe Feedback tab of the Jrk Configuration UtilityThe Feedback tab of the jrk configuration utility controls the measurements of t

Page 11

the maximum and minimum possible values of the output; these will be converted to scaled feedback values of 4095and 0, respectively. If the feedback l

Page 12

1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 13

duty cycle target =(Proportional coefficient) × error+ (Integral coefficient) × integral+ (Derivative coefficient) × derivativeThe integral is compute

Page 14

3.e. Motor OptionsThe Motor tab of the Jrk Configuration UtilityThe Motor tab of the jrk configuration utility controls the PWM [http://en.wikipedia.o

Page 15 - Controller

However, a higher PWM frequency means greater power loss due to switching, which could make a 5 kHz PWMfrequency a better choice for certain applicati

Page 16

As of firmware version 1.4, the behavior of the jrk 12v12 when the duty cycle is zero depends on the“When motor is off” configuration option. In previ

Page 17 - Serial interface

3.g. The Plots WindowThe Plots window of the configuration utility displays real-time data from the jrk, scrolling from right to left. Toaccess this w

Page 18 - Feedback scaling

You can determine the version of your jrk’s firmware by running the configuration utility (Section 3.a), connecting toa jrk, and looking at the firmwa

Page 19 - 3.d. PID Options

10. It will take a few seconds to erase the jrk’s existing firmware and load the new firmware. Do not disconnectthe jrk during the upgrade.11. Once th

Page 20 - Preventing integral wind-up

4. Using the Serial Interface4.a. Serial ModesThe jrk has three different serial interfaces. First, it has the RX and TX lines. The jrk can send bytes

Page 21 - PWM frequency

UARTThe UART serial mode.In this mode, the TX and RX lines can be used to send commands to the jrk and receive responses from it. Anybyte received on

Page 22 - When motor is off

start bit, 8 data bits, and a stop bit, each byte takes 10 bit times to transmit, so the fastest possible data rate in bytesper second is the baud rat

Page 23 - 3.f. Error Response Options

Pololu jrk 21v3 USB motor controller withdimensions.Bottom of the jrk 12v12 USB motor controllerwith feedback with dimensions.1. OverviewThe jrk famil

Page 24 - 3.h. Upgrading Firmware

jrk on the line whose device number matches the specified device number accepts the command that follows; allother Pololu devices ignore the command.

Page 25

2. Add 7 zeros to the end of your message.3. Write your CRC-7 polynomial underneath the message so that the LSB of your polynomial is directly belowth

Page 26

This command will turn the motor off by setting the Awaiting Command error bit. The jrk will not restart the motoruntil it receives a Set Target comma

Page 27 - 4. Using the Serial Interface

Set Target Low Resolution ReverseCompact protocol: 0xE0, magnitudePololu protocol: 0xAA, device number, 0x60, magnitudeIf magnitude is zero, then this

Page 28 - 4.b. TTL Serial

input value. The jrk can recover from the error by receiving four good pulses in a row. This error does not occurin Analog Input Mode or Serial Input

Page 29 - Pololu Protocol

This command is equivalent to reading the “Currently stopping motor?” column in the Errors tab of the configurationutility, and then clicking the “Cle

Page 30

Read Variable Command ByteVariable RangeTwo bytes Low byte High byteInput 0 to 4095 0xA1 0x81 0x82Target 0 to 4095 0xA3 0x83 0x84Feedback 0 to 4095 0x

Page 31 - Motor Off

different from the duty cycle target because it takes in to account all of the jrk’s configurable limits: maximumacceleration, maximum duty cycle, max

Page 32 - Set Target High Resolution

ConnectionsConnect the TX line of the master device to the RX lines of all of the slave devices. Commands sent by the masterwill then be received by a

Page 33 - 4.f. Error Reporting Commands

#include <fcntl.h>#include <stdio.h>#include <unistd.h>#ifdef _WIN32#define O_NOCTTY 0#else#include <termios.h>#endif// Reads

Page 34 - Get Error Flags Halting

• Simple configuration and calibration over USB with free configuration program (Windows 8, Windows 7,Vista, Windows XP compatible).• Configurable par

Page 35 - Get Error Flags Occurred

int feedback = jrkGetFeedback(fd);printf("Current Feedback is %d.\n", feedback);int target = jrkGetTarget(fd);printf("Current Target is

Page 36

5. Setting Up Your SystemThe following step-by-step procedure is recommended for configuring a feedback system for use with a jrk motorcontroller.Conn

Page 37 - Using a jrk as a slave device

1. Turn off power.2. Connect your motor wires to the jrk’s A and B motor outputs. If possible, connect them so that positivevoltage at A causes the mo

Page 38 - 4.i.1. Cross-platform C

4. Note how close your system gets to an error of zero using just theproportional term. You can use the integral term to get it much lower:with the in

Page 39

Pololu Jrk USB Motor Controller User's Guide © 2001–2014 Pololu Corporation5. Setting Up Your System Page 44 of 45

Page 40 - 4.i.2. Windows C

6. Writing PC Software to Control the JrkThere are two ways to write PC software to control the jrk: the native USB interface and the virtual serial p

Page 41 - 5. Setting Up Your System

The jrk 21v3 and jrk 12v12 each ship with a straight 0.1″ breakaway male header [http://www.pololu.com/product/965]strip and two appropriately sized 2

Page 42 - Tuning the PID constants

Pololu jrk 12v12 USB motor controller with feedback, labeled top view.The Pololu jrk USB motor controller can connect to a computer’s USB port via a U

Page 43

• The red error LED indicates an error. If there is an error stopping the motor (besides the Awaiting Commanderror bit), then the red LED will be on.

Page 44

Under Linux, the two virtual COM ports created by the jrk should appear as devices with names like /dev/ttyACM0and /dev/ttyACM1 (the number depends on

Page 45 - Virtual Serial Ports

• The feedback is measured as a value from 0 to 4095. In analog voltage feedback mode, this represents avoltage level of 0 to 5 V. In digital frequenc

Comments to this Manuals

No comments