interrupt on analog pin

hi,

I'm trying to use a color sensor (ADJD-S311) on my Arduino Uno.

My problem is that i can't figure out how to use an interrupt on the analog pin or if it's possible.

I need to stop my boe bot when the color change and execute a function.

I've tried different methods but i'm feeling there could be an issue if i need to read the sensor in order to change its values.

please don't send me to : http://playground.arduino.cc/Main/PinChangeInterrupt

thanks

Interrupts on "analog pin" work only when the pins are in digital mode, there are no interrupt facilities in analog mode.

The analog comparator is capable of generating an interrupt.

My problem is that i can't figure out how to use an interrupt on the analog pin or if it's possible.

Is an interrupt appropriate? Is an interrupt the best solution to the problem? Those are the questions you should be asking. From what you've described, the answers are "no".