Generating interrupts with RPR220 Photodiode - HELP!

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to connect an RPR220 Photodiode to my Arduino 2560, and generate interrupts to change an LCD screen. The LCD changing code works (go here for code:, all I changed was the circuit, so that instead of a button switch it has the photodiode. The only thing I have been able to find is this: It says to connect to an analog pin - I have mine connected to a digital pin. So my question is, can this work with a digital pin or must I use an analog pin?