Lilypad Interrupt Port

I am working with Lilypad Arduino Simple Board.

I wanted to conserve the battery by making it sleep while no interaction is made.

I look up and found this function http://www.arduino.cc/playground/Learni … oSleepCode

However it seems like a special interrupt port is needed.

Do anyone know which port is the interrupt port?

Or is there other way to turn arduino into hibernate mode and wake up upon trigger.

D2 and D3 (digital pins 2 and 3) are the interrupt ports. A sleeping arduino can also be woken by a timer interrupt if you don’t disable the timer.

Do you have the example for timer interrupt ??

Actually I would like to trigger it with a force sensitive resistor which is connected to analog pin.

Is there any way around it ?

I’m not an expert in sleeping, but I have vaguely heard of a way to trigger an interrupt from the analog comparator. Of course, leaving the comparator on while the rest of the chip is off will use more power. You could also try to use an external chip which turns the analog “how much” force sensitive resistor to a “biger or smaller” digital pulse that could trigger an interrupt. The name of it eludes me, although a schmitt trigger comes to mind.

For the timer interrupt, you may want to look into the TimerOne library. You could try to see if its attachInterrupt function will wake it up.

Here is a good tutorial: http://www.arduino.cc/playground/Learni … oSleepCode

On Lilypad simple board (http://www.sparkfun.com/products/10274) digital pin 2,3 is skipped.

Do you know which one could I used instead of those two ?

I hate to resurrect a dead thread, but does anyone know the answer to this question? Ie, the Lilypad simple board does not have D2 and D3 (digital pins 2 and 3), and http://www.sparkfun.com/products/10274 does not contain any information about it (the schema shows these as missing and doesn’t mention a replacement). Any experts know the answer?