Go to
www.triggertrap.com.
Or better yet, use an Adroid or iOS based smartphone/tablet with the Triggertrap dongle (Triggertrap Mobile). Got an IR only Pentax body? There is an easy mod to an IR remote release to connect it to a Triggertrap dongle:
https://www.pentaxforums.com/forums/do-yourself/186110-make-wired-release-any...ir-camera.html
You get multiple types of intervalometers, time, distance (using the phone's GPS), bulb ramping, plus multiple types of other event triggers (varies between Android and iOS).