본문 바로가기
OldStory/Makes

펜탁스 셔터 리모콘 신호 파형

by Alnilam 2013. 10. 10.

펜탁스 카메라 셔터 리모콘 신호 파형







13 ms  on

3 ms  off

펄스 (1 ms on  1 ms off ) 7 번


캐리어 주파수는 38 kHz


아두이노 소스


PentaxIRControl.h

 /*******************************************

 *

 * Name.......:  PentaxIRControl Lightning Trigger

 * Description:  A Lightning Trigger to control Pentax cameras 

 * via infrared (IR) wireless remote. 

 * Author.....:  Marc Kohlbauer

 * Version....:  3.0

 * Date.......:  2012-03-19

 * Project....:  http://www.hardpan.com/category/arduino/

 * Contact....:  marc@hardpan.com

 * License....:  This work is licensed under the Creative Commons 

 * Attribution-NonCommercial-ShareAlike 3.0 Unported License.

 * Keywords...:  arduino, library, camera, infrared, control,

 * pentax, lightning, trigger, wireless, IR, sensor, adjustable

 * History....:  201-03-24 V1.0 - Pentax IR Control

 *

 ********************************************/


#ifndef PentaxIRControl_h

#define PentaxIrControl_h


#include "WProgram.h"

class Pentax{

public:

  Pentax(int pin);

  void shutterNow();

private:

  int _pin;

  int _freq;

};

#endif



PentaxIRControl.cpp

 /*******************************************

 *

 * Name.......:  PentaxIRControl Lightning Trigger

 * Description:  A Lightning Trigger to control Pentax cameras 

 * via infrared (IR) wireless remote. 

 * Author.....:  Marc Kohlbauer

 * Version....:  3.0

 * Date.......:  2012-03-19

 * Project....:  http://www.hardpan.com/category/arduino/

 * Contact....:  marc@hardpan.com

 * License....:  This work is licensed under the Creative Commons 

 * Attribution-NonCommercial-ShareAlike 3.0 Unported License.

 * Keywords...:  arduino, library, camera, infrared, control,

 * pentax, lightning, trigger, wireless, IR, sensor, adjustable

 * History....:  201-03-24 V1.0 - Pentax IR Control

 *

 ********************************************/

#include "WProgram.h"

#include "PentaxIRControl.h"


void wait(unsigned int time){

  unsigned long start = micros();

  while(micros()-start<=time){

  }

}


void high(unsigned int time, int freq, int pinLED){

  int pause = (1000/freq/2)-4;

  unsigned long start = micros();

  while(micros()-start<=time){

    digitalWrite(pinLED,HIGH);

    delayMicroseconds(pause);

    digitalWrite(pinLED,LOW);

    delayMicroseconds(pause);

  }

}


Pentax::Pentax(int pin)

{

  pinMode(pin, OUTPUT);

  _pin = pin;

  _freq = 38;

}


void Pentax::shutterNow()

{

  high(13000,_freq,_pin);

  wait(3000);

  for (int i=0;i<7;i++){

    high(1000,_freq,_pin);

    wait(1000);

  };

}



참조 : 

http://hardpan.com/diy-pentax-ir-lightning-trigger/

http://www.sbprojects.com/projects/nikon/




'OldStory > Makes' 카테고리의 다른 글

쿼드콥터 프레임 - blender modeling  (0) 2013.10.11
3D 프린터 무료 교육  (0) 2013.10.10
Arduino pentax ir lightning trigger  (0) 2013.10.10
dslrdashboard  (0) 2013.10.08
펜탁스 DSLR USB 리모콘 프로그램 - pkTriggerCord  (0) 2013.10.08