<?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>equals zero &#187; LOLrio Kart</title>
	<atom:link href="http://www.etotheipiplusone.net/?feed=rss2&#038;cat=56" rel="self" type="application/rss+xml" />
	<link>http://www.etotheipiplusone.net</link>
	<description>A repository of my creations, projects, ponderings, memories, and nonspecific brainspew.</description>
	<lastBuildDate>Mon, 30 Aug 2010 11:15:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Karthook!</title>
		<link>http://www.etotheipiplusone.net/?p=741</link>
		<comments>http://www.etotheipiplusone.net/?p=741#comments</comments>
		<pubDate>Thu, 17 Jun 2010 07:14:42 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Reference Posts]]></category>
		<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=741</guid>
		<description><![CDATA[MITERS is the greatest thing that has ever happened to the world (or specifically just me), but while it has copious amounts of tools, test equipment, machinery, and an almost gratuitous amount of parts, it lacks space. Having been to other non-academically affiliated hackerspaces (such as Freeside Atlanta), I realize how outclassed we are in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://miters.mit.edu" target="_blank">MITERS</a> is the greatest thing that has ever happened to the world (or specifically just me), but while it has copious amounts of tools, test equipment, machinery, and an almost <em>gratuitous</em> amount of parts, it lacks <em>space</em>. Having been to other non-academically affiliated <a href="http://hackerspaces.org/wiki/" target="_blank">hackerspaces</a> (such as <a href="http://blog.freesideatlanta.org/" target="_blank">Freeside Atlanta</a>), I realize how outclassed we are in our capacity to host projects. Despite that, we&#8217;ve stacked up a whole bunch of &#8220;large&#8221;, generally vehicular contraptions, including the beloved <a href="http://www.etotheipiplusone.net/?page_id=197" target="_blank">LOLrioKart</a>.</p>
<p>LOLrioKart takes up a good portion of floor space in the back half of the room and is occasionally used to <a href="http://www.etotheipiplusone.net/pics/kart/kart179.jpg" target="_blank">store all my crap</a>. It&#8217;s also a pain to move around because of its mass, and a pain to work on the electricals because they are all very low to the ground. If I want to test the drivetrain, I had to lift the kart and balance it on a set of automotive jacks. Don&#8217;t even mention that time I had to swap the battery packs&#8230;</p>
<p>So for a while, I had wanted a lift or crane to suspend the kart from. I didn&#8217;t take the idea seriously until Spring term ended, when I started looking for options. I became partial to a ceiling-mounted hoist because of the ability to send the kart all the way to the top for storage and extra floor space.</p>
<p>The kart only weighs about 200 pounds empty, which is a essentially trivial load in the world of winches and cranes. MIT building N52 used to be a factory, and factories in the early 20th century were built to last forever. The ceilings are all solid concrete, more than a foot thick. Essentially, almost <em>anything</em> would have worked, and I briefly considered just gearing down a beefy DC motor instead of buying a specifically designed winch or hoist motor.</p>
<p>But as luck would have it, Craigslist produced a pristine example of an ATV winch for sale locally, so I quickly jumped on it.</p>
<p style="text-align: center;"><a href="/pics/kartcrane_1-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_1-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>This Master Lock (I thought they just sold locks, but I was wrong) unit seems to be a pretty standard offer in the world of cheap generic utility winches. It made some substellar sounds when loaded and the drum finish was pretty rough, but I&#8217;m going to <em>assume</em> that it won&#8217;t kill me. Too badly, anyway.</p>
<p>The mounting holes in the winch frame were located in a place where I couldn&#8217;t access them with a powered screw driving tool. They were designed to be mounted to brackets first, which are in turn mounted to your choice of stationary reference frame.</p>
<p style="text-align: center;"><a href="/pics/kartcrane_2-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_2-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>&#8230;so I had to devise my own. This 3/8&#8243; aluminum plate was just hanging out in the cave of materials. I could probably have waterjetted any number of small robot parts from it, but hey.</p>
<p>The two large middle holes are countersunk on the other side to fit 5/16&#8243;-18 socket head cap screws. The six surrounding holes are countersunk to fit some 1/4&#8243; flathead concrete bolts. MITERS had a large stock of &#8220;tapcon&#8221; style concrete screws (which do not use anchors), probably from back when we bolted stuff to the ceiling all the time.</p>
<p><a href="/pics/kartcrane_3-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_3-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Because bolting things to the ceiling isn&#8217;t exactly a precision machining activity, I used spraypaint and sprayed a pattern into the ceiling, using the mounting plate as a template.</p>
<p style="text-align: center;"><a href="/pics/kartcrane_4-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_4-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The winch itself is mounted using two 5/16&#8243;-18 socket head cap screws and grade 8 nuts and washers. This should <strong>not</strong> be the first failure point.</p>
<p style="text-align: center;"><a href="/pics/kartcrane_5-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_5-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>A little while later&#8230;</p>
<p>I borrowed a hammerdrill and a 5/32&#8243; concrete bit and went to town on the ceiling. Reportedly, the hammering noise was ungodly loud, even on the <em>third floor</em>. I guess that&#8217;s what happens when you bang on a solid concrete building.</p>
<p>I learned that a hammerdrill is best used not under intense drilling pressure, but rather under modest pressure. If you push too hard, you dampen the chiseling action and the effect is diminished. This was well reflected in me taking almost half a minute to drill the first hole &#8211; but the last only took 5 seconds.</p>
<p>Unfortunately, attempt #1 to mount the winch didn&#8217;t go well. I made the mistake of reading a different box of screws (which specified a 5/32&#8243; drill). 1/4&#8243; tapcon screws need a 3/16&#8243; drill. The difference meant that I managed to shear off the screw halfway into the final depth.</p>
<p>Epic fail.</p>
<p>I quickly went back with a 3/16&#8243; bit to expand the other holes, and the rest went well. Friends and cohorts spotted the high-altitude work and helped hold the 25 pound winch up while I drove in the screws.</p>
<p>But after much sweat, concrete dust, and loud construction noises&#8230;</p>
<p style="text-align: center;"><a href="/pics/kartcrane_7-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_7-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>FLYING LOLRIOKART</p>
<p>Well, at least I know my five-bolted rig can hold up 1 LOLrioKart. The only power supply strong enough to supply the current demand of the winch was a big Optima lead-acid battery.</p>
<p style="text-align: center;"><a href="/pics/kartcrane_8-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_8-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Because this <em>is</em> a shady winch being held up by shady screws into shady century-old concrete, we started piling heavy things into the kart to see if we could find the maximum load. Helmets and face shields were aplenty during this exercise, because even if the kart was only 1&#8243; off the ground during it, the falling 20-odd pounds of steel were a concern.</p>
<p>Things piled into the kart include two <em>truck disc brakes</em> (60 pounds), the lead acid battery (50 pounds), the Defibrillator (a.k.a the kart charger, 25 pounds), one brushless Etek (25 pounds), a huge linear power supply (25 pounds), and a milling vise (40 pounds). Powered lifts and interrupted drops were attempted to put force on the mounting, but it was solid. I think it&#8217;s proved itself.</p>
<p>Assuming I did install the screws correctly and that the concrete is not crumbly, each 1/4&#8243; concrete screw is rated to a maximum of 1,100 pounds assuming a 1.5&#8243; depth. There are five holding the plate to the ceiling for a cool ultimate tensile strength of 5,000 pounds. Even accounting for imperfections, the winch should stall long before the screws pull out. It&#8217;s still unlikely that I&#8217;ll ever allow anything more than the kart by itself to be hoisted, or items of similar weight, because it <em>can</em> get overhead and that <em>can</em> end badly.</p>
<p style="text-align: center;"><a href="/pics/kartcrane_9-mid.jpg"><img class="aligncenter" src="/pics/kartcrane_9-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: center;"><em>Yup, it&#8217;s a hoverkart. Any questions?</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=741</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kartroller 6: The video</title>
		<link>http://www.etotheipiplusone.net/?p=682</link>
		<comments>http://www.etotheipiplusone.net/?p=682#comments</comments>
		<pubDate>Thu, 27 May 2010 18:57:09 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=682</guid>
		<description><![CDATA[As promised, here&#8217;s a short highlights clip of the Kartroller 6. &#8230;so it&#8217;s actually just a very small cross section of all the testing that&#8217;s been going on. I&#8217;ve been thrashing the new controller mercilessly. Never before could I throw the kart around like that without the risk of something setting on fire &#8211; but [...]]]></description>
			<content:encoded><![CDATA[<p>As promised, here&#8217;s a short highlights clip of the Kartroller 6.</p>
<p><object id="viddlerplayer-6c651897" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="545" height="349" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="autoplay=f" /><param name="src" value="http://www.viddler.com/simple/6c651897/" /><param name="name" value="viddlerplayer-6c651897" /><param name="allowfullscreen" value="true" /><embed id="viddlerplayer-6c651897" type="application/x-shockwave-flash" width="545" height="349" src="http://www.viddler.com/simple/6c651897/" name="viddlerplayer-6c651897" flashvars="autoplay=f" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>&#8230;so it&#8217;s actually just a very small cross section of all the testing that&#8217;s been going on. I&#8217;ve been thrashing the new controller mercilessly. Never before could I throw the kart around like that without the risk of something setting on fire &#8211; but it&#8217;s been bulletproof.</p>
<p>That J-turn took about 15 tries to get right, by the way, and it <strong>still</strong> isn&#8217;t quite up to spec. I&#8217;d need much more space to do it correctly&#8230;</p>
<p>I am satisfied. Next: 6 quadrants.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=682</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kartroller 6: The Wrapup</title>
		<link>http://www.etotheipiplusone.net/?p=656</link>
		<comments>http://www.etotheipiplusone.net/?p=656#comments</comments>
		<pubDate>Fri, 21 May 2010 13:08:14 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=656</guid>
		<description><![CDATA[Unhappy aluminum spacer is unhappy. As of about right now, LOLrioKart features a full bidirectional and regenerative motor controller. This might not be true soon since I still have to perform stress tests, but nobody can point at me and say PICS OR IT DIDN&#8217;T HAPPEN either because there are pics and it did happen! [...]]]></description>
			<content:encoded><![CDATA[<p>Unhappy aluminum spacer is unhappy.</p>
<p style="text-align: center;"><a href="/pics/unhappy_aluminum.jpg"><img class="aligncenter" src="/pics/unhappy_aluminum.jpg" alt="" width="512" /></a></p>
<p>As of about right now, LOLrioKart features a full bidirectional and regenerative motor controller. This might not be true soon since I still have to perform stress tests, but nobody can point at me and say <strong>PICS OR IT DIDN&#8217;T HAPPEN</strong> either because there <em>are</em> pics and it <em>did </em>happen!</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_23.jpg"><img class="aligncenter" src="/pics/kart/kartroller_23-mid.jpg" alt="" width="512" /></a></p>
<p>Continuing from Day 1, here&#8217;s most of the high current bus wiring. I was able to salvage much of the weird grounding strap/braid from the previous controller to use on this one, since it had much shorter wiring spans. The braid is much more flexible than the equivalent amount of ~6 gauge wire, and passes right through the copper screw lugs.</p>
<p>Also in the picture is the large 10 ohm power resistor that shunts the contactor. It&#8217;s the precharge resistor for the bus capacitors. I included a check in this iteration of the software to prevent the motor driver from outputting any power if the contactor itself is not latched. When not latched, the logic can still draw power through the resistor.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_24.jpg"><img class="aligncenter" src="/pics/kart/kartroller_24-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Check out the double bus capacitors. Some 8 gauge noodle wire links the caps in parallel and also to the  gigaFETs next to them.</p>
<p>It turns out that 3900uF of bus capacitance isn&#8217;t really enough, so I might have to double-deck the caps later on.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_25.jpg"><img class="aligncenter" src="/pics/kart/kartroller_25-mid.jpg" alt="" width="384" /></a></p>
<p>Now comes the enormous 375A Anderson powerpole. Since the whole controller is upside-down this time, I decided to put the Etek on connectors. I received a set of these for my birthday as a gag gift (they were spraypainted red and black to prevent me from plugging them in backwards!).</p>
<p>The pigtails are 2 gauge welding cables. The kart seems to feature  a very diverse conductor menagerie, ranging from 10 to 2 gauge. Overall, the longest runs get the biggest gauge, so I think it all balances out.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_26.jpg"><img class="aligncenter" src="/pics/kart/kartroller_26-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>It&#8217;s time for mounting! I found some abnormally long wood screws, so just decided to use them to mount the controller instead of trying to use machine screws and <em>tapping plywood</em> like last time.</p>
<p>I was too lazy to actually draw out the mounting hole pattern on the wood first, so I just set the controller up on the machined standoffs and dimpled the wood in the center of each hole with a punch. Then the wood screws were too large to thread themselves into the wood without splitting, so I pilot drilled the dimples. All the precarious controller balancing and punching probably came out to more effort than just drawing the mounting pattern, but hey&#8230;</p>
<p>The main battery connector and power switch are located across from eachother, joined with the shortest possible wiring runs. Overall, I cut a few inches out of the amount of wire needed to link all the parts together.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_27.jpg"><img class="aligncenter" src="/pics/kart/kartroller_27-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Here&#8217;s a look under the upside-down controller. I probably could have dropped the standoff height another half inch so the wires keep themselves in place.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_28.jpg"><img class="aligncenter" src="/pics/kart/kartroller_28-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Alright, now we get to <em>my </em>favorite part of this controller design &#8211; the <em>entire</em> reason why I chose the Epic Heatsink of Epicness and the upside down design: <strong>the case mod</strong>.</p>
<p>Two 120mm LED fans park right on top of the Epic Heatsink and tap off the 12 volt line. They are probably the worst possible choice for real controller fans, since they flow as much air as I do by sleeping, but <em>look at how awesome they are</em>.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_29.jpg"><img class="aligncenter" src="/pics/kart/kartroller_29-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>I dropped the assembly in for a quick test spin of the drivetrain. To my utter surprise, nothing exploded on application of battery power. This is a new development in the line of Kartrollers &#8211; generally I have to rebuild it every time I plug it in. The precharge circuit works much faster than the old one now, and without danger of being set on fire by the motor trying to pull current through the bypass resistor.</p>
<p>Downside: That&#8217;s probably the most awkward possible place for the battery switch.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_30.jpg"><img class="aligncenter" src="/pics/kart/kartroller_30-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Well <em>that</em> didn&#8217;t last long. The first wheels-up test resulted in a sudden and mysterious total system shutdown after entering a particularly stiff period of motor braking. No fire, just a sudden crowbar-like effect. After half an hour of diagnostics (the gate driver chips were both toasted and replaced), the controller worked again&#8230; <em>barely</em>.  It managed to spin a small test motor at about&#8230;. 10 RPM or so.</p>
<p>The above high-side scope trace led me to discover that, horrifyingly enough, I was using bootstrap diodes at almost <strong><em>twice</em></strong> their rated blocking voltage.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_31.jpg"><img class="aligncenter" src="/pics/kart/kartroller_31-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The bootstrap diodes are pointing towards the brown capacitors in the picture.</p>
<p>I randomly picked some diodes out of our &#8220;power diode&#8221; bin which  turned out to be 1n5819s on closer inspection &#8211; rated to 40 volts <em>absolute  maximum</em>. First off, the kart battery was 60+ volts charged, and on  regenerative braking, the voltage spiked beyond that. Hitting the brake  hard most likely resulted in a mortal blow for both diodes, momentarily  firing( x &gt;&gt; 12.0) volts into the 12v auxiliary bus.. This caused  the DC/DC converter to freak out and shut down, powering everything off.</p>
<p>Better than setting everything on fire.</p>
<p>The diode carcasses still conducted a little, just barely enough  to make the high side FETs also  conduct just a little to run the test motor.</p>
<p>The  solution was to replace them with some more random diodes from the bin.  This time, they were 1n4007s, good to  $MORE_VOLTAGE_THAN_THE_KART_SHOULD_EVER_SEE (namely, 1000 volts).  The  test motor almost flew off the table, a good sign.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_32.jpg"><img class="aligncenter" src="/pics/kart/kartroller_32-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The negative current is a sign of the regen brake working! Negative current in this case means it&#8217;s going back into the battery bank.  This was captured by revving the kart drivetrain up to full speed (a scary ordeal with it balancing delicately on an automotive jack, by the way&#8230; if it fell off, it would probably have broke into <a href="http://tmrc.mit.edu/" target="_blank">TMRC</a>) and then letting off the throttle. The synchronous H-bridge took care of the power conversion.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_33.jpg"><img class="aligncenter" src="/pics/kart/kartroller_33-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>So what always happens after I quickly check that the vehicle works in midair?</p>
<p>Yup. With the reverse switch and brake pot still dangling precariously off the terminal strip, I hurriedly threw the throttle back on and took the kart out for a hallway joyride.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_34.jpg"><img class="aligncenter" src="/pics/kart/kartroller_34-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>&#8230;but not before rigging myself an easily accessible emergency stop. The little chunk of wire is normally wedged into the contactor switch terminals, turning it on. Making sure I was tied to it at <em>all times</em> meant that I could quickly disengage the contactor if&#8230; stuff happened.</p>
<p>Fortunately, it wasn&#8217;t necessary. There&#8217;s not any test video since I decided to save face in case the whole thing detonated in the middle of the hallway, but rest assured video is forthcoming. After doing the drooping-wire test run, I decided to clean everything up  and actually consolidate the controls into one easily-accessible location.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_35.jpg"><img class="aligncenter" src="/pics/kart/kartroller_35-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>&#8230;yeah, um, so my user interface design skills need some work.</p>
<p>But the whole thing is conveniently located and fulfills its requirements. The Big Red Switch is a <strong>legitimate</strong> emergency stop button now! It opens up a normally closed circuit when I pound on it, turning off the contactor. As some people may remember, the previous kartswitch was actually a normally open button, so you had to <em>push </em>to engage and <em>pull</em> to disengage.</p>
<p>The direction selector is located next to the Big Red Switch , and above it is a potentiometer to adjust the drag braking force. This pot should really be a logarithmic pot, since the filter time constant calculation behaves exponentially near zero &#8211; very fine adjustment of the pot yields very large coast/brake differences at the &#8220;coast&#8221; end of travel.</p>
<p>The current-voltage-micrometer makes a return.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_36.jpg"><img class="aligncenter" src="/pics/kart/kartroller_36-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>And here&#8217;s the whole nest from the other side.  I was lucky to find an &#8220;INCREASE OUTPUT&#8221; knob, which really should have been reserved for cruise control.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_37.jpg"><img class="aligncenter" src="/pics/kart/kartroller_37-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The nest enters into the terminal block in a neat and orderly fashion.</p>
<p>A new day and an overnight trickle charge on the batteries means <strong>plenty of testing and fire to come!</strong> Stay tuned for more pics and video of <strong>Syncrec LOLrioKart! </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=656</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kartroller 6: The Blitz</title>
		<link>http://www.etotheipiplusone.net/?p=651</link>
		<comments>http://www.etotheipiplusone.net/?p=651#comments</comments>
		<pubDate>Tue, 18 May 2010 05:17:07 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=651</guid>
		<description><![CDATA[Poor LOLrioKart. LOLrioKart in a forest of scooter handlebars After being totally whored out for CPW by giving rides to prefrosh and generally being hooned around campus, I remounted the kart sound system to use as a portable music device and all-around pimpmobile for Mini-Maker Faire the weekend after. But thirty minutes before departing for [...]]]></description>
			<content:encoded><![CDATA[<p>Poor LOLrioKart.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_2.jpg"><img class="aligncenter" src="/pics/kart/kartroller_2-mid.jpg" alt="" width="512" height="384" /></a><em>LOLrioKart in a forest of scooter handlebars</em></p>
<p>After being totally whored out for <a href="http://web.mit.edu/admissions/cpw/" target="_blank">CPW</a> by giving rides to prefrosh and generally being hooned around campus, I remounted the kart sound system to use as a portable music device and all-around pimpmobile for <a href="http://blog.makezine.com/archive/2010/04/miters_at_cambridge_mini_maker_fair.html" target="_blank">Mini-Maker Faire</a> the weekend after. But thirty minutes before departing for the Faire, I powered the kart on.</p>
<p>Nothing happened.</p>
<p>It wasn&#8217;t a spectacular explosion. It wasn&#8217;t even a smoke column or a quiet sizzling sound. Through a half hour of diagnostics, I only managed to deduce that the gate driver stopped driving the gate. The power FETs appeared to be fine. Whatever &#8211; we were late already, so I just pushed the kart a mile or so to the Cambridge Public Library where the event was being held, blasting bad eurodance and girl pop along the way.</p>
<p>Afterwards, I decided to just remake the controller, yet again. The latest iteration, version 5, did work, but was haphazardly put together (i.e. pretty par for the course). I wanted something that had more structure than a bundle of wires. I also wanted to keep advancing on the number of features and simplifying the schematic. This resulted in the <a href="http://www.etotheipiplusone.net/?p=642" target="_blank">great gate driver hunt of 2010</a>, out of which the IR2184s came.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_3.jpg"><img class="aligncenter" src="/pics/kart/kartroller_3-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>As described, the existing controller core is kind of a kludge. It was just an Arduino with a protoboard shoved onto it which had the gate drive componentry. Alongside was a 12v DC/DC converter. Everything was just packed inside a little box with foam bits, and not otherwise secured.</p>
<p>Running the controls in open air for half an hour to diagnose the latest failure resulted in me discovering that the DC/DC converter got <strong>hot</strong>. Way hot &#8211; hot enough for it to shut itself off, which explained alot of kart flakiness.</p>
<p>So I did what any shady college engineer would do given a totally rigged and quasi-functioning project &#8211; <em>rip everything the hell apart.</em></p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_10.jpg"><img class="aligncenter" src="/pics/kart/kartroller_10-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">I dismounted <strong>everything</strong> and took the mounting board out of the kart.</p>
<p style="text-align: left;">The big black slick in the righthand corner is from grease and oil being thrown upon it by the drive chain.</p>
<p style="text-align: left;">Let&#8217;s begin again. We start with an epic heatsink:</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_4.jpg"><img class="aligncenter" src="/pics/kart/kartroller_4-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">I found this in the materials cave at <a href="http://miters.mit.edu" target="_blank">MITERS</a>. There are a few reasons why I wanted an Epic Heatsink, the foremost of which is epicness.</p>
<p style="text-align: left;">The other reason is modularity. At 300 x 200mm, this heat sink had enough area on its back to mount practically all the core componentry. I wanted to move away from point-to-point hardwiring onto something a little more modular, like a commercial controller.</p>
<p style="text-align: left;">
<p style="text-align: center;"><a href="/pics/kart/kartroller_5.jpg"><img class="aligncenter" src="/pics/kart/kartroller_5-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Mechanical issue: Only one side of the heatsink had space for mounting holes or other provisions. The other seems to have been trimmed off by someone else.</p>
<p style="text-align: left;">It just so happened that removing the bent fin would open up a width on that side of the heat sink equal to the width of the flange on the other.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_6.jpg"><img class="aligncenter" src="/pics/kart/kartroller_6-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">&#8230;so that&#8217;s what I did. Remembering a trick someone showed me a while ago, I slammed the heatsink on the mill and cut down the bent fin.</p>
<p style="text-align: left;">The 3/4&#8243; rod fits into the 5/8&#8243; T-slot on a Bridgeport mill table and provides a straight edge to bump a long part against, for axial trueness without resorting to hammer bashing and a dial indicator. Normally the rod should be precisoin ground or otherwise some length standard, but in this case, &#8220;precision&#8221; meant &#8220;closest one to me that qualified for diameter&#8221;.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_7.jpg"><img class="aligncenter" src="/pics/kart/kartroller_7-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">With the edge cut down but no holes drilled yet, I started laying out the components. There were a few iterations &#8211; this is the first. The FETs would be centrally located so one fan can blow on the back of the heatsink to cool them. The Arduino would sit right next to the gate pins.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_8.jpg"><img class="aligncenter" src="/pics/kart/kartroller_8-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">But that was before I found these cool double capacitor holders, which allowed me to pack on <em>more</em> bus capacitance than the kart currently had (2400uF to 3900uF) <em>and</em> keep it on the heatsink mount. Of course, caps like this don&#8217;t need heatsinking themselves, but the mounting surface was there.</p>
<p style="text-align: left;">Through more cramming, I decided to also move the contactor onboard, such that the unit was essentially self-contained. Other parts of the power system, like the battery cutoff switch, terminal blocks, and power connector, would remain offboard.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_11.jpg"><img class="aligncenter" src="/pics/kart/kartroller_11-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">I took a quick break and laid out the parts. The heatsink itself already had quite a few holes drilled in it from its  previous, more legitimate application, but sadly none of them lined up. Thus, it was back to the mill to drill the mounting holes, which was a rather boring half hour of trying to match a digital readout with a hole chart.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_12.jpg"><img class="aligncenter" src="/pics/kart/kartroller_12-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Some screws and washers later, and the pieces are mounted. The contactor is case-grounded, and my intention was to keep the heatsink itself isolated. So, it&#8217;s secured by large nylon screws and insulative washers.  The Arduino and capacitor block are mounted with nylon standoffs.</p>
<p style="text-align: left;">The DC/DC converter has an isolated case, so it was bolted straight to the heatsink. It will probably be alot happier this way. It, and the two Ixys gigaFETs, got a liberal coating of Arctic Silver thermal compound on the bottom.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_13.jpg"><img class="aligncenter" src="/pics/kart/kartroller_13-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Here&#8217;s the new driver board. It&#8217;s another Arduino-perfboard assembly that houses two IR21844 dual gate drivers. Unlike Kartroller 5, the high sides are bootstrapped, not supplied via isolated regulator. I decided this was a good simplicity tradeoff.  Additionally, it&#8217;s much more failsafe &#8211; the boostrapped high side can&#8217;t maintain 100% duty cycle, so it can never get stuck on like the low side drive can.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_14.jpg"><img class="aligncenter" src="/pics/kart/kartroller_14-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">The wiring nest on the underside, in typical me-fashion. I&#8217;m using some cool 30 gauge solid tinned wire that has very unique insulation properties. It doesn&#8217;t smoke or burn when it contacts a soldering tip, but rather just melts out of the way. It&#8217;s very thin and easily damaged.</p>
<p style="text-align: left;">But those same properties let me just mash the wire into the solder joint with the tip and it will automagically fuse with the solder ball that&#8217;s already present. This has enabled me to just go pin-to-pin and link up an entire net very quickly.</p>
<p style="text-align: left;">I <strong>think</strong> it&#8217;s <a href="http://en.wikipedia.org/wiki/Wire_wrapping" target="_blank">wire-wrapping</a> wire, but I&#8217;m not sure. What is it and where can I  get more?! MITERS is almost out!</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_15.jpg"><img class="aligncenter" src="/pics/kart/kartroller_15-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Check out the integrated signal terminal block. I even labeled it so I don&#8217;t forget which wire goes where!</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_16.jpg"><img class="aligncenter" src="/pics/kart/kartroller_16-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Most low power wiring joined. Notice the small 5mm power plug coming out of the DC/DC converter and into the Arduino. I figured it was better than soldering directly to the input pins&#8230;</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_17.jpg"><img class="aligncenter" src="/pics/kart/kartroller_17-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Here&#8217;s the gate wiring from the Arduino shield to the FETs. Gate resistors are integrated into the heatshrunk portion of each cable end. I really should have local pulldown resistors too, but elected to keep those on the shield.</p>
<p style="text-align: left;">The rightmost gate wire got red shrink because I ran out of black.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_18.jpg"><img class="aligncenter" src="/pics/kart/kartroller_18-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">I began to add other signal interfacing hardware to the shield at this point. First to be completed is the contactor detector. It&#8217;s a wire (the red one) connected to the contactor (through a resistor divider) which enables the software to see whether or not the contactor is latched. One of the problems with Kartroller 5 is that it just let me (or someone) gun the throttle even with the contactor was in the precharge state.</p>
<p style="text-align: left;">This just caused the controller side voltage to fall under 36 volts, resetting the DC/DC converter, thus shutting the logic off. In turn, the FETs turned off, causing the voltage to rise again, which&#8230; well, it led to an unhappy cycle of kart-twitching until I reached for the battery switch.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_19.jpg"><img class="aligncenter" src="/pics/kart/kartroller_19-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">The next few lengths of wire connect the Arduino to the important I/O &#8211; throttle, brake, and reverse.</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_20.jpg"><img class="aligncenter" src="/pics/kart/kartroller_20-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">With all the <em>signal</em> side wiring done, I could start on the software. Here&#8217;s a makeshift user interface with a throttle pot, a brake pot, and a reverse switch.</p>
<h1 style="text-align: left;"><span id="more-651"></span>Wait, what do you mean &#8220;brake pot&#8221;?</h1>
<p style="text-align: left;">Does that mean I&#8217;m removing the disc brakes?!</p>
<p style="text-align: left;">Nope. But for the longest time, I&#8217;ve been telling people that LOLrioKart has regenerative braking. Now, this is pretty much a total lie, because Kartrollers 3 through 5 (the ones with a proper half-bridge layout) couldn&#8217;t actually switch the high side transistor to build up the motor current which allows regen to occur.</p>
<p style="text-align: left;">Now that I have both the confidence and a driver chip that allows this to happen easily, I&#8217;ve run into a smaller but not insurmountable (and actually convenient) problem. The <a href="http://www.irf.com/product-info/datasheets/data/ir2184.pdf" target="_blank">IR21844</a> is a synchronous rectifier chip that takes one input and internally splits it into two complementary outputs. That means as long as the chip is enabled, the high side and low side are always switching in complement with one another. This is the way it&#8217;s supposed to work in a switching power supply.</p>
<p style="text-align: left;">It works that way in a DC motor too, but the experience is much different. In most vehicles, if you stomp on the accelerator and let the vehicle build speed, it will just coast until friction brings everything to a stop. In an EV with no regen capability or that enabled by another switch, the same is true.</p>
<p style="text-align: left;">However, in an EV driven by a synchronous regulator  that is <em>always</em> on, you&#8217;d faceplant into the steering wheel on throttle lift-off because the motor will try its best to brake when the rectifier is in its circulation state.</p>
<p style="text-align: left;">To put it another way, in an always-active synchronous regulator, the motor is braking some percentage of the time and accelerating the rest of the time, and you just control the percentage. Full stop is just like 100% braking. To get the throttle-coast effect, I&#8217;d have to alternately switch the IN and #SD pins on the 21844, instead of just driving IN low. This takes more processing and pin-banging than I care to think about. Additionally, when I do that, I bypass the internal built-in shoot-through protection of the 21844, ruining everything I have ever loved.</p>
<h2 style="text-align: left;">Simulated Inertia</h2>
<p style="text-align: left;">So what to do in this case? Now, one method to achieve this coast state is to use current control (instead of voltage control, which is much simpler and what most motor controllers perform) and command a zero current. Zero current necessitates the regulator switching at just the right ratio such that the motor&#8217;s back EMF equals the output, and following this zero current state all the way down to a stop.</p>
<p style="text-align: left;">I didn&#8217;t design this system with a current sensor in mind, nor do I feel like making another <a href="http://www.etotheipiplusone.net/?page_id=566" target="_blank">feedback disaster</a> yet. So I opted to take advantage of the fact that an average speeding shopping cart <em>and</em> the average coasting motor are both readily approximated by a first order system.</p>
<p style="text-align: center;"><a href="/pics/kart/kart_coast.png"><img class="aligncenter" src="/pics/kart/kart_coast.png" alt="" width="512" /></a><em> </em></p>
<p style="text-align: center;"><em>Figure 1: Example of first order decay with varying time constants</em></p>
<p style="text-align: left;">Refer to the above pretty picture . The pictured time axis is arbitrary. This is a simplified model of &#8220;I floor the accelerator on LOLrioKart for a short amount of time, then lift totally off&#8221;.</p>
<p style="text-align: left;">In an ideal, friction-free world, any object accelerated to a certain speed will just stay at that speed forever, represented by the purple line. That doesn&#8217;t work in real life without a net power input. Friction, a force dependent on speed, will eventually bring everything to a halt. In an electromechanical system, any opposing force dependent on velocity can be lumped into a &#8220;friction&#8221; term. Varying this causes the rate of decay to change, resulting in the red, yellow, and green curves. The red curve represents very sharp decay, or high <em>damping</em>. The yellow is an intermediate value, and the green a low value &#8211; the system coasts for a long time before stopping.</p>
<p style="text-align: left;">Now, in an EV, two major forces can dominate the &#8220;friction&#8221; component. Real mechanical brakes and tire scrubbing with the road, or the electric motor itself. An electric motor can provide a resistive force proportional to the speed of rotation by acting as a generator, extracting work from the system&#8217;s kinetic energy. Even better is that this rate of work extraction can be modulated &#8211; that&#8217;s the whole point of regen braking.</p>
<p style="text-align: center;"><strong>Conjecture 1: By programming in an artificial throttle decay curve, I can simulate the effect of neutral coasting. </strong></p>
<p style="text-align: left;">This involves interpreting the throttle in the following manner:  Follow it exactly if I am depressing the pedal (value increasing), but send it through a <a href="http://en.wikipedia.org/wiki/Low_pass_filter#Discrete-time_realization" target="_blank">digital low pass filter</a> if the direction changes, such as if I back off. This software LPF will slowly ramp the motor down over a long period of time.</p>
<p style="text-align: left;">In a synchronous rectifier arrangement like I have the gate drivers set to be, regenerative braking occurs <em>automatically </em>if the kart is trying to drive the motor faster than it wants to go given a certain duty cycle of the output. Essentially, the motor acts as the dominant source of &#8220;friction&#8221; in this case, but instead of dumping the energy as heat, it dumps it back into the battery bank!</p>
<p style="text-align: left;">Conversely, if the kart wants to coast down slower than the set decay curve, the motor will spend a little energy prolonging it. If I set the decay to zero, it will keep driving the kart at a constant speed forever, at least until I run into the nearest dumptruck. As such, I&#8217;ll have to make sure the filter maintains a &#8220;minimum decay rate&#8221; so it eventually WILL just stop.</p>
<p style="text-align: center;"><strong>Conjecture 2: By making the decay time constant adjustable, I can adjust how much apparent mass the kart has, or modulate the regeneration strength</strong></p>
<p style="text-align: left;">The job of the &#8220;brake pot&#8221; is to make true conjecture #2. For now, it will just be on an instrument panel. By adjusting the pot, I can set the coastdown time constant of the kart. Alternatively, if I start with &#8220;infinite&#8221; coastdown, then increase it, I can rapidly stop the kart through regenerative braking only. This latter effect would be more useful on a brake pedal.</p>
<p style="text-align: left;">The phenomenon of applying a tiny amount of braking at all times is called &#8220;drag braking&#8221; in the EV world. The same effect occurs in an automatic transmission car, except it&#8217;s not adjustable&#8230; on purpose, anyway.</p>
<p style="text-align: left;">So let&#8217;s do it!</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_21.jpg"><img class="aligncenter" src="/pics/kart/kartroller_21-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: left;">Say hello to the ghetto-ass screenshot of my laptop reading an Arduino program through the serial port. I&#8217;ve implemented the aforementioned one-way digital LPF in a test program that just makes throttle values.</p>
<p style="text-align: left;">You can see the variables besides the printout window.</p>
<ul>
<li>lastGoodThrVal is just the last output value that the loop calculated</li>
<li>curThrVal and curBrkVal ought to be self-explanatory &#8211; it&#8217;s the magnitude of each input.</li>
<li>brakeFraction and coastFraction are the two components of the digital LPF. coastFraction is the &#8220;hold previous value&#8221; component, while brakeFraction is the &#8220;input component&#8221;. That is, coast is the second term and brake is the first term in <a href="http://upload.wikimedia.org/math/1/2/0/1207de7dc3dc1bd766d05335d38af458.png" target="_blank">this equation</a>, which I implement in the program.</li>
</ul>
<p style="text-align: left;">This <a href="/pics/kart/onewayfilter.avi" target="_blank">video of it working</a> will save me (30 pictures/s * 1000 words/picture * 30 s) words! Notice:</p>
<ul>
<li>with &#8220;hard braking&#8221;, or curBrkVal high, the output value closely tracking the (scaled) throttle value on the way up as well as down.</li>
<li>with &#8220;slow braking&#8221;, or curBrkVal low, the output takes a long time to decay back to zero.</li>
<li>that if i suddenly hammer the brake while the value is coasting, it will fall very quickly.</li>
</ul>
<p style="text-align: left;">Alright, so what&#8217;s next after making sure the code works?</p>
<p style="text-align: center;"><a href="/pics/kart/kartroller_22.jpg"><img class="aligncenter" src="/pics/kart/kartroller_22-mid.jpg" alt="" width="512" height="384" /></a></p>
<p style="text-align: center;"><strong>HOOK IT UP</strong></p>
<p style="text-align: left;">I tested from a current and voltage clamped power supply just in case I Did It Wrong™.  You can<a href="/pics/kart/4qdtest.avi" target="_blank"> see the result for yourself</a>.</p>
<p style="text-align: left;">First, I perform a few start-stop cycles with hard &#8220;braking&#8221; &#8211; or high virtual friction, whichever.  Next, I toggle the reverse switch while the motor is moving slowly. I do this <strong>slowly</strong> because if I do so too fast, the voltage spike causes the power supply to crowbar, shutting everything off. Not exciting at all.</p>
<p style="text-align: left;">Finally, I do a few spindowns with the &#8220;virtual inertia&#8221;(/slow braking/little friction) effect visible.</p>
<p style="text-align: left;">The shaking motor is due to my very slow update rate of 100 milliseconds. This is well above the motor&#8217;s mechanical time constant, so it actively responds to the stepped changes in the controller&#8217;s output. LOLrioKart will have a much higher mechanical time constant, but it might still help for me to increase the refresh frequency.</p>
<p style="text-align: left;">Here&#8217;s a <a href="/pics/kart/regen.avi" target="_blank">short clip of the regenerative brake </a>effect when I suddenly increase the brake percentage while the motor is coasting. The power supply pegging above 50 volts is the best indicator. If I brake too hard, it goes over 55 volts and the PSU gets mad.</p>
<h1 style="text-align: center;">4 quadrants of love.</h1>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=651</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gate Driving your Way to Victory</title>
		<link>http://www.etotheipiplusone.net/?p=642</link>
		<comments>http://www.etotheipiplusone.net/?p=642#comments</comments>
		<pubDate>Fri, 14 May 2010 08:47:36 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Reference Posts]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=642</guid>
		<description><![CDATA[As previously illustrated on this site, LOLrioKart&#8217;s motor controller is one big lesson in power electronics that I&#8217;m learning as I build it (&#8230;and blow it up&#8230;and rebuild it). While I must admit that it&#8217;s frustrating to have a controller that never really works, and which just sits on the metastable edge between functional and [...]]]></description>
			<content:encoded><![CDATA[<p>As previously <a href="http://www.etotheipiplusone.net/?p=276" target="_blank">illustrated</a> <a href="http://www.etotheipiplusone.net/?p=350" target="_blank">on</a> <a href="http://www.etotheipiplusone.net/?p=363" target="_blank">this</a> <a href="http://www.etotheipiplusone.net/?p=386" target="_blank">site</a>, LOLrioKart&#8217;s motor controller is one big lesson in power electronics that I&#8217;m learning as I build it (&#8230;and blow it up&#8230;and rebuild it). While I must admit that it&#8217;s frustrating to have a controller that never really works, and which just sits on the metastable edge between functional and explosive, it&#8217;s a valuable learning experience to figure out exactly how to steer this edge towards the functional and reliable side.</p>
<p>You know, like finding out that your oscilloscope inputs are <strong>grounded</strong> so you absolutely <strong>shouldn&#8217;t</strong> probe a floating ground with it because it&#8217;ll dead short your power supply through itself and everything else in the path. <span style="text-decoration: underline;"><strong>Many times</strong></span>.</p>
<p>I found out that&#8217;s reason #1 why Segfault&#8217;s <a href="http://etotheipiplusone.net/pics/seg/seg_74.jpg" target="_blank">dual custom H-bridges</a> all exploded. Live and learn, I suppose.</p>
<h2>Cross-conduction</h2>
<p>Another dominant cause of power amplifier failure is shoot-through, or cross conduction. In your average <a href="http://www.etotheipiplusone.net/pics/fvm_3ph.png" target="_blank">half-bridge</a> circuit, the worst thing that can happen is your top and bottom side switches on the same leg being turned on at once. That usually results in very high pulsed current draw from the power supply, then&#8230;</p>
<p style="text-align: center;"><a href="/pics/trinity_explo"><img class="aligncenter" src="/pics/trinity_explosion.jpg" alt="" width="512" /></a></p>
<p>Alright, so it&#8217;s not <em>that</em> bad. But shoot-through will generally blow fuses, melt wires, or destroy an output component (in the worst case causing it to fail short) if you<span style="text-decoration: line-through;">&#8216;re not a pussy</span> don&#8217;t use fuses like me.  3 phase block commutation generally avoids this shoot-through phenomenon because it ensures the top and bottom sides of one phase are never switched consecutively.</p>
<p>However, DC motor drivers do not have that luxury, because there is essentially <em>only</em> one phase to switch. Therefore, whether in software or through hardware, provisions are generally made for <em>shoot-through protection</em>. It usually takes the form of a section of <a href="http://www.etotheipiplusone.net/?p=530#stp" target="_blank">delay-circuitry</a>, combinatory logic, a delay state in software, or if you&#8217;re <a href="http://scolton.blogspot.com" target="_blank">Shane</a>, <a href="http://web.mit.edu/first/kart/controller_rev1.pdf" target="_blank">driving optocouplers in inverse-parallel because they form a convenient delay circuit already</a>.</p>
<p>During the times I have experimented with full-bridge or half bridge DC motor drivers, I&#8217;ve generally used a variant of the delay circuit presented in <a href="http://web.mit.edu/6.131/www/" target="_blank">6.131</a>, the same one that is documented on Segfault&#8217;s progress report post. It takes a while to make, is nonintuitive, and more complex than it needs to be, taking up 5 of 6 inverters in a 7414 hex inverter.</p>
<p>For a little while I&#8217;ve been searching for a FET driver chip that has this function built in. After some digging on Digikey and places like <a href="http://www.findchips.com" target="_blank">FindChips</a>, I found the <a href="http://www.irf.com/product-info/datasheets/data/ir2184.pdf" target="_blank">IR21844</a>.</p>
<p style="text-align: center;"><a href="/pics/21844_1.jpg"><img class="aligncenter" src="/pics/21844_1-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>Like the Ixys <a href="http://ixdev.ixys.com/DataSheet/DS99037.pdf" target="_blank">IX6R11P7</a> chips I favor now, it has a standard low side driver and an isolated, bootstrappable high side. The difference between the 2184(4) and the 6R11 is the input. The 6R11 takes two individual inputs, one high and once low. They do not affect eachother, and you could build in a self-destruct mode for your controller if you wanted because it can command both switches to turn on at once.</p>
<p>The IR21844, however, takes a <em>single</em> input and splits it internally into an inverted and noninverted <em>output</em>. So that means if your input is logical low, then the low side is on and high side is off &#8211; and vice versa. Not only that, but it also has <em>internal shoot-through protection</em> (IR calls it &#8220;deadtime&#8221;). Even better is that the 21844 variant allows you to tune the deadtime to the taste of your favorite <a href="http://www.etotheipiplusone.net/pics/swapbutts.jpg" target="_blank">mutant semiconductors</a>.</p>
<p>It basically tells me that I wasted a year fumbling with this crap when someone already made something I can just buy &#8211; like everything else in life. The 21844 comes in 8 and 14 pin DIP through-hole components (+1) as well as SOIC (ewww&#8230; but handy if I ever come out of the course VI closet). And so, I gave a few quarters to the Internet semiconductor gumball  machine for some units to experiment with.</p>
<p style="text-align: center;"><a href="/pics/21844_2.jpg"><img class="aligncenter" src="/pics/21844_2-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>Here&#8217;s the test circuit I rigged together using the schematic found in IR&#8217;s datasheet. I&#8217;m reading the two outputs using two channels of the MITERscope. The input is a 50% duty cycle square wave, 5Vpp and 10Khz. The single potentiometer is a 100Kohm unit that I&#8217;m using for deadtime adjustment.</p>
<p style="text-align: center;"><a href="/pics/21844_3.jpg"><img class="aligncenter" src="/pics/21844_3-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>See? I wasn&#8217;t lying. One input to the 21844 is split into two complementary outputs.</p>
<p>This scope screenshot is actually a little deceiving. The vertical scale is 5 volts per division and the zero levels are located on the X axis (channel 1) and <strong>2</strong> major divisions down (channel 2). What looks like the two square waves not meeting in the center is actually them <em>overlapping</em>. I should have used a wider division setting.</p>
<p>What&#8217;s really interesting &#8211; and what sold me on these &#8211; is the built-in deadtime.</p>
<p style="text-align: center;"><a href="/pics/21844_4.jpg"><img class="aligncenter" src="/pics/21844_4-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>Check this zoomed shot of the above square waves. What you see is an approx. 1us delay between when the low side turns <strong>off </strong>(channel 1 high to low) and the high side turns <strong>on</strong> (channel 2 low to high).</p>
<p>This is good. This <em>break-before-make</em> behavior ensures that your +V and GND rails never see eachother in the middle.</p>
<p style="text-align: center;"><a href="/pics/21844_5.jpg"><img class="aligncenter" src="/pics/21844_5-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>Even better is the fact that it does the exact <strong>opposite</strong> thing on the other side. On a low-to-high transition of the output, the high side turns <strong>off</strong> before the low side turns <strong>on</strong> again. Again, break before make. This proves that one output isn&#8217;t just a time delayed version of the other, it&#8217;s legitimately being trimmed to fit neatly into the other.</p>
<p>One implication of this is that the high side will completely shut off at a point before 0% input duty cycle. This seems to be inherent in the nature of delay stages and I conjecture is part of the reason why control deadbands exist. Complementary to this, the low side will completely shut off at a point before 100%, which must be considered if your drive circuitry is <em>bootstrapped</em> on the high side <em>i.e. </em>does not have its own isolated power supply at all times.</p>
<p style="text-align: center;"><a href="/pics/21844_6.jpg"><img class="aligncenter" src="/pics/21844_6-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>The deadtime adjustment is internally grounded on the 2184 but brought out to a pin on the 21844 variant. You connect it to ground through a variable resistance of your choice &#8211; <a href="http://www.irf.com/product-info/datasheets/data/ir2184.pdf" target="_blank">datasheet</a> page 10 gives a rundown on deadtime vs. resistance.</p>
<p style="text-align: center;"><a href="/pics/21844_7.jpg"><img class="aligncenter" src="/pics/21844_7-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>As advertised, the deadtime is adjustable from about 400ns (0 ohms)&#8230;</p>
<p style="text-align: center;"><a href="/pics/21844_8.jpg"><img class="aligncenter" src="/pics/21844_8-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>&#8230;To roughly 2.5us when my 100Kohm pot was pegged. The 21844 appears to support deadtimes of up to 5 microseconds.</p>
<p>Indeed, when I just straight yanked the pot out of the circuit, all the output shut off. I suppose an infinite deadtime is just like being permanently off.</p>
<p>With this in mind, I went ahead and made a little buck converter just like I did in 6.131. I used two IRF2807 FETs that I had leftover, running in bootstrapped high side mode. It was still running on the 50/50 square wave input. Will it work? Will everything explode?!</p>
<p style="text-align: center;"><a href="/pics/21844_9.jpg"><img class="aligncenter" src="/pics/21844_9-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>Well, what happened first was that I shorted the high side through the scope probe, killing half of the 21844.</p>
<p>Sad.</p>
<p>That&#8217;s why I bought a rail of 30.</p>
<p>But then it worked! On the (real) first try, even! That is, well enough to totally smoke a power resistor of too small value while I wasn&#8217;t watching.</p>
<h1>hey guys i made a power electronic widget that worked on the first try do i win a prize do i do i do i</h1>
<p>The next stage was to replace the resistor with something more meaningful. Something that actually does some useful work besides making a small smoke column&#8230; I mean, it can do that too, but it should be <em>designed </em>to do otherwise.</p>
<p>I have an idea &#8211; let&#8217;s try a DC motor!</p>
<p style="text-align: center;"><a href="/pics/21844_10.jpg"><img class="aligncenter" src="/pics/21844_10-mid.jpg" alt="" width="512" height="369" /></a></p>
<p style="text-align: center;"><strong>HO REGEN BRAKING YAY</strong></p>
<p>I probably played with this thing for half an hour &#8211; just gunning the motor, then quickly dropping the duty cycle and watching the power supply&#8217;s voltage spike up. This half bridge circuit brings me one step closer to a <a href="http://www.4qdtec.com/bridge.html" target="_blank">4 quadrant synchronous  regenerative drive</a> for LOLrioKart, and who knows what else. To add  the other two quadrants, I just need to make another half-bridge and  connect the motor up between them.</p>
<p style="text-align: center;"><a href="/pics/21844_11.jpg"><img class="aligncenter" src="/pics/21844_11-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>Speaking of LOLrioKart, can these little driver chips actually handle semiconductors the size of those I have an excessive amount of? One way to find out is to try driving the gate. This is an IXYS <a href="http://ixdev.ixys.com/DataSheet/L401.pdf" target="_blank">VMM65001F</a>, good to 100 volts (same as a Swapfet) and 680 amps, which is at least three Swapfets. This is a bigger transistor than LOLrioKart can ever hope to push. Just because of that, it&#8217;s a good example to test the 2184s on.</p>
<p>Also because it is a convenient half-bridge module, and two of them will easily make an oversized H-bridge for said LOLrioKart.</p>
<p>I drove the gigaFET using the bootstrapped high side.</p>
<p style="text-align: center;"><a href="/pics/21844_12.jpg"><img class="aligncenter" src="/pics/21844_12-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>It took a full 1.7us to turn on, where I defined turn-on as the gate voltage reaching approx. 67% of the drive voltage. There are many ways of defining &#8220;turn-on&#8221;, this is just one of them.You can even see a little bit of the &#8220;<a href="http://powerelectronics.com/images/optocouplers-power-speed-fig2-0409.jpg" target="_blank">Miller Plateau</a>&#8220;.</p>
<p>This is not bad given that the on period is very long compared to the switching period. During this switch is when the FET acts like a resistor, dissipating power. LOLrioKart&#8217;s PWM runs at 4Khz, which is a half-period of .125 milliseconds, still about 70 times longer than a switching cycle. Not the best, but most likely better than anything else I have on the kart at this moment.</p>
<p style="text-align: center;"><a href="/pics/21844_13.jpg"><img class="aligncenter" src="/pics/21844_13-mid.jpg" alt="" width="512" height="369" /></a></p>
<p>And the turnoff occurs a little faster, since the gate voltage only has to reach 4 volts before it falls under the threshold voltage. The turnoff itself is mostly clean.</p>
<p>So where does that leave me? I now have a method of switching a half-bridge in an orderly manner, without external glue circuitry. I also happen to have enough large semiconductors to make a 600 amp peak capacity H-bridge. I have this dumb shopping cart with a motor on it.</p>
<p>Will there be a kartroller version 6?!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=642</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Fall 2009 Roundup: Überclocker Updates, RazEr Redux, Analog Antics, and the End of the Tragedy of the LOLrioKart</title>
		<link>http://www.etotheipiplusone.net/?p=417</link>
		<comments>http://www.etotheipiplusone.net/?p=417#comments</comments>
		<pubDate>Mon, 05 Oct 2009 22:29:58 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[Bots]]></category>
		<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Project RazEr]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[SEGFAULT]]></category>
		<category><![CDATA[Überclocker Remix]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=417</guid>
		<description><![CDATA[&#8230;wins for the longest post title EVER on this site. That&#8217;s because it addresses quite a few topics. I can finally characterize the academic term so far as having entered a steady state, which just means I know which nights I can bumble away safely, so it&#8217;s time to step up work on the projects. [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;wins for the longest post title EVER on this site. That&#8217;s because it addresses quite a few topics. I can finally characterize the academic term so far as having entered a steady state, which just means I know which nights I can bumble away safely, so it&#8217;s time to step up work on the projects. I&#8217;ve devised a list of theoretically attainable goals for the next few months, stretching into the coming winter months.</p>
<h3>Überclocker Remix</h3>
<p>Let&#8217;s start with some pictures of epic motor ownage. I cracked open the toasted HTI gumball machine motors out of curiosity after removing them from the bot. What awaited me inside was a scene of utter devastation.</p>
<p><a href="/pics/cb2/cb2_131.jpg"><img class="aligncenter" src="/pics/cb2/cb2_131-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>That doesn&#8217;t look very healthy. It appears the commutator decided to just melt off the backing material. This motor actually still ran, just throwing blazing white sparks everywhere. The discoloration of the copper next to the crater attests to the extreme heating that occured.</p>
<p style="text-align: center;"><a href="/pics/cb2/cb2_132.jpg"><img class="aligncenter" src="/pics/cb2/cb2_132-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The brush cap from the left side, which simply failed open circuit at the event. Well, now the reason is clear why it failed open. Half of the brush conductor spring just sort of flew off and <em>melted itself into the other side of the plastic brush holder</em>.</p>
<p>The carbon brush itself was bouncing around inside the motor.</p>
<p style="text-align: center;"><a href="/pics/cb2/cb2_133.jpg"><img class="aligncenter" src="/pics/cb2/cb2_133-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Another view. That bit of spring must have been pretty hot to instantly melt itself into the plastic.</p>
<p style="text-align: center;"><a href="/pics/cb2/cb2_134.jpg"><img class="aligncenter" src="/pics/cb2/cb2_134-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>And another view of the copper droplet that is the commutator. Oddly enough, the windings themselves seemed for the most part to be just fine.</p>
<p style="text-align: center;"><a href="/pics/cb2/cb2_135.jpg"><img class="aligncenter" src="/pics/cb2/cb2_135-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Here&#8217;s Überclocker looking decrepit on a table. Since a robot with no motors is akin to a dog with no legs, or a fish with no fins, I began the quest to search for a&#8230; well, more legitimate motor. That&#8217;s when I remember that I found <a href="http://www.etotheipiplusone.net/pics/cb/dewalt2.jpg" target="_self">these</a>, from Way Back.</p>
<p>DeWalt drills are classic musclebot motors. Sadly enough, these were of different voltages (!?), which not only surprised me as to how on earth their previous user expected their creation to move in a straight line, but saddened me because I&#8230; well, want mine to.</p>
<p>It was enough to perform a fit test and draw up plans to modify the gearbox to accept these motors while UPS channels their Brownian Motion to get a matched set of motors to me. They are the &#8220;new&#8221; DeWalt motors, where &#8220;new&#8221; is relative to 2003 or so. These drills have 3 speeds and are infinitely more of a bitch to mount. So I will only be using the motors in my custom frakenb0xen.</p>
<p style="text-align: center;"><a href="/pics/cb2/cb2_136.jpg"><img class="aligncenter" src="/pics/cb2/cb2_136-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Fit test. The good news is that these motors are roughly the same length as the 700-size HTI motors, but a little fatter. No issue, considering the gearboxes have plenty of wiggle room.</p>
<p style="text-align: center;"><a href="/pics/cb2/cb2_137.jpg"><img class="aligncenter" src="/pics/cb2/cb2_137-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The gearbox modified to accept a DeWalt motor, with its Alien Technology Motor Pinion of neither metric nor Imperial tooth pitch. Needless to say, this will be removed and the HF motor pinion crammed on in place.</p>
<p>So am I over-motoring the HF drill gearbox parts by putting a <em>real</em> motor on them? Perhaps. However, I think it&#8217;s a legitimate move in a 30 pound robot, because the laws of physics dictate that I can only put so much power to the ground. I&#8217;m mostly after the &#8220;real motor&#8221; bit, not so much increased drivetrain power, because the robot doesn&#8217;t have the traction to use it.</p>
<p>With motors now on the way, this conversion ought to go quickly since I&#8217;ve already drilled the new mounting holes to accommodate them. Überclocker should then be able to attend more events.</p>
<h3>The (Possibly?) Final Chapter in the Tragedy of the LOLrioKart</h3>
<p>So by now all ya&#8217;ll have probably heard of this.</p>
<p style="text-align: center;"><a href="http://www.etotheipiplusone.net/pics/kart/lolriokart.png"><img class="aligncenter" src="http://www.etotheipiplusone.net/pics/kart/lolriokart.png" alt="" width="512" height="384" /></a></p>
<p>While the details surrounding the citation were <em>totally illegitimate</em> and imply a degree of recklessness that was not present at all, the bottom line is that the kart is not going on any more open road adventures until it&#8217;s <em>legit</em>. And by legit, I mean registered and insured and fully street legal.</p>
<p>Whatever measure this takes, it will happen. It will simultaneously the most confusing and most glorious thing on the planet.</p>
<p>But the good news is that through two weeks of intense demos and driving during Orientation, the kart <em>didn&#8217;t explode</em>. The motor controller, version 6, is more or less stable. That&#8217;s <em>huge</em>. That&#8217;s like, me doing something right in electronics for once.</p>
<p>Of course, if I actually run the numbers on the electrical characteristics of the power converter, it would probably make real EEs run away to vomit. But the kart has survived more than twenty power cycles without misbehaving, save for the flakey DC-DC converter that caused the initial failure of version 6. A replacement module with better-designed (read: existent) filtering solved the problem.</p>
<p>So I&#8217;m satisfied. There will be little active work on LOLrioKart this term, with most of the fleeting effort concentrating on the battery system. After said weeks of operation, two cells in the battery pack are now just resistors. I regularly saw the voltage dipping under 45 volts on acceleration, which is concerning to say the least. Battery management solutions are condensing around me, so I may make the jump to lithium iron phosphate cells.</p>
<h3>Now let&#8217;s move onto the new shiat.</h3>
<p>This is a Xootr Street push scooter.</p>
<p style="text-align: center;"><a href="/pics/sc4/sc4_1.jpg"><img class="aligncenter" src="/pics/sc4/sc4_1-mid.jpg" alt="" width="384" height="512" /></a></p>
<p>Gee, that looks kind of like every other push scooter on the planet. You know, like a Razor scooter. I thought you already had one of those? With like&#8230; a motor on it, right? That you built? I heard you built a motor. Can you show me how that works? Can you build me one?</p>
<p>&#8230; &lt;/average_miters_visitor&gt;</p>
<p style="text-align: center;"><a href="/pics/sc4/sc4_2.jpg"><img class="aligncenter" src="/pics/sc4/sc4_2-mid.jpg" alt="" width="384" height="512" /></a></p>
<p>Oh, <em>that&#8217;s</em> the difference.</p>
<p>As much as I love RazEr when it works, it&#8217;s time for me to realize that it&#8217;s <em>too freakin&#8217; small</em>. I&#8217;ve managed to hit the tiny-but-functional goal, and at the same time the maximum recommended rider weight a few times. With some more scrupulous design, I could <em>probably</em> fit more batteries in there, but otherwise all the useful space is essentially occupied. And while 5 inch wheels are great for shoving your average copier motor core into, they are not great for shoving into your average pothole.</p>
<p>I need something bigger. More legit™. So thanks to MITERS for coming up with an engineering sample of the Xootr Street. I won&#8217;t actually be making any mods to this one, since it&#8217;s &#8230; not mine, and stuff.</p>
<p style="text-align: center;"><a href="/pics/sc4/sc4_3.jpg"><img class="aligncenter" src="/pics/sc4/sc4_3-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>This thing measures a bit over 3 feet long when fully deployed. The wheels are 7 inches in diameter and cast aluminum. It&#8217;s the smoothest thing ever on the ground because of the large wheel-to-bearing diameter, which minimized rolling friction. And the deck is absolutely <em>enormous</em>&#8230;.</p>
<p style="text-align: center;"><a href="/pics/sc4/sc4_4.jpg"><img class="aligncenter" src="/pics/sc4/sc4_4-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>&#8230; and HOLY MAGNESIUM JESUS ON A STICK. It is in fact CNC machined from billet aluminum. These guys are just like me, except with infinitely more style. A scooter? Made from <em>real</em> metal?</p>
<p>And the 10 center-side pockets are just big enough to comfortable seat two A123 26650 cells apiece! How about that. 20 cells yields almost 150 watthours of battery pack energy.</p>
<p style="text-align: center;"><a href="/pics/sc4/sc4_5.jpg"><img class="aligncenter" src="/pics/sc4/sc4_5-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Ground clearance check. The deck height, oddly enough, is almost the same height of the Razor A3 frame. The wheel line is just an inch and a half or so higher to fit the 7&#8243; wheels. Overall, as can be seen, there is about 1.25&#8243; of &#8220;fiddle space&#8221; from the bottom of the deck (not including the pockets) to the top of the 1.5&#8243; parallel.</p>
<p>This is good, because hiding all the goodies under the vehicle frame contributes to vehicle aesthetics and the illusion that something which is not supposed to be motorized is moving under the directive of an unknown force.</p>
<p>There are no motor drawings or plans for this yet, but the profile of the wheels and their spacious internal diameter make them amenable to stuffing <a href="http://images.google.com/images?hl=en&amp;client=firefox-a&amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;um=1&amp;sa=1&amp;q=axial+flux+motor&amp;aq=f&amp;oq=&amp;aqi=&amp;start=0" target="_blank">axial flux coreless motors</a> inside, maybe even one per wheel. I&#8217;ve been itching to build a real surface-wound (no iron core) pancake motor for a while, but have been put off by their complexity in manufacturing.</p>
<p>As more details condense from the bot-aether, I&#8217;ll give this project its own page, category, and possibly a snappy and witty name. This is not a high priority project, as I don&#8217;t even have the vehicle yet, and it might spill over into Spring term.</p>
<p>Spring is a better time to blaze around anyway.</p>
<h3>Now Announcing Project SEGFAULT</h3>
<p>Segways.</p>
<p>A bad pun on the word <em>segue</em>. A fundamentally unstable faceplant-waiting-to-happen of an <a href="http://en.wikipedia.org/wiki/Inverted_pendulum" target="_blank">inverted pendulum</a>. A cool exercise and great demonstration of basic control theory.</p>
<p>DIY balancing personal transporters have been attempted <a href="http://www.engadget.com/2007/03/09/meet-the-one-wheel-balancing-scooter-suck-it-segway/" target="_blank">and</a> <a href="http://scooterlabs.org/" target="_blank">perfected</a> <a href="http://rotordesign.com/clone/scooter.html" target="_blank">many</a> <a href="http://www.tlb.org/scooter.html" target="_blank">times</a> <a href="http://web.mit.edu/first/segway/" target="_blank">before</a>. It&#8217;s almost passè. There&#8217;s even instructions on how to do it and code for your choice of microprocessor. All you need is two fat motors, a rate gyroscope, an accelerometer, and determination.</p>
<p>The whole thing about &#8220;microprocessors&#8221; is what has been putting me off. I like to think I&#8217;m familiar with mechanical engineering principles. I&#8217;m shake on electronics and EE. But I&#8217;m the last person you want to ask about anything software related. I hate software. With a passion. Even though I use it ALL day, I shudder to see what goes on under the glitzy Web 2.0 interface, or under the ultrasonically-welded sealed cap of an Atmel chip.</p>
<p><img class="aligncenter" title="an op amp!" src="http://ocw.mit.edu/ans7870/SP/SP.764/imagegallery/lab7/images/4.jpg" alt="" width="500" height="375" /></p>
<p>&#8230;so that&#8217;s why I want to do it all in ANALOG ELECTRONICS.</p>
<p>That&#8217;s correct. Op amps, comparators, linear components, passives&#8230; it&#8217;s a <a href="http://stellar.mit.edu/S/course/6/fa09/6.002/index.html" target="_blank">6.002</a> (or <a href="http://web.mit.edu/6.101/www/" target="_blank">6.101</a>) paradise. I stochastically arrived upon this idea near the beginning of the term, but it took a few weeks before I took it upon myself to do some research on gyros and accelerometers, and sketch out a rudimentary control network composed primarily of rail-to-rail op amps.</p>
<p>Then I remembered that <a href="http://www.wa4dsy.net/robot/balancing-robot/analog-balancing-bot" target="_blank">Dale had built an analog balancing robot</a>, so naturally I read the site and discovered I was doing it totally wrong.</p>
<p>I have a sneaking suspicion that a relatively non-chaotic differential equation like the one that governs inverted pendulums can be pretty easily translated to a <a href="http://en.wikipedia.org/wiki/Continuous_signal" target="_blank">continuous time control system</a> (analog, as opposed to a <em>discrete time</em> digital control system). The idea as a whole is to have a purely analog, continuous-time front end controlling a Class D amplifier, also known as a <a href="http://en.wikipedia.org/wiki/Switching_amplifier" target="_blank"><em>switching amplifier</em></a> or if the output is bidirectional a <em>locked antiphase</em> amplifier. Basically this just means your transducer wiggles back and forth really quickly&#8230; but some times more in one direction than another, so the summation of the movements is a velocity.</p>
<p>But Charles, isn&#8217;t a <em>switching amplifier</em> a <em>digital </em>thing?!</p>
<p>Yeah, if I implemented a real linear motor driver, I would have a battery life of 30 seconds and require heat sinks the size of Hannah Montana. Sssshh&#8230;. don&#8217;t tell anybody.</p>
<p>With the plan now more grounded (HURRRRRRRRRR PUN) than before, I&#8217;m moving forward with the mechanical details, as I always tend to do first. Once I have a rolling frame, I could conceivably roll analog or digital, or mixed-signal. As always, this entails a trip to <a href="http://miters.mit.edu" target="_blank">MITERS</a> and a few hours of mining for parts.</p>
<p><a href="/pics/seg/seg_1.jpg"><img class="aligncenter" src="/pics/seg/seg_1-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>&#8230;</p>
<p>Yeah, so it&#8217;s nothing much yet. I grunged these 9&#8243; pneumatic tires for the project as they were the only two matching wheels in MITERS that weren&#8217;t already on something.</p>
<p>9 inches? Isn&#8217;t that a bit small (&amp;thats_what_she_said;) ? It is, but there&#8217;s nothing fundamentally wrong with having smaller wheels on such a machine. It just makes obstacle negoatiation tougher. If anything, I can get away with having less torquey motors because of the increased mechanical advantage.</p>
<p>The design work continues! After I get my control theory a bit more in line, I&#8217;ll sketch up a schematic of what I think should work. There are endless supplies of linear circuit components at MITERS and kicking around the EE labs for experimentation. I have accelerometers and gyros on the way from <a href="http://www.sparkfun.com">Sparkfun</a> for experimentation.</p>
<p>&#8230;Oh, that&#8217;s the other cheat here. Real, modern MEMS sensors. I&#8217;m going for the analogginess here, not period-realism.</p>
<p>SEGFAULT will get its own page and category as it develops. This is my number one goal for the end of the term, and I&#8217;m actually going to try to <a href="http://web.mit.edu/6.131/www/" target="_blank">get the controller graded</a>. Here goes&#8230; something!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=417</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Eternal Tragedy of the LOLrioKart</title>
		<link>http://www.etotheipiplusone.net/?p=386</link>
		<comments>http://www.etotheipiplusone.net/?p=386#comments</comments>
		<pubDate>Mon, 17 Aug 2009 10:40:43 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Reference Posts]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=386</guid>
		<description><![CDATA[The saga continues. There are three reasons why I work on the kart more than any sane person world. The first is if I&#8217;m not doing anything else at the moment and need a distraction from the tribulations of life. The second is if I&#8217;m preparing for an event or situation where it would be [...]]]></description>
			<content:encoded><![CDATA[<p>The saga continues.</p>
<p>There are three reasons why I work on the kart more than any sane person world. The first is if I&#8217;m not doing anything else at the moment and need a distraction from the tribulations of life. The second is if I&#8217;m preparing for an event or situation where it would be publicly seen&#8230; after all, a working model is better than a nonfunctional sculpture.</p>
<p>And the third is if I have a neat idea or cool part and it HAS to be implemented NAO.</p>
<p style="text-align: center;"><a href="/pics/kart/kart233.jpg"><img class="aligncenter" src="/pics/kart/kart233-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Like some instrumentation. Because operation of the kart is always a game of power electronic dice, I decided that <em>some</em> kind of readout of system conditions was necessary. It just so happened that <a href="http://miters.mit.edu" target="_blank">MITERS</a> had some old skool panel meters hidden deep within its bowels.  There were a few interesting options, such as a <em>leak rate </em>meter&#8230; what on earth does that measure?</p>
<p>I decided to start with a simple battery voltage monitor, since I had no convenient Hall Effect sensor,  shunt, or other low-value resistor (besides the SwapFETs&#8217; incredibly low 2 milliohms) or a real constant current supply to calibrate a current meter.</p>
<p>A semi-known fact is that most ammeters are in fact sensitive voltmeters. While it&#8217;s easy to make a loop of wire and a magnet respond to 10,000 volts, it&#8217;s not nearly as easy to do with 10,000 amps. So a resistor game is played to turn the 10,000 amps into a very small voltage, like 100 millivolts or something. Enough to tick a needle on a voltmeter that has &#8220;10,000 amps&#8221; written on it.</p>
<p>You can easily convert an &#8220;ammeter&#8221; to a voltmeter if the &#8220;full scale deflection&#8221; voltage and current draw are known.</p>
<p style="text-align: center;"><a href="/pics/kart/kart234.jpg"><img class="aligncenter" src="/pics/kart/kart234-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>I settled for this meter for the voltage monitor, since the other one actually says amps on it. This one measures &#8220;Current-volts-microns&#8221;.</p>
<p>I have no clue what kind of SI unit that is, but it was the winner because of its simple 1-millivolt-per-tick scale.</p>
<p>So let&#8217;s convert this 100-mV meter into a 100 volt meter.  To not explode the meter, it should span a voltage of no more than 100 millivolts (0.1V). In a 100 volt system, that means 99.9 volts must be dropped across a resistor in series with it before it&#8217;s connected to the circuit under scrutiny.</p>
<p>The meter drew approximately .5 milliamps (0.0005 amps) at full scale deflection. So the resistor in question must drop 99.9 volts while passing 0.0005 amps. Now just pimpslap Georg Ohm and you have the resistance value needed &#8211; (99.9 / 0.0005) = about 200,000 ohms. Actally 199800, but I didn&#8217;t have one of those, and the kart isn&#8217;t going into space or something.</p>
<p>&#8230;yet.</p>
<p style="text-align: center;"><a href="/pics/kart/kart235.jpg"><img class="aligncenter" src="/pics/kart/kart235-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Zip tied to the kart.</p>
<p>Through this meter, I found out that the batteries drooped in voltage under a good hard launch from 61 volts (freshly charged) to about 56. So they&#8217;re not <em>too</em> dead.</p>
<p>Or they are, but even being completely fucked are still awesome just by virtue of being cacknormous.</p>
<p style="text-align: center;"><a href="/pics/kart/kart236.jpg"><img class="aligncenter" src="/pics/kart/kart236-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>In a continuation of Reason #3, I found a road blinkie. You know, those things on top of <a href="http://uncyclopedia.wikia.com/wiki/Orange_construction_barrels" target="_blank">orange construction barrels</a>. It contains a few amber LEDs, runs off D-cells, and automatically switches on and off via photocell.</p>
<p style="text-align: center;"><a href="/pics/kart/kart237.jpg"><img class="aligncenter" src="/pics/kart/kart237-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Well that was easy enough. A half inch bolt threaded through a spacer and into the mounting point of the light and I had improved the road safety of the kart hundredfold.</p>
<p>Let&#8217;s move onto more imporant things. For the past while, the kart has been randomly cutting out. The 12 volt DC/DC converter has been resetting for apparently little reason &#8211; not just under acceleration, but even sitting still. I wasn&#8217;t sure what was causing it, but suspected some sort of transient effect scaring the DC/DC unit.</p>
<p>In tearing down the electrical system, I decided that it was a good time to build a more legitimate motor driver.</p>
<p style="text-align: center;"><a href="/pics/kart/kart238.jpg"><img class="aligncenter" src="/pics/kart/kart238-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>It was time to get away from the cobbled-together hardware PWM generator. Producing signals in software makes for a much more versatile controller that can be reconfigured easily. I happened to have some <a href="http://arduino.cc" target="_blank">Arduini</a> kicking around, and a <a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=17_21&amp;products_id=51&amp;zenid=552005b84f72b5bc07b1153eff2db1fe" target="_blank">Protoshield kit</a> leftover from last year&#8217;s Überclocker build.</p>
<p>Rounding out the components is an <a href="http://ixdev.ixys.com/DataSheet/DS99037.pdf" target="_blank">IXYS 6 amp dual gate driver</a> with isolated high side. Using a halfbridge driver like this lets the controller perform regenerative braking. The high side required an isolated power supply, so I yanked out this <a href="http://focus.ti.com/lit/ds/symlink/dcp021212.pdf" target="_blank">12v-12v DC/DC converter-converter</a> from <a href="http://scolton.blogspot.com/2009/07/silence-of-cows.html" target="_blank">another motor driver board</a>. I wanted some more electrical isolation between the fragile microcontroller and the harsh environment of my non-EE projects, so I salvaged some optocouplers from some weird board that had to have been made in the 80s.</p>
<p style="text-align: center;"><a href="/pics/kart/kart239.jpg"><img class="aligncenter" src="/pics/kart/kart239-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Finished a few hours later.</p>
<p>I was able to use the Arduino language&#8217;s built-in PWM command, so the software was extremely simple. Normally it operates at 500Hz &#8211; far too slow. But changing the <a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235060559/4#4" target="_blank">timer/counter initial counts</a> causes the PWMs to run substantially quicker. I ended up going with the 4kHz option.</p>
<p>The two gate outputs are on the bottom side of the board. The left is the high side, and the right is the low side. For now, to keep backwards compatibility, I left the high side unconnected in the kart.</p>
<p style="text-align: center;"><a href="/pics/kart/kart240.jpg"><img class="aligncenter" src="/pics/kart/kart240-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Scoping the gate driver outputs. This was using some test code where I had independent control over each channel. The waveforms look good, except for a bit of twanging in the high side, which I suspect is just a ghetto scope probe.</p>
<p style="text-align: center;"><a href="/pics/kart/kart241.jpg"><img class="aligncenter" src="/pics/kart/kart241-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Making the driver board fully modular meant that the system wiring could be cleaned up substantially. Before, I had a mess of signal wiring and power wiring all meeting at the terminal strip. However, I could now devote the entire terminal strip to power connections. The system DC/DC converter (a 12 volt, 3 amp unit) fans out into 5 outputs now, so I don&#8217;t have to try putting two wires into one terminal. Overall, everything became more organized.</p>
<p>&#8230;</p>
<p>So did it work?</p>
<p>&#8230;</p>
<p>No, of course it all blew up. The problem obviously does not lie within the gate driver system, because everything worked fine for about 20 minutes. Then the aforementioned DC/DC converter began repetitively cutting out.When it dies, the entire kart shuts off because the contactor opens up.</p>
<p>I had gotten into the bad habit of curing these brownouts by hard-cycling the battery switch to reset the converter. It worked a few times.</p>
<p>Then when I hit the switch again, the drive FET made a muffled popping noise and the kart jumped for a split second. Then all was quiet.</p>
<p>Okay, so this explosion wasn&#8217;t as spectacularly fire-filled as the other 5 or 6, but I still have to remove the whole electrical system to replace the brick. Amazingly enough, the gate driver assembly survived the whole ordeal.</p>
<p>Explanations that my EE friends (who still refuse to just build me a working controller, eh guys?) offered up include transients on the 12v rail resulting from inductive spikes coming from the contactor, or the lack of a local bypass capacitor  on the input side of the converter causing very short voltage dips to shut the converter off.</p>
<p>Either way, the DC/DC unit is now the problem child. The ghetto moves to another part of the city.</p>
<p style="text-align: center;"><a href="/pics/kart/kart242.jpg"><img class="aligncenter" src="/pics/kart/kart242-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>At least I got this cool Volvo dashboard gauge cluster  for free at<a href="http://w1mx.mit.edu/flea-at-mit" target="_blank"> Swapfest</a>. Sort of defeats the purpose of me adding my own voltmeter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=386</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Ongoing Tragedy of the LOLrioKart</title>
		<link>http://www.etotheipiplusone.net/?p=368</link>
		<comments>http://www.etotheipiplusone.net/?p=368#comments</comments>
		<pubDate>Mon, 20 Jul 2009 05:56:50 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=368</guid>
		<description><![CDATA[The next &#8220;broke&#8221; cycle has arrived. Once again, it&#8217;s (you guessed it) the motor controller, under mysterious and  nonintuitive circumstances. But first, I am proud to announce that the kart is now able to stop. That is, in under half a block&#8217;s distance. Here&#8217;s the reason why. I bought a set of 140mm disc brakes [...]]]></description>
			<content:encoded><![CDATA[<p>The next &#8220;broke&#8221; cycle has arrived. Once again, it&#8217;s (you guessed it) the motor controller, under mysterious and  nonintuitive circumstances.</p>
<p>But first, I am proud to announce that the kart is now able to stop.</p>
<p>That is, in under half a block&#8217;s distance.</p>
<p style="text-align: center;"><a href="/pics/kart/kart215.jpg"><img class="aligncenter" src="/pics/kart/kart215-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Here&#8217;s the reason why. I bought a set of 140mm disc brakes and cable-actuated brake calipers from <a href="http://www.electricscooterparts.com">electricscooterparts.com</a>, which incidentally sells all kinds of electric scooter parts. Now that I know that things like this exist, I wonder why the hell I didn&#8217;t spec them out for the kart originally.</p>
<p>Oh, right, because I didn&#8217;t know they existed. The quality of components seems to be about par for Orient-imported small vehicle parts; by which I mean the brake disc vent holes had burrs around the edges, the bolt circles were not quite concentric, and the left and right brake calipers were, while sharing the same mounting dimensions, different parts physically beyond being simple mirror images.</p>
<p style="text-align: center;"><a href="/pics/kart/kart216.jpg"><img class="aligncenter" src="/pics/kart/kart216-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>So it was out with the old and in with the new. I dismantled the front wheel assembly on each side and cleaned everything off.</p>
<p>The inside of the wheel rims were thoroughly caked in small brake band particles. The fact that there was little in terms of brake left over on the bands themselves probably contributed to the kart&#8217;s dismal stopping ability (read: none).</p>
<p style="text-align: center;"><a href="/pics/kart/kart217.jpg"><img class="aligncenter" src="/pics/kart/kart217-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>So extremely bald front tires.</p>
<p>The tread was not exactly deep on them to begin with, but all the rough handling, skidding, and serendipitous <a href="http://www.ozebiz.com.au/racetech/theory/align.html" target="_blank">toe angle</a> of the kart has essentially vaporized the tread off the tires. The rubber thickness is still adequate, but I just shouldn&#8217;t be driving in the rain.</p>
<p>Then again, there are bigger problems to expect if I try to drive in the rain.</p>
<p style="text-align: center;"><a href="/pics/kart/kart218.jpg"><img class="aligncenter" src="/pics/kart/kart218-mid.jpg" alt="" width="512" height="426" /></a></p>
<p>Integrated wheel-o-brake hub, to be made from hugeluminum round stock. It carries the bolt pattern for the cheap wagon wheels on one side and the brake disc on the other, and is bored for a .5&#8243; bore R8 type ball bearing. I tried my best to perform an interpolation of the intended bolt circle diameter using the three bolt holes on the brake disc.</p>
<p style="text-align: center;"><a href="/pics/kart/kart219.jpg"><img class="aligncenter" src="/pics/kart/kart219-mid.jpg" alt="" width="512" height="426" /></a></p>
<p>Here&#8217;s the hugeluminum billet in question, set up in a position ripe for disaster. Real machinists and South Bend lathe lovers avert thine eyes.</p>
<p>I needed to turn this billet into two smaller billets, but our horizontal bandsaw was broken, the N51 auto shop&#8217;s was optimized for steel cutting, and I was not going to wrestle this through a conventional bandsaw. The last option was chucking it in the lathe and parting down the middle, which filled my imagination with vivid images of tooling setup explosions and broken back gear teeth.</p>
<p style="text-align: center;"><a href="/pics/kart/kart220.jpg"><img class="aligncenter" src="/pics/kart/kart220-mid.jpg" alt="" width="512" height="426" /></a></p>
<p>However, with judicious use of centers and power crossfeed, disaster was averted, and I had two equally sized not-hugeluminum billets.</p>
<p style="text-align: center;"><a href="/pics/kart/kart221.jpg"><img class="aligncenter" src="/pics/kart/kart221-mid.jpg" alt="" width="512" height="426" /></a></p>
<p>A little while later, a hub emerges. The bolt circle was drilled using my <a href="http://www.etotheipiplusone.net/pics/bacon.jpg" target="_blank">handy dandy indexing fixture</a>.</p>
<p style="text-align: center;"><a href="/pics/kart/kart222.jpg"><img class="aligncenter" src="/pics/kart/kart222-mid.jpg" alt="" width="512" height="426" /></a></p>
<p>Test mounting everything. Surprisingly, taking the average of the three bolt radii resulted in a disc that was centered with minimal wobble. It almost makes me think they did it on purpose or something&#8230;</p>
<p>Nah.</p>
<p style="text-align: center;"><a href="/pics/kart/kart223.jpg"><img class="aligncenter" src="/pics/kart/kart223-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>It&#8217;s time for Pretend-O-Brake. Here is a setup testing prospective brake caliper mount positions. The brake caliper was designed by real engineers, so there&#8217;s not a single straight line on it to reference dimensions from. Mounting it would be a nontrivial matter, so I decided to resort to some cheating in the form of the abrasive waterjet.</p>
<p>I designed a caliper mount based off existing part dimensions and alot of caliper-balling (eyeballing the dimension measured from an imaginary line projected off the end of your caliper tips, directed towards the feature in question).</p>
<p style="text-align: center;"><a href="/pics/kart/kart224.jpg"><img class="aligncenter" src="/pics/kart/kart224-mid.jpg" alt="" width="512" height="426" /></a></p>
<p>Here&#8217;s the designed part. Just for kicks, I threw it into Inventor&#8217;s built-in ANSYS stress analysis add-on to see theoretically what might happen if I brake too hard. The verdict is that I could make this part out of jello and still have it be able to lock up the front wheels and skid.</p>
<p>Alright, so not jello, but at least birch plywood.</p>
<p>The mounting points for the calipers are slotted such that I have an ability to adjust them a small amount if I found that caliper-balling wasn&#8217;t enough.</p>
<p style="text-align: center;"><a href="/pics/kart/kart225.jpg"><img class="aligncenter" src="/pics/kart/kart225-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>A few hours later, parts cut out of some leftover half-inch aluminum. Abrasive waterjets are beautiful things.</p>
<p style="text-align: center;"><a href="/pics/kart/kart226.jpg"><img class="aligncenter" src="/pics/kart/kart226-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>You know that extra hole next to one of the caliper mounting slots? That was originally for a design-on-the-fly widget to connect the caliper mount to the steering pivot block. However, when I performed a test fit, I realized that I could just cut out a step in the caliper mount and have it slide over the block in question. Square objects cannot rotate over eachother by nature, and the Nut of Wheel-Retaining will hold everything in place.</p>
<p>Well then. Cutting down a portion of thickness is certainly easier than making two more whole parts.</p>
<p>The end result is a quasi-floating brake caliper. Better than a fixed one, IMO, in taking up for the lack of alignment inherent in stuff I build.</p>
<p style="text-align: center;"><a href="/pics/kart/kart227.jpg"><img class="aligncenter" src="/pics/kart/kart227-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>All mounted up. The spacer length between the wheel-o-brake and the steering pivot block required a bit of trial and error to get right, but once everything was cranked down, the assembly was solid.</p>
<p style="text-align: center;"><a href="/pics/kart/kart228.jpg"><img class="aligncenter" src="/pics/kart/kart228-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Another view of the assembly, all cabled up.</p>
<p style="text-align: center;"><a href="/pics/kart/kart229.jpg"><img class="aligncenter" src="/pics/kart/kart229-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>And now duplicate for the other side, accounting for chirality.</p>
<p>It turns out that real brakes stop moving objects substantially better. I was able to lock up the front wheels and skid during runs in the hallway &#8211; sort of the opposite extreme of not being to stop at all, but at least I have the choice of locking up or not. The tires have substantially more traction outside on concrete, and I was not able to lock up (without stomping excessively hard), but that&#8217;s a <em>good thing</em>. Stopping distance from top speed was reduced to &#8220;under the length of the N52 parking lot&#8221;, scientific tests be damned.</p>
<p>Overall, I consider adding brakes to the kart a great success.</p>
<p style="text-align: center;"><a href="/pics/kart/kart231.jpg"><img class="aligncenter" src="/pics/kart/kart231-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Guess what? It&#8217;s <a href="http://w1mx.mit.edu/flea-at-mit" target="_blank">SWAPFEST</a> time! LOLrioKart has been the unofficial promotional vehicle for Swapfest since May. This time, I could show up and have a fighting chance at not extensively damaging property or causing wanton personal injury.</p>
<h3>Then I</h3>
<p style="text-align: center;"><a href="/pics/kart/kart230.jpg"><img class="aligncenter" src="/pics/kart/kart230-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Well, I sure as hell didn&#8217;t, but something did. I put the kart in a Prominent Advertising Position™, then went around to gather cruft. When I returned to start putzing it around, this happened.</p>
<p>As soon as the battery switch was engaged, the precharge resistor set on fire. This tells me that the ESC is stuck wide open, and so the Etek tries to drink all few hundred amps of its stall current through a 50 ohm, 1 watt straw. It, in turn, does not last long.</p>
<p>Because the ESC was damaged in the ON position, I elected to <em>not</em> hit the contactor button. At that exact moment, it would have taken off and landed in a pile of server parts. Servers are fundamentally more expensive than anything on this vehicle.</p>
<p>And thus I kept the kart off until I grabbed a friend and rolled it back into <a href="http://miters.mit.edu" target="_blank">MITERS</a>. I have not yet opened up the electrics to see what went wrong (besides <strong>it existing in the first place</strong>), but my suspicion is on the gate driver again.</p>
<p>Anyone have a real, 60 volt commercial DC motor controller of over 300 amps capacity they want to donate to the cause?</p>
<h3>Swapfest finds</h3>
<p>Swapfest is always an interesting adventure because of the variety of people it brings. By variety, I mean old ham radio enthusiasts. However, the distribution of cruft and oddities is quite Gaussian in nature. There&#8217;s tons of the usual &#8211; electronics supplies, small discrete components, computer parts. A steady amount of the esoteric but not out of the ordinary, such as vacuum tubes, antique radio equipment, and random shit from someone&#8217;s attic/basement/garage/hole-in-the-ground. But every once in a while, you stumble upon something that is so weird or awesome that &#8220;Holy Iridium Jesus&#8221; is the only proper response.</p>
<p>This is one of those finds. I was told that it is a military aircraft radio component of some sort, an early form of spread spectrum radio called a <em>data translator</em>. I prefer to call it <strong><em>AWESOMSESAUCE</em>. </strong></p>
<p style="text-align: center;"><a href="/pics/awesomesauce.jpeg"><img class="aligncenter" src="/pics/awesomesauce.jpeg" alt="" width="480" height="360" /></a></p>
<p>I didn&#8217;t have a real camera available, so the multi-kilopixel cell phone camera has to do. But I think the astonishing engineering detail is visible even from here. The thing is packed solid with conductors, tubes, <em>motorized digital-to-analog converters,</em> and crazy components that I don&#8217;t even know the function of. Seriously. A<strong> motorized DAC. </strong>It even has <strong><em>NUVISTORS</em></strong><em>. </em>I don&#8217;t even know what the hell NUVISTOR is, but it sounds <em>badass</em>.</p>
<p>This is from an era when mechanical engineering and electrical engineering were truly intertwined and engineers had to have a deep understanding of eachothers&#8217; practice. This is not like &#8220;mechanical engineers design a structure and the electrical guys slide a board in&#8221;. This is &#8220;your product is so incredibly part-dense that your fucking components <strong>are</strong> structural members.</p>
<p>I stand by my position that old people, no matter how weird they smell, are more hardcore than my current generation will ever be.</p>
<p>The only specs that my 3G-enabled friend could dig up was this <a href="http://aero-defense.ihs.com/document/abstract/WDSMDAAAAAAAAAAA" target="_blank">milspec</a>, which doesn&#8217;t really say anything besides &#8220;register for our website&#8221;. Anyone know what on earth it is?</p>
<p>At the $60 quote price, I was tempted to buy it just so I could put it in a display case. But a display case hardcore enough for this thing would have to be made from cast magnesium with solid hand-refined fused quartz windows and lit by radioactive phosphorescent compounds.</p>
<p>Anyway, to return to Earth, I got a few things that I could, you know, actually use. Past the supply refills for MITERS, I got this box of giant transistors.</p>
<p style="text-align: center;"><a href="/pics/swapbutts.jpg"><img class="aligncenter" src="/pics/swapbutts-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>A scan of the datasheet when I returned ousted them not as FETs, but IGBTs. Because the <a href="/pics/kart/kart180.jpg">ginormoFETs</a> that I bought at Swapfest the last few times were dubbed Swapfets, these are now Swapbutts, because IGBT is only properly pronounced &#8220;igbutt&#8221;.</p>
<p>The total count is</p>
<p>3x 1000v, 200A</p>
<p>1x 1200V, 150A</p>
<p>and a single 2000 volt, 300 amp unit. H00t.</p>
<p>I also got a <a href="http://www.hotwheels.com/coolstuff/radargun.aspx" target="_blank">Hot Wheels RADAR gun</a>. This is a <em>real </em>RADAR gun, but with reduced power and sensitivity so small children can bite it.</p>
<p>Maybe now I can actually find out how fast I go? It&#8217;s also fairly hackable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=368</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Neverending Tragedy of the LOLrioKart</title>
		<link>http://www.etotheipiplusone.net/?p=363</link>
		<comments>http://www.etotheipiplusone.net/?p=363#comments</comments>
		<pubDate>Sun, 28 Jun 2009 09:12:36 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=363</guid>
		<description><![CDATA[It has been an eventful few weeks. I started at iRobot as a summer engineering intern, tasked with building Terminators.  I was invited along, and subsequently went to, the Buckminster Fuller Challenge award ceremony in Chicago with Smart Cities. And I finished, broke, finished, then broke, then finished LOLrioKart. I&#8217;m waiting on the next &#8220;broke&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>It has been an eventful few weeks.</p>
<p>I started at <a href="http://www.irobot.com">iRobot</a> as a summer engineering intern, tasked with building Terminators.  I was invited along, and subsequently went to, the <a href="http://challenge.bfi.org/" target="_blank">Buckminster Fuller Challenge</a> award ceremony in Chicago with <a href="http://bfi.org/our_programs/events/the_2009_buckminster_fuller_challenge_prize_is_awarded_to_mits_smart_city_group_in_chicago" target="_blank">Smart Cities</a>.</p>
<p>And I finished, broke, finished, then broke, then finished LOLrioKart. I&#8217;m waiting on the next &#8220;broke&#8221; cycle.</p>
<p>Let&#8217;s start with a batterygasm.</p>
<p style="text-align: center;"><a href="/pics/kart/kart198.jpg"><img class="aligncenter" src="/pics/kart/kart198-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>From the deepest dredges of &#8220;Well, they technically never asked for it back&#8221;, here is a pile of <a href="http://www.a123systems.com" target="_blank">A123</a> <a href="http://en.wikipedia.org/wiki/Nanophosphate" target="_blank">lithium nanophosphate</a> cells. These are the most ballin&#8217; shit in terms of batteries available today.</p>
<p>The backstory is that A123Systems, through its ancient ties with MIT, donated Over 9000™ cells which failed quality control to the <a href="http://web.mit.edu/evt/" target="_blank">Electric Vehicle Team</a>. The Media Lab also received some for sampling, and being <a href="http://cities.media.mit.edu">Smart Cities</a>, we quickly snapped them up because&#8230; well.</p>
<p>Anyway, I was tasked with the fantastic task of determining what &#8220;failed quality control&#8221; means. For the most part, it means &#8220;smudge&#8221; or &#8220;wrinkle in the cardboard&#8221;, but a few cells were genuinely low voltage or had high internal impedance. Through a series of trials and strictly controlled processes involving a giant power resistor, car battery, and multimeter, I determined that essentially 95% of the cells in each case of 100 were most likely good for our purposes.</p>
<p>Great news for us, better news for me, because A123 probably has more.</p>
<p>Anyway, to equal the 54 volt, 30AH nickel batteries I already have (nominally &#8211; these cells are totally fucked and probably return less than 20AH as a pack), I would need about 225 cells &#8211; 15 cells in series for a nominal 48 volts, and 15 cells in parallel for about 33AH. The reason I calculated the numbers for 48 volts is because I do have access to 15S chargers for the chemistry, from the <a href="http://www.facebook.com/album.php?aid=41262&amp;id=501373927&amp;l=cd6c30ec36" target="_blank">car</a>. That&#8217;s something like $3500 in batteries if I were to drop some cake for it.</p>
<p>Or two boxes of cells<em>.</em> Come on EVT, you know you want to donate some to The Cause.</p>
<p style="text-align: center;"><a href="/pics/kart/kart199.jpg"><img class="aligncenter" src="/pics/kart/kart199-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>In order to resolve the &#8220;dude, what the hell is 42 volts doing on my frame?&#8221; issue, I stripped the entire electrical system down and pretty much rebuilt it. At the same time, I took apart the back end for cleaning. If you&#8217;ve never seen the kart&#8217;s running gear, here it is.</p>
<p style="text-align: center;"><a href="/pics/kart/kart200.jpg"><img class="aligncenter" src="/pics/kart/kart200-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>While rebuilding the electronics, I decided to try to minimize the footprint of the <a href="http://www.etotheipiplusone.net/pics/kart/kart180.jpg" target="_self">ginormoFET controller</a>. Here&#8217;s the dismantling in progress.</p>
<p style="text-align: center;"><a href="/pics/kart/kart201.jpg"><img class="aligncenter" src="/pics/kart/kart201-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>And here&#8217;s the completion.  By stacking the busbars, I gained a few square inches more&#8230; board space? Deck space? Scrap-of-plywood space? Additionally, it was easier to arrange the wiring to suit the rest of the electricals.</p>
<p>I decided to forego fan attachment until heat was determined to be a major problem.</p>
<p style="text-align: center;"><a href="/pics/kart/kart202.jpg"><img class="aligncenter" src="/pics/kart/kart202-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Contactors donated to The Cause by another <a href="http://miters.mit.edu" target="_blank">MITER</a>er. They are rated to switch 100 amps. In theory, they should never be <em>switching</em> current in my electrical system, merely passing it after closing. Switches tend to conduct far more current in a circuit than they can reliably close or open, so I&#8217;m not concerned about melting the contactor.</p>
<p style="text-align: center;"><a href="/pics/kart/kart203.jpg"><img class="aligncenter" src="/pics/kart/kart203-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Also included in the deal is a Hugeasspacitor™. 33,000 microfarads of love at 75 volts.</p>
<p style="text-align: center;"><a href="/pics/kart/kart204.jpg"><img class="aligncenter" src="/pics/kart/kart204-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Most everything in place. I mounted all components with short wood screws this time, which saved alot of drilling and&#8230; yes, threading of <em>wood</em>. That was such a dumb idea that I only could have done it at 4am.</p>
<p>The DC key switch is a battery cutoff switch, and isn&#8217;t intended to actually turn the kart on and off.</p>
<p>The power system has two stages. First is the closing of the battery switch with the contactor still open. A resistor bypasses this contactor and goes straight to the controller, which allows the Hugeasspacitor™ to charge at a reasonable rate.</p>
<p>The reason for this <em>precharge resistor</em> is, without diving too much into <a href="http://www.eecs.mit.edu/" target="_blank">Course 6</a> theory, that capacitors appear as an instantenous zero-resistance  to a sudden step in voltage. You know, like closing a switch really fast. What that means is if I just threw the capacitor onto the battery, there would be a Big Spark as infinity amps tries to flow into the cap at once. The problem is that if the cap is now charged, there is still infinity amps trying to cram into it. Not good for the capacitor, and especially not good for whatever poor switch gets caught in the middle. It&#8217;s easy to <em>weld contactors</em> like this.</p>
<p>So the second stage of the power electronics is powering the contactor, which opens a very low resistance path. I can now drive off into the nearest oncoming semi.</p>
<p>A 12 volt DC-DC converter provides the contactor current. This is placed <em>before</em> the resistor but after the switch so I can run accessories without the main controller being powered.</p>
<p style="text-align: center;"><a href="/pics/kart/kart205.jpg"><img class="aligncenter" src="/pics/kart/kart205-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Alright, a furious night of building and debugging without pictures later, and here&#8217;s the system ready for a test run. The night was mostly consumed with debugging my dumb hardware PWM generator that I pledged never to make. Because it&#8217;s on a breadboard, there were Over 9000™ things that could have been wrong with it.</p>
<p>It ended up that my comparator was dead. After tearing the whole thing apart to discover that, I threw on a new comparator, coated the board in hot glue, threw it on the kart, and called it a night.</p>
<p style="text-align: center;"><a href="/pics/kart/kart206.jpg"><img class="aligncenter" src="/pics/kart/kart206-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>The safest way to perform a test run is of course to strap a 36 volt 10AH lithium polymer pack right under your ass.</p>
<p style="text-align: center;"><a href="/pics/kart/kart207.jpg"><img class="aligncenter" src="/pics/kart/kart207-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>A beauty shot, if you stretch the definition of &#8220;beauty&#8221;. Notice the emergency stop button. This is the contactor controller.</p>
<p>Yeah, yeah, testing&#8230; It was late and nobody wanted to grab the camera. So LOLrioKart sails down the hallway successfully. In this configuration, I drove it to <a href="http://w1mx.mit.edu/flea-at-mit" target="_blank">Swapfest</a> the next day for some lulzy in-field testing.</p>
<p style="text-align: center;"><a href="/pics/kart/kart208.jpg"><img class="aligncenter" src="/pics/kart/kart208-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>So I couldn&#8217;t resist. I had to put the voltage-leaking Nicads pack on the kart, because there wasn&#8217;t another way to get greater than 36 volts. My DC-DC converter, rated for 48 volts, shuts off exactly at 36. What&#8217;s the nominal voltage of the lithium test pack? 36. If I floored the throttle, the kart would turn off.</p>
<p>Not exciting.</p>
<p>Before throwing the packs back in, I thoroughly coated the bottom <em>of each pack </em>in rubber sheeting, just in case I missed a spot and metal touched metal while in the basket.</p>
<p>Despite my efforts, there was STILL live voltage present at the frame. How&#8217;s about them electrical gremlins?</p>
<p>However, it was a high impedance leak, so I wasn&#8217;t worried about shorting something through the frame. I decided to go ahead with this installation.</p>
<p style="text-align: center;"><a href="/pics/kart/kart209.jpg"><img class="aligncenter" src="/pics/kart/kart209-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Scoping out a(nother) PWM generator problem. I went through FET driver chips like crazy, for reasons totally unexplainable; not even the resident EEs could figure out what I was doing wrong.</p>
<p>The voltage leak was ruled out as a cause because the DC-DC converter provides voltage isolation and no component is frame-grounded. That I know of, anyway.</p>
<p>Out-of-range operation was also ruled out, since I&#8217;m running the chips at less than half their maximum voltages. The FET gate had a bleed resistor and the throttle input has an RC filter inline.</p>
<p>Transients were the main suspect, so I arranged some more low-value caps around the important parts.</p>
<p>It seemed to be stable. Time to figure out which way the motor is supposed to be hooked up!</p>
<p style="text-align: center;"><a href="/pics/kart/kart210.jpg"><img class="aligncenter" src="/pics/kart/kart210-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>This is what we call &#8220;Nope, it hooks up the other way&#8221;. I like where this is going.</p>
<p>Alright, so maybe not <em>this picture</em>, because &#8220;where this is going&#8221; was straight backwards into a shelf.</p>
<p style="text-align: center;"><a href="/pics/kart/kart211.jpg"><img class="aligncenter" src="/pics/kart/kart211-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Giving the nicads a wakeup charge. By virtue of sitting for two weeks, some of the cells have fallen back to zero volts.</p>
<p>That&#8217;s how totally fucked they are.</p>
<p>Using the <a href="http://www.etotheipiplusone.net/pics/kart/kart129.jpg" target="_self">HOLYCRAPWHATISTHAT</a>, I dumped 25 amps into the cells, which is pulling something like 1600 watts.    After an hour and so, they were nice and warm.</p>
<p style="text-align: center;"><a href="/pics/kart/kart212.jpg"><img class="aligncenter" src="/pics/kart/kart212-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>Totally the most legitimate throttle pedal ever. That&#8217;s a spare bettery switch key zip-tied to a bike hand throttle zip-tied to the frame.</p>
<p>Video time! I decided this was legit enough to take on the streets and have some fun, so I <em>drove to campus</em> and found some testing grounds. It had been raining for two weeks at this point, and I couldn&#8217;t really hold it in any more.</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/29J3ZCtIYwY&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/29J3ZCtIYwY&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /></object></p>
<p>Afterwards, I decided this pedal was just not legit enough to keep, and that my scooter needed the throttle back really badly, so I fabbed up a pseudopedal. It&#8217;s not really any more legitimate.</p>
<p style="text-align: center;"><a href="/pics/kart/kart213.jpg"><img class="aligncenter" src="/pics/kart/kart213-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>I had a &#8220;resistive throttle box&#8221; already, so I just scrounged some parts from it and assembled them onto a mount I cut out long ago. While it&#8217;s functional, the positioning is the least ergonomic thing in existence. I kind of have to side-roll my right foot onto it.</p>
<p>Alright, so it&#8217;s good for now. Time to start working on the priorities, like&#8230;</p>
<p style="text-align: center;"><a href="/pics/kart/kart214.jpg"><img class="aligncenter" src="/pics/kart/kart214-mid.jpg" alt="" width="512" height="384" /></a></p>
<p>&#8230;instead of, you know, functioning brakes.</p>
<p>Seriously, the little band brakes have deteriorated to the point that stopping doesn&#8217;t really take less distance if I completely step on the brake pedal. They really were not made for the task of stopping a 350+ pound vehicle at <em>n</em> miles per hour, where n is between 20 and 30.</p>
<p>And so this is how the kart was set up for its first ever road trip, from MITERS to the extreme western tip of campus, a distance of roughly one mile each way. No video is available due to it being completely spontaneous</p>
<p>I&#8217;m clearly still alive. More work to come, like <strong>BRAKES</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=363</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Summer Build Season 2009</title>
		<link>http://www.etotheipiplusone.net/?p=353</link>
		<comments>http://www.etotheipiplusone.net/?p=353#comments</comments>
		<pubDate>Wed, 03 Jun 2009 04:52:50 +0000</pubDate>
		<dc:creator>the chuxxor</dc:creator>
				<category><![CDATA[LOLrio Kart]]></category>
		<category><![CDATA[Nuclear Kitten 5]]></category>
		<category><![CDATA[Pop Quiz 2]]></category>
		<category><![CDATA[Project RazEr]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Überclocker Remix]]></category>

		<guid isPermaLink="false">http://www.etotheipiplusone.net/?p=353</guid>
		<description><![CDATA[It has begun. While I seem to be in &#8220;build season&#8221; mode year-round, it is during long breaks with little in the way of academic or life obligations that I get the most done. Last summer, I began work on LOLrioKart and built Überclocker, Pop Quiz 2, and Nuclear Kitten for Dragon*Con. &#8230; which sort [...]]]></description>
			<content:encoded><![CDATA[<p>It has begun.</p>
<p>While I seem to be in &#8220;build season&#8221; mode year-round, it is during long breaks with little in the way of academic or life obligations that I get the most done. Last summer, I began work on<a href="http://www.etotheipiplusone.net/?page_id=197" target="_self"> LOLrioKart</a> and built <a href="http://www.etotheipiplusone.net/?page_id=196" target="_self">Überclocker</a>, <a href="http://www.etotheipiplusone.net/?page_id=10" target="_self">Pop Quiz 2</a>, and <a href="http://www.etotheipiplusone.net/?page_id=6" target="_blank">Nuclear Kitten</a> for <a href="http://www.dragoncon.org" target="_blank">Dragon*Con</a>.</p>
<p>&#8230; which sort of <a href="http://www.etotheipiplusone.net/?cat=55" target="_self">sucked horribly for everything</a>. Except NK, but only by about *this* much.</p>
<p>So what&#8217;s coming down the projectubes this summer?</p>
<p>Mostly the same thing. D*C is my biggest bot-celebration of the year, so once again the combat robot fleet takes high priority. Since there&#8217;s really just one robot that needs rebuilding, I also have the usual pile of small electric vehicle projects, of which only one is actually urgent.</p>
<h3>Übercløcker RЭmiχ</h3>
<p style="text-align: center;"><a href="/pics/cb2/cb2_14.jpg"><img class="aligncenter" src="/pics/cb2/cb2_14-mid.jpg" alt="" width="512" height="363" /></a></p>
<p>I started <a href="http://www.etotheipiplusone.net/?p=216" target="_self">redesigning Uberclocker</a> some time in the fall of last year, hoping to get it done by Motorama 2009. Of course, due to scheduling concerns and logistics, this didn&#8217;t happen. But what that presented me with was the chance to <em>put it away and not look at it for several months</em>.</p>
<p>This is pivotal. The basic design has already been hashed out, but now I get to return to it after not thinking about it for a while. I am now in the process of analyzing the 3d model for any &#8220;impossible objects&#8221; that I might have included, or Really Bad Ideas. Such design flaws plagued the real life Uberclocker 1.0 at D*C last year.</p>
<p>Planned upgrades from 1.0? Well, besides <strong><em>EVERYTHING</em></strong>, the primary focus is on drivetrain reliability, center of gravity, and the upper clamp arm.</p>
<p>As a member of the pushybot school of combat robotic thought, I value maneuverability and driving above jawesometacular weaponry. Uberclocker 1.0 had a strange serpentine timing belt setup that seemed like a really awesome idea at 5 in the morning, but&#8230; wasn&#8217;t.</p>
<p>The robot also suffered from &#8220;centrally located center of gravity&#8221; syndrome at the event. While a CoG near the geometric centroid of the robot is good in practically <em>every other case</em>, the fact that the bot&#8217;s sole purpose was to grab another opponent and lift it off the ground meant that it just sort of faceplanted every time I attempted a lift. Not a very impressive show. The redesign lengthened the wheelbase of the bot, and selective weight reduction moved the CoG back about 4 inches, without additional ballast.</p>
<p>Oh, that&#8217;s right, Uberclocker 1.0 weighed in at an incredible <em>22.5</em> pounds out of 30 at the event. I&#8217;ll fix that too.</p>
<p>What I didn&#8217;t really get to (properly, anyway) in the redesign was the upper clamp arm. The previous arm was both weak and structurally unsound. While I think I took care of the &#8220;unsound&#8221;, I still have my doubts as to the clamp mechanism&#8217;s effectiveness.  In the past, clampbots have used pneumatics to actuate the upper half of the clamp. This is advantageous because a pneumatic actuator requires no &#8220;holding power&#8221;, unlike an electric motor, which has to be continually powered to produce torque. Pneumatics also have a certain amount of spring-back ability that a solidly coupled electric actuator doesn&#8217;t.</p>
<p>But robot-heaven forbid that I make Überclocker even <strong>more</strong> complicated by incorporating a pneumatics system for the one actuator that might need it. Thus, I&#8217;m still partial to a (spring-coupled) leadscrew-type mechanism, over the current design candidate&#8217;s motor-on-a-weird-gear. Except this time it won&#8217;t be driven by a beetleweight motor.</p>
<p>I intend to keep the &#8220;Chinese puzzle&#8221; frame, and will be refining it for ease of assembly. I devoted a few weeks to just fabricating the frame parts last time &#8211; no, never again. That&#8217;s what computer-controlled machine tools are for.</p>
<h3>Pop Quiz 2√2</h3>
<p>Incidentally, 2√2 is about 3. Not quite there, which also describes this planned <em>rebuild</em> of Pop Quiz 2. It&#8217;s not quite a complete conceptual revision, but there will be significant upgrades all around.</p>
<p>PQ2 is one of the (if not the) flattest 1lb class robots around that has an active weapon. It hits lower than some <em>undercutters</em>. The problem is that going the extra 1/8&#8243; down in this current design meant that I had to ditch practically all the well-known, battle-proven parts &#8211; Sanyo gearmotors, SPEKTRUM 2.4ghz receivers, etc.</p>
<p>It was a fun thought experiment come to life, but the robot had a horrific reliability record, almost no reception due to the FM ground-band receiver, and a 5 minute chopped hack of a master power switch that ended up disintegrating after exactly 1 hit at D*C 2008. Pop Quiz had about 15 seconds in the arena.</p>
<p>Not cool. For &#8217;09, I am <strong>INCREASING</strong> the height of the bot. Me, making a robot <em>taller</em>. How many times does THAT happen?</p>
<p>The robot height will be increased to about .400&#8243;, enough to cram in a set of <em>real</em> Sanyo micro gearmotors. The rest of the robot&#8217;s electrical system is sound, and so is the weapon motor. I&#8217;ll most likely end up reusing the electronics anyway, minus the cheesy little FM park flyer receiver. Instead, it will be swapped out with the latest Spektrum DSM offering, and I will run one transmitter between all the robots.</p>
<p>There&#8217;s no current virtual model for PQ2.8284171, but just imagine the current bot 0.025&#8243; thicker.</p>
<h3>Nuclear Kitten 5.1 Digital Surround Sound Edition</h3>
<p>I&#8217;m actually satisfied with the performance of one of my combat &#8216;bots for once. NK needs very minor rework to take another run at D*C. The weapon motor needs some magnet reglued, and the weapon pod pivot axle is slightly bent and needs to be made better anyway. Past that, I have a spare blade to replace the faceplant-into-steel-bumper bent blade.</p>
<p>The only point of concern with NK is the drivetrain. Despite having a mechanically isolated weapon, I&#8217;m still blowing drive gearboxes, just because the bot is that much more powerful. I might switch to something like the 50:1 Copal motors || redesign the motor mount || use softer wheels.</p>
<p>No frame changes are necessary, since the bot escaped D*C rather unscathed.</p>
<h3>LOLrioKart</h3>
<p>Since I discovered that the main battery pack was leaking voltage all over the place (<em>somehow</em>, through an eighth inch of rubber?), I stripped down the entire electrical system and tested all the batteries. It turns out that the steel casings of the cells are live, something which I&#8217;m fairly certain should never be the case. While it&#8217;s fairly common for the battery negative terminal to also be the casing, the errant voltages are always somewhere <em>between</em> 0 and 1 volts.</p>
<p>This case voltage doesn&#8217;t seem to have negatively affected the cells, but I&#8217;m fairly certain it&#8217;s the culprit behind stray frame voltages. Somehow.</p>
<p>The focus for LOLrioKart work will be the electrical system. I intend to complete and test the ginormoFET controller and <em>possibly</em> implement dynamic (or regenerative!) braking using the upper leg of the half-bridge. Mechanically, the kart is fine.</p>
<p>Well, except for the brakes, but they&#8217;ve <em>always</em> been undersized and insufficient.</p>
<p>Ultimately the goal is to run it for longer than 1 minute on all 54 volts, or the full pack voltage of whatever eventual power system I might come into. I&#8217;m heavily considering crating up LOLrioKart and shipping it down when Dragon*Con comes around, so I can drive it in the <a href="http://dragoncon.org/events.php#Parade" target="_blank">parade</a>. This could possibly be the worst idea I have ever thought of.</p>
<h3>Project RazEr</h3>
<p>It&#8217;s been hanging on a utility hook since the last controller fire. Everything works and the batteries are still charged, so all I need is a BLDC motor controller. Since everything still technically &#8220;works&#8221;, I don&#8217;t intend to touch the scooter that much, if at all. Any work on it will be replacing the shell of the wheelmotor with something more substantial (and better engineered, and more reversably built).</p>
<p>Time to get crackin&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etotheipiplusone.net/?feed=rss2&amp;p=353</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
