Showing posts with label IXY Digital 70. Show all posts
Showing posts with label IXY Digital 70. Show all posts

Sunday, October 28, 2012

CHDK coding on my IXY Digital 70

Decided to have a play around with CHDK scripts available for my camera, and saw that the coding was very easy to follow. So I decided to create my own using some minor pieces from the example scripts provided on the CHDK wiki.

CHDK Screen

I wanted a script that would continuously take photo's for the duration of the flight and would require minimal fiddling around to start. By this I wanted to reduce/remove  any button clicks that may result in a setting being changed pre-launch that could jeopardize the mission.

Below is the code I have started with. It has the following features.  Note that it works with my Canon IXY Digital 70 and may not suit all camera's.

  • Sets a 1st shot delay. No point going all snap happy with the box still on the ground.
  • Variable shot interval
  • Logging of camera internal temperature and battery voltage to SD card.
    • Saw this as a backup temp data logger for the flight
  • Disable flash.
    • Couldn't find a single command for this so had to create a loop that pressed the flash button until it was off.
  • Disables LCD screen.
    • Read in the script manual, that the screen automatically resumes when you take a picture. For the screen to be turned off you must also allow for the picture to be written to SD card otherwise the screen will just come back on again. I saw this happening so added the 'sleep 500' to give it enough time to save.

Happy for any comments and tips, as its my first CHDK script so I'm sure there may be improvements I can make.


<davCam.bas>


@title DavCam
@param a interval (sec)
@default a 12
@param d Delay 1st Shot (sec)
@default d 20
@param n fileNum
@default n 1

if a<5 then a=5
a=a*1000
if d<1 then d=1
d=d*1000

print "Script will run"
print "until interrupted"
gosub "disFlash"
playsound 1 
sleep d
cls

print_screen n
print get_time 4;"/";get_time 3;"/";get_time 5;" ";get_time 2;":";get_time 1;":";get_time 0
print " "
print "Time,Optics Temp,CCD Temp,BattmV"

o = get_day_seconds

:main
    gosub "getData"
    gosub "takePic"
    set_backlight 0
    sleep a
    rem set_backlight 1
goto "main"

:takePic
    set_zoom 0
    do
        get_zoom z
    until z = 0
    shoot
    sleep 500
    return

:getData
    print (get_day_seconds - o);",";get_temperature 0;",";get_temperature 1;",";get_vbatt;
    return

:disFlash
    f=get_flash_mode
    while f<1
    click "right"
f=get_flash_mode
sleep 500
    wend
    print get_flash_mode
    return

:restore
    set_backlight 1
    end

So far I have set the camera to launch the script when powered on. So hopefully when the launch commences its a matter of pressing one button and that's it.

I haven't looked into exposure settings yet, as I don't really know what will be best for high altitudes. So maybe people reading this may have some ideas.


Friday, October 26, 2012

Camera Trials 2

After placing the CHDK software on my IXY Digital 70, I quickly realized that the software didn't remain active after a power down. No big deal, but for the launch it needs to be active at power on.

Simply followed the Make SD Card Bootable steps and it seems to have done the trick.

Installed one of the Intervalometer scripts and have been playing around with it and some other settings.
I am looking for a script that will allow the camera to take photo's continuously at a set interval and so far this script seems to do that.  I just need to tweak it so the camera runs at its lowest power consumption. Which means I need to work out how I can shoot with the LCD off.

Also need to get myself a larger SD card for the camera. I tried an 8 GB card and the camera didn't recognize it, so I'm hoping its just the type of card and not a size thing. The current card I have is only 1 Gig and with my current tests I max the card out before the battery runs flat. When I set the quality to minimum I seem to get about 1.5 hours of battery life.  I'd assume that using high res shot would take a little more out of the battery then a lower res, but either way I will have to look at a battery expansion.

Will have to open the camera up and attach an external battery pack



Wednesday, October 17, 2012

Camera Trials - Installing CHDK on IXY Digital 70CHDK Menu

Been really eager to get into some testing and recently received an E-Bay purchase of a Canon IXY Digital 70 camera. So now that I have it I plan to mod it with the CHDK tool and see what its capable of. Camera was really cheap but will be a great initial est unit. It may make the flight if the tests are good.


Here are the steps I am taking to get the CHDK tool working on the camera. May come in handy for other experimenters.

1. I followed the FAQ on the CHDK site, which gets you to create an empty ver.req or vers.req on the cameras SD card. With the SD card inserted I just hold the Func and Disp buttons and the version is displayed.  Though I did do this first I then also found another tool that does all the work for you.

Found a tool called ACID on the FAQ page which just with a simple photo it will tell you what you need to run CHDK. This is what I ended up doing.

After running ACID I simply took a photo with the camera and dragged it into the App and got the below results.

My results running ACID


 Ticked the download stable CHDK full build and clicked the Download stable CHDK. The app then downloads and extracts into a Stable CHDK folder into the apps working directory.

2. Next I read the Preparing SD Card FAQ which gives more detail and a few other methods, but really all I did was copy the files downloaded to the SD card, in playback mode , choose firmware upgrade from the camera's playback menu. It then asks for confirmation to upgrade and it was that easy.

Following the upgrade I was able to press the printer button and the CHDK menu appears

CHDK Menu
First steps complete.  Now to have a play around and check out some scripts to see what this puppy can do  :-)

Edit :- Since doing some testing I have realized that you need to make the SD card bootable so that the CHDK tool will be available when you first turn the camera on.