<?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>The Paleotechnologist</title>
	<atom:link href="http://www.paleotechnologist.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.paleotechnologist.net</link>
	<description>Modern Fun With Old-School Tech</description>
	<lastBuildDate>Mon, 20 May 2013 19:11:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>&#8220;Wye Knot&#8221;</title>
		<link>http://www.paleotechnologist.net/?p=231</link>
		<comments>http://www.paleotechnologist.net/?p=231#comments</comments>
		<pubDate>Sun, 12 May 2013 23:13:01 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[Analog]]></category>
		<category><![CDATA[EET201]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Fundamentals]]></category>
		<category><![CDATA[HOW-TO]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=231</guid>
		<description><![CDATA[What is the resistance between two corners of a cube made from one-ohm resistors?]]></description>
			<content:encoded><![CDATA[<p>I came across an interesting puzzle a while ago (stated in one of the excellent <a href="http://en.wikipedia.org/wiki/The_Feynman_Lectures_on_Physics" target="_blank">Feynman Lectures on Physics</a>): What is the resistance between two opposite corners of a cube made from 1-ohm resistors?</p>
<p>At first, the problem looks like it might just be an exercise in resistance simplification using the well-known laws of parallel and serial resistances: Serial resistances add linearly, and parallel resistances follow 1/R = 1/R1 + 1/R2 etc. Unfortunately, this one isn&#8217;t quite so simple &#8212; three resistors meet at each vertex of the cube, and no two are directly parallel to or in series with each other.</p>
<div id="attachment_976" class="wp-caption aligncenter" style="width: 643px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2011/07/cube01.png"><img class="size-full wp-image-976 " title="cube01" src="http://www.paleotechnologist.net/wp-content/uploads/2011/07/cube01.png" alt="" width="633" height="615" /></a><p class="wp-caption-text">A cube of 1-ohm resistors. What is the equivalent resistance between opposite corners?</p></div>
<p>One solution to this problem is to use the <a href="http://en.wikipedia.org/wiki/Wye-delta" target="_blank">Wye-Delta conversion formula</a>. Each of the corners of the cube is the center node of three resistors in a wye configuration.  These three resistors can be replaced, and the central node removed, by following the formula:</p>
<p><a href="http://www.paleotechnologist.net/wp-content/uploads/2010/04/wye-delta.png"><img class="aligncenter size-full wp-image-233" title="wye-delta" src="http://www.paleotechnologist.net/wp-content/uploads/2010/04/wye-delta.png" alt="Wye-Delta conversion formula" width="124" height="47" /></a></p>
<p>(formula from Wikipedia)</p>
<p>Rp in the formula is the sum of products &#8212; that is, R1R2 + R2R3 + R1R3.</p>
<div id="attachment_3235" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/wye_delta.jpg"><img class="size-full wp-image-3235" title="The conversion formulas are based on the observation that the resistance between two nodes (N1 and N2, for instance) must be the same. R1+R2 must be equivalent to Rc in parallel with Ra+Rb." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/wye_delta_sm.jpg" alt="" width="600" height="280" /></a><p class="wp-caption-text">Delta and Wye configurations. (Click for larger.)</p></div>
<p>(image from Wikipedia)</p>
<p>Using this formula, corners of the cube where three 1-ohm resistors meet can be removed; the three outer vertices of this wye are then connected by the equivalent network of one 3-ohm resistor between each pair of vertices (see image).</p>
<p style="text-align: center;">&nbsp;</p>
<div id="attachment_980" class="wp-caption aligncenter" style="width: 662px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2011/07/cube02.png"><img class="size-full wp-image-980 " title="cube02" src="http://www.paleotechnologist.net/wp-content/uploads/2011/07/cube02.png" alt="" width="652" height="573" /></a><p class="wp-caption-text">The cube, with one (shaded) corner transformed. Note the 3-ohm resistors.</p></div>
<p>One way you can think about this is that, initially, the resistance between any two nodes of the wye is 2 ohms (the inbound resistor plus the outbound resistor.) In order for the delta network to be equivalent, this resistance must be the same; the value of the delta resistor connecting those two nodes, in parallel with the sum of the other two delta resistors (for the long path around the triangle), must equal the original value of the resistance between the two nodes of the wye. For a wye of 1-ohm resistors, this is 3 ohms, since a 3-ohm resistor in parallel with a 6-ohm equivalent will equal two ohms. (1/3 + 1/6 = 1/2)</p>
<p>You can continue reducing the network in this way &#8212; but it turns out that symmetry and a little common sense provide an easier way to solve the puzzle.</p>
<div id="attachment_3232" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/cube_symmetry.jpg"><img class="size-full wp-image-3232" title="If a current is passed between the nodes marked in blue and red, the three nodes marked in green will be at the same voltage, due to symmetry. Likewise, the three nodes marked in purple will be at the same voltage." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/cube_symmetry_sm.jpg" alt="" width="600" height="583" /></a><p class="wp-caption-text">The cube, with equipotential points shown, assuming resistance measured between blue and red. (Click for larger.)</p></div>
<p>Suppose that in the cube above, a voltage source is connected between the blue and red nodes. The resulting current can be used to determine the overall resistance. To calculate this without resulting to Wye-Delta conversions, note that all of the &#8220;purple&#8221; nodes are at the same voltage (due to symmetry), and all of the &#8220;green&#8221; nodes are at the same voltage (also due to symmetry). Because of this, the three purple nodes and the three green nodes can therefore be connected by wires in order to simplify the analysis. Because no voltage difference exists between the nodes, no current will flow across these wires, so the nature of the circuit hasn&#8217;t been fundamentally changed.</p>
<p>Here is a schematic of the original cube configuration&#8230;</p>
<div id="attachment_3280" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/05/CubeSchematic.jpg"><img class="size-full wp-image-3280" title="The resistors can be arranged in many equivalent ways -- this is only one example." src="http://www.paleotechnologist.net/wp-content/uploads/2013/05/CubeSchematic_sm.jpg" alt="" width="600" height="637" /></a><p class="wp-caption-text">A schematic for a circuit electrically equivalent to the Resistor Cube. (Click for larger.)</p></div>
<p>&#8230;and here is a schematic of the cube with the equipotential connections in place.</p>
<div id="attachment_3278" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/05/CubeEquipotentials.jpg"><img class="size-full wp-image-3278" title="Equipotential points are shown in the same color. The colors of the nodes correspond to the colors on the original cube, above." src="http://www.paleotechnologist.net/wp-content/uploads/2013/05/CubeEquipotentials_sm.jpg" alt="" width="600" height="618" /></a><p class="wp-caption-text">The same schematic, with connections added between the equipotential points. (Click for larger.)</p></div>
<p>The problem now becomes trivially easy. The blue node is connected to the green node via three 1-ohm resistors; the green node is connected to the purple node via six 1-ohm resistors; and the purple node is connected to the red node via another three 1-ohm resistors.</p>
<div id="attachment_3282" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/05/EquivalentCircuit.jpg"><img class="size-full wp-image-3282" title="N equal resistors of R ohms in parallel have resistance R/N. The fractions can then be added to determine the total." src="http://www.paleotechnologist.net/wp-content/uploads/2013/05/EquivalentCircuit_sm.jpg" alt="" width="600" height="350" /></a><p class="wp-caption-text">The equivalent circuit -- a simple series-parallel network. (Click for larger.)</p></div>
<p>The total circuit resistance is therefore 1/3 + 1/6 + 1/3 ohms, or 5/6 ohm.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=231</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino on Steroids</title>
		<link>http://www.paleotechnologist.net/?p=3259</link>
		<comments>http://www.paleotechnologist.net/?p=3259#comments</comments>
		<pubDate>Fri, 19 Apr 2013 00:00:58 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Digital]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Toys]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=3259</guid>
		<description><![CDATA[The Teensy 3.0 is a cool little dev board. It&#8217;s Arduino-compatible (from a software perspective, anyway), breadboardable, and only about $20US. It also runs a 48MHz, 32-bit Arm processor, making it not only easy to use, but a speed demon. If that&#8217;s not enough, it can be overclocked to 96MHz reliably enough that this is [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.pjrc.com/store/teensy3.html" target="_blank">Teensy 3.0</a> is a cool little dev board. It&#8217;s Arduino-compatible (from a software perspective, anyway), breadboardable, and only about $20US.</p>
<div id="attachment_3263" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/04/teensy3_sm.jpg"><img class="size-full wp-image-3263 " title="A 32-bit, 96MHz breadboardable Arduino for twenty bucks? Yes, please!" src="http://www.paleotechnologist.net/wp-content/uploads/2013/04/teensy3_sm.jpg" alt="" width="600" height="450" /></a><p class="wp-caption-text">The Teensy 3.0 running from a 3.7V coin cell on a breadboard. (Click for larger.)</p></div>
<p>It also runs a 48MHz, 32-bit Arm processor, making it not only easy to use, but a speed demon. If that&#8217;s not enough, it can be overclocked to 96MHz reliably enough that this is left as an option in the Arduino plug-in code provided with the board.</p>
<p>Like all Arduinos, the Teensy can be programmed from the Arduino IDE, although the various differences mean that you&#8217;ll need the <a href="http://www.pjrc.com/teensy/td_download.html" target="_blank">Teensyduino mod</a> before you can get up and running. Install the latest Arduino IDE first, then Teensyduino.</p>
<p>With additional features such as digitalWriteFast(), the high speed of the Teensy 3.0 can be put to use. Within a few minutes of setup, I had an I/O pin toggling at speeds as high as 50MHz.</p>
<p>Dev boards like this can come in handy for all kinds of projects. A board like this has the horsepower to handle color displays with complex graphics, autopilot and other control-system-type computations, and many other tasks &#8212; even simultaneously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=3259</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Git&#8217; along, coder dogies!</title>
		<link>http://www.paleotechnologist.net/?p=963</link>
		<comments>http://www.paleotechnologist.net/?p=963#comments</comments>
		<pubDate>Fri, 05 Apr 2013 23:00:53 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Digital Citizenship]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PIC]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=963</guid>
		<description><![CDATA[When working on nontrivial coding projects, it&#8217;s often helpful to be able to keep track of changes made, version by version. When more than one developer is involved, it&#8217;s also helpful to be able to coordinate updates among them. Several version control solutions have been developed over the past couple of decades or so. One [...]]]></description>
			<content:encoded><![CDATA[<p>When working on nontrivial coding projects, it&#8217;s often helpful to be able to keep track of changes made, version by version. When more than one developer is involved, it&#8217;s also helpful to be able to coordinate updates among them.</p>
<p>Several version control solutions have been developed over the past couple of decades or so. One of the most popular ones for open-source projects is <a href="http://git-scm.com/" target="_blank">git</a>. Developed by <a href="http://en.wikipedia.org/wiki/Linus_Torvalds" target="_blank">Linus Torvalds</a> (of Linux fame), git allows version tracking of software projects (or really, any file-based project.)</p>
<p>Here are my initial impressions as I start using git. Disclaimer: I am a git newbie; while I have a reasonable understanding of what version control in general and git in particular are about, I am by no means an expert.</p>
<p>To start using git, a <a href="http://git-scm.com/downloads" target="_blank">git client</a> must first be installed. Traditionally, this is git for Linux, but I decided to try out git starting with a chip tester project written in PIC assembly, so I installed the <a href="https://github.com/" target="_blank">GitHub</a> client for Windows. (GitHub is a central service which can store open-source projects free of charge, and/or private, closed-source projects for a subscription fee.)</p>
<p>A git &#8220;repository&#8221; (project) is started by creating a local repository (the directory in which the files will reside, along with a few small files describing the repository contents.) These files contain the repository name, a brief description, and usually a list of files to include or ignore when updating the repository online.</p>
<p>Once the source files have been added, they are staged and then &#8220;committed.&#8221; This creates a &#8220;commit,&#8221; which is a snapshot of the project at that point. (It&#8217;s advisable to have the project in a reasonably stable state, when performing a commit.) At that point, other developers can &#8220;clone&#8221; the repository, to pick up a copy of the entire project.</p>
<p>The git client also tracks which files have been updated since the last commit. If, for example, a bug was fixed in an include file and the README file was updated, the git client would flag these as having been changed. Once the changed (and/or new) files are selected and a commit comment is entered, the main repository can be easily updated.</p>
<p>If you work with PIC microcontrollers and want to try out a (very pre-alpha) chip tester, you&#8217;re welcome to check out the <a href="https://github.com/FlyByPC/ChipTester" target="_blank">repository I created</a>.</p>
<p><em>&#8220;Share and enjoy!&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=963</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Have Seen Nirvana, And It Is In Shenzhen&#8230;</title>
		<link>http://www.paleotechnologist.net/?p=3238</link>
		<comments>http://www.paleotechnologist.net/?p=3238#comments</comments>
		<pubDate>Tue, 19 Mar 2013 20:00:28 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[Analog]]></category>
		<category><![CDATA[Components]]></category>
		<category><![CDATA[Digital]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Toys]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=3238</guid>
		<description><![CDATA[The world's largest electronics component market is in Shenzhen, PRC -- and it is awesome!]]></description>
			<content:encoded><![CDATA[<p>On the one hand, I would love to take about $1000 cash and just go shopping here.</p>
<p>On the other hand, if I brought my wallet, I&#8217;d be broke for the next six months for sure. Maybe it&#8217;s a good thing that I&#8217;m some ten thousand miles and a travel visa away?</p>
<p><iframe width="600" height="338" src="http://www.youtube.com/embed/EBtRJc-z05k?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=3238</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Superposition</title>
		<link>http://www.paleotechnologist.net/?p=2349</link>
		<comments>http://www.paleotechnologist.net/?p=2349#comments</comments>
		<pubDate>Sun, 17 Mar 2013 02:19:43 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[Analog]]></category>
		<category><![CDATA[EET201]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Fundamentals]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=2349</guid>
		<description><![CDATA[Superposition is a useful tool for circuit analysis. Here's how it works.]]></description>
			<content:encoded><![CDATA[<p>One useful tool when performing circuit analysis is <em>superposition</em>. By considering voltage and current sources one at a time (setting all others equal to zero volts or zero current), voltages and currents in an electrical network containing any number of sources can be analyzed.</p>
<p>In a simple circuit, DC analysis is straightforward. Resistances in series, parallel, or simple combinations of the two can be numerically lumped together, and the resulting currents and voltages calculated using Ohm&#8217;s Law. In the circuit below, for example, the two central 1k resistors can be viewed as a single 2k resistance. This, in parallel with R2, forms 1k of resistance. When R1 is added, the total circuit resistance is 2k. By Ohm&#8217;s Law, 5mA of current flow through the circuit. It is fairly straightforward to see that all 5mA flow through R1, and that 2.5mA flow through R2, R3, and R4.</p>
<div id="attachment_3203" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/Simple_circuit.jpg"><img class="size-full wp-image-3203" title="Such a circuit, with a single source, can be easily analyzed by combining resistances in series and parallel." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/Simple_circuit_sm.jpg" alt="" width="600" height="469" /></a><p class="wp-caption-text">A simple, easy-to-analyze DC circuit.</p></div>
<p>When more than one voltage and/or current source is involved, though, things get trickier. Resistances cannot be simply combined as before, since there could be voltages and/or currents due to several different sources. Another approach is needed.</p>
<div id="attachment_3205" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/Superposition.jpg"><img class="size-full wp-image-3205" title="Such a circuit must be considered one source at a time, unless another approach (such as simultaneous equations) is used." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/Superposition_sm.jpg" alt="" width="600" height="444" /></a><p class="wp-caption-text">A more complex circuit, with multiple independent sources. (Click for larger.)</p></div>
<p>Fortunately, superposition provides a straightforward, practical way to analyze circuits with multiple power sources. By following a few simple steps, voltages and currents can be calculated through a circuit of arbitrary complexity. (For some configurations, simplification using Wye-Delta conversions may also be needed.)</p>
<p>To analyze current flow in a circuit with multiple sources, analyze the circuit with only one source at a time present, setting all other sources temporarily to zero:</p>
<ul>
<li>Replace all voltage sources not being analyzed with a short (zero voltage), and</li>
<li>Replace all current sources not being analyzed with an open (zero current).</li>
</ul>
<p>Once these substitutions have been made, re-analyze the circuit, noting the current flow in each branch due to this source. Do the same for any remaining sources, re-enabling them in the circuit, and setting the already-analyzed source to zero voltage or zero current, as appropriate.</p>
<p>Here is a simple example of circuit analysis of using the above example, with two voltage sources and a current source:</p>
<div id="attachment_3208" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/V1_only.jpg"><img class="size-full wp-image-3208 " title="V1 is now in series with 3k resistance, producing a current of 3.33mA to the right through R1 and R2. No current due to V1 flows through R3." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/V1_only_sm.jpg" alt="" width="600" height="330" /></a><p class="wp-caption-text">First, calculate and note all currents due to V1 with  other sources V2 and I1 removed. (Click for larger.)</p></div>
<p>&nbsp;</p>
<div id="attachment_3210" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/V2_only.jpg"><img class="size-full wp-image-3210 " title="V2 is in series with a 3k resistance. 1.67mA due to V2 flows to the left through R1 and R2. No current due to V2 flows through R3." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/V2_only_sm.jpg" alt="" width="600" height="325" /></a><p class="wp-caption-text">Next, calculate and note all currents due to V2 only, with V1 and I1 removed. (Click for larger.)</p></div>
<p>&nbsp;</p>
<div id="attachment_3212" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/I1_only.jpg"><img class="size-full wp-image-3212 " title="I1 is a 1mA source, so 1mA flows through R3. This current is split among R1 and R2, with 0.67mA flowing (to the right) through R1 and 0.33mA flowing (to the left) through R2." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/I1_only_sm.jpg" alt="" width="600" height="323" /></a><p class="wp-caption-text">Finally, calculate and note all currents due to I1, with V1 and V2 removed. (Click for larger.)</p></div>
<p>After calculating and noting current flows due to all of the sources, add them up. One way to do this is to assign a color for each source, and note the current flow due to that source through each resistor. (Remember to note which direction each current component flows; current flows going in the same direction add, but currents flowing in opposite directions cancel!)</p>
<div id="attachment_3223" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/currents.jpg"><img class="size-full wp-image-3223" title="Yellow represents current due to V1, blue represents current due to I1, and red represents current due to V2." src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/currents_sm.jpg" alt="" width="600" height="444" /></a><p class="wp-caption-text">Currents from each source are noted independently. These are then added to determine total current. (Click for larger.)</p></div>
<p>Once all of the currents have been noted, they can be added (and subtracted, depending on direction) to show the total current flow&#8230;</p>
<div id="attachment_3225" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/03/total_currents.jpg"><img class="size-full wp-image-3225 " title="The currents due to each source through each component are added, and the total current through each branch is shown. (Note that the resulting current is actually flowing backwards through V2, even though a positive voltage is present across that source. V2 is therefore accepting power, rather than producing it. (For example, perhaps V2 is a battery which is being charged.)" src="http://www.paleotechnologist.net/wp-content/uploads/2013/03/total_currents_sm.jpg" alt="" width="600" height="444" /></a><p class="wp-caption-text">The total currents in each branch, summed.  (Click for larger.)</p></div>
<p>Note that Kirchoff&#8217;s Current Law (net current flow into or out of a point is zero) must be satisfied for each point in the circuit. For example, at the node represented in green, 2.33mA of current is flowing in through R1. This current must leave the node, and therefore 1mA flows through R3 and 1.33mA flows through R2. The net current into the node is therefore zero, so no charge accumulates over time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=2349</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Use A Digital Multimeter (DMM)</title>
		<link>http://www.paleotechnologist.net/?p=2400</link>
		<comments>http://www.paleotechnologist.net/?p=2400#comments</comments>
		<pubDate>Fri, 01 Feb 2013 04:01:19 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[Analog]]></category>
		<category><![CDATA[Drexel]]></category>
		<category><![CDATA[EET201]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Fundamentals]]></category>
		<category><![CDATA[HOW-TO]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=2400</guid>
		<description><![CDATA[Digital Multimeters (DMMs) are one of the basic tools for working with electronic circuits. Here's how to use one for basic measurements.]]></description>
			<content:encoded><![CDATA[<p>Digital Multimeters (DMMs) are quite versatile devices. Typically, they can be used to measure voltage, current, and resistance. Many DMMs are also capable of other measurements, such as continuity (an extension of the resistance function, actually) and frequency. Some are also capable of basic math operations on the measurements performed, including null offset and maximum/minimum readings.  Here is a brief guide to using a DMM &#8212; specifically, an HP/Agilent 34401A. This type of meter is a &#8220;bench&#8221; meter &#8212; meaning that it is intended for use on an electronics workbench. It is somewhat portable, and includes a handle, but is significantly bulkier (and a bit more fragile) than handheld meters, so it is usually found on a workbench or in a lab. On the plus side, it is far more accurate than most handheld meters.</p>
<div id="attachment_2558" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2012/05/34401a.jpg"><img class="size-full wp-image-2558" title="Good equipment like the 34401 can pay for itself..." src="http://www.paleotechnologist.net/wp-content/uploads/2012/05/34401a_sm.jpg" alt="" width="600" height="367" /></a><p class="wp-caption-text">The Agilent 34401 Digital Multimeter (DMM). (Click for larger.)</p></div>
<p>&nbsp;</p>
<p><strong>Measurement of voltage</strong></p>
<p>The most basic function of a DMM is as a basic voltmeter. Most DMMs are <em>autoranging</em>, meaning that they automatically select the correct voltage range (millivolts, volts, etc) based on the measurement being made at the time.  To measure DC voltage with the 34401A:</p>
<ul>
<li>Turn on the meter using the power switch on the left end of the front panel.</li>
<li>Press the &#8220;DC V&#8221; button (if you will be measuring DC voltages.)<em> </em></li>
<li>Connect the negative probe (typically black in color) to the rightmost black &#8220;LO&#8221; port. (The two ports in the left column are used for four-wire resistance measurements, which are not covered in this guide.)</li>
<li>Connect the positive probe (typically red) to the upper right &#8220;HI&#8221; port.</li>
<li>Connect the probes to the circuit under test. Voltage is measured in parallel with a component, so you would not break the circuit to measure voltage.</li>
<li>Read the voltage data on the meter.</li>
</ul>
<div id="attachment_3184" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/01/DMM_volts.jpg"><img class="size-full wp-image-3184" title="The meter has a very high internal resistance (10 Megohms), and so will not significantly affect most voltage measurements." src="http://www.paleotechnologist.net/wp-content/uploads/2013/01/DMM_volts_sm.jpg" alt="" width="600" height="488" /></a><p class="wp-caption-text">Connect the voltmeter in parallel with the resistor to measure volts. (Click for larger.)</p></div>
<p>&nbsp;</p>
<p><strong>Measurement of current</strong></p>
<p>Another useful function of a DMM is as an <em>ammeter &#8212; </em>a meter designed to measure current flow. Since current flow is measured within a conductor, the meter must be actually inserted in the circuit in order to measure this flow. (There are &#8220;clamp&#8221; ammeters which do not work this way, but they are not covered here.)  Because of this requirement, measuring current in a circuit is done differently than measuring voltage &#8212; the connections are made differently. Instead of simply clipping on to a circuit, the DMM replaces one of the wires in the circuit, and the current is made to flow through the meter. It is important to make sure that the meter <em>replaces a wire</em> of the circuit in this way, or else it could cause a short circuit. (That is, you need to break a connection, then insert the DMM in the gap.)<br />
To measure DC current with the 34401A:</p>
<ul>
<li>Turn on the meter</li>
<li>Press the blue SHIFT button once, then press the DC V button. This will put the meter into &#8220;DC I&#8221; (DC current) mode.</li>
<li>Connect the negative lead to the right &#8220;LO&#8221; port</li>
<li>Connect the positive lead to the right &#8220;I&#8221; port (at the lower right).</li>
<li>Disconnect power to the circuit to be tested</li>
<li>Choose a wire in your circuit where you will measure current. Disconnect it.</li>
<li>Connect the black lead to one end of where the wire was (ideally, its more negative end.)</li>
<li>Connect the red lead to the other end of where the wire was (ideally, its more positive end.)</li>
<li>Reconnect power to the circuit to be tested.</li>
<li>Read the current value on the meter&#8217;s display. (Note mA or A, as well.)</li>
</ul>
<div id="attachment_3180" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/01/DMM_amps.jpg"><img class="size-full wp-image-3180" title="Be careful not to connect the meter in parallel with the resistor, when set up to measure current! The ammeter function works by connecting a very low resistance &quot;shunt&quot; between the two terminals, and measuring the (very small) voltage across this. I = V/R, so the current can be calculated. Connecting it across a voltage drop will result in a short circuit." src="http://www.paleotechnologist.net/wp-content/uploads/2013/01/DMM_amps_sm.jpg" alt="" width="600" height="420" /></a><p class="wp-caption-text">Connect the DMM in series with the resistor to measure current. (Click for larger.)</p></div>
<p>&nbsp;</p>
<p><strong>Measurement of resistance</strong></p>
<p>DMMs can also function as <em>ohmmeters</em>, allowing the measurement of resistance. Unlike measurements of voltage and current, this must be done with power disconnected from the circuit. (In fact, since parallel resistances can affect the measurement, resistance is usually measured with the component disconnected from the circuit, at least at one end.)  When measuring resistance, the meter passes a small amount of current through the resistor and measures the resulting voltage.  To measure resistance with the 34401A:</p>
<ul>
<li>Turn on the meter</li>
<li><span style="line-height: 24px;">Press the &#8220;Ω 2W&#8221; button.</span></li>
<li>Connect the negative lead to the right &#8220;LO&#8221; port</li>
<li>Connect the positive probe (typically red) to the upper right &#8220;HI&#8221; port.</li>
<li>Disconnect at least one end of the resistor to be tested from the circuit.</li>
<li>Connect one probe to one lead of the resistor to be tested.</li>
<li>Connect the other probe to the resistor&#8217;s other lead. (Direction doesn&#8217;t matter.)</li>
<li>Read the resistance value on the meter&#8217;s display. (Note mΩ, Ω, kΩ, or MΩ.)</li>
</ul>
<div id="attachment_3182" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paleotechnologist.net/wp-content/uploads/2013/01/DMM_ohms.jpg"><img class="size-full wp-image-3182" title="The meter works by connecting a known voltage across a voltage divider made up of the resistor being tested and a known internal resistance. From the voltage drop, the external resistance can be calculated." src="http://www.paleotechnologist.net/wp-content/uploads/2013/01/DMM_ohms_sm.jpg" alt="" width="600" height="400" /></a><p class="wp-caption-text">To measure resistance, disconnect the power supply and connect the DMM across the resistor to be measured. (Click for larger.)</p></div>
<p>&nbsp;</p>
<p>The 34401A has many other measurement capabilities (frequency, continuity, four-wire resistance, diode check, etc.) It can even connect to a computer via RS232 or GPIB for automated measurements.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=2400</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Short And Sweet</title>
		<link>http://www.paleotechnologist.net/?p=3164</link>
		<comments>http://www.paleotechnologist.net/?p=3164#comments</comments>
		<pubDate>Fri, 11 Jan 2013 01:00:39 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[QR code]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=3164</guid>
		<description><![CDATA[Paleotechnologist.Net now has a new, short alias: pt0.us. ]]></description>
			<content:encoded><![CDATA[<p>As any Linux aficionado can attest, &#8220;<a href="http://en.wikipedia.org/wiki/Less_(Unix)" target="_blank">less is more</a>.&#8221; While this is not always true of everything, it certainly applies to <a href="http://en.wikipedia.org/wiki/URL" target="_blank">URLs</a>. &#8220;www.paleotechnologist.net&#8221; is a cool domain name, but it doesn&#8217;t readily lend itself to terse media such as <a href="http://en.wikipedia.org/wiki/QR_code" target="_blank">QR codes</a>.</p>
<p>I therefore present a new, shorter site alias:   <strong><a href="http://pt0.us" target="_blank">pt0.us</a> </strong>(with a zero, not an &#8220;o.&#8221;)</p>
<div id="attachment_3170" class="wp-caption aligncenter" style="width: 210px"><a href="http://pt0.us"><img class="size-full wp-image-3170" title="QR codes are still new enough that they draw attention..." src="http://www.paleotechnologist.net/wp-content/uploads/2013/01/pt0_QR.png" alt="" width="200" height="200" /></a><p class="wp-caption-text">Scan me!</p></div>
<p>URLs at pt0.us point to the same content as paleotechnologist.net (and paleoengineer.net and paleoengineer.org, for that matter). New and existing content will be available at all of these domains.</p>
<p>Why PT0? Simple:</p>
<ul>
<li>PT stands for PaleoTechnologist;</li>
<li>Zero is the most central, the most unique, and possibly the most important of the integers;</li>
<li>&#8230;and while .us is geographically appropriate as a TLD, I chose it for its shortness.</li>
</ul>
<p>Rumors that this is in preparation for site-related QR code generation are completely unsubstantiated. That&#8217;s not to say that they are incorrect, however!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=3164</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BMP file format</title>
		<link>http://www.paleotechnologist.net/?p=2862</link>
		<comments>http://www.paleotechnologist.net/?p=2862#comments</comments>
		<pubDate>Thu, 03 Jan 2013 01:00:00 +0000</pubDate>
		<dc:creator>M. Eric Carr</dc:creator>
				<category><![CDATA[BASIC]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[HOW-TO]]></category>

		<guid isPermaLink="false">http://www.paleotechnologist.net/?p=2862</guid>
		<description><![CDATA[It's often useful to be able to produce an image file as output from a program. Bitmap (.BMP) is one of the easiest formats to write. Here's how to output 24-bit .BMP files from your data.]]></description>
			<content:encoded><![CDATA[<p>Since uncompressed <a href="http://en.wikipedia.org/wiki/Bitmap" target="_blank">bitmaps</a> are a one-to-one representation of pixels in an image, they are one of the simplest formats to generate, if you are writing your own code. Here is a description (plus FreeBASIC code, which works well enough as pseudocode) of how to output a .bmp file, given an array of pixels.</p>
<p>In order to make the process as straightforward as possible, I will make several (hopefully reasonable) assumptions:</p>
<ul>
<li>The image exists in memory, in a format (an array, for instance) which can be easily read in random-access order;</li>
<li>A color depth of 24 bits is used (eight bits each for Red, Green, and Blue);</li>
<li>BITMAPCOREHEADER (the simplest header) is used; and</li>
<li>The height and width of the image are reasonable and known.<br />
(I will call these variables XSIZE and YSIZE.)</li>
</ul>
<p>Values given here are in hexadecimal. All multi-byte values in BMP files are little-endian.</p>
<p>Bitmap files consist of three parts:</p>
<ul>
<li>The bitmap header;</li>
<li>The DIB header; and</li>
<li>The pixel data array.</li>
</ul>
<p><span style="font-size: small;"><span style="line-height: 24px;">The <a href="http://en.wikipedia.org/wiki/BMP_file_format#Bitmap_file_header" target="_blank">bitmap header</a> is straightforward enough:</span></span></p>
<ul>
<li><span style="font-size: small;">Two bytes to denote a bitmap file: ASCII &#8220;BM&#8221;, or hex <strong>0&#215;42 0x4D</strong></span></li>
<li>Four bytes, representing the size of the BMP file in bytes.</li>
<li>Two bytes reserved: these can safely be <strong>0&#215;00 0&#215;00</strong>.</li>
<li>Two more bytes reserved: these can also be <strong>0&#215;00 0&#215;00</strong>.</li>
<li>Four bytes for the offset address of the pixel data.<br />
(If using BITMAPCOREHEADER, this is <strong>0x1A 0&#215;00</strong>.)</li>
</ul>
<p>The <a href="http://msdn.microsoft.com/en-us/library/aa452881.aspx" target="_blank">BITMAPCOREHEADER</a> is next, and also relatively simple:</p>
<ul>
<li>Four bytes for the size of the header (14 bytes, so <strong>0x0E 0&#215;00 0&#215;00 0&#215;00</strong>).</li>
<li>Two bytes for the image width in pixels;</li>
<li>Two bytes for the image height in pixels;</li>
<li>Two bytes for the number of pixel planes (must be <strong>0&#215;01 0&#215;00</strong>); and</li>
<li>Two bytes for the bits per pixel (<strong>0&#215;18 0&#215;00</strong> in our 24-bit example.)</li>
</ul>
<p>The last structure is the bitmap data itself. This is three bytes per pixel, with each row padded to the next multiple of four bytes, as needed. Each pixel is in BBGGRR order.</p>
<p>We now have all of the pieces of information we need to create the bitmap file&#8230;</p>
<ul>
<li>Output ASCII &#8220;BM&#8221; (<strong>0&#215;42 0x4D</strong>)to the file</li>
<li>Calculate the size of the file:</li>
<li> &#8211; 14 bytes for the bitmap header, plus</li>
<li> &#8211; 12 bytes for the DIB header, plus</li>
<li> &#8211; The number of rows (image height) times the row size in bytes.<br />
(The row size is the image width, times three, rounded up to<br />
the next multiple of four, if needed.)</li>
<li>Write this figure to the file, in little-endian hex, using four bytes.</li>
<li>Write <strong>0&#215;00 0&#215;00 0&#215;00 0&#215;00 </strong>to the file, for the two reserved fields.</li>
<li>Write <strong>0x1A 0&#215;00</strong> (representing the 26-byte offset for the start of data.)</li>
<li>Write <strong>0x0C 0&#215;00 0&#215;00 0&#215;00</strong> (representing the DIB header size.)</li>
<li>Write XSIZE in two-byte little-endian hex.</li>
<li>Write YSIZE in two-byte little-endian hex.</li>
<li>Write <strong>0&#215;01 0&#215;00</strong> for the number of pixel planes;</li>
<li>Write <strong>0&#215;18 0&#215;00</strong> to represent 24 bits per pixel.</li>
<li>Loop over the number of rows (YSIZE) in the image:</li>
<li> &#8211; For each pixel in that row, write its image value in little-endian hex (BBGGRR)</li>
<li> &#8211; At the end of the row, pad it with zero to three extra bytes to make the number of bytes in the row a multiple of four.</li>
<li>Close the file. You&#8217;re done!</li>
</ul>
<p><span style="font-size: small;"><span style="line-height: 24px;">Here is <a href="http://www.paleotechnologist.net/wp-content/uploads/2012/12/bmp_example.bas_.txt" target="_blank">an example in FreeBASIC</a>, which produces a simple 3&#215;3 bitmap.</span></span></p>
<p><span style="font-size: small;"><span style="line-height: 24px;"><br />
</span></span></p>
<p><span style="font-size: small;"><span style="line-height: 24px;"><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.paleotechnologist.net/?feed=rss2&#038;p=2862</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
