I have attached the sketch I wrote for my project. The project involves a pulse, skin conductance and temperature sensor. The data obtained from these sensors are then logged to an SD card. When a button is pressed, the logging starts and stops when the same button is pushed again. When it is pressed one more time, data logging begins in a new file. But after a few button presses, the arduino stops responding to the interrupts. I have added an indicator led to check if the ISR was being executed and the state of the led does not change after a few key presses plus the led on the breakout board too does not flash( which flashes during R/W ops). Please help. I am using both interrupt0 and 1 plus the ISR of INT0 triggers the Timer1 to execute a function every 2 ms. I also want to know whether once the ISR of INT0 is interrupted by INT1, does the execution resume at the point where the ISR of int0 was left off when the processor is done with ISR of INT1??
sensor_project.ino (8.71 KB)