supplierdeeply

A495 porting thread

  • 346 Replies
  • 46842 Views
  • Publish
    Re: A495 porting thread
    « Reply #330 on: 03 / August / 2011, 04:38:11 »
    Advertisements
    I am trying to make a self-made USB remote work with the camera (so far unsuccesfully). Before I dismantle the electrical wiring again, I thought about asking whether I should add some #defines in the source and recompile CHDK for the remote to work or it is supposed to be enabled by default in software for the A495? (There is such an option in the CHDK menu, but should it work as is?).

  • Publish
    Re: A495 porting thread
    « Reply #331 on: 03 / August / 2011, 07:01:37 »
    I am trying to make a self-made USB remote work with the camera (so far unsuccesfully). Before I dismantle the electrical wiring again, I thought about asking whether I should add some #defines in the source and recompile CHDK for the remote to work or it is supposed to be enabled by default in software for the A495? (There is such an option in the CHDK menu, but should it work as is?).
    Its built into the code by default and should work as is.  There are no #defines to add or change.

    Try testing with the standard USB cable that connects your camera to your computer.   If you plug and unplug quickly once it should make your camera "half press" the shutter button.  Quickly plug and unplug again and it will take a picture.  Its a bit fussy.

    There has been some talk of trying to improve the USB remote code.
    « Last Edit: 03 / August / 2011, 07:05:31 by waterwingz »

  • Publish
    Re: A495 porting thread
    « Reply #332 on: 03 / August / 2011, 10:30:30 »

  • Publish
    Re: A495 porting thread
    « Reply #333 on: 04 / August / 2011, 04:20:00 »
    Thanks for the hint, waterwingz! Effectively, with the bundled USB cable and a computer I was able to trigger remotely my A495. Then I discovered I had wired the cable the wrong way (positive to negative), dismantled the remote assembly and resoldered the wires. The remote -- made from a 1 euro worth Tesco keychain light, an old mini-USB cable and some epoxy putty -- works perfectly now. I didn't test lower voltages, but for sure 4,5 V from the three button cells is enough to trigger a shoot.


  • Publish
    Re: A495 porting thread
    « Reply #334 on: 12 / October / 2011, 06:53:27 »
    Hi!

    And thanks for portin CHDK to A495 :)

    Iam trying to set Camera focus to infinity and it seems that button commads are not working correctly.

    Heres the script i run whenever camera powers up. (Power button is pressed down all the time) and script is set to autorun.

    When script runs it start to cycle modes like "crazy" and then finaly when set is pressed it stops and stays to "Infinity" or some times "Macro". So it works but with strange cycle and wont set it allways right.

    The click "right" key wont work at all.. Bug?

    My camera has 1.00F firmware.

    Code: [Select]
    sleep 2000
    print "Chage focus to infinity"
    sleep 2000
    click "shoot_half"
    sleep 2000
    click "left"
    sleep 2000
    click "left"
    sleep 2000
    click "left"
    sleep 2000
    click "set"
    sleep 2000
    print "End script"
    end
    « Last Edit: 12 / October / 2011, 07:37:18 by Cobo »

  • Publish
    Re: A495 porting thread
    « Reply #335 on: 13 / October / 2011, 10:05:20 »
    I am a bit of a newbie so if these questions have been addressed before I apologize but my searching yielded no results. 

    I am able to load CHDK (1.00F) and run a basic intervalometer script (shoot, sleep, repeat).  I am having trouble getting the "click" keys to work.  click "menu" works in the script but I can't get any of the directional "click"s to work. 

    Also, is there a command to disable the LCD screen?

    Thanks for the reply and for the port.

    Cheers!

    *

    Offline msl

    • *****
    • 1173
    • A720 IS, SX220 HS 1.01a
      • CHDK inside
  • Publish
    Re: A495 porting thread
    « Reply #336 on: 13 / October / 2011, 11:15:03 »
    click "menu" works in the script but I can't get any of the directional "click"s to work.
     

    Maybe the click command is too fast for the A495. Try this sequence:
    Code: [Select]
    press("right")
    sleep(150)
    release("right")
    Play with the sleep value.

    Also, is there a command to disable the LCD screen?

    No, you can only switch off the LCD backlight
    Code: [Select]
    set_backlight(0|1)
    -- 0 = off; 1 = on
    The command must be set again after each shoot.

    msl
    German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
    Note: SDM violates the GPL rules!

  • Publish
    Re: A495 porting thread
    « Reply #337 on: 13 / October / 2011, 17:39:57 »
    The set_backlight command works perfectly!  Thanks
    Code: [Select]
    set_backlight(0|1)  -- 0 = off; 1 = on

    Maybe the click command is too fast for the A495. Try this sequence:
    Code: [Select]
    press("right")
    sleep(150)
    release("right")
    Play with the sleep value.
    Unfortunately still no luck with with the directional buttons inside the menu.  Interestingly, if I do a
    Code: [Select]
    click "directional_button"outside the scope of the menu they work as expected however I am still unable to navigate around the menu.  I'm assuming there are some native CHDK commands to set the parameters I'm trying set (e.g. AF-Assist Beam off) which would make navigating the menu unnecessary.  I guess I'll go scour some more.

    Thanks again!




    *

    Offline msl

    • *****
    • 1173
    • A720 IS, SX220 HS 1.01a
      • CHDK inside
  • Publish
    Re: A495 porting thread
    « Reply #338 on: 13 / October / 2011, 18:04:30 »
    I'm assuming there are some native CHDK commands to set the parameters I'm trying set (e.g. AF-Assist Beam off) which would make navigating the menu unnecessary.  I guess I'll go scour some more.

    Some functions you can set over propertycases (A495 = propset 3): http://chdk.wikia.com/wiki/Propertycase#New_Digic_IV_.28propset3.29
    Code: [Select]
    set_prop(5, 0|1)
    -- 5 = propertycase for AF Assist Beam
    -- 0 = off; 1 = on

    Not all functions can be influenced by setting the propertycases!

    Read also more about detection of unknown propertycases: http://chdk.wikia.com/wiki/Propertycase#Discovering_PropertyCase_meanings_and_values

    msl
    German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
    Note: SDM violates the GPL rules!

  • Publish
    Re: A495 porting thread
    « Reply #339 on: 23 / November / 2011, 15:47:32 »
    I also am a A495 user with the 100f as yourself but I am a very very very much newbie and don't know where to start. Any chance of a run down?
    Ted

     

    Related Topics