How to make a DSLR Camera remote using Arduino

Taking a  photo using a DSLR is not a difficult process and its also a passion to carefully focus on the object finetuning parameter such as shutter speed, aperture etc and fond a sweetspot  and click it. But what if you want a stop motion animation to be makde using DSLR. The below video is an example stop motion.

For doing that you need to find the best focal spot and fix the positin and take a lots photos slowly moving the object step by step. For this process, if you click with hand then you can disturb the images. For this purpose I decided to find a way to automate the process. Then Voila. Found that my Nikon DSLR supports IR Control and interestingly there are also Arduino library which support that.

The camera expects a bunch of IR code sequence which is actually supported by the official remote control from the company, Someone has decoded the IR codes and recerated it in to Arduino library. So with a IR transmitter connected to Arduino its possible to generate code exactly same as the IR Remote control.

Now using this library you can automate the photo taking process and this can be used in project such as motion detection and capture, photo booth for parties, fests and events.

Hardware used

For this project you need an Arduino or similar board, an IR transmitter (you can buy one individually or  a sensor kit)

IR Transmitter


Arduino or similar board





For getting the IR work with the DSLR camera you need a special library. You need to download the library from here

After downloading it , open your arduino IDE and go to Sketch>Include Library>Add Library, then select the zip file that you downloaded from the link. Now the library is installed. Now open a new file and copy the below code.

#include <NikonRemote.h>
int IR_PIN = 11;
NikonRemote remote( IR_PIN );

void setup() {

void loop() {;



This includes the library that we installed to our program, and as of now it supports only Nikon cameras, if you have other cameras there are plent of library available in internet  which support them

int IR_PIN = 11;

We connected the pin 11 to our IR transmitter.

NikonRemote remote( IR_PIN );

We create a NikonRemote object with pin 11 as its pin to send the IR code.;

In the setup we do nothing and in the loop we repeatedly send click command to our DSLR camera.


Leave a Reply

Your email address will not be published. Required fields are marked *