Motion detection is one of the features most cameras lack. There is some kind of trigger for taking group pictures by waving. But that’s it.
If you own a Canon point and shoot and have already installed the CHDK, you will easily find a script on the CHDK page. I wanted to give it a try, did not change any parameters and started the script on my Canon Powershot S95. I kept the camera on the roof of my car so I could easily blend the layers. After some exposures I finally had three snapshots of lightnings I blended to get this picture:
There were also some frames which had no lightning in them, but as you can see I am on a parking near the highway and the camera sometimes interpreted the traffic as a lightning. Nothing is easier on a digital camera than deleting these. I will definitely try this with the 60D and the magic lantern.