Battery min and max voltages questions - General Discussion and Assistance - CHDK Forum

Battery min and max voltages questions

  • 3 Replies
  • 4730 Views
Battery min and max voltages questions
« on: 17 / November / 2009, 20:25:20 »
Advertisements
Does the battery min and max settings have any effect on when the camera turns off, or is it just for calibrating the icon/percentage on the OSD?

I'm running an A720 with NiMH cells.  Lately I've been getting the "change the batteries" and power off even with 2.5-2.6v~ left.

Just turning it back on several times will get it to stay on.  Right now I'm recording video to test battery runtime.  I'm at 2.2 volts and still chugging.

Surely the second half of my question/issue has nothing to do with CHDK, but it couldn't hurt to ask.  (Yeah, very open ended question I know.  lol)

Thanks and keep up the great work on CHDK!

*

Offline reyalp

  • ******
  • 14125
Re: Battery min and max voltages questions
« Reply #1 on: 17 / November / 2009, 20:33:47 »
The CHDK values only affect the CHDK display, not camera behavior.

http://chdk.setepontos.com/index.php/topic,4037.msg37834.html#msg37834 may be of interest.
Don't forget what the H stands for.

Re: Battery min and max voltages questions
« Reply #2 on: 20 / November / 2009, 12:05:45 »
Hi,
I have both a 2 battery A720 and a 4 battery sx10.  I need to maintain two separate CCHDK.CFG files because of this.  I wonder if there is any way to have CHDK recognize the different cameras and use different battery min and max values.

Re: Battery min and max voltages questions
« Reply #3 on: 20 / November / 2009, 12:26:48 »
In the SDM code, conf.batt_volts_max and conf.batt_volts_min are set to < 1500.

In \core\gui.c \gui_init():-

    if(conf.batt_volts_max<=1500) conf.batt_volts_max = get_vbatt_max();
    if(conf.batt_volts_min<=1500) conf.batt_volts_min = get_vbatt_min();


David

 

Related Topics


SimplePortal © 2008-2014, SimplePortal