CHDK firmware hack discussion (16)

Started Sep 22, 2007 | Discussions
zdravko
Junior MemberPosts: 48
Like?
CHDK firmware hack discussion (16)
Sep 22, 2007

This is a sequel to the old threads discussing the CHDK firmware.
The CHDK fw is a hacked firmware for DIGIC II cameras. Currently
supported cams are A610, A620, A630, A640, A710 IS, S2 IS and S3 IS
(see the FAQ for a complete list).
The CHDK fw implements new features like RAW, battery indicator,
live histogram (RGB/luminance), zebra mode (blinking areas of
over- underexposure), DOF calculator, scripts (intervalometer,
exposure/focus
... bracketing etc.), text reader, file browser,
calendar, games and much more. New features get implemented
frequently, so check the timeline for the latest changes, or the
FAQ for a complete list.
The CHDK firmware does not touch the original firmware of your
camera. It is an additional program which gets loaded into the
memory of the cam. If you have a problem, just turn your cam off or
remove the batteries, and the CHDK fw is gone.

For further information, a guide, download links and FAQ see the
english WIKI:
http://scratchpad.wikia.com/wiki/CHDK

Timeline:
http://tools.assembla.com/chdk/timeline
Dear Vitalyb, GrAnd and all the others: Thank you so much for
creating this wonderful piece of software!
Some screenshots:

Main menu

Histogram (Blended) and Zebra overexposure indicator

Script menu

Link to the previous thread:
http://forums.dpreview.com/forums/readflat.asp?forum=1010&thread=24662492&page=1

CeeJaydk
New MemberPosts: 5
Like?
Re: CHDK firmware hack discussion (16)
In reply to zdravko, Sep 22, 2007

Really interesting stuff .. unfortunately I don't own a supported camera.

I have some questions/suggestions :

1) The wiki and the previous thread mentions that a DIGIC 3 version is possible and coming at some point in the future - Is it also possible to port CHDK to DIGIC 1 camera ? (I'm guessing it's not but I don't see it mentioned anywhere , so I thought I'd ask)

2) Is it possible that we might see CHDK support for DSLR's in the future ?

The DIGITAL EOS series use DIGIC 2 and 3, so I guess the chip is there, many of the models also have available firmware, but most don't have live view which I reckon is needed for some of the more interesting features, like motion detection.

3) How about Light/Sound triggering ?

If the camera could detect a sudden change in overall brightness it could snap a picture and/or shoot it's flash.

This would be great for shooting images of lightning or fireworks (if the camera can react fast enough) or for using the camera as a slave-flash unit.

It would also be a great way for the photographer to shoot from several angles at once - Simply set up several camera and then shoot a flash .. all the cameras should then be triggered and take a picture.

I'm thinking that this could be achieved with a slightly modified version of the motion detection script that mx3 have been working on.

Sound triggering would work the same way , only with a set dB level triggering the camera. You could set the camera up on a tripod and then have it take the familypicture when people said cheese.

Would work nicely as a remote control that you didn't have to trigger in view of the cameras IR sensor.

Reply   Reply with quote   Complain
John EH
Contributing MemberPosts: 770
Like?
G7 Menu for RAW
In reply to zdravko, Sep 22, 2007

I have the firmware for the G7 and have loaded it but can't figure out how to get in the ALT mode to get to the menu where I can shoot RAW.

HELP!

John

Reply   Reply with quote   Complain
alvevind
Forum MemberPosts: 66
Like?
Automatic shooting of firework photos
In reply to CeeJaydk, Sep 22, 2007

CeeJaydk wrote:

3) How about Light/Sound triggering ?
If the camera could detect a sudden change in overall brightness it
could snap a picture and/or shoot it's flash.
This would be great for shooting images of lightning or fireworks (if
the camera can react fast enough) or for using the camera as a
slave-flash unit.
It would also be a great way for the photographer to shoot from
several angles at once - Simply set up several camera and then shoot
a flash .. all the cameras should then be triggered and take a
picture.
I'm thinking that this could be achieved with a slightly modified
version of the motion detection script that mx3 have been working on.

I would think the current version if mx3's version already supports this. It simply reacts to changes in lightness, which fireworks and flashes certainly create, and you have great control over the detection sensitivity and spatial partitioning of the detection grid.

The motion detected fireworks shooting idea seems like a really great idea. Probably you would have to put the camera in manual mode and manual focus so as to minimize the delay from detection to triggering the shot.

