Pololu Jrk USB Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware Pololu Jrk USB. Pololu Jrk USB User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 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/

Página 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

Página 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

Página 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

Página 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

Página 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

Página 7

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

Página 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

Página 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

Página 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

Página 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

Página 12

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

Página 13

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 35 - Get Error Flags Occurred

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

Página 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

Página 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

Página 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

Página 39

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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Comentários a estes Manuais

Sem comentários