Pololu Qik 2s12v10 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Pololu Qik 2s12v10 herunter. Pololu Qik 2s12v10 User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 33
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Qik 2s12v10 User's Guide
1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Contacting Pololu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3. Connecting the Qik . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.a. Power and Motor Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.b. Logic Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.c. Included Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.d. Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.e. Indicator LEDs and Phases of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.f. Board Dimensions and Mounting Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4. Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.a. TTL and RS-232 Serial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.b. Baud Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.c. Command Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5. Serial Parameters and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.a. Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.b. 0x81: Get Firmware Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.c. 0x82: Get Error Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.d. 0x83 & 0x84: Get & Set Configuration Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.e. 0x86 & 0x87: Motor M0 & M1 Variable Brake . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.f. 0x88 – 0x8F: Set Motor Forward/Reverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.g. 0x90 & 0x91: Get Motor M0 & M1 Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.h. 0x92 & 0x93: Get Motor M0 & M1 Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6. Cyclic Redundancy Check (CRC) Error Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.a. CRC Computation in C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7. Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
8. Arduino Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Qik 2s12v10 User's Guide © 2001–2012 Pololu Corporation
http://www.pololu.com/docs/0J29 Page 1 of 33
Seitenansicht 0
1 2 3 4 5 6 ... 32 33

Inhaltsverzeichnis

Seite 1 - Qik 2s12v10 User's Guide

Qik 2s12v10 User's Guide1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 2 - 1. Overview

3.c. Included HardwareThe qik ships with a 12×1 straight 0.100" male header strip [http://www.pololu.com/catalog/product/965], a 3×2straight 0.10

Seite 3 - Important safety warning

The 3×2 header strip can be soldered to the jumper pins as shown above, which lets you make use of the includedshorting blocks, and the included termi

Seite 4 - 2. Contacting Pololu

the silkscreen labels). This sets the baud rate to a predetermined value, as described in the table below, and the qikskips the automatic baud detecti

Seite 5 - 3. Connecting the Qik

• Error LED (red): This red LED is tied to the ERR output pin and lights when the ERR pin drives high inresponse to an error. Once an error occurs, th

Seite 6

3.f. Board Dimensions and Mounting InformationThe qik 2s12v10 measures 2.15" x 1.86" x 0.28" (54.6 x 47.2 x 7.1 mm) and weighs 0.5 oz (

Seite 7

4. Serial InterfaceYou can use the serial interface for three general purposes: querying the qik for information, setting itsconfiguration parameters,

Seite 8 - Serial Lines: RX, TX, and SIN

information. Information requests result in the transmission of a single byte per request. If you aren’t interested inreceiving feedback from the qik,

Seite 9 - VIN (out)

For example, if we want to set motor M1 to full speed forward using the compact protocol, we could send thefollowing byte sequence:in hex: 0x8D, 0x7Fi

Seite 10 - 3.c. Included Hardware

If you want to daisy-chain a qik with other Pololu devices that use 0x80 as an initial command byte, theprocedure becomes slightly more complicated. Y

Seite 11 - Fixed-Baud Modes

5. Serial Parameters and Commands5.a. Configuration ParametersThe qik 2s12v10 has twelve configuration parameters that are saved in non-volatile memor

Seite 12 - LED Overview

1. OverviewThe qik 2s12v10 adds a comprehensive yet easy-to-use, high-power option to Pololu’s line of motor controllers.The compact board—it’s almost

Seite 13 - Normal Operation

• bit 1: if this bit is set, stop motors M0 and M1 when any motor-over-current error occurs.• bit 2: if this bit is set, stop motors M0 and M1 when an

Seite 14

• If the target direction does not match the current direction, the motor speed is immediately set to zero, andthe qik then proceeds to ramp the motor

Seite 15 - 4. Serial Interface

set-motor command sets motor M0 to full brake for 0.5 s before the qik acts on the set-motor command and startsmoving in reverse.8: Motor M0 Current L

Seite 16 - Compact Protocol:

5.b. 0x81: Get Firmware VersionCommand 0x81 (129): Get Firmware VersionCompact protocol: 0x81Pololu protocol: 0xAA, device ID, 0x01This command return

Seite 17 - Procedure for Daisy-Chaining

computed as that packet’s CRC. In such a case, the qik ignores the command packet and generates a CRCerror. See Section 6 for more information on cycl

Seite 18

Once you have set the value of a configuration parameter, that value is saved in non-volatile memory, so itwill persist even if the qik is subsequentl

Seite 19 - 2: Shut Down Motors on Error

as the speed parameter ranges from 0 to 127. In 8-bit mode, motor speed ranges from stopped (high-impedanceoutputs, or “coast”) to full speed as the s

Seite 20 - 5: Motor M1 Acceleration

= 255, which turns the motor at full speed. In 7-bit mode, both commands set motor M1 speed to 127 out of amaximum of 127, which turns the motor at fu

Seite 21 - 7: Motor M1 Brake Duration

speed is zero. To get a measure of actual motor speed, you would need to obtain external feedback, such as froman encoder.The values returned by these

Seite 22 - 9: Motor M1 Current Limit / 2

6. Cyclic Redundancy Check (CRC) Error DetectionFor certain applications, verifying the integrity of the data you’re sending and receiving can be very

Seite 23 - 5.c. 0x82: Get Error Byte

Important safety warningThis product is not intended for young children! Younger users should use this product only under adultsupervision. By using t

Seite 24

Steps 3, 4, & 5:_______________________________________________1 0 0 0 1 0 0 1 ) 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0XOR 1 0 0 0 1 0 0 1

Seite 25 - Motor Control Overview

}}unsigned char CRC(unsigned char message[], unsigned char length){unsigned char i, crc = 0;for (i = 0; i < length; i++)crc = CRCTable[crc ^ messag

Seite 26 - Motor M1 Commands

7. TroubleshootingThe following are some suggestions for ways you can troubleshoot your qik:• Test for life: With nothing more than power connected, l

Seite 27

8. Arduino LibraryWe have written a basic Arduino library for the qik dual serial motor controllers that makes it simple tointerface the qik 2s12v10 w

Seite 28

2. Contacting PololuYou can check the qik 2s12v10 dual serial motor controller page [http://www.pololu.com/catalog/product/1112] foradditional informa

Seite 29

3. Connecting the QikConnecting to the qik can be as simple as hooking up power, your motors, and your serial connections. Manyapplications can leave

Seite 30 - 6.a. CRC Computation in C

3.a. Power and Motor ConnectionsPowerThe qik motor controller is powered via the large VIN and GND pads on the power side of the board (do notpower th

Seite 31

Qik 2s12v10 power and motor connections.MotorsThe qik can independently drive up to two bidirectional brushed DC motors, referred to as M0 and M1. The

Seite 32 - 7. Troubleshooting

• Time to overheat at 30 A: < 1 s• Time to overheat at 20 A: 35 s• Time to overheat at 15 A: 150 s• Time to overheat at ≤ 13 A: N/A (does not overh

Seite 33 - 8. Arduino Library

Qik 2s12v10 TTL serial connection example(transmit and receive).Qik 2s12v10 RS-232 serial connection example(qik receive only).Both RX and SIN connect

Kommentare zu diesen Handbüchern

Keine Kommentare