How to make a default on circuit the can latch off until a interrupt goes low

latchlow-power

I am trying to design a datalogger that should run for a long time on one set of batteries. I have a RTC module that has a interrupt wire that is high when powered on and goes low when a alarm time occurs. When this happens I want to power on the main circuit, measure and then send a signal from the arduino to power off again.

I have tried to just run via a p-channel mosfet, but my electrical engineering skills are not sufficient to design a latch circuit for it. I didn't manage to get it to turn on when the power turns on…

I would be thankful for some help. nearly working circuit

Best Answer

This circuit should do what you want:

enter image description here

IC2 represents your RTC module; I just picked one with an IRQ output.

When the IRQ line goes low, the latch (IC1) is set (pin 3 high). Pin 6 is then low, which turns on the P-channel MOSFET nd supplies power to the main circuit.

When the Arduino sets its output low, the latch will reset, and the power will be turned off.

(Note: I didn't include the decoupling caps on each of the IC's, they should have 100 nF caps between Vcc and ground.)