VEX Forum Power Expander
 User Name Remember Me? Password
 Portal Register Wiki Members Calendar Search Today's Posts Mark Forums Read Rules

 Technical Discussion Open Technical Discussion of the VEX Robotics System.

#1
04-03-2012, 10:52 AM
 Freepro Junior Member VEX # 4221A Join Date: Mar 2012 Location: In my dreams Posts: 4
Power Expander

On my team's robot, we are trying to read the voltage of the battery of the power expander. To do that, I have to read the value of status wire that connects to the analog/digital port from the power expander. How would you do that in easy c?
#2
04-03-2012, 02:00 PM
 kingofl337 Senior Member Join Date: Jul 2006 Location: Manchester, NH Posts: 760
Re: Power Expander

You just read the analong voltage from the power exapander and some math to scale the input upto battery levels. Here is the wiki for the math. If you use their Cortex example you need to use Analog Input High Resolution.

http://www.vexforum.com/wiki/index.php/Power_Expander
__________________
Intelitek Support
PH: 800 221 2763
E-Mail: Support@intelitek.com

V4-Cortex : 4.2.1.9
V5-Cortex & IQ : 5.0.0.2

Like Intelitek on Facebook
#3
04-03-2012, 02:21 PM
 Freepro Junior Member VEX # 4221A Join Date: Mar 2012 Location: In my dreams Posts: 4
Re: Power Expander

How would you read the analog voltage from the power expander.
#4
04-03-2012, 02:50 PM
 kingofl337 Senior Member Join Date: Jul 2006 Location: Manchester, NH Posts: 760
Re: Power Expander

Wire it as shown in the Wiki and then Call "Get Analog Input HR". Then look at the value returned.

I'm waiting to hear back from Vex on the output in relationship to the battery voltage. I've been told there are two models of expander and the values are diffrent between them. But, for now if you want to cheat, you could take a battery fully charged and one fully drained, get the two values and decide from there what to do with an IF statement.
__________________
Intelitek Support
PH: 800 221 2763
E-Mail: Support@intelitek.com

V4-Cortex : 4.2.1.9
V5-Cortex & IQ : 5.0.0.2

Like Intelitek on Facebook

Last edited by kingofl337; 04-03-2012 at 03:05 PM.

 Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)