VEX Forum

VEX Forum (http://www.vexforum.com/forum.php)
-   Technical Discussion (http://www.vexforum.com/forumdisplay.php?f=28)
-   -   Power Expander analysis (http://www.vexforum.com/showthread.php?t=64393)

jpearman 02-21-2012 11:44 PM

Power Expander analysis
 
1 Attachment(s)
I had the necessity to take a look in more detail at the functionality of the VEX power expander today and though others may find the results interesting. The power expander, as I'm sure everyone knows, allows up to four external RC servos or motors to be powered from an additional battery rather than the main system battery. Inside the power expander a microchip PIC microcontroller provides all system functionality. The PIC not only gives status feedback by means of a tri-color LED (actually red and green leds that show yellow when they are both on), but also monitors the external input voltage, the voltage after the polyfuse and also the power coming from the cortex. The PIC is able to enable and disable power from the external battery to the motors so as to follow system power from the cortex.

External voltage detection has two thresholds, once the voltage drops below these levels the status led is set until the system is reset by power cycling.

Green LED, external voltage above 6V
Yellow LED, external voltage between 6V and 5.3V
Red LED, external voltage below 5.3V

The PIC is powered from a 5V linear regulator, an external voltage of 5.3V is probably right at the threshold for creating a stable 5V for the PIC.

Input PWM signals are routed directly to the output, all grounds are tied together.

The polyfuse is an HR16-400, replacements are available from Digikey and other part suppliers for about 50c but I have no idea as to the legality of replacing any internal components.



Here is a simplified block diagram (none of the passive components are shown).

http://www.vexforum.com/attachment.p...1&d=1329888852

I make no claims for this information to be 100% accurate, the diagram is drawn from my own observations so use at your own risk.

jpearman 02-27-2012 12:11 AM

Re: Power Expander analysis
 
1 Attachment(s)
I put together a schematic for the power expander if anyone is interested. The usual disclaimers apply.

http://www.vexforum.com/attachment.p...1&d=1330323027

jgraber 02-27-2012 08:16 AM

Re: Power Expander analysis
 
It would be good to post this data to the wiki as well as here.

jpearman 04-03-2012 03:43 PM

Re: Power Expander analysis
 
I'm bumping this thread only because I wanted to comment on something posted in the EasyC tech support thread.

Quote:

Originally Posted by kingofl337
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.

Two models would make a lot of sense, I have an "old model" which was what the analysis in this thread was based on, I did suspect there was a "new model" and have had one on backorder for several weeks :(

Anyway, for my old model this was the conversion factor needed to go from analog input in the range 0-4096 to mV (ROBOTC code but the idea is the same for EasyC)

battery2Level = (int)((float)SensorValue[ BATERY_2_PORT ] * 5.46);

This is essentially the same number as on the wiki, the difference being that the wiki shows how to go from a 10 bit value to volts rather than milli volts.

There's a little more technical detail behind this in this post as well.

http://www.vexforum.com/showpost.php...78&postcount=1


All times are GMT -6. The time now is 09:34 AM.


VEX and VEX Robotics are trademarks or service marks of Innovation First International, Inc.
Copyright © 2002-2013. All Rights Reserved. VEX Robotics, Inc. is a subsidiary of Innovation First International, Inc.
All other product names/marks of others are the property of their respective owners.