<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PCBA &amp; ENG &#8211; The Longhorn Engineer</title>
	<atom:link href="https://longhornengineer.com/category/pcba/feed/" rel="self" type="application/rss+xml" />
	<link>https://longhornengineer.com</link>
	<description>Robotics, Pinball, Hacking, Portables</description>
	<lastBuildDate>Sun, 18 Aug 2024 23:17:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Digital Input Simulation</title>
		<link>https://longhornengineer.com/2024/08/18/digital-input-simulation/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Sun, 18 Aug 2024 23:17:29 +0000</pubDate>
				<category><![CDATA[Cyclone Pulse Wrangler]]></category>
		<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3923</guid>

					<description><![CDATA[Nominal automotive voltages range widely. Your circuit needs to handle anywhere from 10V to 15V to properly function correctly. This is a challenge on the power supply side but it is forgotten often on the input/output control side of the circuits. Below is my current digital input circuit for the Cyclone Pulse Wrangler. This is &#8230; <a href="https://longhornengineer.com/2024/08/18/digital-input-simulation/" class="more-link">Continue reading <span class="screen-reader-text">Digital Input Simulation</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>Nominal automotive voltages range widely. Your circuit needs to handle anywhere from 10V to 15V to properly function correctly. This is a challenge on the power supply side but it is forgotten often on the input/output control side of the circuits. </p>



<p>Below is my current digital input circuit for the Cyclone Pulse Wrangler. This is an active low circuit. A switch pulls AUX_DIGITAL_IN to ground. This goes through some filtering and a voltage divider so the 3.3V MCU can safely determine if the switch is activated or not.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="887" src="https://longhornengineer.com/wp-content/uploads/image-276-1024x887.png" alt="" class="wp-image-3929" srcset="https://longhornengineer.com/wp-content/uploads/image-276-1024x887.png 1024w, https://longhornengineer.com/wp-content/uploads/image-276-800x693.png 800w, https://longhornengineer.com/wp-content/uploads/image-276-150x130.png 150w, https://longhornengineer.com/wp-content/uploads/image-276-768x666.png 768w, https://longhornengineer.com/wp-content/uploads/image-276-1536x1331.png 1536w, https://longhornengineer.com/wp-content/uploads/image-276.png 1612w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>On the MCU side (SAM D21 in this case), there is a threshold on the GPIO input on where the MCU considers the difference between a high or low signal. We need to make sure over the range of the power supply voltage (10V to 15V) that the MCU considers it to be a high signal. </p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="417" src="https://longhornengineer.com/wp-content/uploads/image-277-1024x417.png" alt="" class="wp-image-3930" srcset="https://longhornengineer.com/wp-content/uploads/image-277-1024x417.png 1024w, https://longhornengineer.com/wp-content/uploads/image-277-800x326.png 800w, https://longhornengineer.com/wp-content/uploads/image-277-150x61.png 150w, https://longhornengineer.com/wp-content/uploads/image-277-768x313.png 768w, https://longhornengineer.com/wp-content/uploads/image-277-1536x625.png 1536w, https://longhornengineer.com/wp-content/uploads/image-277.png 1567w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>This in page 875 of the <a href="https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D21_DA1_Family_DataSheet_DS40001882F.pdf">family datasheet</a>. VDD is 3.3V in our circuit. VIL and VIH is what is important here. VIL is 0.99V and VIH is 1.815V. This means if the voltage on the GPIO pin is high and drops below 0.99V then the MCU will register that as a low. If the signal is low and rises above 1.815V then it will consider it a high. Between these voltages it doesn&#8217;t initiate a state change. </p>



<p>We need to check to see our circuit stays above 1.815V output across the entire span. LTSpice is a goodish program to do this</p>



<figure class="wp-block-image size-full"><img decoding="async" width="903" height="684" src="https://longhornengineer.com/wp-content/uploads/image-272.png" alt="" class="wp-image-3925" srcset="https://longhornengineer.com/wp-content/uploads/image-272.png 903w, https://longhornengineer.com/wp-content/uploads/image-272-800x606.png 800w, https://longhornengineer.com/wp-content/uploads/image-272-150x114.png 150w, https://longhornengineer.com/wp-content/uploads/image-272-768x582.png 768w" sizes="(max-width: 903px) 100vw, 903px" /></figure>



<p>Above is the circuit in LTSpice. Stepping the +V from 10V to 15V gives the following output.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="609" height="916" src="https://longhornengineer.com/wp-content/uploads/image-275.png" alt="" class="wp-image-3928" srcset="https://longhornengineer.com/wp-content/uploads/image-275.png 609w, https://longhornengineer.com/wp-content/uploads/image-275-100x150.png 100w" sizes="(max-width: 609px) 100vw, 609px" /></figure></div>


<p>Well that isnt good! At 15V we get ~1.9V but at 10V we get ~1.26V which is in our gray zone! Lets change the 2.9K to 5.1K (R33) and see what we get.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="685" height="1024" src="https://longhornengineer.com/wp-content/uploads/image-278-685x1024.png" alt="" class="wp-image-3931" srcset="https://longhornengineer.com/wp-content/uploads/image-278-685x1024.png 685w, https://longhornengineer.com/wp-content/uploads/image-278-800x1195.png 800w, https://longhornengineer.com/wp-content/uploads/image-278-100x150.png 100w, https://longhornengineer.com/wp-content/uploads/image-278-768x1148.png 768w, https://longhornengineer.com/wp-content/uploads/image-278-1028x1536.png 1028w, https://longhornengineer.com/wp-content/uploads/image-278.png 1056w" sizes="(max-width: 685px) 100vw, 685px" /></figure></div>


<p>OK! Everything is in our deterministic range for a high signal! But lets check for resistor tolerances. Running a monte carlo simulation with 1% resistors gives us the following outputs. 10V rail and then 15V rail.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="767" height="884" src="https://longhornengineer.com/wp-content/uploads/image-273.png" alt="" class="wp-image-3926" srcset="https://longhornengineer.com/wp-content/uploads/image-273.png 767w, https://longhornengineer.com/wp-content/uploads/image-273-130x150.png 130w" sizes="(max-width: 767px) 100vw, 767px" /></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="640" height="854" src="https://longhornengineer.com/wp-content/uploads/image-274.png" alt="" class="wp-image-3927" srcset="https://longhornengineer.com/wp-content/uploads/image-274.png 640w, https://longhornengineer.com/wp-content/uploads/image-274-112x150.png 112w" sizes="(max-width: 640px) 100vw, 640px" /></figure></div>


<p>Well that looks good as well. Digital input should operate fine on the Cyclone Pulse Wrangler! </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Thermistor Readings</title>
		<link>https://longhornengineer.com/2024/08/18/thermistor-readings/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Sun, 18 Aug 2024 21:20:37 +0000</pubDate>
				<category><![CDATA[Cyclone Pulse Wrangler]]></category>
		<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3913</guid>

					<description><![CDATA[Automotive temperature sensors are typically thermistors. Resistance changes as the temperature changes. Most of the time you don&#8217;t want this to happen in normal resistors but thermistors are designed to change in a predictable manner so they can be used as sensors. There are multiple ways to read the resistance of a thermistor but the &#8230; <a href="https://longhornengineer.com/2024/08/18/thermistor-readings/" class="more-link">Continue reading <span class="screen-reader-text">Thermistor Readings</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>Automotive temperature sensors are typically thermistors. Resistance changes as the temperature changes. Most of the time you don&#8217;t want this to happen in normal resistors but thermistors are designed to change in a predictable manner so they can be used as sensors.</p>



<p>There are multiple ways to read the resistance of a thermistor but the easiest way is to make it part of a resistor voltage divider and use an ADC to convert the mid point to the temperature.</p>



<p>This is the circuit I designed for the Cyclone Pulse Wrangler. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="872" src="https://longhornengineer.com/wp-content/uploads/image-268-1024x872.png" alt="" class="wp-image-3915" srcset="https://longhornengineer.com/wp-content/uploads/image-268-1024x872.png 1024w, https://longhornengineer.com/wp-content/uploads/image-268-800x681.png 800w, https://longhornengineer.com/wp-content/uploads/image-268-150x128.png 150w, https://longhornengineer.com/wp-content/uploads/image-268-768x654.png 768w, https://longhornengineer.com/wp-content/uploads/image-268.png 1281w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>This is lifted from a variety of open source engine control hardware circuits. </p>



<ul class="wp-block-list">
<li><a href="https://github.com/speeduino/Hardware">Speeduino</a></li>



<li><a href="https://www.msextra.com/manuals/schematics/">MegaSquirt</a></li>
</ul>



<p>I don&#8217;t know who or where the original 2.49K ohm pull up is from but most aftermarket sensors reference that pull up as well. I like AEM sensors and use the <a href="https://www.aemelectronics.com/products/sensors/temperature_sensors/parts/30-2013">30-2013</a> sensor in a lot of projects. They include easy to find calibration charts.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="973" src="https://longhornengineer.com/wp-content/uploads/image-269-1024x973.png" alt="" class="wp-image-3916" srcset="https://longhornengineer.com/wp-content/uploads/image-269-1024x973.png 1024w, https://longhornengineer.com/wp-content/uploads/image-269-800x760.png 800w, https://longhornengineer.com/wp-content/uploads/image-269-150x143.png 150w, https://longhornengineer.com/wp-content/uploads/image-269-768x730.png 768w, https://longhornengineer.com/wp-content/uploads/image-269.png 1043w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now this is great if you are using a 5.0V sensor rail but the Cyclone Pulse Wrangler only has a 3.3V rail so some conversion is needed. I used chatGPT to convert the chart in the datasheet for the sensor into a CSV file I could import into a google doc. </p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://longhornengineer.com/wp-content/uploads/image-270.png"><img loading="lazy" decoding="async" width="423" height="1024" src="https://longhornengineer.com/wp-content/uploads/image-270-423x1024.png" alt="" class="wp-image-3917" srcset="https://longhornengineer.com/wp-content/uploads/image-270-423x1024.png 423w, https://longhornengineer.com/wp-content/uploads/image-270-62x150.png 62w, https://longhornengineer.com/wp-content/uploads/image-270-768x1860.png 768w, https://longhornengineer.com/wp-content/uploads/image-270-634x1536.png 634w, https://longhornengineer.com/wp-content/uploads/image-270.png 772w" sizes="(max-width: 423px) 100vw, 423px" /></a></figure></div>


<p>Then just used some ohms law magic to make the below chart. Here is a link to the <a href="https://docs.google.com/spreadsheets/d/1PxPySKUX3CEpan71CMsYz_nx2M6sAxPpMHhND1K_5Qg/edit?usp=sharing" data-type="link" data-id="https://docs.google.com/spreadsheets/d/1PxPySKUX3CEpan71CMsYz_nx2M6sAxPpMHhND1K_5Qg/edit?usp=sharing">google doc</a> if you want to see the formulas and copy it for other sensors.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="546" src="https://longhornengineer.com/wp-content/uploads/image-267-1024x546.png" alt="" class="wp-image-3914" srcset="https://longhornengineer.com/wp-content/uploads/image-267-1024x546.png 1024w, https://longhornengineer.com/wp-content/uploads/image-267-800x426.png 800w, https://longhornengineer.com/wp-content/uploads/image-267-150x80.png 150w, https://longhornengineer.com/wp-content/uploads/image-267-768x409.png 768w, https://longhornengineer.com/wp-content/uploads/image-267-1536x818.png 1536w, https://longhornengineer.com/wp-content/uploads/image-267.png 1573w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>There are some downsides to this method. Since you are passing current through the thermistor there is some self heating involved which will of course change the resistance of the thermistor&#8230; and then change the current&#8230; and then change the resist&#8230;. yeah you see where this is going. Here is a good paper on <a href="https://www.ti.com/lit/an/slyt774/slyt774.pdf?ts=1723958606236">measurement error in thermistors due to self heating</a> by Ti.</p>



<p>A way around that is to control the voltage supply that goes into the voltage divider and only turn it on when you need a reading. Chips like the MAX6682 do this automatically. A high side fet could be incorporated into the design. </p>



<p>Is this a big problem in automotive applications? Engines run around the 100C mark so lets use that resistance from the chart above (175 ohms). </p>



<p>With the 2.49K resistor on the top side of the divider we get a voltage of 0.217V across our thermistor. That is ~0.00124A of current across it. We are talking <strong>0.00026908 watts</strong>. Compared to the engine coolant. This is nothing. </p>



<p>Another source of error is current through the ADC. You want a high impedance here to prevent leakage current changing the reading. Most modern ADCs in MCUs are going to be high enough to prevent this being an issue in an automotive setting but it is always good to check if you are using a high end ADC that has low input impedance. An instrumentational opamp might be needed. </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Converting to LibrePCB</title>
		<link>https://longhornengineer.com/2024/08/18/converting-to-librepcb/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Sun, 18 Aug 2024 20:27:12 +0000</pubDate>
				<category><![CDATA[Cyclone Pulse Wrangler]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Thoughts]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3904</guid>

					<description><![CDATA[With Eagle being having a sunset date from Autodesk and not wanting to use Autodesk Electronics (Eagle in Fusion). I looked for EDA tool alternatives. I spent a good portion of the beginning of 2024 learning and building a product in KiCad v8. See the launch video below. After fighting KiCad for months, I gave &#8230; <a href="https://longhornengineer.com/2024/08/18/converting-to-librepcb/" class="more-link">Continue reading <span class="screen-reader-text">Converting to LibrePCB</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>With Eagle being having a sunset date from Autodesk and not wanting to use Autodesk Electronics (Eagle in Fusion). I looked for EDA tool alternatives. I spent a good portion of the beginning of 2024 learning and building a product in KiCad v8. See the launch video below.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="AND!XOR DC32 Trailer" width="474" height="267" src="https://www.youtube.com/embed/ivLMAMqQo1U?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p>After fighting KiCad for months, I gave up and will be trying out LibrePCB. </p>



<p>I have converted my Cyclone Pulse Wrangler circuit to LibrePCB. So far I am very happy with the tool. It needs a few QOL improvements but, overall, much more enjoyable experience then KiCad. I am not constantly looking up how to do simple actions. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="473" src="https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-1024x473.png" alt="" class="wp-image-3907" srcset="https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-1024x473.png 1024w, https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-800x370.png 800w, https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-150x69.png 150w, https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-768x355.png 768w, https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-1536x710.png 1536w, https://longhornengineer.com/wp-content/uploads/CPW-MainBoard_Schematics-2-2048x947.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>LibrePCB has a REALLY good Eagle Part Library importer. One of the best I have ever used. </p>



<p>The tool also supports plated slots in the footprint editor natively. No &#8220;workarounds&#8221; that are required in Eagle and KiCad to pull them off. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="764" src="https://longhornengineer.com/wp-content/uploads/image-265-1024x764.png" alt="" class="wp-image-3910" srcset="https://longhornengineer.com/wp-content/uploads/image-265-1024x764.png 1024w, https://longhornengineer.com/wp-content/uploads/image-265-800x597.png 800w, https://longhornengineer.com/wp-content/uploads/image-265-150x112.png 150w, https://longhornengineer.com/wp-content/uploads/image-265-768x573.png 768w, https://longhornengineer.com/wp-content/uploads/image-265.png 1161w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="931" src="https://longhornengineer.com/wp-content/uploads/image-266-1024x931.png" alt="" class="wp-image-3911" srcset="https://longhornengineer.com/wp-content/uploads/image-266-1024x931.png 1024w, https://longhornengineer.com/wp-content/uploads/image-266-800x727.png 800w, https://longhornengineer.com/wp-content/uploads/image-266-150x136.png 150w, https://longhornengineer.com/wp-content/uploads/image-266-768x698.png 768w, https://longhornengineer.com/wp-content/uploads/image-266.png 1136w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>I have only used the library and schematic editor. Both are missing more complex tools that Eagle and KiCad have but for 99% of PCB designers and users. They will never use those&#8230; and I rarely use them as well. </p>



<p>Let us see how the PCB layout tool is!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The Cyclone Pulse Wrangler</title>
		<link>https://longhornengineer.com/2024/08/18/the-cyclone-pulse-wrangler/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Sun, 18 Aug 2024 20:19:27 +0000</pubDate>
				<category><![CDATA[Cyclone Pulse Wrangler]]></category>
		<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3895</guid>

					<description><![CDATA[This is the evolution of the “jeep prop fan” controller I built what feels like a life time ago. I did build this board as well back in 2016 but never finished the code or used it in the Jeep. Here is the github repo of what I have so far. I did a complete &#8230; <a href="https://longhornengineer.com/2024/08/18/the-cyclone-pulse-wrangler/" class="more-link">Continue reading <span class="screen-reader-text">The Cyclone Pulse Wrangler</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>This is the evolution of the “jeep prop fan” controller I built what feels like a life time ago.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="487" src="https://longhornengineer.com/wp-content/uploads/image-263-1024x487.png" alt="" class="wp-image-3896" srcset="https://longhornengineer.com/wp-content/uploads/image-263-1024x487.png 1024w, https://longhornengineer.com/wp-content/uploads/image-263-800x380.png 800w, https://longhornengineer.com/wp-content/uploads/image-263-150x71.png 150w, https://longhornengineer.com/wp-content/uploads/image-263-768x365.png 768w, https://longhornengineer.com/wp-content/uploads/image-263-1536x730.png 1536w, https://longhornengineer.com/wp-content/uploads/image-263.png 1882w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>I did build this board as well back in 2016 but never finished the code or used it in the Jeep.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="546" src="https://longhornengineer.com/wp-content/uploads/image-264-1024x546.png" alt="" class="wp-image-3897" srcset="https://longhornengineer.com/wp-content/uploads/image-264-1024x546.png 1024w, https://longhornengineer.com/wp-content/uploads/image-264-800x426.png 800w, https://longhornengineer.com/wp-content/uploads/image-264-150x80.png 150w, https://longhornengineer.com/wp-content/uploads/image-264-768x409.png 768w, https://longhornengineer.com/wp-content/uploads/image-264-1536x818.png 1536w, https://longhornengineer.com/wp-content/uploads/image-264.png 1631w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Here is the github repo of what I have so far. I did a complete redesign and <em>rescope</em> of the project. The original was more of a Power Control Module. Gonna try to stick to just a PWM fan controller this time around.</p>



<p><a href="https://github.com/LonghornEngineer/Cyclone-Pulse-Wrangler">https://github.com/LonghornEngineer/Cyclone-Pulse-Wrangler</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="463" src="https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0-1024x463.jpeg" alt="" class="wp-image-3898" srcset="https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0-1024x463.jpeg 1024w, https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0-800x362.jpeg 800w, https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0-150x68.jpeg 150w, https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0-768x348.jpeg 768w, https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0-1536x695.jpeg 1536w, https://longhornengineer.com/wp-content/uploads/6a53a4734d43bc358a2e198bce53d03d3c9528c0.jpeg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Biggest change was moving to a SAMD21 mcu. Have lots of these left over from my pinball controller days.</p>



<p>This is the PWM output circuit. Pulling the signal to 12V though a 100ohm 1/4W resistor. A2N7002H-HF n-channel fet pulls it down.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="473" src="https://longhornengineer.com/wp-content/uploads/PWM_schematic-1024x473.png" alt="" class="wp-image-3899" srcset="https://longhornengineer.com/wp-content/uploads/PWM_schematic-1024x473.png 1024w, https://longhornengineer.com/wp-content/uploads/PWM_schematic-800x369.png 800w, https://longhornengineer.com/wp-content/uploads/PWM_schematic-150x69.png 150w, https://longhornengineer.com/wp-content/uploads/PWM_schematic-768x354.png 768w, https://longhornengineer.com/wp-content/uploads/PWM_schematic-1536x709.png 1536w, https://longhornengineer.com/wp-content/uploads/PWM_schematic-2048x945.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Here is the digital inputs to the system. These are active low inputs. 12V is the high. I am using a voltage divider to knock down what is the max voltage of ~14.7V to ~3.3V. I am not 100% sold on this circuit yet and might go with an optocoupler if convinced with the right part number. A 3.6V Zener Diode (BZT52C3V6-TP) helps make sure that I/O pin doesn’t get too out of wack.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="473" src="https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-1024x473.png" alt="" class="wp-image-3900" srcset="https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-1024x473.png 1024w, https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-800x369.png 800w, https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-150x69.png 150w, https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-768x354.png 768w, https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-1536x709.png 1536w, https://longhornengineer.com/wp-content/uploads/Digital_In_Schematic-2048x945.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>To read the temperature sensors, which are thermistors, I just lifted the circuit that other engine control uses. Low pass filter and a pullup. I/O pins are protected with a SP721ABG SCR/Diode chip.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="473" src="https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-1024x473.png" alt="" class="wp-image-3901" srcset="https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-1024x473.png 1024w, https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-800x369.png 800w, https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-150x69.png 150w, https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-768x354.png 768w, https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-1536x709.png 1536w, https://longhornengineer.com/wp-content/uploads/Analog_In_Schematic-2048x945.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>The last part to highlight so far is the driver outputs. These can be used to drive relays or indicator lights or whatever. These can be a voltage source or a ground sink depending on what is needed. Basically a half bridge setup. Don’t set both I/O pins high <img loading="lazy" decoding="async" width="20" height="20" src="https://emoji.discourse-cdn.com/twitter/wink.png?v=12" alt=":wink:"> Maybe I add in some gate logic to prevent shoot through condition? Or just write the code with a check before setting the outputs?</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="473" src="https://longhornengineer.com/wp-content/uploads/Driver_Schematic-1024x473.png" alt="" class="wp-image-3902" srcset="https://longhornengineer.com/wp-content/uploads/Driver_Schematic-1024x473.png 1024w, https://longhornengineer.com/wp-content/uploads/Driver_Schematic-800x369.png 800w, https://longhornengineer.com/wp-content/uploads/Driver_Schematic-150x69.png 150w, https://longhornengineer.com/wp-content/uploads/Driver_Schematic-768x354.png 768w, https://longhornengineer.com/wp-content/uploads/Driver_Schematic-1536x709.png 1536w, https://longhornengineer.com/wp-content/uploads/Driver_Schematic-2048x945.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Rough Draft of Cat Feeder Unreminder Enclosure</title>
		<link>https://longhornengineer.com/2023/01/25/rough-draft-of-cat-feeder-unreminder-enclosure/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 04:24:24 +0000</pubDate>
				<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cat Feeder Unreminder]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3662</guid>

					<description><![CDATA[This isn&#8217;t completed but the general shape and assembly for the Cat Feeder Unreminder is going to look like this. A 3D printed enclosure with a grove in it that the solar panel slides into. Then the PCB fastens to the front which captives the solar panel. Then on the PCB there will be soldered &#8230; <a href="https://longhornengineer.com/2023/01/25/rough-draft-of-cat-feeder-unreminder-enclosure/" class="more-link">Continue reading <span class="screen-reader-text">Rough Draft of Cat Feeder Unreminder Enclosure</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>This isn&#8217;t completed but the general shape and assembly for the Cat Feeder Unreminder is going to look like this. A 3D printed enclosure with a grove in it that the solar panel slides into. Then the PCB fastens to the front which captives the solar panel. Then on the PCB there will be soldered threaded inserts where a plexi front panel will fasten to.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="619" src="https://longhornengineer.com/wp-content/uploads/image-199-1024x619.png" alt="" class="wp-image-3663" srcset="https://longhornengineer.com/wp-content/uploads/image-199-1024x619.png 1024w, https://longhornengineer.com/wp-content/uploads/image-199-800x484.png 800w, https://longhornengineer.com/wp-content/uploads/image-199-150x91.png 150w, https://longhornengineer.com/wp-content/uploads/image-199-768x465.png 768w, https://longhornengineer.com/wp-content/uploads/image-199-1536x929.png 1536w, https://longhornengineer.com/wp-content/uploads/image-199-2048x1239.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Cat Feeder Unreminder Breadboarded</title>
		<link>https://longhornengineer.com/2023/01/24/cat-feeder-unreminder-breadboarded/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Wed, 25 Jan 2023 03:31:18 +0000</pubDate>
				<category><![CDATA[HW/SW Hacks]]></category>
		<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cat Feeder Unreminder]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3656</guid>

					<description><![CDATA[I got the entire project onto a breadboard&#8230; mostly! A combination of evaluation boards and breakout boards and I was able to verify all the subsystems are working correctly together. The entire system draws ~5.6uA at 3.3V from the super capacitors. Measured through the uCurrent. Here is the breadboard with the subsystems called out. Up &#8230; <a href="https://longhornengineer.com/2023/01/24/cat-feeder-unreminder-breadboarded/" class="more-link">Continue reading <span class="screen-reader-text">Cat Feeder Unreminder Breadboarded</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>I got the entire project onto a breadboard&#8230; mostly! A combination of evaluation boards and breakout boards and I was able to verify all the subsystems are working correctly together.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="749" src="https://longhornengineer.com/wp-content/uploads/image-196-1024x749.png" alt="" class="wp-image-3657" srcset="https://longhornengineer.com/wp-content/uploads/image-196-1024x749.png 1024w, https://longhornengineer.com/wp-content/uploads/image-196-800x585.png 800w, https://longhornengineer.com/wp-content/uploads/image-196-150x110.png 150w, https://longhornengineer.com/wp-content/uploads/image-196-768x561.png 768w, https://longhornengineer.com/wp-content/uploads/image-196-1536x1123.png 1536w, https://longhornengineer.com/wp-content/uploads/image-196.png 1855w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>The entire system draws ~5.6uA at 3.3V from the super capacitors. Measured through the uCurrent.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="626" src="https://longhornengineer.com/wp-content/uploads/image-197-1024x626.png" alt="" class="wp-image-3658" srcset="https://longhornengineer.com/wp-content/uploads/image-197-1024x626.png 1024w, https://longhornengineer.com/wp-content/uploads/image-197-800x489.png 800w, https://longhornengineer.com/wp-content/uploads/image-197-150x92.png 150w, https://longhornengineer.com/wp-content/uploads/image-197-768x469.png 768w, https://longhornengineer.com/wp-content/uploads/image-197-1536x939.png 1536w, https://longhornengineer.com/wp-content/uploads/image-197.png 1860w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Here is the breadboard with the subsystems called out.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="719" src="https://longhornengineer.com/wp-content/uploads/image-198-1024x719.png" alt="" class="wp-image-3659" srcset="https://longhornengineer.com/wp-content/uploads/image-198-1024x719.png 1024w, https://longhornengineer.com/wp-content/uploads/image-198-800x562.png 800w, https://longhornengineer.com/wp-content/uploads/image-198-150x105.png 150w, https://longhornengineer.com/wp-content/uploads/image-198-768x539.png 768w, https://longhornengineer.com/wp-content/uploads/image-198-1536x1079.png 1536w, https://longhornengineer.com/wp-content/uploads/image-198.png 2001w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Up next is to complete the enclosure design and then the board layout!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>DG469 Analog Switch</title>
		<link>https://longhornengineer.com/2023/01/19/dg469-analog-switch/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Fri, 20 Jan 2023 03:02:01 +0000</pubDate>
				<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Cat Feeder Unreminder]]></category>
		<category><![CDATA[DG469]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3636</guid>

					<description><![CDATA[The DG469 is an analog switch that can be controlled with digital signals. The switching part of the chip is bi-direction which is perfect for switching analog signals. I will be using this IC to switch which segments on the TN LCD get powered up. The NC (Normally Connected) will send power to the &#8220;Don&#8217;t &#8230; <a href="https://longhornengineer.com/2023/01/19/dg469-analog-switch/" class="more-link">Continue reading <span class="screen-reader-text">DG469 Analog Switch</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>The <a rel="noreferrer noopener" href="https://www.mouser.com/datasheet/2/427/dg469-1765946.pdf" data-type="URL" data-id="https://www.mouser.com/datasheet/2/427/dg469-1765946.pdf" target="_blank">DG469</a> is an analog switch that can be controlled with digital signals. The switching part of the chip is bi-direction which is perfect for switching analog signals. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="600" src="https://longhornengineer.com/wp-content/uploads/image-183-1024x600.png" alt="" class="wp-image-3637" srcset="https://longhornengineer.com/wp-content/uploads/image-183-1024x600.png 1024w, https://longhornengineer.com/wp-content/uploads/image-183-800x468.png 800w, https://longhornengineer.com/wp-content/uploads/image-183-150x88.png 150w, https://longhornengineer.com/wp-content/uploads/image-183-768x450.png 768w, https://longhornengineer.com/wp-content/uploads/image-183-1536x899.png 1536w, https://longhornengineer.com/wp-content/uploads/image-183-2048x1199.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">The DG469 designed in Eagle in the SOIC-8 package.</figcaption></figure>



<p></p>



<p>I will be using this IC to switch which segments on the TN LCD get powered up. The NC (Normally Connected) will send power to the &#8220;Don&#8217;t feed&#8221; notification state. The NO (Normally Open) will send power to the &#8220;Feed&#8221; notification state.</p>



<p>It also has very low power requirements which will be perfect for my project.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="758" src="https://longhornengineer.com/wp-content/uploads/image-184-1024x758.png" alt="" class="wp-image-3638" srcset="https://longhornengineer.com/wp-content/uploads/image-184-1024x758.png 1024w, https://longhornengineer.com/wp-content/uploads/image-184-800x592.png 800w, https://longhornengineer.com/wp-content/uploads/image-184-150x111.png 150w, https://longhornengineer.com/wp-content/uploads/image-184-768x568.png 768w, https://longhornengineer.com/wp-content/uploads/image-184.png 1512w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Here is the schematic for the DG469 for the Cat Feeder Unreminder.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="593" src="https://longhornengineer.com/wp-content/uploads/image-185-1024x593.png" alt="" class="wp-image-3639" srcset="https://longhornengineer.com/wp-content/uploads/image-185-1024x593.png 1024w, https://longhornengineer.com/wp-content/uploads/image-185-800x463.png 800w, https://longhornengineer.com/wp-content/uploads/image-185-150x87.png 150w, https://longhornengineer.com/wp-content/uploads/image-185-768x445.png 768w, https://longhornengineer.com/wp-content/uploads/image-185-1536x890.png 1536w, https://longhornengineer.com/wp-content/uploads/image-185-2048x1186.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>I put V- to ground through a jumper because the datasheet isn&#8217;t very clear on how to set it up for unipolar power supplies. Gives me a chance to change what that voltage is. </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Wiring up the CFU Display</title>
		<link>https://longhornengineer.com/2023/01/17/wiring-up-the-cfu-display/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Wed, 18 Jan 2023 04:53:51 +0000</pubDate>
				<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Cat Feeder Unreminder]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3629</guid>

					<description><![CDATA[The CFU (Cat Feeder Unreminder) will notify the user that it is safe and timely to feed the cat through a use of a TN style LCD. These are typically a 7-segment style instead of graphical. The CFU also needs to notify the user that the device is still operating. Part Number: VI-422-DP-RC-S The common &#8230; <a href="https://longhornengineer.com/2023/01/17/wiring-up-the-cfu-display/" class="more-link">Continue reading <span class="screen-reader-text">Wiring up the CFU Display</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>The CFU (Cat Feeder Unreminder) will notify the user that it is safe and timely to feed the cat through a use of a TN style LCD. These are typically a 7-segment style instead of graphical. The CFU also needs to notify the user that the device is still operating. </p>



<p>Part Number: <a href="https://longhornengineer.com/2023/01/16/vi-422-dp-rc-s-display-eagle-footprint/" data-type="URL" data-id="https://longhornengineer.com/2023/01/16/vi-422-dp-rc-s-display-eagle-footprint/" target="_blank" rel="noreferrer noopener">VI-422-DP-RC-S</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="473" src="https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-1024x473.png" alt="" class="wp-image-3631" srcset="https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-1024x473.png 1024w, https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-800x370.png 800w, https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-150x69.png 150w, https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-768x355.png 768w, https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-1536x710.png 1536w, https://longhornengineer.com/wp-content/uploads/VI-422-DP-RC-S-_MOCK-2048x946.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>The common (COM) pin of the display will be directly connected to one leg of the oscillator circuit. Depending on where the other leg of the oscillator is routed, the display will either show &#8220;FEEd&#8221; or will light up the S1 segment.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>VI-422-DP-RC-S Display Eagle Footprint</title>
		<link>https://longhornengineer.com/2023/01/16/vi-422-dp-rc-s-display-eagle-footprint/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Tue, 17 Jan 2023 04:14:04 +0000</pubDate>
				<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cat Feeder Unreminder]]></category>
		<category><![CDATA[VI-422-DP-RC-S]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3624</guid>

					<description><![CDATA[This is the display I am using for the Cat Feeder Unreminder. Part Number: VI-422-DP-RC-S The display is a Twisted Nematic (TN) style LCD for low power. I talked about this display in a previous post. You can find the footprint in my eagle parts library in displays. Here is the current schematic for the &#8230; <a href="https://longhornengineer.com/2023/01/16/vi-422-dp-rc-s-display-eagle-footprint/" class="more-link">Continue reading <span class="screen-reader-text">VI-422-DP-RC-S Display Eagle Footprint</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="571" src="https://longhornengineer.com/wp-content/uploads/image-180-1024x571.png" alt="" class="wp-image-3625" srcset="https://longhornengineer.com/wp-content/uploads/image-180-1024x571.png 1024w, https://longhornengineer.com/wp-content/uploads/image-180-800x446.png 800w, https://longhornengineer.com/wp-content/uploads/image-180-150x84.png 150w, https://longhornengineer.com/wp-content/uploads/image-180-768x428.png 768w, https://longhornengineer.com/wp-content/uploads/image-180-1536x857.png 1536w, https://longhornengineer.com/wp-content/uploads/image-180-2048x1143.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>This is the display I am using for the Cat Feeder Unreminder. Part Number: <a href="https://www.mouser.com/ProductDetail/Varitronix/VI-422-DP-RC-S?qs=PcPxjN2Z58LLjF7UkMjx%252BA%3D%3D" data-type="URL" data-id="https://www.mouser.com/ProductDetail/Varitronix/VI-422-DP-RC-S?qs=PcPxjN2Z58LLjF7UkMjx%252BA%3D%3D" target="_blank" rel="noreferrer noopener">VI-422-DP-RC-S</a></p>



<p>The display is a Twisted Nematic (TN) style LCD for low power. I talked about this display in a <a href="https://longhornengineer.com/2022/12/28/oscillators-and-twisted-nematic-effect-displays/" data-type="URL" data-id="https://longhornengineer.com/2022/12/28/oscillators-and-twisted-nematic-effect-displays/" target="_blank" rel="noreferrer noopener">previous post</a>.</p>



<p>You can find the footprint in my <a href="https://github.com/LonghornEngineer/PP_Eagle_Part_Libraries" data-type="URL" data-id="https://github.com/LonghornEngineer/PP_Eagle_Part_Libraries" target="_blank" rel="noreferrer noopener">eagle parts library</a> in displays.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="458" src="https://longhornengineer.com/wp-content/uploads/image-181-1024x458.png" alt="" class="wp-image-3626" srcset="https://longhornengineer.com/wp-content/uploads/image-181-1024x458.png 1024w, https://longhornengineer.com/wp-content/uploads/image-181-800x358.png 800w, https://longhornengineer.com/wp-content/uploads/image-181-150x67.png 150w, https://longhornengineer.com/wp-content/uploads/image-181-768x343.png 768w, https://longhornengineer.com/wp-content/uploads/image-181-1536x687.png 1536w, https://longhornengineer.com/wp-content/uploads/image-181-2048x916.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Here is the current schematic for the Cat Feeder Unreminder! Just need to wire up the display.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>LTC2956 Schematic for the Cat Feeder Unreminder</title>
		<link>https://longhornengineer.com/2023/01/14/ltc2956-schematic-for-the-cat-feeder-unreminder/</link>
		
		<dc:creator><![CDATA[Parker]]></dc:creator>
		<pubDate>Sun, 15 Jan 2023 04:05:00 +0000</pubDate>
				<category><![CDATA[PCBA & ENG]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cat Feeder Unreminder]]></category>
		<guid isPermaLink="false">https://longhornengineer.com/?p=3619</guid>

					<description><![CDATA[Based on my testing of the evaluation board, this is the schematic for the LTC2956 I am using in the Cat Feeder Unreminder. The resistor from RANGE to LONG pin is set to 100K ohms. This is specified in the datasheet. To set the actual time for the timer to activate the EN pin (t &#8230; <a href="https://longhornengineer.com/2023/01/14/ltc2956-schematic-for-the-cat-feeder-unreminder/" class="more-link">Continue reading <span class="screen-reader-text">LTC2956 Schematic for the Cat Feeder Unreminder</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>Based on my testing of the evaluation board, this is the schematic for the <a rel="noreferrer noopener" href="https://www.analog.com/media/en/technical-documentation/data-sheets/2956fa.pdf" data-type="URL" data-id="https://www.analog.com/media/en/technical-documentation/data-sheets/2956fa.pdf" target="_blank">LTC2956</a> I am using in the Cat Feeder Unreminder.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="823" src="https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-1024x823.png" alt="" class="wp-image-3621" srcset="https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-1024x823.png 1024w, https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-800x643.png 800w, https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-150x121.png 150w, https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-768x617.png 768w, https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-1536x1234.png 1536w, https://longhornengineer.com/wp-content/uploads/LTC2956_Sch-1-2048x1646.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>The resistor from RANGE to LONG pin is set to 100K ohms. This is specified in the datasheet.</p>



<p>To set the actual time for the timer to activate the EN pin (t PERIOD), You need to first select the range resistance from the chart below. In my case I want to activate every 22hrs. 162K ohms is the resistor I chose which sets NRANGE to 262,144. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://longhornengineer.com/wp-content/uploads/image-179.png" alt="" class="wp-image-3622" width="477" height="406" srcset="https://longhornengineer.com/wp-content/uploads/image-179.png 787w, https://longhornengineer.com/wp-content/uploads/image-179-150x128.png 150w, https://longhornengineer.com/wp-content/uploads/image-179-768x654.png 768w" sizes="(max-width: 477px) 100vw, 477px" /></figure></div>


<p></p>



<p>To calculate the period resistor, this is the formula provided by in the datasheet.</p>



<pre class="wp-block-code"><code>RPERIOD = 400 • tPERIOD/NRANGE</code></pre>



<p>For 22hrs, tPERIOD becomes 22 x 60 x 60 x 1000 = 79,200,000. This gives an R PERIOD of 120,849.609 ohms. I picked a 121K ohm resistor. </p>



<p>To send the device into the sleep state, I tied the SLEEP signal through a switch to VCC (3.3V). This brings SLEEP high on button press. When the button is released, SLEEP has a falling edge which is what the LTC2956 is looking for to send it into the sleep state. </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
