Just getting started and I am having problems with getting the IR Detector project from http://www.ladyada.net/learn/sensors/ir.html working.
I have a Deumilanoye and it works in that but i nthe Mega 2560 it does not.
I tested the pin using a simple LED and can get it to flash so I assume that the direct pin connection may be a problem.
// We need to use the 'raw' pin reading methods
// because timing is very important here and the digitalRead()
// procedure is slower!
//uint8_t IRpin = 2;
// Digital pin #2 is the same as Pin D2 see
// http://arduino.cc/en/Hacking/PinMapping168 for the 'raw' pin mapping
#define IRpin_PIN PIND
#define IRpin 2
I have looked at the pin image for the 2560 but not sure what I am looking at - it looks like it could be pin 4 instead of 2? but I do not know :-(
Any help appreciated