This is what I was talking about at the meeting about hacking Canon cameras:
http://chdk.wikia.com/wiki/CHDK
Let me know if you want to play around with it to do time lapse photos.