JJCam.lua - Enhancements for non-ttl hot shoe flash operation.

  • 3 Replies
  • 955 Views
Advertisements
Hi friends, this is my first CHDK script.

Recently I bought a Yongnuo YN560-IV (that is non ttl) for my canon SX50 and for my surprise it didn't work.
After a lot of research and a lot o tries I discovered that this flash work in any mode if you change from "continous" to "single" shot mode.

So the first bad thing is it, you need to release and press again the shutter button to take continuous photos.

Based on this I made this script that enable you to take "continuous shot" photos in camera "single shot" mode and of course triggering the non ttl hot shoe flash.

I tried in any mode (except AUTO) and the script worked in all of them.

Operation:
MENU: Exit Script
HALF PRESS: Half Press
FULL PRESS: Full Press (if you hold full press it takes continuous shot)
ZOOM KEYS: Zoom Keys working

Download the script HERE

History:
v0.1 - Initial release - Make continuous shot and zoom keys working.
« Last Edit: 16 / July / 2015, 19:48:17 by jairbj »

Re: JJCam.lua - Enhancements for non-ttl hot shoe flash operation.
« Reply #1 on: 16 / July / 2015, 19:23:59 »
Download the script HERE
Nice job for a first script !  But the download link is broken.

Try this :   Download the script HERE

Also, the script header is a bit strange :

Code: [Select]
--[[
*******************************************
     CHDK Plus v2.8
     Licence: GPL
    (c) waterwingz,msl,wayback/peabody 2014
    artistic direction provide by fabri22
*******************************************
@title JJCam v0.1
@chdk_version 1.3

--]]
set_exit_key("no_key")


function restore()
    set_aflock(0)
set_aelock(0)
end

function check_zoom_keys()
    if is_key("zoom_in")  then
while(is_pressed("zoom_in")) do
press("zoom_in")
sleep(10)
end
release("zoom_in")
    elseif is_key("zoom_out") then
press("zoom_out")
while(is_pressed("zoom_out")) do
sleep(10)
end
release("zoom_out")           
    end
end

function half_press()
-- read the meter
press("shoot_half")

-- wait camera ready
repeat
sleep(50)
until get_shooting() == true
--lock af and ae
set_aflock(1)

-- wait full press or release half_press
repeat
wait_click(100)
-- full press
if is_key("shoot_full") then
full_press()
end
until (not(is_pressed("shoot_half")))
set_aflock(0)
release("shoot_half")
end

function full_press()
-- repeat until release full press
repeat
ecnt=get_exp_count()
press("shoot_full_only")
-- wait camera is available for another shot
repeat
sleep(20)
until(get_exp_count()~=ecnt)
release("shoot_full_only")
wait_click(100)
until (not(is_pressed("shoot_full")))
end

print("JJCam Loaded!")
repeat
wait_click(200)

if (is_key("shoot_full") or is_key("shoot_half")) then
half_press()
else
check_zoom_keys()
end
until ( is_key("menu") )
restore()
print("JJCam Halted.")
-- eof --
« Last Edit: 16 / July / 2015, 19:29:26 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: JJCam.lua - Enhancements for non-ttl hot shoe flash operation.
« Reply #2 on: 16 / July / 2015, 19:52:39 »
Nice job for a first script !  But the download link is broken.

Thanks for the tips!!!

I repaired the download link. Also change the header. (I copied the header from another script and forget to change).

Re: JJCam.lua - Enhancements for non-ttl hot shoe flash operation.
« Reply #3 on: 16 / July / 2015, 19:55:01 »
Also change the header. (I copied the header from another script and forget to change).
Yes ... some of the code looked a little familiar  :-X  Glad you got it working to solve a "real world" problem.
Ported :   A1200    SD940   G10    Powershot N    G16


 

Related Topics