Close

interrupt, sleep, repeat

A project log for Team TAHMO

Develop robust and affordable advanced sensing capability for 20,000 weather stations in Africa (lightning, precip water, ...)

nick-van-de-giesenNick van de Giesen 09/12/2015 at 12:560 Comments

It has taken some time to organize for the semi-final activities but we have built up the necessary steam for the final stretch. First coding task was implementation of the hardware interrupt on the ATMega328. Gilbert finished and tested the code this week. When a lightning strike (or disturber) is detected, the microcontroller wakes up, and continues to monitor until no event has occurred for ten minutes, after which it goes back to sleep. The code can be found at: https://codebender.cc/sketch:130427 .

After further and final testing, the settings of the AS3935 lightning detector has to be changed in such a way that it will only cause an interrupt when a lightning strike is detected, and not when a disturber or excessive noise is detected.

Discussions