Pioneer 3TM, 2TM manual Input Output I/O, User I/O

Page 54

ActivMedia Robotics Operating System

modifications to the robot's heading are done on the client side, as supported in the latest versions (1.3 and later) of ARIA.

To enable the gyro, you must set the HasGyro FLASH parameter to 1 using the AROScf tool (see next chapter). Set it to 0 if the gyro isn't attached. Then to acquire gyro data, send the GYRO client command #58 with integer argument of one; zero disables the gyro SIP. The gyro SIP is stopped upon client disconnection or controller reset, too.

AROS collects the gyro rate and temperature readings at the maximum rate of once every 25 milliseconds and reports each of these values to the client, when enabled, in the GYROpac SIP that gets sent just before the standard Server Information Packet every sInfoCycle, typically every 100ms. GYROpac consists of a count byte of the rate and temperature data pairs accumulated since the last cycle (typically 4 for a 100ms cycle time), followed by that number of rate/temperature integer/byte pairs.

Gyro rates are 10-bit integers of value 0-1023. When not moving, the rate is centered around 512 or so, depending on the gyro's temperature and other calibration factors which drift with use and should be corrected on the fly. Values below that center point indicate counter-clockwise rotational rates; values above the resting center measure clockwise rotational rates.

Table 12. GYROpac SIP contents

LABEL

BYTES

CURRENT VALUE

DESCRIPTION

HEADER

2

0xFA, 0xFB

Common header

BYTE COUNT

1

xx

Varies

TYPE

1

0x98

Packet type

N PAIRS

1

x

Number of gyro data pairs

FOR N PAIRS

 

 

 

RATE

2

varies 0-1023

Gyro rate

TEMPERATURE

1

varies 0-255

Gyro temperature

CHECKSUM

2

varies

Computed checksum

INPUT OUTPUT (I/O)

Your AROS-based robot comes with a number of I/O ports that you may use for sensor and other custom accessories and attachments. See Appendix A for port locations and specifications. Some I/O states and readings appear in the standard SIP and may be manipulated with AROS client commands. There also is an IOpac SIP for convenient access to all of your robot’s I/O.

User I/O

The User I/O connector on the H8S controller contains eight digital input and eight digital output ports, as well as an analog-to-digital (A/D) port.23 The bit-mapped states of the sixteen digital ports and analog port automatically and continuously appear in the standard SIP, in their respective DIGIN, DIGOUT, ANALOG bytes. When not physically connected, the digital input and A/D port values may vary and change without warning.

Use the AROS client command number 30 to set one or more of the eight DIGOUT ports on the AROS controller. Electrically, the ports are digital high (1) at ~5 VDC (Vcc) and low

(0)at ~0 VDC (GND). DIGOUT uses a two-byte (unsigned integer) argument. The first byte is a mask whose bit pattern selects (1) or ignores (0) the state of the corresponding bit in the second byte to set (1) or unset (0) the digital output port.

23Many of these ports are used by the Gripper accessory. Alternative I/O also is available.

48

Image 54
Contents Pioneer H8-Series Operations Manual Page Important Safety Instructions Table of Contents Operating the Aria Demonstration Client Appendix C Basic Components all shipments IntroductionRobot Package Optional Components and Attachments partial listSupport Website User-Supplied Components / System RequirementsAdditional Resources NewsgroupsSupport Support@activmedia.comWhat Is Pioneer? Pioneer Reference PlatformPlus MOTOR-POWER Board Hitachi H8S-BASED MicrocontrollerClient Software Http//robots.activmedia.comSupporting Software Pioneer LegacyPioneer 1 and AT Pioneer 2 and PeopleBotActivMedia Robotics Modes of Operation Server ModeMaintenance and Standalone Modes Joydrive and Self Test ModesSpecifications & Controls Physical CharacteristicsMain Components Motor Stop ButtonUser Control Panel P3-DX User Control PanelBody, Nose, and Accessory Panels Sonar Arrays with Gain AdjustmentBatteries and Power Motors, Wheels, and Position EncodersBattery Indicators and Low Voltage Conditions RechargingManual Operation Robot Power OFF Manual Operation Robot Power and Systems onDOCKING/CHARGING System Radio Controls and Accessories Client-server connection optionsOnboard PC Computer Control PanelOperating the Onboard PC PC NetworkingUPS and Genpowerd Safety Aros Watchdogs Preparative Assembly Install AriaQuick Start Starting UP Client and Server Install BatteriesClient-Server Communications Drive Self-TestDemo Startup Options IpthruSuccessful Connection Operating the Aria Demonstration ClientDisconnecting Quickstart TroubleshootingProper Connections OFF SRIsimJoydrive Mode Joydrive and Self-TestsEngaging SELF-TESTS ActivMedia Robotics Operating System CLIENT-SERVER Communication Packet ProtocolsPacket Errors Packet ChecksumServer Information Packets Multiply by DistConvFactor‡Client Commands Before Client ConnectionP2OS CLIENT-SERVER Connection Keeping the Beat-PULSE Autoconfiguration SYNC2Opening the Servers-OPEN Closing the Connection-CLOSEMotion Commands RotationActivMedia Robots in Motion Platform Dependent and Independent VariablesPID Controls Internal coordinate systemSonar Enable/Disabling SonarPosition Integration Polling Sequence and RateStalls and Emergencies 11-15 ReservedAccessory Commands and Packets Packet ProcessingCONFIGpac and Config Command Serial Port CommunicationsChanging Baud Rates and Autobauding HOST-to-AUX Serial Transfers Encoder PacketsGripper packets Sounds TCM2Onboard PC Heading Correction GyroInput Output I/O User I/OBumper and IR I/O IO packetsDigital Port Controls Expansion I/ODOCKING/CHARGING System I/O Docking/Charging ServersMonitoring the Recharge Cycle Charge State Overcharge ~Volts Charge current ID7ActivMedia Robotics Operating System Aros Maintenance Mode Updating & Reconfiguring ArosWhere to GET Aros Software Simple Aros UpdatesUpdating and Reconfiguring Aros Starting AroscfConfiguring Aros Operating Parameters Interactive CommandsChanging Parameters Save Your Work PID ParametersKeyword Ticksmm and Revcount 0056 0057 0060 0034Stallval and Stallcount BumpersUpdating and Reconfiguring Aros Drive Lubrication Maintenance & RepairTire Inflation BatteriesAlternative Battery Chargers Automated Docking/Charging SystemTightening the AT Drive Belt Getting Inside Removing the NoseOpening the Deck Factory RepairsH8S Ports & Connections Power ConnectorAppendix a H8S MicrocontrollerSerial Ports User I/O, Gripper, Docking/Charging PortOD7 Expansion I/O BusBumper Ports Motors, Encoders, and IR SensorsUser Control Interface Joystick Port Pioneer 3 and 2-PLUS MOTOR-POWER Board Configuration for Current and Temperature SensingAppendix B Controller Power and Interface Radio, Auxiliary, and User Power ConnectorsIR Signal and Power GNDRadio Modem Settings Appendix CSerial Ethernet Settings Console modeAppendix D Webpage Peer-to-Peer NetworkingSpecifications Appendix EControls and Ports Warranty & Liabilities Columbia Drive Amherst, NH 603