Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Interrupt

Home Forums Mayfly Data Logger Interrupt Reply To: Interrupt

#2227
Jim Moore
Participant

    I have been trying to setup the new rev 0.5 boards to run my Atlas Scientific sensors and I have been using the Mayfly_sleep example. I changed J1 to use D10 as the interupt and it didn’t work till I used attachInterrupt(2, wakeISR,CHANGE)
    This didn’t work reliably until I added the pinMode(RTC_PIN, INPUT_PULLUP) back into the example code.

    I now have the example code working on my rev 0.5 board but the battery voltage is 1.5.
    Multiple of 2! Initiating sensor reading and logging data to SDcard….
    Data Record: 2017-05-14 22:28:00,548116080,23.8,1.52
    showTime = 2017-05-14 22:29:00
    showTime = 2017-05-14 22:30:00
    Multiple of 2! Initiating sensor reading and logging data to SDcard….
    Data Record: 2017-05-14 22:30:00,548116200,23.8,1.52

    This code read the battery voltage correctly on the rev 0.3 board.
    Is the correct pin still A6?