Stalker 2.1 interrupt

I got problem getting the example code to do interrupts from the DS3231, i have soldered a bridge on the

INT (Jumper type: Solder bridge, Location: Bottom, Factory state: NOT connected by a thin track) Close this jumper to allow the Real Time Clock (RTC) to wake the ATmega328P at a specified time. This jumper will connect INT of the RTC Chip (DS3231) to PD2 (INT0) of ATmega328P.

The example code:

[code]
//Interrupts for Battery management/saving using MCU power down mode. /INT from DS3231 is connected to INT0 of MCU.

#include <avr/sleep.h>
#include <Wire.h>
#include “DS3231.h”

DS3231 RTC; //Create the DS3231 object
static uint8_t prevSecond=0;

void setup ()
{
/*Initialize INT0 for accepting interrupts */
PORTD |= 0x04;
DDRD &=~ 0x04;

 Serial.begin(57600);
 Wire.begin();

 RTC.begin();
 attachInterrupt(0, INT0_ISR, FALLING); 
 
 //Enable Interrupt 
 RTC.enableInterrupts(EverySecond); //interrupt at  EverySecond, EveryMinute, EveryHour
 // or this
 //RTC.enableInterrupts(18,4,0);    // interrupt at (h,m,s)

}

void loop ()
{

DateTime now = RTC.now(); //get the current date-time    
if((now.second()) !=  prevSecond )
{
//print only when there is a change in seconds
Serial.print(now.year(), DEC);
Serial.print('/');
Serial.print(now.month(), DEC);
Serial.print('/');
Serial.print(now.date(), DEC);
Serial.print(' ');
Serial.print(now.hour(), DEC);
Serial.print(':');
Serial.print(now.minute(), DEC);
Serial.print(':');
Serial.print(now.second(), DEC);
Serial.println(' ');
}
prevSecond = now.second();
RTC.clearINTStatus();

}

//Interrupt service routine for external interrupt on INT0 pin conntected to /INT
void INT0_ISR()
{
//Keep this as short as possible. Possibly avoid using function calls

Serial.println(" External Interrupt detected ");
}[/code]

In fact we do not support with code.If you have any problem with hardware you can contact us.

Examples in the wiki don’t work!
Seeeduino Stalker write time, “Sleeping…” and it’s all.
No interrupts after 15sec in “StalkerV21_DataLogger_15Sec_NoSerialPort”
No interrupts in “StalkerV21_DataLogger_5min”
No in “StalkerV21_DataLogger_Periodic”

I solder a bridge like in instruction.

Have two Seeeduino Stalker 2.1 problem on either.

Ok, how can i test interrupts, if examples don’t work? May be it’s hardware problem?

//–Duplicate post in my lang.–//
Примеры приведенные в вики не работают!
Seeeduino Stalker выводит в порт время, затем “Sleeping” и все.
Прерывания(в примерах есть где она уходит в сон и где просто срабатывает обработка прерывания) не работают ни в одном из привиденных в вики примеров.
Попытка спаять по новой PD2 с INT проводилась несколько раз на двух платах.
Даже если вы не поддерживаете код, и отвечаете лишь на “железные” проблемы, как можно удостовериться в работоспособности прерываний?

We are sorry for the inconvenient taking, Please try the new library.
SeeeduinoStalkerV2.1_Software.zip (18.4 KB)
Thanks
Albert

All worked, thanks!
Upload this to wiki please.

[size=200]POST NEW FILES ON THE WIKI PLEASE because it’s been two days since I’m stuck with this problem![/size] and I just found why I bloqued…