Pololu Qik 2s9v1 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Pololu Qik 2s9v1. Pololu Qik 2s9v1 User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 24
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Qik 2s9v1 User's Guide
1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Contacting Pololu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3. Connecting the Qik . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.a. Power and Motor Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.b. Logic Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.c. Included Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.d. Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.e. Indicator LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.f. Board Dimensions and Mounting Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4. Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.a. TTL Serial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.b. Baud Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.c. Command Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5. Serial Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.a. 0x81: Get Firmware Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.b. 0x82: Get Error Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.c. 0x83 & 0x84: Get & Set Configuration Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.d. 0x86 & 0x87: Motor M0 & M1 Coast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.e. 0x88 – 0x8F: Set Motor Forward/Reverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6. Cyclic Redundancy Check (CRC) Error Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.a. CRC Computation in C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7. Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8. Arduino Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Qik 2s9v1 User's Guide © 2001–2012 Pololu Corporation
http://www.pololu.com/docs/0J25 Page 1 of 24
Vue de la page 0
1 2 3 4 5 6 ... 23 24

Résumé du contenu

Page 1 - Qik 2s9v1 User's Guide

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

Page 2 - 1. Overview

Demo ModeIf you short pin A to pin B (the circular pads right next to the silkscreen labels) and reset the qik, it enters demomode and remains in demo

Page 3

2. red ON and green OFF3. red OFF and green ON4. red and green OFFThis cycle takes several seconds, and each of the four LED states corresponds to a d

Page 4 - 2. Contacting Pololu

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

Page 5 - 3. Connecting the Qik

Note: These lines are not compatible with RS-232 serial, which is inverted and uses voltages thatwould be out of spec (e.g. -12V to 12V). To connect t

Page 6 - Logic Power

Pololu Protocol:This protocol is compatible with the serial protocol used by our other serial motor and servo controllers. As such,you can daisy-chain

Page 7 - Serial Lines

5. Serial Commands5.a. 0x81: Get Firmware VersionCompact protocol: 0x81Pololu protocol: 0xAA, device ID, 0x01This command returns the a single ASCII b

Page 8 - 3.c. Included Hardware

pulled low through the LED). If shutdown-on-error configuration parameter is set to 1, motors M0 and M1 willbe stopped as a safety precaution when any

Page 9 - Enable-CRC Mode

bits (which are interpreted as a number from 0 – 7). If the lower four bits are called x and the upper three bitsare called y, the equation for the le

Page 10

5.d. 0x86 & 0x87: Motor M0 & M1 CoastCommand 0x86: Motor M0 CoastCompact protocol: 0x86Pololu protocol: 0xAA, device ID, 0x06Command 0x87: Mot

Page 11

Command 0x8A: Motor M0 ReverseCompact protocol: 0x8A, motor speedPololu protocol: 0xAA, device ID, 0x0A, motor speedCommand 0x8B: Motor M0 Reverse (sp

Page 12 - 4. Serial Interface

1. OverviewThe qik 2s9v1 is Pololu’s second-generation dual serial motor controller. The compact board allows anymicrocontroller or computer with a se

Page 13 - Compact Protocol:

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

Page 14 - Procedure for Daisy-Chaining

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

Page 15 - 5. Serial Commands

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

Page 16 - Configuration Parameters

7. TroubleshootingThe following are some suggestions for ways you can troubleshoot your qik:• Test for life: With nothing more than logic voltage conn

Page 17

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

Page 18

the use or to the performance of this product. This product is not designed for, and should not be used in,applications where the malfunction of the p

Page 19

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

Page 20

3. Connecting the QikConnecting to the qik can be as simple as hooking up logic and motor power, your motors, and RX. Manyapplications can leave the j

Page 21 - 6.a. CRC Computation in C

The qik motor controller takes two power inputs: motor power supplied via the VMOT and GND pins at thebottom of the board and logic power supplied via

Page 22

Note: Even if your motor and logic power sources share a common ground, make sure you connectyour motor power supply’s ground to the GND pin just abov

Page 23 - 7. Troubleshooting

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

Page 24 - 8. Arduino Library

3.d. JumpersThe qik jumpers allow you to easily alter the behavior of the device. These jumpers can be left off for mostapplications. If you use a jum

Commentaires sur ces manuels

Pas de commentaire