Detect voltage break In a circuit

Using the loop function it should be possible to detect whether a circuit has been broken assuming that the Core has had a digital input and ground wired in series to a circuit.

For take simple circuit consisting only of a battery pack (3v), a light bulb and a switch. If one wires the GND and D1 pin in series to the circuit, it should be possible to detect that the circuit is broken if the switch is pressed. Well, in my head anyway.

Can someone confirm this? Am currently in LAX waiting for a flight so hoping to confirm before I board and not have this going around in my head for the flight to London!

It sounds like you want something similar to what is called a “supervised circuit” in a home alarm.

Here’s some reading to see how it is done:

http://www.diy-alarms.co.uk/pscatalog/modules/blocknews/item.php?item_id=24

Using an analog input, you can read the voltage on the wire and tell lots of things, like open, closed, tampered with, etc.

1 Like