I was inspired by some users here to create an intervalometer for my Canon T3i. I have yet to obtain the proper interface cable (3/32" stereo plug), but I did simulate the digital output to the shutter pin using an LED. I will post the schematics soon, but before I do I wanted to fine-tune the code as much as possible.
I am admittedly a newbie with Arduino programming, but I have a strong DIY background with many other languages, so this one wasn’t difficult to pick up.
I wanted to make a super simple interface using my 16x2 LCD, a cheap rotary encoder, and a simple push button. I also tossed in an LED, a few resistors, and capacitors and I think I have a working prototype.
I would greatly appreciate it if someone would just give my code the once-over. Let me know if I missed anything major, made any mistakes, or committed any programming taboos. I wrote this from scratch, using only the built-in example codes for the LCD, rotary encoder, and push button. The rest of the code is my best guess at how to approach an intervalometer.
I think my approach is made simpler by the fact that I only care about opening and closing the shutter, and not about focusing. I think this means I can get away with using only the shutter and ground pins, and ignoring the focus pin.
My code is attached. I will update it as I get closer to a final solution, and I will be sure to post the entire build once I am done.
Thanks for your time!
Intervalometer_v3.ino (11.9 KB)