Pioneer 2TM, 3TM manual Onboard PC, Heading Correction Gyro

Page 53

ActivMedia Robotics

Onboard PC

Communication between the onboard PC and the H8S microcontroller is RS232 serial through the respective COM1 (Windows) or /dev/ttyS0 (Linux) and internal HOST ports. Set the HostBaud FLASH communication rate to match the PC client-software’s serial port rate.

Beginning with AROS version 1.6, the RI pin 9 on the HOST port initializes to low and goes high when the batteries discharge to below 11 VDC. We use the genpowerd software under Linux to detect that low-power signal and automatically shut down the PC. Windows PCs are a bit more problematic.

The Windows genpowerd-like ups.exe program requires a dedicated serial port and prefers to use the CTS line to indicate low power. Accordingly, we jumper the RI signal of HOST COM1 to the CTS signal pin of the adjacent COM2 port of the onboard PC for the feature. For convenience, the Versalogic VSBC8 PC found onboard most recent Pioneer 2s shares its 20-pin connector on the PC's motherboard with COM1 and COM2. So, to implement Windows ups.exe-enabled low-power shutdown, we jumper pin 8 (COM1 RI) to pin 16 (COM2 CTS) on that VSBC8 serial connector. Use a similar strategy for other implementations; the UPS configuration dialog lets you select COM1-4.

Once the port is wired, start up Windows and, as Administrator, go to the Start:Settings:Control Panel:Power Options dialog and select the UPS tab. Click Select and in the UPS Selection dialog, select COM2 (or other) port, Generic manufacturer, and Custom model. Then click Next.

In the UPS Interface Configuration On: COM2 dialog, check the Power Fail/On Battery and its related Position options. Uncheck to disable the Low Battery and UPS Shutdown options. Then click Finish to save the settings and close the dialog. Click OK or Apply to enable the UPS shutdown programs.

Change a registry value so that the PC shuts down one minute instead of two minutes after low-power notification by the controller: Use regedit and navigate to

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\UPS\Config. Change the ShutdownOnBatteryWait dword value to 1 (from 2).

Use the AROS client maintenance command #250 to test your genpowerd or ups.exe setup. Send the COMshutdown command #250 with an integer argument of 1 to simulate the low battery condition, in which AROS issues warnings first, then disconnects from the client after about a minute and sets the PC-shutdown signal on RI. An argument of 2 forces the computer shutdown signal (RI high); 0 cancels the shutdown/test. Resetting the controller cancels shutdown, too, unless battery power really is very low.

Put the controller into maintenance mode and fix your onboard PC settings if the computer falsely engages genpowerd or ups.exe.

Heading Correction Gyro

With the new rate-gyro accessory, your client software may detect and compensate for robot heading changes that aren't detected by the wheel encoders, such as from slipping wheels. AROS version 1.8 and later supports the gyro via its attachment to the AN6 and AN7 analog-to-digital input ports on the H8S microcontroller.

AROS collects 10-bit (0-1023) gyro rate and 8-bit (0-255) temperature data and will, upon request, send the collected data to a connected client in a new GYROpac (type=0x98) server information packet for processing. Analysis of the gyro data and subsequent

47

Image 53
Contents Pioneer H8-Series Operations Manual Page Important Safety Instructions Table of Contents Operating the Aria Demonstration Client Appendix C Robot Package IntroductionBasic Components all shipments Optional Components and Attachments partial listAdditional Resources User-Supplied Components / System RequirementsSupport Website NewsgroupsSupport@activmedia.com SupportPioneer Reference Platform What Is Pioneer?Hitachi H8S-BASED Microcontroller Plus MOTOR-POWER BoardHttp//robots.activmedia.com Client SoftwarePioneer Legacy Supporting SoftwarePioneer 2 and PeopleBot Pioneer 1 and ATActivMedia Robotics Maintenance and Standalone Modes Server ModeModes of Operation Joydrive and Self Test ModesPhysical Characteristics Specifications & ControlsMotor Stop Button Main ComponentsP3-DX User Control Panel User Control PanelSonar Arrays with Gain Adjustment Body, Nose, and Accessory PanelsMotors, Wheels, and Position Encoders Batteries and PowerRecharging Battery Indicators and Low Voltage ConditionsDOCKING/CHARGING System Manual Operation Robot Power OFFManual Operation Robot Power and Systems on Client-server connection options Radio Controls and AccessoriesComputer Control Panel Onboard PCPC Networking Operating the Onboard PCUPS and Genpowerd Safety Aros Watchdogs Quick Start Preparative AssemblyInstall Aria Client-Server Communications Install BatteriesStarting UP Client and Server Drive Self-TestIpthru Demo Startup OptionsOperating the Aria Demonstration Client Successful ConnectionProper Connections DisconnectingQuickstart Troubleshooting SRIsim OFFJoydrive and Self-Tests Joydrive ModeEngaging SELF-TESTS CLIENT-SERVER Communication Packet Protocols ActivMedia Robotics Operating SystemPacket Checksum Packet ErrorsMultiply by DistConvFactor‡ Server Information PacketsBefore Client Connection Client CommandsP2OS CLIENT-SERVER Connection Opening the Servers-OPEN Autoconfiguration SYNC2Keeping the Beat-PULSE Closing the Connection-CLOSERotation Motion CommandsPlatform Dependent and Independent Variables ActivMedia Robots in MotionInternal coordinate system PID ControlsPosition Integration Enable/Disabling SonarSonar Polling Sequence and Rate11-15 Reserved Stalls and EmergenciesPacket Processing Accessory Commands and PacketsChanging Baud Rates and Autobauding CONFIGpac and Config CommandSerial Port Communications Gripper packets HOST-to-AUX Serial TransfersEncoder Packets TCM2 SoundsHeading Correction Gyro Onboard PCUser I/O Input Output I/OIO packets Bumper and IR I/ODOCKING/CHARGING System I/O Expansion I/ODigital Port Controls Docking/Charging ServersCharge State Overcharge ~Volts Charge current ID7 Monitoring the Recharge CycleActivMedia Robotics Operating System Where to GET Aros Software Updating & Reconfiguring ArosAros Maintenance Mode Simple Aros UpdatesStarting Aroscf Updating and Reconfiguring ArosChanging Parameters Configuring Aros Operating ParametersInteractive Commands PID Parameters Save Your WorkKeyword 0056 0057 0060 0034 Ticksmm and RevcountBumpers Stallval and StallcountUpdating and Reconfiguring Aros Tire Inflation Maintenance & RepairDrive Lubrication BatteriesTightening the AT Drive Belt Alternative Battery ChargersAutomated Docking/Charging System Removing the Nose Getting InsideFactory Repairs Opening the DeckAppendix a Power ConnectorH8S Ports & Connections H8S MicrocontrollerUser I/O, Gripper, Docking/Charging Port Serial PortsExpansion I/O Bus OD7User Control Interface Bumper PortsMotors, Encoders, and IR Sensors Joystick Port Appendix B Pioneer 3 and 2-PLUS MOTOR-POWER BoardConfiguration for Current and Temperature Sensing Radio, Auxiliary, and User Power Connectors Controller Power and InterfaceGND IR Signal and PowerAppendix C Radio Modem SettingsAppendix D Serial Ethernet SettingsConsole mode Peer-to-Peer Networking WebpageAppendix E SpecificationsControls and Ports Warranty & Liabilities Columbia Drive Amherst, NH 603