Pololu Qik 2s9v1 Manuel d'utilisateur Page 10

  • 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 9
Demo Mode
If you short pin A to pin B (the circular pads right next to the silkscreen labels) and reset the qik, it enters demo
mode and remains in demo mode for as long as the short is maintained. Demo mode gives you an easy way to test
your qik and troubleshoot your application for potential problems. In demo mode, the qik smoothly ramps motor
M0 from stopped to full-speed forward to full-speed reverse to stopped again over a few seconds. It then does the
same for motor M1. The red (error) LED is on while motor M0 is active and off while motor M1 is active. The
green (status) LED is on while the active motor is driving forward and off while the active motor is driving in
reverse.
Demo mode can help you determine before you’ve even written any code if you have an issue with your power
supply, such as insufficient ability to supply the current your motors are drawing or interference from motor noise.
While in demo mode, any serial data that is received by the qik on the RX line is echoed on the TX line, giving
you an easy way to test your serial connection.
3.e. Indicator LEDs
LED Overview
The qik has two LEDs that are used to provide feedback about its state of operation:
Status LED (green): This green LED provides a heartbeat to let you know that your qik is alive and what
state the qik is in, and it also acts as a serial activity indicator.
Error LED (red): This red LED is tied to the ERR output pin and lights when the ERR pin drives high in
response to an error. Once an error occurs, the LED remains lit until a serial command is issued to read the
error byte, at which point the LED turns off. For more information on the possible error conditions, please
see Section 5.b.
Automatic Baud Detection Phase
When the qik first starts up in automatic baud detection mode, it enters a phase in which it is waiting to receive the
byte 0xAA (170 in decimal) at a baud rate that is within the range of 1200 bps to 38,400 bps. If the serial receive
line, RX, is pulled high, as is expected for an idle TTL serial line and the default state of an unconnected RX, the
green status LED flashes on and off evenly every 0.4 s. If the serial receive line is held low, this is indicative of a
bad serial connection and the red error flashes on and off evenly every 0.4 s (with the green status LED off). Once
the baud is detected, this phase ends and the qik proceeds to normal operation.
Firmware version 2 only: If a serial byte other than 0xAA is received in this mode, or if 0xAA is transmitted
at an invalid baud rate, the red error LED turns on and stays on until the automatic baud detection phase ends.
This gives you feedback that the baud has not yet successfully been set and the controller is still in the automatic
detection phase. Firmware version 1 flashes the red LED very briefly if a serial byte other than 0xAA is received
in this mode, which can make it difficult to tell that the qik detected any serial activity.
Normal Operation
In normal operation, the green status LED very briefly flashes a heartbeat every two seconds. If any serial activity
is detected, the green LED turns on until the next heartbeat turns it off. If a serial error occurs, the red LED turns
on and remains on until you issue a get-error command (see Section 5.b).
Demo Mode
In demo mode, the LEDs will cycle through the pattern:
1. red and green ON
Qik 2s9v1 User's Guide © 2001–2012 Pololu Corporation
3. Connecting the Qik Page 10 of 24
Vue de la page 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 23 24

Commentaires sur ces manuels

Pas de commentaire