<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>boolean &amp;mdash; Neil&#39;s Blog</title>
    <link>https://wf.kawa-kun.com/tag:boolean</link>
    <description></description>
    <pubDate>Tue, 25 Aug 2026 16:10:27 -0700</pubDate>
    <item>
      <title>Boolean logic and 7400-series ICs</title>
      <link>https://wf.kawa-kun.com/boolean-logic-and-7400-series-ics</link>
      <description>&lt;![CDATA[In order to drive the relay modules, a set of control signals is needed.  Since I only have 18/5 cabling at most, that means that I&#39;ll only have 3+VCC+ground to work with, but there are five relay modules plus a reset line.  Boolean logic to the rescue!&#xA;&#xA;My thinking was using binary number values from 0-4 to select which relay to enable, while I&#39;d have a 7 (0b111) indicate a reset signal.  After creating the truth table on paper, I converted it into AND and NOR gates and simulated it in Qucs-S.&#xA;&#xA;Boolean logic gates and truth table from Qucs-S&#xA;&#xA;Then I made footprints for the 74HC00A-series ICs that contain the gates I&#39;d be using, and lastly created a schematic showing the routing for all of the lines I&#39;d need in KiCad.&#xA;&#xA;NOR, AND, and AND ICs in Kicad with all of their signal and power lines connected&#xA;&#xA;With that, I had what I needed to actually create the board on perf board.  I also made a test fixture using buttons and LEDs to verify that it was correct.&#xA;&#xA;video controls src=&#34;https://img.wf.kawa-kun.com/uploads/original/95/52/6ad79d39554ba83c31d381a8679b.mp4&#34; /&#xA;&#xA;The only bug I ran into was where the Relay4 line was high whenever I held all buttons down, which should only trigger Reset.  Turns out I only forgot to connect a couple of traces.  With that fixed, it worked 100%!&#xA;&#xA;#AmateurRadio #HamRadio #electronics #maker #boolean #logic ]]&gt;</description>
      <content:encoded><![CDATA[<p>In order to drive <a href="https://wf.kawa-kun.com/crash-course-in-transistors-and-electronics">the relay modules</a>, a set of control signals is needed.  Since I only have 18/5 cabling at most, that means that I&#39;ll only have 3+VCC+ground to work with, but there are five relay modules plus a reset line.  Boolean logic to the rescue!</p>

<p>My thinking was using binary number values from 0-4 to select which relay to enable, while I&#39;d have a 7 (0b111) indicate a reset signal.  After creating the truth table on paper, I converted it into AND and NOR gates and simulated it in <a href="https://ra3xdh.github.io/">Qucs-S</a>.</p>

<p><img src="https://img.wf.kawa-kun.com/uploads/original/d9/74/23c6530731b59f3253b9a152d7b7.png" alt="Boolean logic gates and truth table from Qucs-S"></p>

<p>Then I made footprints for the <a href="https://toshiba.semicon-storage.com/us/semiconductor/product/general-purpose-logic-ics/detail.TC74HC00AP.html">74HC00A-series ICs</a> that contain the gates I&#39;d be using, and lastly created a schematic showing the routing for all of the lines I&#39;d need in KiCad.</p>

<p><img src="https://img.wf.kawa-kun.com/uploads/original/67/d8/f54499126f907f2ecdd318b9139b.png" alt="NOR, AND, and AND ICs in Kicad with all of their signal and power lines connected"></p>

<p>With that, I had what I needed to actually create the board on perf board.  I also made a test fixture using buttons and LEDs to verify that it was correct.</p>

<p><video controls="" src="https://img.wf.kawa-kun.com/uploads/original/95/52/6ad79d39554ba83c31d381a8679b.mp4"/></p>

<p>The only bug I ran into was where the Relay4 line was high whenever I held all buttons down, which should only trigger Reset.  Turns out I only forgot to connect a couple of traces.  With that fixed, it worked 100%!</p>

<p><a href="https://wf.kawa-kun.com/tag:AmateurRadio" class="hashtag"><span>#</span><span class="p-category">AmateurRadio</span></a> <a href="https://wf.kawa-kun.com/tag:HamRadio" class="hashtag"><span>#</span><span class="p-category">HamRadio</span></a> <a href="https://wf.kawa-kun.com/tag:electronics" class="hashtag"><span>#</span><span class="p-category">electronics</span></a> <a href="https://wf.kawa-kun.com/tag:maker" class="hashtag"><span>#</span><span class="p-category">maker</span></a> <a href="https://wf.kawa-kun.com/tag:boolean" class="hashtag"><span>#</span><span class="p-category">boolean</span></a> <a href="https://wf.kawa-kun.com/tag:logic" class="hashtag"><span>#</span><span class="p-category">logic</span></a></p>
]]></content:encoded>
      <guid>https://wf.kawa-kun.com/boolean-logic-and-7400-series-ics</guid>
      <pubDate>Wed, 19 Aug 2026 13:54:47 -0700</pubDate>
    </item>
  </channel>
</rss>