How to connect the StackShot to the Canon EOS M3 ?

Have questions about the equipment used for macro- or micro- photography? Post those questions in this forum.

Moderators: rjlittlefield, ChrisR, Chris S., Pau

elf
Posts: 1416
Joined: Sun Nov 18, 2007 12:10 pm

Post by elf »

The code looks correct. What is your power supply? Are you using the correct size resistor for the IR LED? As a general question to everyone, will IR LED output be visible in a digital image?

You may want to see if someone on one of the Canon hacker forums knows what the pulse sequence should be.

p.s. If you have a scope, this link could help: http://www.kerrywong.com/2012/08/27/rev ... -protocol/

p.p.s. Is the anode connected to the PWM pin?

rjlittlefield
Site Admin
Posts: 23621
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Post by rjlittlefield »

elf wrote:As a general question to everyone, will IR LED output be visible in a digital image?
I don't know about that particular LED, but in general my cameras can easily see the flashing of IR remotes for my TV etc.

--Rik

Adalbert
Posts: 2480
Joined: Mon Nov 30, 2015 1:09 pm

Post by Adalbert »

Hello Elf,
The power supply is an active USB-hub (Arduino is connected to the computer) .
The white LED works correctly. The light of the IR-LED I have checked with a camera in live-view mode.
So, the IR-LED works too. And my Canon Eos 6D works correctly with the RC-1 without any problem.
So, I have a problem with the software (pulse sequence for the Canon 6D ).
BR, Adi

Adalbert
Posts: 2480
Joined: Mon Nov 30, 2015 1:09 pm

Post by Adalbert »

Hello Rik,
I only can see the light of the IR-LED on the display of the film-camera or photo-camera in live-view mode.
BR, Adi

rjlittlefield
Site Admin
Posts: 23621
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Post by rjlittlefield »

Adalbert wrote:I only can see the light of the IR-LED on the display of the film-camera or photo-camera in live-view mode.
Are you saying that you're unable to capture an image showing the light of the IR-LED? If so, then I find that very puzzling. The same camera sensor and optics are being used in both cases. I just now checked, and my cell phone and Canon A710 had no trouble capturing images with the IR light on my TV remote shining brightly. It is just a matter of making sure that the exposure is made while the LED is shining at least part of the time. In my test this was done by holding the Mute button continuously while clicking the camera's shutter button. Both cameras captured the light on the first attempt.

--Rik

elf
Posts: 1416
Joined: Sun Nov 18, 2007 12:10 pm

Post by elf »

Adalbert wrote:Hello Elf,
The power supply is an active USB-hub (Arduino is connected to the computer) .
The white LED works correctly. The light of the IR-LED I have checked with a camera in live-view mode.
So, the IR-LED works too. And my Canon Eos 6D works correctly with the RC-1 without any problem.
So, I have a problem with the software (pulse sequence for the Canon 6D ).
BR, Adi
I'd be more inclined to say the problem was in the LED. The RC-1 has been around for about 10 years, so the pulse sequence in the multi-camera-ir software should be correct.

Adalbert
Posts: 2480
Joined: Mon Nov 30, 2015 1:09 pm

Post by Adalbert »

Hi Rik,

Yes, I can capture an image of the IR-LED too.
The sketch for the IR-controller uses the pulses of some milliseconds :-)
So, I have changed the sketch and could capture an image.

Now, I’m trying to implement the following idea:
http://www.doc-diy.net/photo/eos_ir_remote/

The current sketch looks like that:

Code: Select all

// ARDUINO NANO CANON RC-1 infrared remote control

#define F_CPU   16000000L        // 16 MHz
#include <util/delay.h>          // from arduino library
#define NPULSES 16
#define HPERIOD 0.01524
#define INSTANT 7.33
#define DELAYED 5.36

void setup&#40;&#41; 
&#123; 
  pinMode&#40; 5, OUTPUT&#41;;            // for IR-LED   on data  5
  pinMode&#40;13, OUTPUT&#41;;            // for TEST-LED on data 13 
&#125; 

