@title BatteryCheckgosub "Init"for i = 1 to n for j = 1 to k gosub "ClickAndMeasure" next j d = v - u e = (p * 1000 / u) - (q * 1000 / v) r = 1000 * d / e print d, "mV dif; R", r, "mOhm" next iend :Init @param k Click cycle length @default k 3 @param n Sample size @default n 2 @param p LCD-on power (mW) @default p 1300 @param q LCD-off power (mW) @default q 350 @param t Delay (sec) @default t 10 return :ClickAndMeasure click "display" z = get_display_mode rem z=2 means LCD off if z = 1 or z = 2 then gosub "Measure" else sleep 1000 endif return :Measure gosub "Delay" if z = 1 then let u = get_vbatt if z = 2 then let v = get_vbatt return :Delay gosub "BlueBlink" for m = 1 to t gosub "OrangeBlink" next m return:BlueBlink set_led 8 1 60 sleep 100 set_led 8 0 return:OrangeBlink set_led 7 1 60 sleep 100 set_led 7 0 sleep 900 return
...- The parameters P1 and P2 should be known; I measured it once for my camera using a current meter: 1300 mW with LCD on, and 350 mW with LCD off (camera model A720IS). These values probably depend somewhat on the camera model.
It might be fun to use more than one point (such as LCD switching you are measurening now, coupled with measurement in autofocus idle and half shoot) or just maximize the high current (half shoot in auto focus when LCD on) for greater accuracy.
Quote from: Bagger288 on 15 / November / 2008, 19:59:04P1 and P2 should be known; I measured it once for my camera using a current meter: 1300 mW with LCD on, and 350 mW with LCD off (camera model A720IS). When you "switch" off the LCD on your A720, you switch off the LCD, the sensor & also the whole internal image processing, that's why there's such a big difference...the LCD itself has a much lower power consumption.
P1 and P2 should be known; I measured it once for my camera using a current meter: 1300 mW with LCD on, and 350 mW with LCD off (camera model A720IS).
Hi, I'm trying to use this script but when I run it gives the error: "uBASIC: Unk stmt". Any idea?Thanks.
Started by cosmograph
General Discussion and Assistance
Started by Sess
RAW Shooting and Processing
Started by waterwingz
« 1 2 »
Started by Andre-K
General Help and Assistance on using CHDK stable releases
Started by c_joerg
Creative Uses of CHDK