RoboteQ AX3500 user manual Using the Analog Inputs to Monitor External Voltages

Page 66
Using the Analog Inputs to Monitor External Voltages

Connecting Sensors and Actuators to Input/Outputs

 

100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

50

 

 

 

 

 

 

 

 

 

 

 

 

 

Input Reading

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Analog

-50

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-150

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-20

-10

0

10

20

30

40

50

60

70

80

90

100

110

 

 

Temperature in Degrees C

FIGURE 35. Signed binary reading by controller vs. NTC temperature

To read the temperature, use the ?p command to have the controller return the A/D con- verter’s value. The value is a signed 8-bit hexadecimal value. Use the chart data to convert the raw reading into a temperature value.

Using the Analog Inputs to Monitor External Voltages

The analog inputs may also be used to monitor the battery level or any other DC voltage. In this mode, the controller does not use the voltage information but merely makes it avail- able to the host microcomputer via the RS232 port. The recommended schematic is shown in Figure 36.

To Battery +Terminal

47kOhm

4.7kOhm

+5V 14

Ana 1: 11

Ana 2: 10

Ana 3: 12

Ana 4: 8

Ground 5

Internal Resistors and Converter

47kOhm

Manual background A/D 10kOhm

47kOhm

FIGURE 36. Battery voltage monitoring circuit

Using these resistor values, it is possible to measure a voltage ranging from -5V to +60V with a 0.25V resolution. The formula for converting the A/D reading into a voltage value is as follows.

66

AX3500 Motor Controller User’s Manual

Version 1.9b. June 1, 2007

Image 66
Contents Dual Channel High Power Digital Motor Controller AX3500User’s Manual AX3500 Motor Controller User’s Manual Version 1.9b. June 1Date Revision HistoryRevision History VersionAX3500 Motor Controller User’s Manual Revision History General Operation SECTION SECTIONSECTION SECTION SECTION SECTION Programming using built-in Switches and Display AX3500 Motor Controller User’s Manual Do not Connect to a RC Radio with a Battery Attached Important SafetyAvoid Shorts when Mounting Board against Chassis WarningsImportant Safety Warnings Quick Start Locating the Switches and ConnectorsAX3500 What you will needAX3500 Quick Start Connecting to the Batteries and Motors Connecting to the Batteries and MotorsSignal Connecting to the 15-pin ConnectorImportant Warning RC ModeConnecting the R/C Radio Powering On the ControllerConnecting the R/C Radio Button Operation Prog and Set button statusFunction Default Values Default Controller ConfigurationDefault Controller Configuration ParameterConnecting the controller to your PC using Roborun Obtaining the Controller’s Software Revision Number Obtaining the Controller’s Software Revision NumberExploring further = Software version 1.9bSECTION 3AX3500 Motor Controller Overview Product DescriptionAutomatic Joystick Command Corrections Technical featuresMultiple Command Modes AX3500 Motor Controller OverviewHigh Efficiency Motor Power Outputs Technical featuresLow Power Consumption Optical Encoder InputsAdvanced Safety Features Data Logging CapabilitiesCompact Open Frame PCB Design Connecting Power and Motors to the Controller Power ConnectionsPower Connections Controller Power Connecting Power and Motors to the ControllerAnd Main Battery Controller PowerPower Control input is mended Off ConfigurationController Powering Schemes Powering the Controller from a single BatteryPowering the Controller Using a Main and Backup Battery Controller Powering SchemesConnecting the Motors Single Channel Operation Converting the AX3500 to Single ChannelSingle Channel Operation Power Fuses Electrical Noise Reduction Techniques Wire Length LimitsPower Regeneration Considerations Wire Length LimitsOvervoltage Protection Undervoltage ProtectionUsing the Controller with a Power Supply Using the Controller with a Power SupplyConnecting Power and Motors to the Controller Basic Operation Input Command ModesGeneral Operation Basic OperationOpen Loop, Mixed Speed Control Selecting the Motor Control ModesOpen Loop, Separate Speed Control General OperationClosed Loop Speed Control Close Loop Position ControlSelecting the Motor Control Modes Position Feedback Position Sensor Gear box User Selected Current Limit SettingsTemperature-Based Current Limitation SettingMotor Current = Battery Current / PWM ratio Battery Current vs. Motor CurrentBattery Current vs. Motor Current TemperatureRegeneration Current Limiting Motor Current = Battery Current / PWM RatioSwitches Programmable AccelerationSetting Using Programmable Acceleration17.97% Command Control Curves15 Hex 0.089 secondExponentiation Parameter Value Left / Right Tuning AdjustmentLeft / Right Tuning Adjustment Selected CurveSpeed Adjustment Parameter ValueActivating Brake Release or Separate Motor Excitation Emergency Shut Down Using Controller SwitchesEmergency Stop using External Switch Activating Brake Release or Separate Motor ExcitationUsing the Inputs to turn Off/On the Power MOSFET transistors Special Use of Accessory Digital InputsUsing the Inputs to Activate the Buffered Output Inverted OperationSelf-Test Mode Self-Test ModeEncoder Speed or Position Connecting Sensors and Actuators to Input/Outputs AX3500 ConnectionsAX3500 Connections AX3500’s Inputs and Outputs Connecting Sensors and Actuators to Input/OutputsAX3500’s Inputs and Outputs I/O typeActivated Signal depending Pin1I/O List and Pin Assignment Input orConnecting devices to Output C Connecting devices to Output CConnecting Switches or Devices to Input F Important warningConnecting Switches or Devices to EStop/Invert Input Connecting Switches or Devices to EStop/Invert InputConnecting Position Potentiometers to Analog Inputs Analog Inputs Ana2 Connecting Tachometer to Analog Inputs Connecting Tachometer to Analog Inputs Operating ModeAna 3 p12 Ana 1 p11Ana2 p10 Ana 4 p8Temp oC Connecting External Thermistor to Analog InputsConnecting External Thermistor to Analog Inputs Resistance kOhmUsing the Analog Inputs to Monitor External Voltages Internal Heatsink Temperature Sensors Connecting User Devices to Analog InputsInternal Voltage Monitoring Sensors Connecting User Devices to Analog InputsTemperature Conversion C Source Code ValueAnalog LoTemp = i * 5 Internal Heatsink Temperature Sensorselse HiTemp = LoTemp + 5 lobound = TempTablei hibound = TempTablei+1Connecting Sensors and Actuators to Input/Outputs RC Pulses Output RC Pulse Output OverviewRC Pulse Output Overview Servo Connection to RevA Controllers Connector Location and PinoutConnecting Servos to Controllers RC Pulses OutputConnecting to Slave Controllers Servo Connection to RevB ControllersConnecting to Slave Controllers Pulse Width 1.00ms Pulse Timing InformationCommand Value 1.50msRC Channel Testing Using the PC Utility RC Channel Testing Using the PC UtilityRC Pulses Output Connecting and Using the Encoder Function Optical Incremental Encoders OverviewOptical Incremental Encoders Overview Recommended Encoder Types Connecting and Using the Encoder FunctionConnecting the Encoder Connecting the EncoderPulse Frequency in Hz = RPM / 60 * PPR Name Cable Length and Noise ConsiderationsMotor - Encoder Polarity Matching Cable ColorVoltage Levels, Thresholds and Limit Switches Voltage Levels, Thresholds and Limit SwitchesWiring Optional Limit Switches Wiring Limit Switches Without Encoders Wiring Limit Switches Without EncodersEffect of Limit Switches Motor 1 FwdMotor 2 Fwd Using the Encoder Module to Measure DistanceUsing the Encoder to Measure Speed Motor 2 RevUsing the Encoder to Track Position Important NoticeUsing the Encoder to Track Position The actual formula is as follows Distance = Destination - Counter value / DividerEncoder Testing and Setting Using the PC Utility RS232 Communication with the Encoder ModuleRS232 Communication with the Encoder Module Connecting and Using the Encoder Function Selecting the Position Mode Closed Loop Position ModeMode Description Mode DescriptionPosition Feedback Position Sensor Gear box Position Sensor SelectionSensor Mounting Closed Loop Position ModeFeedback Potentiometer wiring Feedback Potentiometer wiring in RC or RS232 ModeFeedback Potentiometer wiring Feedback Potentiometer wiring in Analog Mode Analog Feedback on Single Channel Controllers Feedback Wiring in RC or RS232 Mode on Single Channel ControllersFeedback Wiring in Analog Mode on Single Channel Controllers Analog Feedback on Single Channel ControllersUsing Optical Encoders in Position Mode Sensor and Motor PolarityAdding Safety Limit Switches Important Safety WarningEncoder Error Detection and Protection Encoder Error Detection and ProtectionFIGURE 62. Safety limit switches interrupting power to motors Using Current Limiting as Protection Control Loop DescriptionUsing Current Limiting as Protection PID tuning in Position Mode PID tuning in Position Mode Applied Power = Command Value - Actual Position * Proportional GainClosed Loop Position Mode Closed Loop Speed Mode Selecting the Speed ModeTachometer or Encoder Mounting Using Optical Encoder for Speed FeedbackDigital Optical EncodTachometer wiring Closed Loop Speed ModeSpeed Sensor and Motor Polarity Speed Sensor and Motor PolarityAdjust Offset and Max Speed PID tuning in Speed Mode PID tuning in Speed ModeIn Speed Mode, the Integral component of the PID is the most important and must be set first. The Proportional and Differential component will help improve the response time and loop stability Normal and Fault Condition LED Messages Use of the LED DisplayUse of the LED Display Possible Display Motor Direction StatusNormal and Fault Condition LED Messages MotorFault Messages Fault MessagesNo Control Rapidly FlashingTemporary Faults Permanent FaultsSelf-Test Display = Software version 1.9b Self-Test DisplayNormal and Fault Condition LED Messages SECTION 12 R/C Operation Pin1 Connector I/O Pin Assignment R/C ModeSelecting the R/C Input Mode R/C OperationR/C Input Circuit Description Supplied Cable DescriptionR/C Input Circuit Description Powering the Radio from the controller FIGURE 74. RC Cable wiring diagramFIGURE 75. RC connection cable Powering the Radio from the controller Connecting to a Separately Powered Radio Operating the Controller in R/C modeReception Watchdog Reception WatchdogImportant Notice about PCM Radios R/C Transmitter/Receiver Quality ConsiderationsDeadband Parameter Value Joystick Deadband ProgrammingJoystick Deadband Programming Deadband as Percent of full Joystick TravelLeft/Right Tuning Adjustment Joystick CalibrationAutomatic Joystick Calibration Automatic Joystick CalibrationData Logging in R/C Mode On before entering joystick calibrationData Logging in R/C Mode DB15 MaleTo Controller R/C Operation Analog Control and Operation Connector I/O Pin Assignment Analog Mode Analog Control and OperationConnecting to a Voltage Source Connecting a PotentiometerConnecting to a Voltage Source Selecting the Potentiometer Value Analog Deadband Adjustment Data Logging in Analog Mode Power-On SafetyUnder Voltage Safety Motor Power at 0%Data Logging in Analog Mode Analog Control and Operation Serial RS-232 Controls and Operation Use and benefits of RS232Use and benefits of RS232 Connector I/O Pin Assignment RS232 Mode Serial RS-232 Controls and OperationCable configuration Extending the RS232 CableCable configuration Communication Settings 9600 bits/s, 7-bit data, 1 Start bit, 1 Stop bit, Even ParityEstablishing Manual Communication with a PC RS232 Communication with the Encoder Module Establishing Manual Communication with a PCRoboteq v1.9b 06/01/07 s Entering RS232 from R/C or Analog mode Data Logging String in R/C or Analog modeCommand Acknowledgement Commands Acknowledge and Error MessagesRS232 Mode if default Command ErrorCommand Controller Commands and QueriesRS-232 Watchdog TypeQuery Power Applied to Motors Set Motor Command ValueSet Accessory Output Controller Commands and QueriesQuery Amps from Battery to each Motor Channel Syntax?r or ?R Query Analog InputsQuery Heatsink Temperatures ?m or ?MQuery Digital Inputs Query Battery VoltagesReset Controller ExamplesAccessing & Changing Configuration Parameter in Flash Accessing & Changing Configuration Parameter in FlashApply Parameter Changes Read parameterFlash Configuration Parameters List LocationActive after Access Input Control ModeMotor Control Mode After ResetAmps Limit AccelerationDefinition Input Switches Function Exponentiation on Channel 1 and Channel Left/Right AdjustRC Joystick or Analog Deadband 08 - Channel0B - Encoder Default Encoder Time Base 1 andDefault Encoder Distance Divider 0C - Encoder0F - Proportional Gain Default PID GainsJoystick Min, Max and Center Values 10 - Integral GainReading & Changing Operating Parameters at Runtime Reading & Changing Operating Parameters at RuntimeAccess Read/Write Effective Instantly Operating Modes RegistersRead/Change PID Values 80 - ChannelAddress Access Read/Write Effective Instantly PWM Frequency RegisterController Status Register Fault ConditionModel or Function Controller Identification RegisterCurrent Amps Limit Registers 8B - ChannelRead Encoder Counter RS232 Encoder Command SetSet/Reset Encoder Counters and Destination Registers RS232 Encoder Command Set7 Set Encoder 1 destination register with value in buffer Read Speedq or !Q n 8 Set Encoder 2 destination register with value in bufferRead Encoder Limit Switch Status Read DistanceRead Speed/Distance Switch Important NoteRead / Modify Encoder Module Registers and Parameters n ValueParameter Description SizeEncoder Hardware ID code Switch StatusRegister Description Address *84Counter 1 and Speed or Distance 1 orCounter Read/Write Mailbox Destination Register 1 andTime Base 1 and Distance 1 andSpeed 1 and Encoder ThresholdDefault Value Counter Read Data FormatRC Pulse Outputs Activation Counter Read Data FormatDecimal 32-bit HexController Output Automatic Switching from RS232 to RC Mode Automatic Switching from RS232 to RC Mode00 11 22 33 44 55 66 77 88 99 AA BB CC Analog and R/C Modes Data Logging String FormatData Logging Cables Decimal to Hexadecimal Conversion Table Decimal to Hexadecimal Conversion TableAX3500 Motor Controller User’s Manual Decimal to Hexadecimal Conversion Table AX3500 Motor Controller User’s ManualAX3500 Motor Controller User’s Manual SECTION 15 Configuring the Controller using the Switches Programming using built-in Switches and DisplayProgramming Methods Entering Programming Mode Configuring the Controller using the SwitchesProgram Changing parameters The Special Case of Joystick CalibrationProgramming using built-in Switches and Display Programmable Parameters List Restoring factory defaultsExiting the Parameter Setting Mode This manual is for software version 1.9bcannot be selected using the switches Possible Values defaultFor safety reasons, the modes below Programmable Parameters ListOrder SECTION 16 Using the Roborun Configuration Utility Downloading and Installing the UtilitySystem Requirements Connecting the Controller to the PC Using the Roborun Configuration Utility1- Program Revision Number Roborun Frame, Tab and Menu DescriptionsRoborun Frame, Tab and Menu Descriptions 2- Controller and Communication Link Information4- File and Program Management Commands Getting On-Screen Help3- Parameter Selection and Setting and Special Functions 5- View Controller Connector PinoutLoading, Changing Controller Parameters Control SettingsLoading, Changing Controller Parameters 1- Controller Input4- Emergency Stop or Invert Switch Select Power Settings3- Input Command Adjustment 5- Effect of Digital Inputs3- Acceleration Setting Analog or R/C Specific SettingsLoading, Changing Controller Parameters 2- Left/Right Adjust 1- DeadbandEncoder Setting and Testing Closed Loop ParametersEncoder Module Parameters Setting Encoder Setting and TestingRC Output Testing Exercising the MotorsViewing Encoder Data Running the Motors Running the Motors2- Motor Power setting 1- Run/Stop Button3- Measurement 4- Real-Time Strip Chart Recorder 6- Input Status and Output Setting5- Transmit and Receive Data 8- Joystick Enable Logging Data to Disk7- Data Logging and Timer 4- Reset Timer buttonData type/range Connecting a JoystickParameter Header Measured ParameterUsing the Console 2- Command Entry1- Terminal Screen 4- Send Reset String Viewing and Logging Data in Analog and R/C ModesLoading and Saving Profiles to Disk Viewing and Logging Data in Analog and R/C ModesOperating the AX3500 over a Wired or Wireless LAN Updating the Controller’s Software Updating the Controller’s SoftwareCreating Customized Object Files Updating the Encoder SoftwareCreating Customized Object Files Using the Roborun Configuration Utility Mechanical Specifications Mechanical DimensionsMechanical Dimensions Mounting Considerations Thermal ConsiderationsMechanical Specifications Attaching the Controller Directly to a Chassis Attaching the Controller Directly to a ChassisPrecautions to observe Wire Dimensions WeightWire Dimensions Mechanical Specifications AX3500 Motor Controller User’s ManualVersion 1.9b. June 1
Related manuals
Manual 2 pages 10.03 Kb