Other ideas for creative use of motion detection anyone?

Reply   Reply with quote   Complain
kpschoedel
Regular MemberPosts: 138
Like?
Re: CHDK firmware hack discussion (16)
In reply to CeeJaydk, Sep 22, 2007

1) The wiki and the previous thread mentions that a DIGIC 3 version
is possible and coming at some point in the future - Is it also
possible to port CHDK to DIGIC 1 camera ? (I'm guessing it's not but
I don't see it mentioned anywhere , so I thought I'd ask)

DIGIC III, as I understand from recent posts here, is essentially the same as DIGIC II (ARM core running VxWorks). DIGIC I, if I remember correctly, has an entirely different hardware and software base (x86 running some form of DOS). So a DIGIC I version would have to be a substantially different project, and the current CHDK people may have no interest in it; on the other hand, there are a lot more people out there familiar with x86 and DOS than there are familiar with ARM and VxWorks, so someone might take on the challenge one day.

Reply   Reply with quote   Complain
PC Wheeler
Forum ProPosts: 13,111Gear list
Like?
Re: CHDK firmware hack discussion (16)
In reply to zdravko, Sep 22, 2007

zdravko wrote:

The CHDK firmware does not touch the original firmware of your
camera. It is an additional program which gets loaded into the
memory of the cam. If you have a problem, just turn your cam off or
remove the batteries, and the CHDK fw is gone.

Puzzled: The above sentence suggests that merely turning off the camera (like between shooting sessions) or changing batteries removes the CHDK firmware -- meaning you would have to reload it continually.

Surely this cannot be true. Please clarify. I'm interesting in trying it in my S3 IS but not if it is so temporary.

-- hide signature --

Phil .. Canon SD700IS, S3 IS, EOS 300D & 20D; Fuji F20; F31fd. Canon 10x42L IS Binos
http://www.pbase.com/phil_wheeler
http://www.flickr.com/photos/phil_ox/

 PC Wheeler's gear list:PC Wheeler's gear list
Canon PowerShot S100 Panasonic Lumix DMC-FZ200 Canon PowerShot G15 Panasonic Lumix DMC-GH3 Olympus M.Zuiko Digital ED 9-18mm 1:4.0-5.6 +5 more
Reply   Reply with quote   Complain
lowimpact
Regular MemberPosts: 154Gear list
Like?
Re: CHDK firmware hack discussion (16)
In reply to PC Wheeler, Sep 22, 2007

I'm running the CHDK firmware on my A620 right now and I can explain the temporary-ness. This 'firmware' does not replace your existing firmware, but exists over top of it - it has to be loaded every time you boot the camera up (only a few button presses). This sounds like a disadvantage, but in actuality it's kind of nice - you don't risk frying your camera after a bad firmware flash.

PC Wheeler wrote:

zdravko wrote:

The CHDK firmware does not touch the original firmware of your
camera. It is an additional program which gets loaded into the
memory of the cam. If you have a problem, just turn your cam off or
remove the batteries, and the CHDK fw is gone.

Puzzled: The above sentence suggests that merely turning off the
camera (like between shooting sessions) or changing batteries removes
the CHDK firmware -- meaning you would have to reload it continually.

Surely this cannot be true. Please clarify. I'm interesting in
trying it in my S3 IS but not if it is so temporary.

-- hide signature --

Phil .. Canon SD700IS, S3 IS, EOS 300D & 20D; Fuji F20; F31fd. Canon
10x42L IS Binos
http://www.pbase.com/phil_wheeler
http://www.flickr.com/photos/phil_ox/

 lowimpact's gear list:lowimpact's gear list
Olympus OM-D E-M5 Panasonic Leica Summilux DG 25mm F1.4 Panasonic Lumix G Vario 45-150mm F4-5.6 ASPH Mega OIS Rokinon 7.5mm 1:3.5 UMC Fisheye CS +1 more
Reply   Reply with quote   Complain
Marty Too
Senior MemberPosts: 1,000
Like?
Re: CHDK firmware hack discussion (16)
In reply to PC Wheeler, Sep 22, 2007

In addition to what lowimpact posted, you will be happy to know that by popular demand, Grand implemented an automatic loading of CHDK so that if you wish it will load every time you turn your camera on.

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
Re: Automatic shooting of firework photos
In reply to alvevind, Sep 22, 2007

alvevind wrote:

