Pages: [1]   Go Down
Author Topic: Weak IR LEDs  (Read 880 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm new to Arduino and electronics in general, so my question might be a little noob  smiley-red

I'm trying to make the usual camera remote control/intervalometer using an IR LED. The code and circuit work fine but the IR signal seems to be very weak. I can't take my Arduino a few feet away from the camera and expect it to take pictures. The signal won't reach the camera unless the IR LED is at least ~40 cms close (~15 inches)

I blame the IR LED I'm using, so my question is: What should I search for on an IR LED in order to get a powerful one that can interface with Canon cameras? (940nm wavelength)

Cheers!
Logged

Keynsham, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 224
I like for loops and walks on the beach,
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What LED are you using at the moment?
Logged

"C++ : Where friends have access to your private members." - Gavin Russell Baker

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25752
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you remember to set the pinMode to OUTPUT (I have to ask, because I can't see you code)
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What LED are you using at the moment?
To be honest, I don't know  smiley-sad-blue I just bought a few IR LEDs from my local electronics shop (I didn't ask them for anything specific, just IR LEDs). That's why I want to know what I should be looking for. Is there any "power" value?

Quote
Did you remember to set the pinMode to OUTPUT (I have to ask, because I can't see you code)
Yes, I did. I don't have the sketch here with me (currently at the office) but it does work, in the sense that it triggers the camera.



Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11672
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

IR emitters are often driven with pulses of around 100mA - we need to see the circuit.
Logged

[ I won't respond to messages, use the forum please ]

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 45
Posts: 2467
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd suggest testing with a bright red or white LED so you can see obvious problems, and either of those should get you a meter distance minimum. Once you get that working then you can switch to the infrared LED.

These receivers don't require "940nm" LEDs but rather that is just the optimal wavelength. But, y'know, premature optimization is the root of all evil.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, the circuit works. The camera shots a picture every 2 seconds.

Here's the sketch:
Code:
////////////////////////////////////
// Simplest test. IR + Canon camera
////////////////////////////////////

int pin8 = 8;
 
void setup()
{
  pinMode(pin8, OUTPUT);
}
 
void loop()
{
  /* ----- shutter! ----- */
  for(int i=0; i<16; i++)
  {
    digitalWrite(pin8, HIGH);
    delayMicroseconds(11);
    digitalWrite(pin8, LOW);
    delayMicroseconds(11);
  }
   
  delayMicroseconds(7330);
   
  for(int i=0; i<16; i++)
  {
    digitalWrite(pin8, HIGH);
    delayMicroseconds(11);
    digitalWrite(pin8, LOW);
    delayMicroseconds(11);
  }
  /* ----- end shutter ----- */
 
 delay(2000); //2seg
}

And here's the circuit as it is now:


I've tried without the resistor. Without the switch. Without both. With the resistor after the switch. Bigger resistors. Smaller ones... All of these tests worked, but the distance seems to be approximately the same.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25752
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you read reply #4?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11672
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I presume you do have the LED the right way round unlike the diagram?  That ought to give 30mA or so, so reasonably bright, but
adding a transistor to boost it to 100mA peak pulses should increase the range somewhat.  Making sure the modulation frequency is
spot on is also worth checking, thinking about it - 40kHz or 38kHz, or whatever it is...
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I presume you do have the LED the right way round unlike the diagram?  That ought to give 30mA or so, so reasonably bright, but
adding a transistor to boost it to 100mA peak pulses should increase the range somewhat.  Making sure the modulation frequency is
spot on is also worth checking, thinking about it - 40kHz or 38kHz, or whatever it is...
Thanks, MarkT! I will give it a try!  smiley  smiley  smiley

Quote
I presume you do have the LED the right way round unlike the diagram?
smiley-confuse yes!
Logged

Pages: [1]   Go Up
Jump to: