Hi,
I am using a script to take an image that is triggered by motion detection. The script works correctly, the camera shoots after motion detection, but there is a problem because after shooting, the LCD screen turns on, this is a drawback for the battery life, so the LCD screen must remain off after shooting while the script is running.
I have been using this script on my old Pawershoot
S110 (it finally died). The script worked correctly and the LCD screen remain off after shooting
This is the scrip:
--[[
@title Motion Detect
@chdk_version 1.3
@param f Trigger Threshold
@default f 5
@param p Trigger Delay (mSec)
@default p 600
]]
function restore()
set_lcd_display(1)
end
a=8 -- columns to split picture into
b=8 -- rows to split picture into
c=1 -- measure mode (Y,U,V R,G,B) Γ’β¬" U=0, Y=1, V=2, R=3, G=4, B=5
d=300000 -- timeout (mSec)
e=200 -- comparison interval (msec) - less than 100 will slow down other CHDK functions
g=0 -- draw grid (0=no, 1=grid, 2=sensitivity readout, 3=sensitivity readout & grid) antes estaba con 3
h=0 -- not used in LUA - in uBasic is the variable that gets loaded with the number of cells with motion detected
i=0 -- region masking mode: 0=no regions, 1=include, 2=exclude
j=0 -- first column
k=0 -- first row
l=0 -- last column
m=0 -- last row
n=0 -- optional parameters (1=shoot immediate)
o=2 -- pixel step
set_lcd_display(0)
repeat
zones = md_detect_motion( a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
if( zones > 0 ) then
press("shoot_half")
sleep(3)
press("shoot_full")
release("shoot_full")
release("shoot_half")
-- shoot()
end
until (false)
Version installed on
SX620HS:
CHDK for
sx620hs fw:100c PID:12995
build:1.5.1-6023_ALPHA date:Mon, 15 Nov 2021 00:58:14 +0100
Camera setup:
mode switch ( Smart auto)
auto mode
digital zoom off
AF-Point zoom off
AF- assist beam off
Flas setting On
Review image after shooting off
Grid lines off
Eco mode On
Start-up image On
CHDK set up:
Default options
I do the following:
1. Push power button. Camera start on Playback mode
2. Press halfway shutter button. Camera switch to shooting mode
3. Press haltway shutter button. Camera focuses and beeps
4. Press playback mode button. <alt> mode enabled
5. Press shutter button all the way down. Now the script is running and the scrren LCD turn off
6. When motion is detected camera shoot and LCD screen turn on and this is the problem; the batery charge drains quickly when LCD screen on
Any suggestions to get the LCD screen to stay off while the script is running?
Thanks you!!