# Help me I'm new , monitored loop eol

**URL:** <https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309>\
**Category:** General Guidance\
**Created:** [February 2, 2014, 5:07pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309 "2014-02-02T17:07:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 2, 2014, 5:07pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/1 "2014-02-02T17:07:55Z")

</div>

Hi

I'm completely new to arduino , want to build a monitored loop with end of line resistor as a alarm loop , is this possible with arduino ,mwhere do I start

Would really appreciate help

Thanks  
Craig

---

<div class="post-metadata">

**Author:** ![wildbill](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wildbill/32/1126438_2.png) [@wildbill](https://forum.arduino.cc/u/wildbill)\
**Post date:** [February 2, 2014, 5:10pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/2 "2014-02-02T17:10:32Z")

</div>

> want to build a monitored loop with end of line resistor as a alarm loop

Could you elaborate on what this means?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 2, 2014, 5:35pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/3 "2014-02-02T17:35:22Z")

</div>

Hi

So I want to have a bit of alarm cable and put a resistor across the end of it , then I want to monitor this cable so I know if anyone has cut it or shorted it ,

Let me know if you need any more info

Cheers  
Craig

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [February 2, 2014, 5:37pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/4 "2014-02-02T17:37:51Z")

</div>

How about just making it part of a voltage divider ([Voltage divider - Wikipedia](http://en.wikipedia.org/wiki/Voltage_divider)) and connecting the middle to an analog input of the Arduino?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 2, 2014, 5:50pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/5 "2014-02-02T17:50:04Z")

</div>

Hi

I think that is sort of what I need , what I need it to do is if the loop of wire is cut or shorted out I need it to set of a alarm , I am really looking for a step by step guide as I havnt got a clue , first project

Cheers  
Craig

---

<div class="post-metadata">

**Author:** ![pylon](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pylon](https://forum.arduino.cc/u/pylon)\
**Post date:** [February 2, 2014, 6:38pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/6 "2014-02-02T18:38:26Z")

</div>

> I am really looking for a step by step guide as I havnt got a clue , first project

You get help here but don't expect step by step solutions for your custom projects. You got the hints and know now where to look for additional information but you have to do your project yourself, we won't do it for you.

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [February 2, 2014, 6:47pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/7 "2014-02-02T18:47:54Z")

</div>

In your IDE there are examples that will help you learn the basics.  
Going through them will give you a good foundation in programming the Arduino.

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [February 2, 2014, 9:28pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/8 "2014-02-02T21:28:00Z")

</div>

Yes, we've had previous threads on this subject.

It's perfectly straightforward to do, but there are a few important engineering tricks to it.

The main two concerns are protection of the Arduino, and interference, and these are addressed together. To start with, your "loop" is to ground, and powered from your main supply (not the Arduino) which is presumably 12V, via a resistor of three times the loop resistor value, say 1k5 with 470 ohms on the end of the loop. This results in a voltage of around 3V, which you feed to an analog pin on the Arduino _through a 4k7 resistor_ which limits any adverse input into the Arduino when either the loop is broken, or some sort of impulse (lightning!) is coupled into the loop. For additional protection you might put a 4.7V Zener across the input and a 0.47µF capacitor (plastic, not electrolytic) to suppress _radio_ interference and switching transients from mains wiring.

And then of course, you read the analog voltage at about 100 ms intervals in your main processing loop, and use a "debounce" routine to detect _significant_ alterations in the value measured that persist for more than five successive readings - about ½ a second.

There you go!

---

<div class="post-metadata">

**Author:** ![tsamppa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tsamppa/32/235310_2.png) [@tsamppa](https://forum.arduino.cc/u/tsamppa)\
**Post date:** [April 26, 2019, 7:40pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/9 "2019-04-26T19:40:18Z")

</div>

> Paul\_\_B:  
> The main two concerns are protection of the Arduino, and interference, and these are addressed together. To start with, your "loop" is to ground, and powered from your main supply (not the Arduino) which is presumably 12V, via a resistor of three times the loop resistor value, say 1k5 with 470 ohms on the end of the loop. This results in a voltage of around 3V, which you feed to an analog pin on the Arduino _through a 4k7 resistor_ which limits any adverse input into the Arduino when either the loop is broken, or some sort of impulse (lightning!) is coupled into the loop. For additional protection you might put a 4.7V Zener across the input and a 0.47µF capacitor (plastic, not electrolytic) to suppress _radio_ interference and switching transients from mains wiring.
> 
> And then of course, you read the analog voltage at about 100 ms intervals in your main processing loop, and use a "debounce" routine to detect _significant_ alterations in the value measured that persist for more than five successive readings - about ½ a second.

Thanks! This is exactly the kind of info what I have been looking for too.  
It is amazing how few info there are on the net considering that all the legacy alarm systems use such a simple resistor loops.

Would it be easy (how?) to make the voltage detection to control relays to latch and give binary info on each of the voltage levels. And then "read" those with arduino for additional safety? I mean there would be four relays for each scenario of 1) short circuit, 2) eol resistor only, 3) cut wire and 4) alarm. I think some alarms have even separate internal failure state that could add another relay. The voltage levels should perhaps be adjustable to the case with potentiometers.

It would be perfect if that kind of a circuit would be a ready made module.

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [April 26, 2019, 10:13pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/10 "2019-04-26T22:13:44Z")

</div>

> tsamppa:  
> It would be perfect if that kind of a circuit would be a ready made module.

Well you might be waiting awhile.

Your suggestion is to use a number of comparators - LM339s in addition to the Arduino. Yes, quite do-able.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 5:04pm UTC](https://forum.arduino.cc/t/help-me-im-new-monitored-loop-eol/209309/11 "2021-05-05T17:04:51Z")

</div>

Closed on May 5, 2021, 5:04pm UTC