Other ideas for creative use of motion detection anyone?

Using the R, G, and B, detection options use different colored LEDs to remotely trigger different camera functions. Blue LED for zoom in, green LED for zoom out, red LED for shoot, yellow LED for time-delay, etc. Combos for triggering a script function. A script could even be written so that unique flash sequences could be used the same way. This way you could use a laser pointer from great distances to trigger different functions. Send Morse signals if you wanted to tell the camera what to do.

I read a post elsewhere of someone thinking it could be used to detect different colored bird species at a bird-feeder. Ignoring all the plain ones and setting the camera to take pictures of only the blue or red or yellow ones. By using the option to know how many cells are triggered it could detect animal size, set it to ignore the squirrels.

There's thousands of ways that motion-detection can be put to good use.

Reply   Reply with quote   Complain
ToniVC
Regular MemberPosts: 217
Like?
Re: CHDK firmware hack discussion (16)
In reply to Marty Too, Sep 22, 2007

Marty Too wrote:

In addition to what lowimpact posted, you will be happy to know that
by popular demand, Grand implemented an automatic loading of CHDK so
that if you wish it will load every time you turn your camera on.

Exactly. Read this: http://scratchpad.wikia.com/wiki/CHDK/FAQ#Q._How_can_I_make_the_CHDK_firmware_load_automatically_at_startup.3F

Reply   Reply with quote   Complain
CeeJaydk
New MemberPosts: 5
Like?
Re: Automatic shooting of firework photos
In reply to Dave Ingols, Sep 23, 2007

Other ideas for creative use of motion detection anyone?

Using the R, G, and B, detection options use different colored LEDs
to remotely trigger different camera functions

Couldn't the IR sensor normally used for remote control be reprogrammed to accept other IR sequences, like those that an ordinary remote control can emit ?

You could then get support for excuting hundreds of different function or script using a cheap universal remote and you wouldn't have to buy a special remote control for the camera, if you could just reuse the remote for your TV , VCR or Stereo.

As for other creative uses of motion detection, you could use the camera to measure the speed of objects moving horizontally or vertically in the frame.

I believe that CHDK can already measure the distance to the focus point .. you could use that information to calculate the speed of a moving object by using motion detection to calculate how many pixels it moved and how fast and then convert that to a KM/s or M/s measurement.

You can even have the script only snap pictures of fast moving objects (or only slow objects) and overlay the speed measurement onto the final picture - Your very own speed trap.

It could also be altered to only react to large objects so it would ignore cats and birds but take photos of people.

You could also use motion detection to snap pictures of moving targets only when they entered the center of the frame, to more easily take picture of races or to use it to take photo finish shoots once the moving object crossed the centerline of the image.

I wonder also if face detection could be coded in for cameras that didn't already have this feature.

Another use could be to motion/sound triggered high speed photography where you either used a strobe light or had a script open the shutter at the cameras fastest setting (maybe 1/2000) and then after some of that time had passed it would trigger the flash so the sensor didn't catch the light in the entire time period the shutter was open.

It could also work the other way around , so the flash is triggered first and then the shutter is opened when the flash is about to die out , but I suspect that the flash may light up faster than it would fade out, so the former would usually be the best method.

Reply   Reply with quote   Complain
rossig
Junior MemberPosts: 49
Like?
Re: CHDK firmware hack discussion (16)
In reply to ToniVC, Sep 23, 2007

I want to download the firmware of my digic III camera.
I have a A570IS.

Follow instructions read in this forum I was able to find the information of my camera fimware:
P-ID 314C PAL V
Vers: GM1.00E

I got the files at http://grandag.nm.ru/hdk/blinker/ and want to set the right values for my A570.

Where have I to put the ID VALUE and memory led location ?

What is the procedure to create a valid firmware .FIR file ?

Reply   Reply with quote   Complain
yeray
Junior MemberPosts: 46
Like?
Pixel Mapping
In reply to zdravko, Sep 23, 2007

anyone knows if they're going to implement a Pixel Mapping feature in next releases?

both my digic2 based cams (s2is, ixus55) have dead pixels, and i wish to have more choices other than sending the cams back to Canon (and the ixus is out of warranty).

Reply   Reply with quote   Complain
Josh Adelson
Regular MemberPosts: 137
Like?
Re: CHDK firmware hack discussion (16)
In reply to zdravko, Sep 23, 2007

