Problems with the most basic IR sending

Maybe someone can help explain what's wrong. I'm trying to get the most basic IR signal to send. I have my receiver setup on a mega and any ir remote I point to it causes it to display ir info in the serial monitor.

Now I'm trying to send from another arduino.

I'm going Arduino PWM Pin 3 ->100ohm resistor->6100 IR LED Long side->ground from the 6100 short side. I'm using this sketch...

#include <IRremote.h>

IRsend irsend;

void setup()
{
}

void loop() {
  // Turn ON
	for (int i = 0; i < 3; i++) {
		irsend.sendNEC(3499099658, 32);
		delay(40);
	}
	delay(5000); //5 second delay between each signal burst

  // Turn OFF
  for (int i = 0; i < 3; i++) {
    irsend.sendNEC(2147484682, 32);
    delay(40);
  }
  delay(1000); //1 second delay between each signal burst
}

Yet the receiver doesn't react. What do I need to do?

I do not know the IRsend library. Does it just assume that you are going to use pin 3?

By the way, delay(5000) wastes the considerable power of your Arduino for 5 seconds.

Use red LED instead of the IR one - is it blinking? If not the pin is not driven.
Look at the IR LED via cell phone camera. It should be blinking blue (cameras see IR as blue).

BTW you may need to configure the pin as OUTPUT. Maybe the library does it for you, maybe not.

Smajdalf:
Use red LED instead of the IR one - is it blinking? If not the pin is not driven.
Look at the IR LED via cell phone camera. It should be blinking blue (cameras see IR as blue).

BTW you may need to configure the pin as OUTPUT. Maybe the library does it for you, maybe not.

Thanks for your time on this. I did both of these things and the red led isn't blinking, so I'm kind of lost. I can swap out this sketch for blink configured to pin 3 and it blinks fine, so it seems to be a software problem...but this is the default sketch everyone uses, so again...I'm lost.

Ok. So this is pretty stupid. Even though the sketch CLEARLY said pin 3, I downloaded another library and I was about to upload the example sketch for that one, and it said to use pin 3 for uno and pin 9 for mega. So I went ahead and plugged in to pin 9 and the LED started flashing from my original sketch. What a waste of a few hours. Thank you for not telling me I'm crazy. I appreciate your help everyone.