<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>alarm-system on Cavelab</title>
    <link>https://www.cavelab.dev/tags/alarm-system/</link>
    <description>Recent content in alarm-system on Cavelab</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Thomas Jensen</copyright>
    <lastBuildDate>Tue, 08 Sep 2026 12:15:41 +0200</lastBuildDate>
	  <atom:link href="https://www.cavelab.dev/tags/alarm-system/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Rebuilding the DIY alarm system</title>
      <link>https://www.cavelab.dev/posts/diy-alarm-do-over/</link>
      <pubDate>Tue, 08 Sep 2026 12:15:41 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/diy-alarm-do-over/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/diy-alarm-do-over/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve decided to completely rebuild my DIY alarm system.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Mean Well UPS supply instead of C-TEK charger&lt;/li&gt;&#xA;&lt;li&gt;Bigger battery in dedicated cabinet&lt;/li&gt;&#xA;&lt;li&gt;Arduino Mega as core, Raspberry Pi only as MQTT relay&lt;/li&gt;&#xA;&lt;li&gt;End-of-line resistors&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The biggest change is undoubtedly moving the alarm state machine and all logic from the Raspberry Pi to an Arduino Mega. There are three main reasons for this move:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It&amp;rsquo;s fun and I&amp;rsquo;d like to work more with the Arduino&lt;/li&gt;&#xA;&lt;li&gt;The Arduino Mega has 16 analog inputs, making it possible to use end-of-line resistors&lt;/li&gt;&#xA;&lt;li&gt;An alarm system needs to be stable — not crash, hang or get a corrupted SD card&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been thinking about end-of-line resistors since I first got started, but the Raspberry Pi doesn&amp;rsquo;t have any analog inputs. Initially I thought of using the Arduino Mega as an I/O interface device, but as I got started I figured why not let it do more.&lt;/p&gt;&#xA;&lt;p&gt;So &lt;a href=&#34;https://fosstodon.org/@thomasjsn/tagged/RPiSecuritySystem&#34;&gt;#RPiSecuritySystem&lt;/a&gt; is now &lt;a href=&#34;https://fosstodon.org/@thomasjsn/tagged/DIYAlarmSystem&#34;&gt;#DIYAlarmSystem&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
