Bifferboard presents it self as a very efficient device, requiring only 1W of power (5VDC @ 200mA) when used with 1 USB pen drive and Ethernet interface dis-connected, 1.5W (5VDC @ 300mA) with Ethernet interface connected, making it ideal for a battery-powered device. For that it is necessary to convert the 12VDC of the battery to the 5VDC required by Bifferboard, meaning that it will need an electronic circuit for this conversion. There are several electronic circuits/pre-assembled chips available to convert 12VDC to 5VDC but some are more efficient then others, also less linear and not so stable (introducing some noise into the 5VDC converted power supply). For better efficiency is is advised to use 5VDC Switched Regulators (also known by 'Step-Down Voltage Regulator'), meaning that this may reflect on some noise on the converted value, requiring extra components to filter that noise! To select an efficient Switched Regulator you should first evaluate your 'load' (what devices are you going to connect to the Bifferboard and measure the current that will drain form the power supply) so that you could check the datasheet of the regulator if the efficiency of that chip will comply with your needs. One Regulator may be very efficient when operating with a higher load but not so good when you remove part of that load (e.g.: Bifferboard with or without webcam connected). Note: The following chips/circuits/solutions serve only has a guide line and are highly dependable on the selected load and you may not achieve the same results! If you have achieved a better performance with other chips/solutions feel free to update this page. Please take extra care to specify your test conditions and make a list of the devices connected to bifferboard. 1) LM-2575-5 Pre-assembled 5VDC Switched Voltage RegulatorFor the first test it was used a pre-assembled Switched Regulator based on the following chip:http://www.national.com/mpf/LM/LM2575.html http://shop.ebay.com/i.html?_nkw=LM-2575-5&_sacat=0&_odkw=LM-2575-5&_osacat=0&_trksid=p3286.c0.m270.l1313 (this chips are a bit expensive, there are other solutions to be tested, will serve as base for the following experiences) It can accept input voltage up to 40VDC and supply an output current of 1A Also requires and external polarized capacitor to be connected to the input (+ of cap to Pin1) and GND (- of cap to Pin2). Used one 220uF/25V. Also requires and external polarized capacitor to be connected to the output (+ of cap to Pin3) and GND (- of cap to Pin2). Used one 220uF/25V. Pin1 (picture 1 -> left pin): Input (connect to 12VDC battery) Pin2 (picture 1 -> middle pin): Ground (connect it to GND of battery and Bifferboard) Pin3 (picture 1 -> right pin): 5VDC Output (connect it to Bifferboard VCC) Note: Bifferboard VCC is the middle pin on the connector. Example on how to connect the polarized capacitors (middle point is GND, pin2): 1.1) Hardware used for the tests- Bifferboard- Homemade Serial connector with Max3232 chip - 4GB USB Pen Drive for the root_fs (DANE-ELEC) - 4 Port USB2.0 Hub (TRUST) - 12VDC 7Ah battery (YUASA NP7-12) - Logitech Quickcam Pro 9000 webcam 1.2) Testing Bifferboard + PEN_USB_ROOTFS + Serial Cable Connected + Ethernet Dis-connected
Note: before making measurements bifferboard needs to boot to the end and get to the Idle Status (+- 25 secconds). From battery: 12.9VDC @ 117mA -> 1.509W From bifferboard: 5.6VDC @ 230mA -> 1.288W 1.2.1) Efficiency:Efficiency = (1.288/1.509)*100 = 85.35% 1.2.2) Battery Max time capacity - Teoric Value:Battery Max time capacity (Teoric Calculus) = 7000 (mAh) / 117 (mA) = 59.83 hours 1.3) Testing Bifferboard + USB_HUB + PEN_USB_ROOTFS + Serial Cable Connected + Ethernet Dis-connected
|


Ideas for reducing power further:
- Remove (de-solder) the blue power LED
- Remove (de-solder the lan LED
- Power down the IP101A PHY (see ftp://ftp.efo.ru/pub/wiznet/IP101ALF-DS-R06-07042005.pdf) there is a PHY register which can be written to put the PHY in suspend mode. The r6040 driver doesn't use this, but we could add to the driver an ethtool option to set the value, powering down the PHY. The data sheet suggests a
best case saving of around 125mA at 3.3v best case, 80mA at 3.3v worst case. Definitely worth looking at if you only need the network occasionally.
Thanks for the tips, I'm sure this will make a significant difference. Will try it and log new test for comparison.
On second thoughts, probably no point in involving ethtool. We can just power down the PHY when the module is unloaded (if r6040.c is compiled as a module). I have a suggested patch that I attached to give you an idea of what I mean. It was against 2.6.29.2 but hopefully it's clear. Note: I have not tested this or even compiled it!
Contraryly to what I first had thought , removing both leds won't make any difference. I've measured the current that flows to each led and it's already optimized, bifferboard will supply 1mA of current (not the value that I suspected, normally between 15 to 25 mA). I'm putting the leds back, they are cool! Will try your path, but I suspect that Ethernet will go down whenever you pull the plug cause I've noticed a difference of 100mA on the 5VDC line. (Ethernet cable attach -> will drain extra 100mA).
Also tested point 1.2) from 9VDC Power Supply (didn't had battery in hand):
From power supply: 8.4VDC @ 170mA -> 1.428W
From bifferboard: 5.1VDC @ 230mA -> 1.173W
Efficiency = (1.173/1.428)*100 = 82.14%
Supposing that you have one of these batteries:
http://www.battery-force.co.uk/detail_EN9VXX001A_Energizer_Ultra_6LR61_9V_Pack_of_1.html
Battery Capacity: 550.0mAh
Battery Max time capacity (Teoric Calculus) = 550 (mAh) / 170 (mA) = 3.24 hours
Real value would be less then the above!
I have just tried Biff's patch against a 2.6.30.5 kernel and it works perfectly fine, so this is no longer just theoretical. The patch works, it really does turn off the PHY when the interface goes down ("ifconfig eth0 down") and turns it back on when you do "ifconfig eth1 up".
Thanks Razvan ;)