void loop&#40;&#41; 
&#123; 
  // asm volatile &#40;"nop"&#41;;
  // asm volatile &#40;"nop"&#41;;
  
  /***************** INSTANT MODE ****************************/
  digitalWrite&#40;13, HIGH&#41;;         // set the test LED to ON 
  for&#40;int i=0; i<NPULSES; i++&#41;
  &#123;
    digitalWrite&#40; 5, HIGH&#41;;       // set IR-LED to ON
    _delay_ms&#40;HPERIOD&#41;;
    digitalWrite&#40; 5, LOW&#41;;        // set IR-LED to OFF
    _delay_ms&#40;HPERIOD&#41;;
  &#125;

  _delay_ms&#40;INSTANT&#41;;             // _delay_ms&#40;7.33&#41;;   // instant mode

  for&#40;int i=0; i<NPULSES; i++&#41;
  &#123;
    digitalWrite&#40; 5, HIGH&#41;;       // set IR-LED to ON
    _delay_ms&#40;HPERIOD&#41;;
    digitalWrite&#40; 5, LOW&#41;;        // set IR-LED to OFF
    _delay_ms&#40;HPERIOD&#41;;
  &#125;
  digitalWrite&#40;13, LOW&#41;;          // set the test LED to OFF 
  /***************** END OF INSTANT ****************************/
  
  _delay_ms&#40;5000&#41;;                // 5 seconds delay 
  
  /***************** DELAYED MODE ******************************/
  digitalWrite&#40;13, HIGH&#41;;         // set the test LED to ON
  for&#40;int i=0;i<NPULSES;i++&#41;
  &#123;
    digitalWrite&#40; 5, HIGH&#41;;       // set IR-LED to ON
    _delay_ms&#40;HPERIOD&#41;;
    digitalWrite&#40; 5, LOW&#41;;        // set IR-LED to OFF
    _delay_ms&#40;HPERIOD&#41;;
  &#125;
  
  _delay_ms&#40;DELAYED&#41;;             //  _delay_ms&#40;5.36&#41;;                // delayed mode
  
  for&#40;int i=0;i<NPULSES;i++&#41;
  &#123;
    digitalWrite&#40; 5, HIGH&#41;;       // set IR-LED to ON
    _delay_ms&#40;HPERIOD&#41;;
    digitalWrite&#40; 5, LOW&#41;;        // set IR-LED to OFF
    _delay_ms&#40;HPERIOD&#41;;
  &#125;  
  digitalWrite&#40;13, LOW&#41;;          // set the test LED to OFF 
  /***************** END OF DELAYED MODE **************************/
  
  _delay_ms&#40;5000&#41;;                // 5 seconds delay 
&#125;
Unfortunately it doesn’t work :-( but I can see the blinking IR-LED in the display :-)

BR, Adi

Adalbert
Posts: 2480
Joined: Mon Nov 30, 2015 1:09 pm

Post by Adalbert »

Hello Elf,
Should I take a smaller resistor then 100 Ohm or better implement the solution with the transistor in order to get more power?
e.g.
Image
But in this case I will have to connect an external power supply to the Arduino ?!
BR, Adi

elf
Posts: 1416
Joined: Sun Nov 18, 2007 12:10 pm

Post by elf »

Everything I know about electronics, I learned on the Internet, so here's a couple of sites that should explain what you need better than I:

http://www.analysir.com/blog/2014/10/03 ... duino-pin/

http://electronics.stackexchange.com/qu ... th-arduino

Adalbert
Posts: 2480
Joined: Mon Nov 30, 2015 1:09 pm

Post by Adalbert »

Hello Elf,
Many thanks for the links!
I have already tried with the transistor and then with an external power supply 8V.
Like follows but with the resistor 27 Ohm:
http://www.analysir.com/blog/2015/10/12 ... sing-uart/
I only was able to see the blinking IR-LED in the display of IXUS 6.
But it didn’t trigger the CANON EOS 6D. Probably something is wrong with this LED.
Probably I will have to use a LED like SFH484 with 880 nm (instead of 950nm).
BTW, as soon as I have the RC-6 I will try with its IR-LED.
BR, Adi

Adalbert
Posts: 2480
Joined: Mon Nov 30, 2015 1:09 pm

Post by Adalbert »

Hello Elf,
I have already tested my ir-controller with the 880nm LED but without success :-(
So, I have looked for the pulse-frequencies in a loop and found out that it works between 7 and 10 micro seconds (with 880nm and 950nm too :-)

Code: Select all

    for&#40;int i=0; i<16; i++&#41; 
    &#123; 
      digitalWrite&#40;9, HIGH&#41;;
      delayMicroseconds&#40;j&#41;;     //  j = between 7 and 10 micro seconds !
      digitalWrite&#40;9, LOW&#41;;
      delayMicroseconds&#40;j&#41;;
    &#125; 
    
    delayMicroseconds&#40;7330&#41;; 
    
    for&#40;int i=0; i<16; i++&#41; 
    &#123; 
      digitalWrite&#40;9, HIGH&#41;;
      delayMicroseconds&#40;j&#41;;
      digitalWrite&#40;9, LOW&#41;;
      delayMicroseconds&#40;j&#41;;
    &#125;
BR, Adi

Post Reply Previous topicNext topic