<?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>Keith&#039;s Electronics Blog &#187; Inside</title>
	<atom:link href="http://www.neufeld.newton.ks.us/electronics/?cat=13&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.neufeld.newton.ks.us/electronics</link>
	<description></description>
	<lastBuildDate>Fri, 18 Apr 2025 00:10:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Modifying a Tower SG90 Servo for Continuous Rotation with Potentiometer Position Sensing, Part 1: Investigation and Continuous Rotation</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1616</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1616#comments</comments>
		<pubDate>Tue, 06 Jan 2015 12:15:41 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Inside]]></category>
		<category><![CDATA[Robotics]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1616</guid>
		<description><![CDATA[A common strategy in the world of hobby robotics is to modify a servo for continuous rotation to use to drive the wheels of a tabletop robot. On its own, the servo takes power, ground, and a position input and moves the shaft within a range of rotation to match the angle requested on its [...]]]></description>
			<content:encoded><![CDATA[<p>A common strategy in the world of hobby robotics is to modify a servo for continuous rotation to use to drive the wheels of a tabletop robot.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0308.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0308_mid.jpg" alt="Tower SG90 Servo in hand for scale" /></a></p>
<p>On its own, the servo takes power, ground, and a position input and moves the shaft within a range of rotation to match the angle requested on its input wire.  It has one or more stops in its gearbox to prevent it from rotating past the end of its range; these need to be removed.  It also has a potentiometer as part of its positioning system, which &#8212; for the usual modification &#8212; needs to be tricked into thinking it&#8217;s always centered.  The modified servo then runs at full speed forward or backward trying to reach a requested position and thinking it has never succeeded in doing so; and the controller requires extra, external rotation sensing if you want to detect what the servo has actually done so far.</p>
<p>I wanted something a little different &#8212; PWM H-bridge control of the servo&#8217;s motor for variable speed forward and backward and access to the potentiometer to detect position (crudely and at low speed) and count wheel rotations (acceptably and at high speed).  This is actually an easier modification &#8212; but, though I&#8217;m surely not the first to do it, I&#8217;ve not run across it before.  I started last night.</p>
<p><span id="more-1616"></span></p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0309.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0309_mid.jpg" alt="Tower SG90 Servo base with screws" /></a></p>
<p>The cute little SG90 has four screws holding its case together.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0310.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0310_mid.jpg" alt="Tower SG90 Servo with base removed" /></a></p>
<p>After removing them, the base can be pulled off, revealing the back of the motor and the back of the control board.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0312.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0312_mid.jpg" alt="Tower SG90 Servo motor and potentiometer" /></a></p>
<p>With the control board pulled out, it&#8217;s easy to see that the motor and potentiometer are wired exactly as would be expected; and nicely color-coded, making it easy to see how to rewire the servo.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0316.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2015/01/05/IMG_0316_mid.jpg" alt="Tower SG90 Servo gearbox with cap removed" /></a></p>
<p>The top of the case also pops off to reveal the gearbox.  The output shaft is in the lower right and the two nubs on the back side of the output gear are the stop that prevents continuous rotation.  I snipped them off in place using a very sharp diagonal cutter.</p>
<p>Next steps:  Select wiring harnesses and rewire the motor and potentiometer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1616</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Careful with That Desulfator, Eugene</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1605</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1605#comments</comments>
		<pubDate>Fri, 19 Sep 2014 18:19:51 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Equipment]]></category>
		<category><![CDATA[Inside]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1605</guid>
		<description><![CDATA[I&#8217;ve achieved some promising results from my battery desulfator / dewhiskerer / whateverer &#8230; and some less promising results. The smaller the battery, the more important it is not to forget that the desulfator / dewhiskerer is on. This was, as I recall, only about a fifteen-minute overdose. The magic smoke, I assure you, got [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve achieved some promising results from my <a href="http://screwdecaf.cx/dapimp.html">battery desulfator / dewhiskerer / whateverer</a> &hellip; and some less promising results.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2014/03/24/IMG_20140324_192928.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2014/03/24/IMG_20140324_192928_mid.jpg" alt="overcharged 9-V / 7.2-V batteries" /></a></p>
<p>The smaller the battery, the more important it is not to forget that the desulfator / dewhiskerer is on.  This was, as I recall, only about a fifteen-minute overdose.  The magic smoke, I assure you, got out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1605</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Subwoofer Voice Coil Failure Modes</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1597</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1597#comments</comments>
		<pubDate>Sun, 09 Jun 2013 22:26:35 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Inside]]></category>
		<category><![CDATA[Repairs]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1597</guid>
		<description><![CDATA[From the latest batch of reconing: The left two are open &#8212; you can see the broken wire at the bottom of the left coil and the top of the middle coil. (As always, click for full-sized image.) The right one is shorted and I haven&#8217;t found where. I find it interesting that these are [...]]]></description>
			<content:encoded><![CDATA[<p>From the latest batch of reconing:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/06/09/IMG_1406.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/06/09/IMG_1406_mid.jpg" alt="Three broken subwoofer voice coils" /></a></p>
<p>The left two are open &#8212; you can see the broken wire at the bottom of the left coil and the top of the middle coil.  (As always, click for full-sized image.)  The right one is shorted and I haven&#8217;t found where.</p>
<p>I find it interesting that these are wound with round wire and the replacements are wound with flat-cross-sectioned copper &#8220;ribbon,&#8221; to get more current capacity in the same vertical space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1597</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$10 Razor E100 Scooter Project Day Two: First Battery-Charging Attempt</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1574</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1574#comments</comments>
		<pubDate>Sun, 28 Apr 2013 23:54:36 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Inside]]></category>
		<category><![CDATA[Repairs]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1574</guid>
		<description><![CDATA[I tend to assume that batteries I happen upon will not be charged. Also that lead-acid batteries I happen upon will be low on water, even so-called sealed lead-acid batteries. I wanted to start charging the batteries from my &#8220;new&#8221; scooter while working on other aspects of the project and the scooter didn&#8217;t come with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0583.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0583_mid.jpg" alt="Razor E100 battery and speed-control bucket" /></a></p>
<p>I tend to assume that batteries I happen upon will not be charged.  Also that lead-acid batteries I happen upon will be low on water, even so-called sealed lead-acid batteries.</p>
<p>I wanted to start charging the batteries <a href="?p=1572">from my &#8220;new&#8221; scooter</a> while working on other aspects of the project and the scooter didn&#8217;t come with a charger &#8212; I&#8217;ll deal with that later.  Not knowing much about the wiring circuit yet, I didn&#8217;t want to connect an external charger to the batteries while they were still in-circuit and chance damaging the speed controller, so I needed to disconnect and remove them.</p>
<p>Wiggle wiggle wiggle &lt;grunt&gt; wiggle pull &lt;grunt&gt; WIGGLE WIGGLE BEND &lt;grunt&gt;</p>
<p>Wha?</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0587.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0587_mid.jpg" alt="Soldered battery clip" /></a></p>
<p>Who does this???  When they said solder the quick-disconnect terminals, they meant <em>the wire side</em>.</p>
<p><em>Fine</em>.  <a href="?p=46">My uncle&#8217;s iron</a> and a pair of pliers solved that problem.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0589.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0589_mid.jpg" alt="Two sealed lead-acid batteries from Razor E100 scooter" /></a></p>
<p>Two batteries, extricated and not yet cleaned.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0590.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0590_mid.jpg" alt="Prying open sealed lead-acid battery cover" /></a></p>
<p>In spite of being &#8220;sealed,&#8221; you can pry off the cover (preferably after cleaning, which I did first with Goo-Gone and then with dish soap and water)</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0592.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/27/IMG_0592_mid.jpg" alt="Sealed lead-acid battery cell caps" /></a></p>
<p>and get to the cell caps, each with a little absorbent pad in case the cell venting carries too much moisture.</p>
<p>I could see <em>no</em> water in any cell of either battery.  I borrowed a jug of distilled water from my folks (I don&#8217;t know why Mom always has some, but she does) and started filling them up &hellip; after taking measurements.</p>
<table border=1 cellspacing=0 cellpadding=5 align=center>
<tr>
<th></th>
<th>Battery 1</th>
<th>Battery 2</th>
</tr>
<tr>
<th>Initial</th>
<td>11.68 V</td>
<td>9.99 V</td>
</tr>
<tr>
<th>After adding water</th>
<td>11.62 V</td>
<td>9.92 V</td>
</tr>
</table>
<p>I filled each cell, waited for air bubbles to trickle to the top, refilled, waited, refilled, waited &hellip;  I&#8217;m guessing between the initial fill and while charging, I ended up putting at least 10 ml of water into each cell.</p>
<p>Then put battery 1 on my variable power supply with the voltage set to 13.8&nbsp;V and the current limited initially to 0.1&nbsp;A, raising the current limit to 0.3&nbsp;A as it was clear that nothing horrible was happening.  I checked on it every half-hour to hour, frequently refilling at least one cell in which I could no longer see any water.</p>
<p>After about four hours, it was up to 13.5&nbsp;V.  The water level in the cells had risen to overflow the opening and fill each reservoir.  If I watched long enough, I could see the water in a couple of cells &lt;pop&gt;, indicating they were just starting to gas and it was time for me to stop this method of charging for the day.  (More on that on a subsequent day, hopefully tomorrow.)</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/28/IMG_0601.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2013/04/28/IMG_0601_mid.jpg" alt="Charging sealed lead-acid batteries with power supply" /></a></p>
<p>While battery 1 was charging, I was also checking water levels in battery 2 and refilling low cells, just sitting on the counter.</p>
<p>Recalling that it had an initial 10&nbsp;V charge to battery 1&#8242;s 11.7&nbsp;V, noting that they had been connected in series, and knowing that the worst cell in a battery generally has a cascading failure, I expected a different charging experience from battery 2, and I was quite right.</p>
<p>I connected it to the power supply and it immediately showed 13.8&nbsp;V at a 0.1-A current draw.  Now, about an hour later, it&#8217;s at 13.5&nbsp;V and 0.3&nbsp;A and most of the cells have overflowed.  It&#8217;s nearly done charging but I haven&#8217;t put nearly as much energy into it as I was able to put into battery 1 &#8212; that is to say, it&#8217;s not &#8220;taking&#8221; as much of a charge.</p>
<table border=1 cellspacing=0 cellpadding=5 align=center>
<tr>
<th></th>
<th>Battery 1</th>
<th>Battery 2</th>
</tr>
<tr>
<th>Initial</th>
<td>11.68 V</td>
<td>9.99 V</td>
</tr>
<tr>
<th>After adding water</th>
<td>11.62 V</td>
<td>9.92 V</td>
</tr>
<tr>
<th>After charging</th>
<td>12.68 V</td>
<td>12.48 V</td>
</tr>
</table>
<p>Tomorrow, schedule willing, a load test and an attempt at desulfation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1574</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Why I don&#8217;t buy Duracell, Energizer, Eveready, or Rayovac</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1480</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1480#comments</comments>
		<pubDate>Sat, 18 Feb 2012 17:20:25 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Inside]]></category>
		<category><![CDATA[Repairs]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1480</guid>
		<description><![CDATA[I was given this high-quality, hefty, well-balanced, well-performing LED flashlight several years ago with batteries already in it. I keep it in the glovebox; and recently when I needed it, it didn&#8217;t power on. In my decades of using consumer electronics, there&#8217;s only one brand of alkaline cells that has never leaked in my equipment [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/01/DSCN8537.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/01/DSCN8537_mid.jpg" alt="LED flashlight damaged by leaking batteries" /></a></p>
<p>I was given this high-quality, hefty, well-balanced, well-performing LED flashlight several years ago with batteries already in it.  I keep it in the glovebox; and recently when I needed it, it didn&#8217;t power on.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/01/DSCN8530.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/01/DSCN8530_mid.jpg" alt="Packages of DieHard AA and AAA alkaline cells" /></a></p>
<p>In my decades of using consumer electronics, there&#8217;s only one brand of alkaline cells that has never leaked in my equipment &#8212; even things I&#8217;ve forgotten about and found again years later &#8212; and I drive miles out of my way to buy them.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/01/DSCN8534.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/01/DSCN8534_mid.jpg" alt="DieHard alkaline cell warranty" /></a></p>
<p>Doubtless someone will pop up with their own horror story, but I&#8217;ll still make the claim:  You will never, ever, need this.</p>
<h3>Cleaning the Flashlight</h3>
<p>In order to get out the crud, I disassembled the flashlight completely and cleaned it with a wire brush, a wire wheel on the Dremel, a wire brush on the Dremel, and a toothbrush and dishwashing detergent.  I went a little overboard to make sure I had got it all, but at every stage I was getting out more crud.</p>
<p>I&#8217;ve long been impressed with the heft and solidity of the flashlight; now that I&#8217;ve seen the inside, I&#8217;m equally impressed with its design and with the ease of (dis)assembly.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/18/DSCN8548.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2012/02/18/DSCN8548_mid.jpg" alt="Element LED flashlight, disassembled" /></a></p>
<p>Loosely clockwise from the left, the reflector isn&#8217;t adjustable for beam focus but screws off anyway.  The heatsinked LED has a separate plastic housing with beveled forward edge that centers the LED against the back side of its reflector cone.  The LED housing&#8217;s retaining ring doubles as one of the LED terminals.</p>
<p>The aluminum head holds the LED housing and the separate LED driver housing, dropped in from the tail end, and screws tightly to the reflector.  The plastic housing for the tiny power switch and LED driver board is made of two identical, completely reversible parts, holding in the inner power switch pushbutton on the one side and leaving a window to check board orientation for assembly on the other.</p>
<p>The rubber outer power switch pushbutton installs after the LED driver is dropped into the head and does not seal against the housing, suggesting that the o-rings on the aluminum housing are for a great feel during assembly and battery replacement rather than for water resistance.</p>
<p>The battery cage holds three AAA cells and assembles easily.  The stiles are marked with the cell orientation; the filled cage looks a bit like a C cell and drops into the flashlight handle, with the spring-loaded button and the metal ring contacting corresponding surfaces on the bottom of the LED board.</p>
<p>The tail cap doesn&#8217;t make electrical contact with the battery&#8217;s negative terminal and the flashlight body doesn&#8217;t conduct current, as it does on many less expensive flashlights (not that I think I care).</p>
<p>Cleaned, reassembled, and with AAA cells reinstalled, it once again works perfectly.  I look forward to many more years of service &hellip; and to not having to clean it out again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1480</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Modifying a Harbor Freight Solar Charger</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1408</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1408#comments</comments>
		<pubDate>Wed, 22 Jun 2011 01:01:39 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Inside]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1408</guid>
		<description><![CDATA[My dashboard solar charger is one of the more useful things I&#8217;ve bought from Harbor Freight. My van has some weak short-circuit and slowly drains the battery, and as I don&#8217;t use the van all that often, I was at risk of coming out to a completely drained battery. I now keep one of these [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://www.harborfreight.com/15-watt-solar-battery-charger-44768.html">dashboard solar charger</a> is one of the more useful things I&#8217;ve bought from Harbor Freight.  My van has some weak short-circuit and slowly drains the battery, and as I don&#8217;t use the van all that often, I was at risk of coming out to a completely drained battery.  I now keep one of these on the dash and the battery is always topped off.  When I first connected it, the van was sitting in shade and the (old) automotive battery measured 5V (!); after a week it was up to 9V and after another week it was fully charged.  Now I don&#8217;t ever have to think about a drained battery again.  At about $20 list and $15 on sale, it&#8217;s a steal.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8303.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8303_mid.jpg" alt="Harbor Freight solar charger model 44768" /></a></p>
<p>The <a href="/bus/">bus conversion project</a> is languishing but not forgotten, and I&#8217;ve been wanting to put one of these chargers into the bus for the same reasons as I had for the van.  The wiring situation is a little different, though &#8212; the bus has no cigarette lighter / power port, I&#8217;m intending to wire 12VDC throughout the bus with <a href="http://www.andersonpower.com/products/standard-powerpole.html">Anderson power pole</a> connectors, and I might like to have multiple solar trickle chargers (even before I install larger solar panels on the roof).</p>
<p>The issue with multiple panels, and even with a single panel connected to a battery that will also be charged by the alternator, and even with a single panel that may still be connected to the battery at night, is that photovoltaic cells don&#8217;t like to have reverse voltage applied.  The photovoltaic effect happens in a semiconductor junction, and although I can no longer find the reference I was reading the other day, I still know the cell doesn&#8217;t do well with a reverse voltage and should really be diode-protected.</p>
<p>Because I wasn&#8217;t sure how much (if any) circuitry was in the panel and how much (if any) was in the automotive power plug connector, I had to take both apart to (A) make sure the panel would be diode-protected even after I chopped off the power plug and (B) see whether either held any relevant / useful circuitry.</p>
<p><span id="more-1408"></span></p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8273.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8273_mid.jpg" alt="Harbor Freight solar charger model 44768, interior" /></a></p>
<p>Panel &#8212; nope, nothing there.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8284.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8284_mid.jpg" alt="Harbor Freight solar charger model 44768 power plug, interior" /></a></p>
<p>Power plug &#8212; the LED that flashes while light is falling on the panel, a rectifier diode, and some passives.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8290.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8290_mid.jpg" alt="Harbor Freight solar charger model 44768 power plug, circuit board" /></a></p>
<p>Oh, and an integrated circuit under a glob of epoxy.</p>
<p>Hm, will that be some sort of power conversion or regulation circuit, or just the LED flasher?</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8290-wiring.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8290-wiring_mid.jpg" alt="Harbor Freight solar charger model 44768 power plug, circuit board, annotated" /></a></p>
<p>The ground wire comes in from the panel, is soldered to the board, and connects to a ground wire running to the plug&#8217;s sleeve terminal.  The positive wire comes in from the panel, is soldered to the board, and connects to the rectifier&#8217;s anode; the cathode connects to a positive wire running to the plug tip.  The epoxy blob is therefore just the LED flasher.</p>
<p>The flashing LED is kind of a nice indication that the panel is delivering power to the battery; but I&#8217;m going to dispose of the plug; it&#8217;s not worth transplanting the PCB to the panel enclosure; and I can tell it&#8217;s making power &#8217;cause I can see there&#8217;s sunlight falling on it.  Also, something in this unit is flaky and the LED sometimes doesn&#8217;t flash even when the unit appears to be working.</p>
<p>So I need to chop off the whole power plug and wire in Anderson power poles, and somewhere in between the panel and the connector I need a protection diode.  Might as well use the one from the circuit since it&#8217;s free, and it turns out to be a <a href="http://www.fairchildsemi.com/pf/1N/1N5817.html">1N5817 Schottky</a>.  The Schottky&#8217;s fast turnaround time isn&#8217;t important for this application &#8212; it would have been selected for its low forward voltage drop of .45V @ 1A and about .3V @ the 120mA for which the panel is rated.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8322.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8322_mid.jpg" alt="Harbor Freight solar charger model 44768 with diode moved to panel" /></a></p>
<p>Put the diode inline in the power cord or move it inside the panel?  Since the diode is there to protect the panel from damage, I&#8217;m of a mind that it should be integral to the panel assembly &#8212; hard to separate and hard to bypass.  There&#8217;s lots of room inside the case, so I moved the diode there and enclosed it in heatshrink.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8326.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/06/19/DSCN8326_mid.jpg" alt="Harbor Freight solar charger model 44768, modified" /></a></p>
<p>Anderson power poles (the red and black connector at the center) are genderless connectors with generous metal-to-metal contact suitable for fairly high-current applications and popular in the amateur radio community.  The individual shells have notches in the sides to slide together into whatever configuration of multi-pin connector you want.</p>
<p>And because they&#8217;re genderless (rotate the connector 180&deg; and it would plug together with a connector sitting in its original position), they&#8217;re great for batteries &#8212; put the same connector on the battery, the battery charger, and your load, and you can pick any two devices to plug together.</p>
<p>This suits my plan for the bus:  run appropriate-gauge DC wiring throughout and anywhere there&#8217;s a drop, I could plug in an AC or solar charger, a 12VDC light, an automotive USB charger, etc.  Even before I do <em>all</em> the wiring, it still pleases me to have a cable coming from the battery into which I can easily plug the solar trickle charger, a small power inverter, or a USB charger.</p>
<p>My one concern is that everywhere I&#8217;ve seen power poles, red/black has been used for 12V connections; but the <a href="http://www.andersonpower.com/products/colorcode_pp.html">Anderson color code chart</a> lists that red signifies 24V and yellow should be used for 12V.  Yellow is a lot harder to find, not only in use but also to purchase.  Although it seems important to conform to Anderson&#8217;s <em>de jure</em> standard of yellow/&lt;what?&gt;, I think using anything other than the <em>de facto</em> standard of red/black risks confusing anyone else familiar with power poles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1408</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Stratasys ABS Rapid-Prototyping Machine</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=818</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=818#comments</comments>
		<pubDate>Mon, 30 May 2011 16:05:24 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Inside]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=818</guid>
		<description><![CDATA[Another heretofore unfinished old post, this one from January 2010: I was over at the aviation department last week and happened upon the installation of a new Stratasys rapid-prototyping machine. It has a much larger build chamber than NIAR&#8217;s previous ABS machine &#8212; this one is something like 14&#8243; x 14&#8243; x 18&#8243;. The case [...]]]></description>
			<content:encoded><![CDATA[<p>Another heretofore unfinished old post, this one from January 2010:</p>
<p>I was over at the aviation department last week and happened upon the installation of a new Stratasys rapid-prototyping machine.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/01/07/IMG00043-20100107-1408.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/01/07/IMG00043-20100107-1408_mid.jpg" alt="Stratasys ABS rapid-prototyping machine, front left view" /></a></p>
<p>It has a much larger build chamber than NIAR&#8217;s previous ABS machine &#8212; this one is something like 14&#8243; x 14&#8243; x 18&#8243;.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/01/07/IMG00044-20100107-1409.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/01/07/IMG00044-20100107-1409_mid.jpg" alt="Stratasys ABS rapid-prototyping machine, left side open" /></a></p>
<p>The case was open and I was intrigued by the thick blanket of insulation around the build chamber.  I asked the installer if the whole chamber was heated and he said yes, to 80&deg;C.  Interesting point of reference, as RepRap / CupCake owners seem to have settled on 60&deg;C as the standard temperature for heated build platforms.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/01/07/IMG00047-20100107-1427.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/01/07/IMG00047-20100107-1427_mid.jpg" alt="Stratasys ABS rapid-prototyping machine, hazy shot of extrusion head" /></a></p>
<p>It was fairly dark inside the build chamber and I couldn&#8217;t get a great shot with my cell phone camera, but you can see the extrusion head with two nozzles for support and build material.  I found it interesting how extremely broad and shallow the white nozzle cones are &#8212; maybe it helps prevent snags?</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/30/DSCN8192.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/30/DSCN8192_mid.jpg" alt="Filament from Stratasys rapid-prototyping machine" /></a></p>
<p>With the lab manager&#8217;s blessing, I fished two filament strands out of the trash.  The upper, black filament is ABS; the lower, translucent brown filament is a dissolvable support material that apparently washes out in an agitated hot water and detergent bath.  Wish I knew exactly what it was!</p>
<p>I measure the diameter at .070&#8243; &plusmn; .001&#8243; &asymp; 1.778mm &asymp; 1.75mm &asymp; .069&#8243;, so it looks like they&#8217;re using 1.75mm filament.  The stretched section on the end is recognizable as having been in the hot end and then backed out.</p>
<p>Note the toothmarks all the length of each filament (about 3m), suggesting that either something is pushing the filament from that far back or (more likely) the hot end has a quick-release for cleaning and this filament was run through the machine after removing the hot end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=818</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Solar Charging and Switching Circuit for Outdoor Sculpture Installation</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1365</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1365#comments</comments>
		<pubDate>Sun, 29 May 2011 19:28:46 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Inside]]></category>
		<category><![CDATA[TechArt]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1365</guid>
		<description><![CDATA[Over the winter, my friend Steve Atwood got a commission for a sculpture to be installed in the Wichita Falls, TX Kemp Center for the Arts &#8220;Art on the Green&#8221; sculpture garden from May 2011 &#8211; 2012. He had in mind to continue a series of his sculptures based on the form of a fishing [...]]]></description>
			<content:encoded><![CDATA[<p>Over the winter, my friend <a href="http://www.atwoodstudio.com/">Steve Atwood</a> got a commission for a sculpture to be installed in the Wichita Falls, TX <a href="http://www.kempcenter.org/SculptureGarden.php">Kemp Center for the Arts &#8220;Art on the Green&#8221; sculpture garden</a> from May 2011 &#8211; 2012.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/255032_2017478126138_1519426531_32194551_489004_n.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/255032_2017478126138_1519426531_32194551_489004_n_mid.jpg" alt="Lure 22 V2.0 by Stephen Atwood at Kemp Center for the Arts, Wichita Falls, TX" /></a></p>
<p>He had in mind to continue a series of his sculptures based on the form of a fishing lure but wanted to enhance this sculpture with one or more LEDs, preferably that would come on only at night.  We discussed a wide variety of options that we hope to develop for another installation in the future; but in the end, in the interest of time for this project, Steve found control modules that flash up to five LEDs at random and installed them behind a set of cones protruding from a recessed panel.</p>
<p>He asked how to make the LEDs turn on at night and also wondered whether he could power them for a year from a primary battery or whether he should use rechargeables.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/255487_2017475646076_1519426531_32194549_3873647_n.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/255487_2017475646076_1519426531_32194549_3873647_n_mid.jpg" alt="Lure 22 V2.0 by Stephen Atwood at Kemp Center for the Arts, Wichita Falls, TX" /></a></p>
<p>About seven years ago, I had come into possession of some discarded solar yard lights, and out of curiosity had reverse-engineered their charging and control circuits.  Since yard lights accomplish both functions &#8212; charging and switching &#8212; I figured the circuit would be perfect for the sculpture.  I was able to find one and instruct Steve how to modify it for his needs.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/solar-yard-light-sch.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/solar-yard-light-sch.png" alt="Solar yard light schematic" /></a></p>
<p>The circuit is very simple and I find it rather elegant.  During the day, the solar panel assembly (left &#8212; for want of a proper schematic symbol, I just drew another battery) charges two AA cells through a diode that prevents the battery from damaging the panel with reverse voltage at night.  Additionally, through the R<sub>1</sub> &#8211; R<sub>2</sub> voltage divider, the solar panel pulls up the base of Q<sub>1</sub>, switching it off and allowing R<sub>3</sub> to pull up the base of Q<sub>2</sub>, switching it off and switching off the load LED<sub>1</sub>.</p>
<p>At night, the panel&#8217;s output approaches 0V and R<sub>2</sub> pulls down Q<sub>1</sub>&#8216;s base, causing Q<sub>1</sub> to conduct and pull down Q<sub>2</sub>&#8216;s base (in a Darlington-like arrangement &#8212; I don&#8217;t know whether it&#8217;s still considered a proper Darlington with R<sub>3</sub> pulling up the Q<sub>1</sub> emitter &#8211; Q<sub>2</sub> base connection), switching on Q<sub>2</sub> and LED<sub>1</sub>.  In fact, depending on the panel&#8217;s exact voltage, the load may switch on even before full darkness, and R<sub>1</sub> &#8211; R<sub>2</sub> can be tweaked to tune the turn-on point.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/solar-module.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/solar-module_mid.jpg" alt="Control board from solar yard light, modified" /></a></p>
<p>Steve removed the LED from the control board and replaced it and the fly wires for the solar panel and battery with screw-terminal connectors for ease of installation inside the sculpture.  He bought a new solar panel with a higher output voltage to charge the higher-voltage battery for the white LEDs he wanted to use (the yellow LEDs in my yard lights didn&#8217;t require as high a forward voltage) and milled a Lexan cover for it to protect the panel from hail, with an O-ring groove to protect it from rain as well.</p>
<p>With higher battery and solar panel voltages, Steve indicated the load was turning on before the ambient light got as dark as he wanted, so I told him how to locate R<sub>1</sub> and replace it with fly wires to a 100K pot.  After the swap, he said he was able to tune it perfectly and he was delighted.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/253079_2017479646176_1519426531_32194552_3162450_n.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/20/253079_2017479646176_1519426531_32194552_3162450_n_mid.jpg" alt="Lure 22 V2.0 by Stephen Atwood at Kemp Center for the Arts, Wichita Falls, TX, night view" /></a></p>
<p>I&#8217;ve not had a chance to visit the sculpture garden and probably won&#8217;t while Lure 22 is installed.  If anyone&#8217;s in the area, I&#8217;d love to hear from you how well it&#8217;s working and how well the electronics hold up over the course of a year outdoors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1365</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Liebert Battery</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1185</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1185#comments</comments>
		<pubDate>Sat, 28 May 2011 14:46:08 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Inside]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1185</guid>
		<description><![CDATA[Just found this unpublished draft from October. I had received a GXTV2-48V battery expansion cabinet for my Liebert GXT2-2000RT120 UPS and wanted to see what was inside. Eight sealed lead-acid batteries are bolted down and connected through a circuit breaker / switch to the two input/output jacks in parallel. The cable to daisy-chain the battery [...]]]></description>
			<content:encoded><![CDATA[<p>Just found this unpublished draft from October.  I had received a GXTV2-48V battery expansion cabinet for my Liebert GXT2-2000RT120 UPS and wanted to see what was inside.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/10/22/DSC01440.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/10/22/DSC01440_mid.jpg" alt="Liebert GX2-48VBATT battery cabinet interior" /></a></p>
<p>Eight sealed lead-acid batteries are bolted down and connected through a circuit breaker / switch to the two input/output jacks in parallel.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/10/22/DSC01462.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/10/22/DSC01462_mid.jpg" alt="Liebert GXT2-CABLE48V1 UPS battery cable" /></a></p>
<p>The cable to daisy-chain the battery expansion cabinets to the UPS is &hellip; substantial.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2010/10/22/DSC01468.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2010/10/22/DSC01468_mid.jpg" alt="installed" /></a></p>
<p>Installed in the basement server rack (bottom) and connected to the UPS.  Sure wish I had a bezel for the battery cage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1185</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying a Car USB Adapter to (Finally) Charge My Cell Phone</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1345</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=1345#comments</comments>
		<pubDate>Sat, 28 May 2011 14:25:28 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Circuits]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Inside]]></category>
		<category><![CDATA[Repairs]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1345</guid>
		<description><![CDATA[A couple of years ago, I received this automotive USB-connector power adapter as a promotion at a conference. I use it to keep my iPod nano charged in the car, but I&#8217;ve noticed it doesn&#8217;t charge my Blackberry well. To be precise, it doesn&#8217;t charge my Blackberry. In fact, I&#8217;ve never been clear whether it [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of years ago, I received this automotive USB-connector power adapter as a promotion at a conference.  I use it to keep my iPod nano charged in the car, but I&#8217;ve noticed it doesn&#8217;t charge my Blackberry well.  To be precise, it doesn&#8217;t charge my Blackberry.  In fact, I&#8217;ve never been clear whether it even slows the rate of discharge, and sometimes it seems like it speeds it.  The Blackberry shows the lightning bolt charging symbol (The charging symbol is a <em>lightning bolt</em>, srsly? Ben Franklin is personally charging my phone?) but nobody&#8217;s home.</p>
<p>Note that I don&#8217;t blame the vendor whose logo happens to be on it &#8212; I&#8217;m sure they didn&#8217;t manufacture it.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/IMG_1443.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/IMG_1443_mid.jpg" alt="Automotive USB power adapter" /></a></p>
<p>After driving two and a half hours a week ago starting with a half charge on my BlackBerry, plugging it in midway through the trip, and arriving to have the BlackBerry finally shut off its radio due to depleted charge; and due to being in the presence of Cort; I decided it was time to see why the adapter couldn&#8217;t provide enough charge for the BlackBerry.</p>
<h3>Inside the Power Adapter</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/RT34063APS-step-down.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/RT34063APS-step-down_mid.png" alt="Sample step-down circuit using RT34063APS DC-DC converter" /></a></p>
<p><span id="more-1345"></span></p>
<p>After peering and squinting at the control IC, I deciphered the part number RT34063APS and found a datasheet for the DC-DC converter.  It contained no theory of operation but did provide one sample circuit for step-down conversion.  The IC maintains 1.25V across R<sub>1</sub>, so R<sub>2</sub> and R<sub>1</sub> (on this diagram &#8212; different part numbers in the device at hand) program the output voltage by dividing V<sub>OUT</sub>.  The values of 3.6K&Omega; and 1.1K&Omega; should program it for 5V operation.</p>
<p>R<sub>SC</sub> is supposed to program a current limit (SC is &#8220;sense current,&#8221; perhaps?), with the IC maintaining 330mV across V<sub>CC</sub> to V<sub>IPK</sub>.  I&#8217;m not clear on how that limits the current, but I&#8217;ll take their word for it.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/IMG_1433.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/IMG_1433_mid.jpg" alt="Automotive USB power adapter, interior" /></a></p>
<p>Having found the IC datasheet, the next order of business was creating a schematic of my power adapter.  I examined the PCB and positioned all the components in EAGLE, substituting a couple of four-pin connectors for the IC that doesn&#8217;t exist in my library.  After verifying I had captured all the connections, I rearranged the components on the schematic from their positions on the PCB to this more logical placement.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/USB-adapter-sch.png"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/USB-adapter-sch_mid.png" alt="Schematic of automotive USB power adapter" /></a></p>
<p>While I was working on that, Cort had hooked up the adapter to his bench power supply and fed it 12-13V.  He measured the output and got about 4.64V with no load around the same time I was finding that R<sub>2</sub> = 3.0K&Omega; and R<sub>3</sub> = 1.00K&Omega;, programming the circuit for 5.0V operation.</p>
<p>The issue is that the series diode D2 drops the output voltage by somewhere in the .6V &#8211; .8V range (from the 1N4007 datasheet, in the no-load to 200mA load range); and Cort measured 5.29V &#8211; 5.30V at D2&#8242;s anode.</p>
<p>Grrrrreat!  We&#8217;re calling this a 5V output, but due to the protection diode, feeding the output scarcely over 4.6V, and thinking that devices expecting 5V will charge on it!</p>
<h3>Works Fine with No Output Protection</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/IMG_1439.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/15/IMG_1439_mid.jpg" alt="Automotive USB power adapter under load test" /></a></p>
<p>The first thing we did was pull D2 and replace it with a jumper wire.  No D2, no voltage drop.  5.30V output.  Great!</p>
<p>But then my conscience got the better of me.  D2 is obviously there to protect the DC-DC converter from a higher voltage where it&#8217;s expecting a load; and although I don&#8217;t <em>intend</em> to connect such a thing, who knows what may happen.</p>
<h3>Change the Voltage Divider?</h3>
<p/>
<table border=1 cellspacing=0 cellpadding=5 align=center>
<tr>
<th></th>
<th>Original</th>
<th>Change R3</th>
<th>Change R2</th>
<th colspan=3>Change Both</th>
</tr>
<tr>
<td colspan=7></td>
</tr>
<tr>
<td>R2</td>
<td>1000</td>
<td>1000</td>
<td><em>850</em></td>
<td>1200</td>
<td><em>935</em></td>
<td><em>1134</em></td>
</tr>
<tr>
<td>R3</td>
<td>3000</td>
<td><em>3528</em></td>
<td>3000</td>
<td><em>4234</em></td>
<td>3300</td>
<td>4000</td>
</tr>
<tr>
<td colspan=7></td>
</tr>
<tr>
<td>V(REG)</td>
<td>5</td>
<td>5.66</td>
<td>5.66</td>
<td>5.66</td>
<td>5.66</td>
<td>5.66</td>
</tr>
<tr>
<td>V(OUT)</td>
<td>4.34</td>
<td>5</td>
<td>5</td>
<td>5</td>
<td>5</td>
<td>5</td>
</tr>
<tr>
<td colspan=7></td>
</tr>
<tr>
<td>V(D1)</td>
<td>0.66</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<p>My next thought was to change the resistor values to regulate the voltage to 5.66V so the post-diode output would be 5V.  I made a spreadsheet and played around with substitutions for R<sub>2</sub> and R<sub>3</sub> but didn&#8217;t come up with any combination I loved using standard values.</p>
<h3>Diode in voltage regulation circuit</h3>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/27/DSCN8145.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/27/DSCN8145_mid.jpg" alt="Automotive USB power adapter with diode compensation in voltage regulation circuit" /></a></p>
<p>Finally I had a better idea, the one we stuck with.  We inserted a diode (a small-signal diode &#8217;cause it was easier to fit in place) between the regulated voltage and the top of the voltage divider.  It drops .6V &#8211; .7V from the regulated voltage before it gets sampled for the feedback circuit, so the voltage is regulated to about 5.6V &#8211; 5.7V, then D2 takes its .6V &#8211; .7V, and we get about 5.0V &#8211; 5.1V at the output like we oughtta.</p>
<table border=1 cellspacing=0 cellpadding=5 align=center>
<tr>
<th>Configuration</th>
<th>Load (Est)</th>
<th>Voltage</th>
</tr>
<tr>
<td>Internal 1.2K&Omega; drain</td>
<td>4.4mA</td>
<td>5.25V</td>
</tr>
<tr>
<td>560&Omega;</td>
<td>14mA</td>
<td>5.21V</td>
</tr>
<tr>
<td>2x 120&Omega;</td>
<td>90mA</td>
<td>5.13V</td>
</tr>
<tr>
<td>3x 120&Omega;</td>
<td>132mA</td>
<td>5.11V</td>
</tr>
<tr>
<td>5x 120&Omega;</td>
<td>216mA</td>
<td>5.09V</td>
</tr>
<tr>
<td>6x 120&Omega;</td>
<td>258mA</td>
<td>5.08V</td>
</tr>
<tr>
<td>15&Omega;</td>
<td>342mA</td>
<td>5.07V</td>
</tr>
<tr>
<td>10&Omega;</td>
<td>508mA</td>
<td>5.04V</td>
</tr>
<tr>
<td>8&Omega;</td>
<td>549mA</td>
<td>4.36V</td>
</tr>
</table>
<p>We were curious about the accuracy of its regulation, so Cort grabbed a resistor, hooked it up to the outputs with gator wires, and measured the output voltage.  It was a bit high but the load was very light, so we tried a lower-valued resistor to increase the load.  Then two, then more, and more, and more; and by the time we got to the 8&Omega; sand resistor we were giddy and cackling for no reason I can figure out in retrospect.</p>
<p>Looks like it has pretty good regulation up to about 500mA load, and we haven&#8217;t even monkeyed with R<sub>SC</sub> yet.  That should be plenty good to charge my phone.</p>
<h3>The Trial</h3>
<p>I drove two and a half hours home with my phone plugged in all the way.  I deliberately didn&#8217;t fully charge it the night before, so I started the trip with half a charge and ended with no charge.</p>
<p>You gotta be kidding me.</p>
<h3>USB Power Negotiation</h3>
<p>I&#8217;m familiar with the formal power negotiation a device is supposed to do with a USB hub (using a maximum of 100mA unless it negotiates more), but I also know that most devices can charge from power sources I&#8217;m pretty sure don&#8217;t have full-fledged negotiation in them.  And I started thinking about <a href="http://www.ladyada.net/make/mintyboost/icharge.html">Adafruit&#8217;s great writeup of charging iPhones with a MintyBoost</a>.</p>
<p>The bottom line is that iPhones want the USB data lines strapped to certain voltages to tell them &#8220;I&#8217;m not really USB but I&#8217;ll give you power.&#8221;  Not only that, but in later iPhones, different voltages inform the device of different amounts of current it&#8217;s allowed to draw.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/27/DSCN8150.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2011/05/27/DSCN8150_mid.jpg" alt="Automotive USB power adapter circuit board, back" /></a></p>
<p>I was back at Cort&#8217;s house Wednesday night and mentioned that I wanted the data lines strapped to 3.3V.  He asked whether I wanted him to fix my power adapter while I finished proofreading my conference presentation for Thursday, and we had a deal.</p>
<p>Looks like he used 10K&Omega; and 15K&Omega; on the 5Vish output to give me 3V on the data lines.  We weren&#8217;t sure whether we needed a separate voltage divider on each data line like the MintyBoost uses, but when we plugged in my Blackberry the current draw (as registered by the power supply) jumped from 72mA to 290mA.</p>
<p>I&#8217;d forgotten my USB charging cable at home so didn&#8217;t get a chance to charge the Blackberry on the return trip, but the huge increased draw on the adapter&#8217;s supply side is a pretty good sign that I&#8217;m really finally charging.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1345</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
