Hi sir. how's the wiring connection when putting backup power in arduino/GSM module and what kind of battery to use? thanks
Take a look at Seeeduino Stalker, there you have the necessary electronics and an Arduino on one board:
thank you sir.
i'm working with the codes now.
isn't there is delay when the main power supply is transferred to the ups(the fluctuation of voltage). is it possible to use that delay as an interrupt?
can i connect 5v directly to the interrupt pin of arduino uno?
isn't there is delay when the main power supply is transferred to the ups(the fluctuation of voltage).
I don't hope so because if it is, the power to the Arduino would be interrupted and the microcontroller reset.
can i connect 5v directly to the interrupt pin of arduino uno?
Yes you can but you probably won't see any edge there.
To late here to think deeply about this, but as it is I don't think you can detect the loss of power without adding hardware, you need to read the anode side of D3 but when the power goes that will stay high because of R1.
Thinks...if the transformer puts out a voltage higher than the battery you can read the voltage at the D3 anode with an analogue input, that will tell you what is powering the board.
If you need a digital signal to generate an interrupt you could use a comparator across R1 set to change state when the top of R1 is a higher voltage than the bottom.
Rob