Triggering on Analog pins 0,1,2, Datalogger ADXL377 Questions,Level Detector

Hello fellow tinkerers,

for my next project i would like to log data from an adxl377, temperature sensor LMT84, DS 1307 RTC Clock. the ADXL377 because of the speed of my ADC i am building an Level detector between the ADXL377 and Arduino Nano ( EEVblog #490 - Peak Detector Circuit - YouTube), (which is limited to 1000Hz because of the ADXL 377 see datasheet). Then all collected information is send to my SD card reader.

because it is a stand alone i would like to trigger an Interrupt on the Rising edge of one of my analog pins through the ADC, and wake it up from sleep if movement is detected from the ADXL377 sensor which logged data and saves it to the SD card.

attached is a file that datalogs for temperature, current and voltage. Whereby the voltage is measured through an double comperator circuit with two voltage dividers which divided through 100 and amplifies x 10. The current sensor is from Polulu ACS907 -75A + 75A.
and the digital (the most slowest) DS18s20.

i have worked with interrupts, and brown detectors in other applications, but i am not getting the hang of interrupts in arduino or how to trigger them on analogpins, i greatly appreciate changes, on how to optimise or solve this challenge with interrupts. what alterations are preferred or are required, to let this program work?

sincerely yours,

Bastiaan

RTC_GOOD.ino (13.2 KB)