-
Nikon D50/D70 IR remote control
Posté le 27th septembre 2008 10 commentairesThe Project
After chasing the idea of building a remote for my D50, I found this really interesting page with all you need (especially the IR timing) to get your remote up and running.
But using a AtTiny2313 for this leaves a lot of room to play with. So I made an enhanced version with a 7-segments display and a menu system. The new firmware let’s you choose among several shooting modes.
The remote is almost identical to the BigMike’s one except :
- the firmware is, of course, modified
- there is no On/Off button
- there are two buttons for the menu (change/select)
- there is a 7-segments display for the menu
The firmware sets the Tiny2313 in sleep mode after 5 seconds of inactivity.
In tis mode, the datasheet gives at most 2µA current usage. So, since a CR2032 yields 220 mAh, and if I didn’t mess up somehere, you should be up and running for 10 years.Modes description
The remote offers 9 shot modes, which of course can be changed in the firmware.
Whatever the mode, the dp dot blinks everytime a « take shot » IR frame is sent.
- Single shot mode (symbol : reversed lower ‘c’) : one button press makes a single shot
- Double shot mode (symbol : two horizontal dashes ) : one button press makes two shots in a row
- Triple shot mode (symbol : three horizontal dashes ) : one button press makes three shots in a row
- Continuous shot (symbol : lower ‘c’) : one button press starts continuous shooting as fast as possible until the ‘menu’ button is pressed again or the battery is dead
- Continuous shot every second (symbol : number 1) : one button press starts shooting 1 picture per second until the ‘menu’ button is pressed again or the battery is dead
Numbers 2, 5, 0 and 6 are also continuous shoot mode with 1 picture every 2, 5 10 and 60 seconds respectively.
Files
Wanna build yours ? You’ll need :
The core of the code (IR timing loop) is taken straight from BigMike’s ASM source.
Issues
There are some issues in my version. I am not sure if they are firmware/hardware/ir issues. The problem is the reliability of triggering : sometimes it just doesn’t work. This does make the remote of reduced usability for continuous shooting modes where timing is critical.
I wonder where this problem comes from : IR receptor low sensitivity ? inaccurate frequency generation ? AF mode induced triggering problems in some situations ?
Since I have relatively few hardware here (no friend with another D50, no oscilloscope, …) I didn’t dig it up for now.And oh, BTW, the usual warnings apply : this remote can brick your MCU, destroy your Nikon, set your house on fire, etc… You’ve been warned !
Thanks
Big thanks to Bighignoli Michele, Jonas Diemer and Nate who pioneered the area.
EDIT : I finally managed to put my hands back on the firmware ! You can grab the ASM source or the hex file. Have fun !
-
Video snippets
Posté le 27th septembre 2008 Pas de commentairesFew usefull video snippets.
Grabbing from DV cam, autosplitting scenes :
dvgrab -- autosplit -timestamp –format=dv2 videoDeinterlacing :
ffmpeg -i in-dv.avi -deinterlace -vcodec huffyuv -pix_fmt yuv422p -target pal-dvd out.aviFlv encoding :
ffmpeg -i input.avi -ar 22050 -ab 64 -aspect 4:3 -b 768k -pass 1 -f flv -s 640x480 -acodec mp3 output.flvthen again with
-pass 2.
Another solution :
mencoder out.avi -o out.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames





