IR (infrared) LED's - Need Help!

hi, I'm trying to test some IR (infrared) LED's that I bought. I am using the 'Blink' example from the Arduino software but when I put a IR LED to pin 13 and to ground I don't see anything happening. I tried adding resistors and checking using the camera on my iPhone 5s but I don't see it working. :confused:

I need to get IR LED's working because I am trying to build the EyeWriter 2.0 http://www.instructables.com/id/The-EyeWriter-20/ for college. I am also struggling with software for that project to but I need to take it step by step.

Any help would be really appreciated.
Thanks!

:slight_smile:

Hello and welcome.

Did you set pin 13 as an output ? Did you connect the LED correctly ?

guix:
Hello and welcome.

Did you set pin 13 as an output ? Did you connect the LED correctly ?

Thank you. Yes the LED is in the correct position. Long led into digital pin 13 and short leg into ground :slight_smile: I know most of the basics just IR LED's are new to me.

How do you know they are not working? IR LEDs do not produce visible light.

Modern digital cameras also filter the light so the often quoted way to see what is happening not longer works reliably.

You ought to have a current limiting resistor.
470 ohms, for grits and grins.

The "universality" of the longer lead's identity is not a certitude.
You can give it a shot the other way round, too (no harm, thanks to that resistor.)
You can place an ordinary LED in series to confirm current flow.
Or get it right with an ordinary LED and then replace with the IRED.

lowndes42:
Yes the LED is in the correct position. Long led into digital pin 13 and short leg into ground :slight_smile: I know most of the basics.

Given that you are trying to connect an LED to an Arduino pin without a resistor I would question if you know any of the basics let alone most of them.

The iPhone 5 has a very steep IR-filtering, so usually the trick does not work on them.

Also, you need a resistor on that LED.

// Per.

I put resistors on the IR LED while testing and I couldn't figure out if they were working or not. I ordered some IR Receivers today to help me see if the IR LED's are working.

Does anyone know any Arduino code to help testing IR LEDs with IR Receivers?

Thanks for the comments. I appreciate the help! :slight_smile:

lowndes42:
Does anyone know any Arduino code to help testing IR LEDs with IR Receivers?
Thanks for the comments. I appreciate the help! :slight_smile:

You want to send bursts of 38 kHz, at or near.
That's a 26 microsecond period.
Get a TV remote to work with it then confirm with your Arduino work.
Can you get an "IR Receiver" to work with a TV remote?