# Query "?a" returns a hexadecimal value

13 years 8 months ago #29526738 by Anonymous
Query "?a" returns a hexadecimal value was created by Anonymous
I'm sending the query "?a" to the AX1500 in order to know the Amps flowing from the battery to motors but it returns an hexadecimal value (for example "05") which converted to decimal is 5...the problem is that it does not correspond to 5 ampere (I've measured it with a multimeter). How can I do to get the right value (around 1.25 ampere)?

13 years 8 months ago #29526739 by Roboteq
Replied by Roboteq on topic RE: Query "?a" returns a hexadecimal value
You need to divide the result by 4 on the AX1500

13 years 8 months ago #29526740 by Anonymous
Replied by Anonymous on topic RE: Query "?a" returns a hexadecimal value
I'm having some trouble here with the current measurement. Are you completely sure that I should divide by 4
the results from the controller 8-bit output? Moreover, may I know how you calculate the Motor current (not the power supply one) in your software please?

13 years 8 months ago #29526741 by Roboteq
Replied by Roboteq on topic RE: Query "?a" returns a hexadecimal value
The divider is:
AX2550 = 1
AX3500 = 2
AX1500 = 4
AX500 = 8

Motor Amps is computed as follows:
MotorAmps = BatteryAmps * 128 / PWM