Intervalometer for Sony NEX 5n

This intervalometer used infrared LED

To built intervalometer you need:
Arduino Nano (or Arduino-compability). I used Nano V3
Serial LCD
Joystick Module
IR Led and resistor ~200 Ohm
Push Button
Plastic enclosure
Battery 9V

Schematic is very simple

Step 2: Connection

Serial LCD has 4 output: GND, VCC, SDA, SCL. SDA (data) connect to Arduino Analog In 4, SCL (clock) connect to Analog In 5. Vcc connect to 5V Arduino, and GND connect to GND Arduino.

The joystick is connected by five wires: axis X (connect to Analog IN 0), axis Y (to Analog IN 1), axis/button Z (to Digital IN 2), supply Vcc and GND.

Intervalometer for Sony NEX 5n

Step 3: Assembling

Circuit is powered by 9V battery. Battery positive output connected to the input Vin Arduino. Arduino has a built-5V voltage converter that we need to power the Serial LCD. The anode of the IR LED is connected through current limiting resistor and connected to 10-pin Arduino. Cathode of the IR LED connected to GND.

I use resistor ~200 Ohm, you can calculate it via on-line LED Calculator

Step 4: Software

To save battery life in the software has a function the LCD backlight off. When you press any key, the LCD backlight turn on.
Intervalometer for Sony NEX 5n schematic
Source Code:

// Article
// Version 1.0

#include “Wire.h”
#include “LiquidCrystal_I2C.h”

#define axis_X 0    // axis X of Joystic connected to Analog 0
#define axis_Y 1    // axis Y of Joystic connected to Analog 1
#define axis_Z 2    // axis-button Z of Joystic connected to Digital 2
#define pinIRLED 10 // IR LED
#define LEDgreen 13 // onboard LED

#define autoOFF 10  // autoOFF backlight LCD

LiquidCrystal_I2C lcd(0x27,16,2);    // set the LCD address to 0x27 for a 16 chars and 2 line display

int value_X, value_Y, value_Z = 0;   // axis values
int pos = 0;                         // current position (0 – delay, 1 – work)
int interval = 1;                    // pause between shots (sec)
int cntPict = 0;                     // shots count
boolean working = false;

unsigned long currentTime;
unsigned long TimeShot, TimeLCDOff;

void setup()
pinMode(axis_Z, INPUT);         // Joystic button
pinMode(pinIRLED, OUTPUT);      // IR LED

lcd.init();                     // init LCD
lcd.backlight();                // turn LCD backlight ON
lcd.clear();                    // clear LCD
show_menu();                    // function show menu

currentTime = millis();
TimeShot = currentTime;         // shots timer
TimeLCDOff = currentTime;       // backlight timer


For more detail: Intervalometer for Sony NEX 5n

This Post / Project can also be found using search terms:

  • how to modify viltrox intervalometer for sony nex5n?
Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
Pixelduino – The Arduino with an awesome OLED display!

The Pixelduino is a tiny Arduino-compatible microcontroller with a full color 1.5" OLED display + MicroSD built-in! About this project...

Scroll to top