Self-made IR remote controller based on Arduino

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

Moderators: rjlittlefield, ChrisR, Chris S., Pau

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

Self-made IR remote controller based on Arduino

Post by Adalbert »

Hello everyone,
Does anybody know how to assemble a self-made IR remote controller based on Arduino?
I have already asked for that in the following thread:
http://www.photomacrography.net/forum/v ... highlight=
Thank you in advance.
BR, Adi

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

Post by Adalbert »

Hello everyone,
I have already tested my ir-controller with the 880nm LED. No changes.
So, I have tried to find out the correct pulse-frequency for the CANON EOS 6D.
Firstly I have set the period (in a loop) between 1 micro second an 20 micro seconds.
Finally I have found out that it works between 7 and 10 micro seconds.
And it works with the 950nm and with the 880nm too :-)

Code: Select all

void setup() 
{
  pinMode(13, OUTPUT);            // TEST-LED on data 13 
  pinMode( 9, OUTPUT);            // IR-LED   on data 9
}

void loop() 
{
  for&#40;int j=7; j<11; j++&#41;
  &#123;
    digitalWrite&#40;13, HIGH&#41;;         // set the test LED to ON 
    delay&#40;3000 &#41; ;                  // 3 seconds
    digitalWrite&#40;13, LOW&#41;;          // set the test LED to OFF 
    

    
    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; 
    
    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;
    
    digitalWrite&#40;13, LOW&#41;;         // set the test LED to OFF 
    delay&#40; 10000 &#41; ;                   // 10 seconds
  &#125;
&#125;
BR, Adi

Post Reply Previous topicNext topic