Would it be possible to implement yellow and red (and possibly other) "filters" for the black and white mode? Some higher end DSLRs have this feature, although I don't know how well it works.

This type of conversion can be done in post processing, however it would be great to have it in camera. I know in my film days I would "see" differently when I had b&w film in the camera. Thoughts appreciated.

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
Re: Pixel Mapping
In reply to yeray, Sep 23, 2007

yeray wrote:

anyone knows if they're going to implement a Pixel Mapping feature in
next releases?

It's already been implemented. See the RAW menu. Noise Reduction [Auto] = camera default, [Off] = dark-frame noise reduction turned off for ALL speeds, [On] = dark-frame noise reduction turned on for ALL speeds.

This feature effects JPG files whether you save RAW or not.

When it is always on it removes any hot-pixels at all speeds. With the sacrifice of a small time-delay, shutter-speed dependent, because it has to take 2 frames at the same shutter speed, subtracting the black one from the exposed one.

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
Re: Automatic shooting of firework photos
In reply to CeeJaydk, Sep 23, 2007

CeeJaydk wrote:

Couldn't the IR sensor normally used for remote control be
reprogrammed to accept other IR sequences, like those that an
ordinary remote control can emit ?
You could then get support for excuting hundreds of different
function or script using a cheap universal remote and you wouldn't
have to buy a special remote control for the camera, if you could
just reuse the remote for your TV , VCR or Stereo.

Cool idea! Just replace the IR emitting LED for an ultra-bright red or something so it has more working distance. But I doubt the speed of the motion-detection routine could be used to decipher such fast codes being sent. Who knows, maybe you can program them to send longer slower codes sequences. I've never played with one. Then too, it would be shutter-speed dependent on how fast of a code it could accept. I think.

Neat thinking, nonetheless! The others are good too.

Reply   Reply with quote   Complain
Dave Ingols
Regular MemberPosts: 258
Like?
Re: CHDK firmware hack discussion (16)
In reply to lowimpact, Sep 23, 2007

Why don't you people just read this?

http://scratchpad.wikia.com/wiki/CHDK/FAQ

It answers all those questions.

lowimpact wrote:
I'm running the CHDK firmware on my A620 right now and I can explain
the temporary-ness. This 'firmware' does not replace your existing
firmware, but exists over top of it - it has to be loaded every time
you boot the camera up (only a few button presses). This sounds like
a disadvantage, but in actuality it's kind of nice - you don't risk
frying your camera after a bad firmware flash.

PC Wheeler wrote:

zdravko wrote:

The CHDK firmware does not touch the original firmware of your
camera. It is an additional program which gets loaded into the
memory of the cam. If you have a problem, just turn your cam off or
remove the batteries, and the CHDK fw is gone.

Puzzled: The above sentence suggests that merely turning off the
camera (like between shooting sessions) or changing batteries removes
the CHDK firmware -- meaning you would have to reload it continually.

Surely this cannot be true. Please clarify. I'm interesting in
trying it in my S3 IS but not if it is so temporary.

-- hide signature --

Phil .. Canon SD700IS, S3 IS, EOS 300D & 20D; Fuji F20; F31fd. Canon
10x42L IS Binos
http://www.pbase.com/phil_wheeler
http://www.flickr.com/photos/phil_ox/

Reply   Reply with quote   Complain
castaneda363
Junior MemberPosts: 46
Like?
Color Matrix for A710 RAW
In reply to Dave Ingols, Sep 23, 2007

Hi vit40, i take some sample images as you asked me.
Where can i send images? have you mail address?
Do you want Raw .cr2 or I convert it to jpeg?

Reply   Reply with quote   Complain
mojorisn
Regular MemberPosts: 298
Like?
For The Developers
In reply to zdravko, Sep 23, 2007

There was quite a bit of talk just a short time ago, on this forum, about how willing everyone was to pony up some compensation for the hard work that would be involved in getting CHDK for Digic III. The specific discussion was about how people would be willing to contribute for the Digic III CHDK.

Now, that this work has come to fruitition, will the Digic III users of CHDK remember what was written?

Its obviously NOT (just) about money, and I am sure that there are many logisitical barriers, still, it would be nice to reward these folks (one in particular), and leave excuses at the doorstep...........
Les

Reply   Reply with quote   Complain
mojorisn
Regular MemberPosts: 298
Like?
Re: For The Developers
In reply to mojorisn, Sep 23, 2007
Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum MMy threads