<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/blog/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://carrott.org/blog/feeds/atom.xml" rel="self" title="emini" type="application/atom+xml" />
    <link href="http://carrott.org/blog/"                        rel="alternate"    title="emini" type="text/html" />
    <link href="http://carrott.org/blog/rss.php?version=2.0"     rel="alternate"    title="emini" type="application/rss+xml" />
    <title type="html">emini</title>
    <subtitle type="html"></subtitle>
    <icon>http://carrott.org/blog/templates/default/img/s9y_banner_small.png</icon>
    <id>http://carrott.org/blog/</id>
    <updated>2010-05-03T09:02:56Z</updated>
    <generator uri="http://www.s9y.org/" version="1.2.1-1">Serendipity 1.2.1-1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:tom@carrott.org" />

    <entry>
        <link href="http://carrott.org/blog/archives/133-RS485-Tantrum.html" rel="alternate" title="RS485 Tantrum" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-05-01T00:01:35Z</published>
        <updated>2010-05-03T09:02:56Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=133</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=133</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/2-Battery-Management-System" label="Battery Management System" term="Battery Management System" />
    
        <id>http://carrott.org/blog/archives/133-guid.html</id>
        <title type="html">RS485 Tantrum</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Not as serious as a <a href="http://blog.reprap.org/2010/03/our-extruders-hardly-ever-catch-fire.html">reprap tantrum</a>, my RS485 bus is not behaving very well. If I terminate it properly, it doesn't work at all, and if I don't terminate it at all, then it works, but charging at more than 10A causes a lot of extra characters to appear. Termination has two functions, first, it absorbs the energy in each character as it hits the end of the bus. Without terminators the pulses bounce off the end of the bus and travel back the way they came, causing interference. The second function of the terminators is to hold the bus in a relatively low impedance state, so any stray energy (say that created by the electric and magnetic fields generated by the charger) that gets onto the bus is absorbed without causing spurious characters.</p>

<p>Without terminators, I'm seeing extra characters, but with a 2 metre bus, I don't have problems with reflections.</p>

<p>So why doesn't it work <em>with</em> terminators? It turns out the transmit enable circuit cannot predict the future. With no cells transmitting, the bus floats, and both wires sit at 0 volts. When a cell enables it's transmitter, one wire rises to about 4V and the other to about 1V. This is how the bus should look when we send 0xFF:<br/>
<!-- s9ymdb:219 --><img width="600" height="479" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/hardware-addressing.jpg" alt="0x55 with hardware software addressing" />
<br/>
And here is how it looks when the EVD5 sends 0x55:<br/>
<!-- s9ymdb:220 --><img width="600" height="480" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/software-addressing.jpg" alt="0x55 with software addressing" />
<br/>
Note the difference in the first transition, the the inverting line should go from high to low, but it goes from 0 to low. This is because the transmitter is enabled during the start bit, rather than a sensible time before the start bit.</p>

<p>I tried enabling the bus with a very short pulse (arrowed) before sending a character (note inverting is on the bottom trace instead of the top like above):<br />
<!-- s9ymdb:223 --><img width="600" height="482" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/software-addressing-start-pulse.jpg" alt="0x55 with software addressing and start pulse" />
<br />This almost worked, but I couldn't avoid framing errors -- the receiver sees the pulse and gets confused. I need to wait long enough for the receiver to assume the start pulse was not the start bit of some random character, but the transmit enable circuit times out and disables the bus before this happens.</p>

<p>There are two possible solutions, <a href="http://www.best-microcontroller-projects.com/transmission-line.html">capacitive termination</a>, and increasing the baud rate. More on this later.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/132-Sydney.html" rel="alternate" title="Sydney" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-03-30T05:57:45Z</published>
        <updated>2010-04-16T08:42:39Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=132</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=132</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/132-guid.html</id>
        <title type="html">Sydney</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Recently I visited Sydney and met up with some of the local EV community.</p>

<p>I saw Nathan's workshop at <a href="http://www.converturcar.com.au/">Convert UR Car</a> and he was kind enough to show me a Toyota Yaris conversion in progress and even let me drive <a href="http://www.converturcar.com.au/archives/category/projects/sparky">Sparky</a>, his lead acid powered '92 Hyundai Excel. I can now say I've handled a germanium transistor, as he had to replace part of the control for his army surplus generator.<p>

<p>I also met up with Anthony Wood (who helped assemble my Mini in January) and Michael Day (who's converting an MR2 with an MES-DEA motor) for lunch and had a ride in his Anthony's (yet to be converted) Cortina.</p>

<p>Jaron Ware &amp; Mark Taylor showed me their Formula V race car which was converted to electric some time ago. When I turned up they were installing an open source DC motor controller, a variation of <a href="http://ecomodder.com/forum/open-revolt-open-source-dc-motor-controller.html">Paul &amp; Sabrina's design</a>.
<br />
<!-- s9ymdb:217 --><img width="600" height="399" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/open-source-dc-controller.jpg" alt="Open Source DC motor controller derived from Paul &amp; Sabrina's design" />
<a class='serendipity_image_link' href='http://carrott.org/blog/uploads/open-source-dc-controller-2.jpg'><!-- s9ymdb:218 --><img width="110" height="84" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/open-source-dc-controller-2.serendipityThumb.jpg" alt="Open Source DC motor controller derived from Paul &amp; Sabrina's design" /></a>
</p>

<p>Mark also had a <em>very</em> tidy flooded electric van conversion:
<br />
<!-- s9ymdb:214 --><img width="600" height="399" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/mark-taylor-van-battery.jpg" alt="" />
<a class='serendipity_image_link' href='http://carrott.org/blog/uploads/mark-taylor-van-motor.jpg'><!-- s9ymdb:215 --><img width="110" height="73" style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/mark-taylor-van-motor.serendipityThumb.jpg" alt="" /></a>

<p>Jaron told me stories about his trip to Lake Gardener to crew for the <a href="http://www.evmotorcycle.org/home/node/53">Catavolt</a> team. Kearon de Clouet did 177kph on a Modified Partial Streamlined Electric Motorcycle for a new world record. Besides getting the record, they learnt a lot on this trip, it turns out you should transport your gear 2000km in a covered trailer, especially when the last half day is on a dirt road and it's raining. The dirt was especially prepared by the Australian climate to get into everything. Also, you should get a big trailer and make a mobile workshop, so you can charge and perform maintenance while waiting in the queue for the next run -- you spend most of the day queuing and a mobile workshop would let them get more runs.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/131-Amazing-KillaCycle-Video.html" rel="alternate" title="Amazing KillaCycle Video" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-03-02T09:15:58Z</published>
        <updated>2010-03-02T09:15:58Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=131</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=131</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/131-guid.html</id>
        <title type="html">Amazing KillaCycle Video</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Paul Tuffery from the <a href="http://www.videoguys.co.nz/" >Video Guys</a> came to Motukea from Christchurch and Bill let him drill a hole in the <a href="http://killacycle.com" >KillaCycle</a>!. These are the best videos I've ever seen of the KillaCycle. In some ways they are even better than being there in person, as he has each run from 3 different angles in glorious HD video. See the <a href="http://vimeo.com/channels/killacycle" >KillaCycle channel on Vimeo</a> for 5 more videos!. Make sure the HD button is off if your computer can't handle the large files.</p>

<object width="601" height="338"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9275439&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9275439&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="601" height="338"></embed></object><p><a href="http://vimeo.com/9275439">Killacycle. Standing 1/4 mile. 4th run. Motueka NZ. 6/2/10.</a> from <a href="http://vimeo.com/thevideoguys">Paul Tuffery. The Video Guys</a> on <a href="http://vimeo.com">Vimeo</a>.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/130-KillaCycle-8.81s-at-Nelson.html" rel="alternate" title="KillaCycle 8.81s at Nelson" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-02-10T06:23:04Z</published>
        <updated>2010-02-10T08:38:41Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=130</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=130</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/130-guid.html</id>
        <title type="html">KillaCycle 8.81s at Nelson</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><div style="text-align:center;"><!-- s9ymdb:204 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacycle-house.jpg" alt="KillaCycle unloading from Athol William's truck" /></div>
<a href="http://www.topfueldragbike.co.nz/" >Athol Williams</a> made a house to keep the <a href="http://www.killacycle.com" >KillaCycle</a> dry while travelling on the back of his little <a href="http://www.studnz.co.nz/" >Stud Welding NZ</a> truck. We really can't thank Athol enough, he's the New Zealand &amp; Australian record holder on his<a href="http://www.topfueldragbike.co.nz/" > 6.1s nitromethane powered bike</a>. He took care of an aweful lot of logistics on the KillaCycle tour, and it wouldn't have been the same without him. During the first part of the tour, the KillaCycle travelled in his mobile race workshop, and he provided racing advice and support at Meremere and Nelson. It was a great weight off my shoulders to have his years of drag racing experience, as I could simply be pit crew while Athol took care of the track side with Bill.</p>

<p><div style="text-align: center">
<!-- s9ymdb:205 --><img width='800' height='532' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/mini-burnout.jpg" alt="V8 Mini burnout" /><br />
<a class='serendipity_image_link' href='http://carrott.org/blog/uploads/mini-launch.jpg'><!-- s9ymdb:206 --><img width='110' height='73' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/mini-launch.serendipityThumb.jpg" alt="V8 Mini launch" /></a>
<a class='serendipity_image_link' href='http://carrott.org/blog/uploads/mini-offroad.jpg'><!-- s9ymdb:207 --><img width='110' height='71' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/mini-offroad.serendipityThumb.jpg" alt="V8 Mini offroad" /></a>
</div>
We had to wait after a V8 powered mini took out some timing gear in an unscheduled bit of off-road adventure. He managed to get it back on the track, and was loose all day.</p>

<p style="text-align:center">
<!-- s9ymdb:208 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacycle-burnout-1.jpg" alt="KillaCycle Burnout" /><br />
Scotty<br />
<!-- s9ymdb:209 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacycle-burnout-2.jpg" alt="KillaCycle Burnout" /><br />
entertained<br />
<!-- s9ymdb:210 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacycle-burnout-3.jpg" alt="KillaCycle Burnout" /><br />
with<br />
<!-- s9ymdb:211 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacycle-burnout-4.jpg" alt="KillaCycle Burnout" /><br />
a<br />
<!-- s9ymdb:212 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacycle-burnout-5.jpg" alt="KillaCycle Burnout" /><br />
burnout<br />
</p>
<div text-align:center"><!-- s9ymdb:213 --><img width='600' height='902' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/killacyle-launch.jpg" alt="KillaCycle Launch" /><br /></div>
<p>Not everything went smoothly, with the KillaCycle refusing to switch the motors from series to parallel. The bike starts in series, putting up to 2000A through both motors, but in series, the voltage across the motors adds, so when they are turning fast, we run out of battery voltage to push the current through them. Scotty pushes a button to switch the motors to parallel, where the current divides and we get up to 1000A through each motor, but the voltage doesn't add, so the battery is able to do this even when the motors are turning fast. Unfortunately, the shift only worked on the first easy run and while testing in the pits, it wouldn't work on the track at full power. Without shifting, we only managed a best time of 8.81s in quarter mile.</p>

<p>We did do a quick turnaround for the last run of the day, doing two runs within 8 minutes. We didn't do anything to the bike, we just waited behind two other cars before we could go again. The KillaCycle can do about 14 passes, including riding back to the start line, without charging. Bill tells me that when they do showboat back-to-back runs, the second run is often quicker than the first, but there is a good chance of damaging a motor as they get too hot. This time there was no damage.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/129-Nelson-Drags-Update.html" rel="alternate" title="Nelson Drags Update" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-02-06T01:42:23Z</published>
        <updated>2010-02-06T01:49:40Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=129</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=129</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/129-guid.html</id>
        <title type="html">Nelson Drags Update</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Nelson is going well, we've done 2 runs with the <a href="http://www.killacycle.com" >KillaCycle</a>, and are about to do a third. The first was a slow 10.551s @ 115MPH where we found the track is very slippery out of the hole. In the second run we had a ground fault in the motors and the series-parallel shift didn't work, so 9.594 @ 136.37MPH was slower than expected.</p>

<p>We hope to do an 8s pass next.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/128-Nelson-KillaCycle-Drags-tomorrow.html" rel="alternate" title="Nelson KillaCycle Drags tomorrow" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-02-05T10:27:56Z</published>
        <updated>2010-02-05T10:38:23Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=128</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=128</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/128-guid.html</id>
        <title type="html">Nelson KillaCycle Drags tomorrow</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I'm in Nelson where the <a href="http://www.killacycle.com" >KillaCycle</a> is scheduled to run tomorrow (Saturday 6 Feb)  at 11:30 at Motueka aerodrome. The experimental "high voltage" motors that blew up at Meremere have been replaced with the record setting lower voltage motors with variable brush timing system, so we should see better times than last weekend.  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/127-4-Rotary-Show.html" rel="alternate" title="4 &amp; Rotary Show" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-01-30T10:03:03Z</published>
        <updated>2010-01-30T10:06:46Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=127</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=127</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/127-guid.html</id>
        <title type="html">4 &amp; Rotary Show</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:203 --><img width='800' height='532' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/4-and-rotary-show.jpg" alt="3 Bikes and a Race Car" />

<p>The 4 &amp; Rotary Show and Shine went very well. Come down to Meremere to see the KillaCyle run, we're expecting it's first run to be about lunch time.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/126-LCA2010-Talked.html" rel="alternate" title="LCA2010 Talked" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-01-20T00:47:15Z</published>
        <updated>2010-01-20T01:05:40Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=126</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=126</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/5-News" label="News" term="News" />
    
        <id>http://carrott.org/blog/archives/126-guid.html</id>
        <title type="html">LCA2010 Talked</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Phil &amp; I <a href="http://www.lca2010.org.nz/programme/schedule/view_talk/50198?day=wednesday" >presented</a> at <a href="http://www.lca2010.org.nz/" >LCA2010</a> this morning. The talk went well, but suffered from not doing a practice run. I guess I shouldn't have been writing the slides half an hour before the talk started. I was late getting the slides together because I got the Mini running yesterday evening! I "just" have to install the instrumentation and bleed the brakes and I'm ready for the open day. Video of the talk and the slides should be available soon.

<p>Bill Dubé also arrived yesterday and chatting with him is great. The <a href="http://www.killacycle.com/" >KillaCycle</a> arrives in Wellington tomorrow and goes on display at Te Papa on Thursday morning. Bill's free public talk is at 6:30pm on Thursday at Te Papa. See Phil's blog for the rest of the <a href="http://blog.greenstage.co.nz/2009/12/killacycle-new-zealand-tour-calendar.html" >KillaCycle tour schedule</a>.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/124-Cell-Installation.html" rel="alternate" title="Cell Installation" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-01-12T14:31:02Z</published>
        <updated>2010-01-12T14:51:57Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=124</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=124</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/4-Fabrication" label="Fabrication" term="Fabrication" />
    
        <id>http://carrott.org/blog/archives/124-guid.html</id>
        <title type="html">Cell Installation</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:202 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/cell-installation-2.jpg" alt="30 Thunder Sky LFP40AHA cells installed in the rear battery box" />

<p>I've now re-installed 30 of the 36 cells in the rear battery box. I added plates at each end of the box to make the walls flat, so it will provide better compression to the cells. This is working better than with no plates (there is a lip at the bottom where the floor of the box overlaps and is spot welded to the sides, but this lip is only 10mm high), but sadly it turns out Auckland is shut in January, and the cutting department is still on holiday. I improvised with 1mm steel (old computer cases turn out to be good for something) and a <a href="http://en.wikipedia.org/wiki/Plasma_cutting" >plasma cutter</a>. Many thanks to Edward for lending me his plasma cutter, it's fantastic, no home is complete without one. I need to reinforce the outside of the battery box, as it bulges a little when you swash the cells in. I realised this only after I'd put three coats of paint on it :-(</p>

<p>Anthony (woody on the <a href="http://www.aeva.asn.au/" >AEVA</a> <a href="http://www.aeva.asn.au/forums/" >forum</a>) is in Auckland this week and came to have a look at what I'm up to. He was a great help, passing clamps while cutting, sanding the terminals on all the cells and helping me install the cells. He also pointed out many obvious things that I missed (things like you should hammer cells on the edges and the conical plasma cutter torch is conical, but it still has a flat face which you can use to run down the side of a guide and get a straight line).</p>

<p>Sadly the second battery rack was to complex to finish in time for the <a href="http://www.lca2010.org.nz/programme/open_day" >LCA Open Day</a> and <a href="http://blog.greenstage.co.nz/2009/12/killacycle-new-zealand-tour-calendar.html" >KillaCycle tour</a> so I'm going to have the same 36 cells and 118v or so open circuit that the car had last time it was working.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/123-Front-Mount-Takes-Shape.html" rel="alternate" title="Front Mount Takes Shape" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2010-01-08T14:04:19Z</published>
        <updated>2010-01-08T14:21:51Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=123</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=123</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/4-Fabrication" label="Fabrication" term="Fabrication" />
    
        <id>http://carrott.org/blog/archives/123-guid.html</id>
        <title type="html">Front Mount Takes Shape</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:201 --><img width='600' height='606' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/front-mount-takes-shape.jpg" alt="Front Mount in subframe" />

<p>I've mostly finished the bracket which will hold the front mount (where front is closest to the front of the car if the motor was in a north south configuration, which means it's on the left on this car). The mount is the black round thing hanging below the pipe I <a href="http://carrott.org/blog/archives/118-Subframe-Reinforced.html" >welded in earlier</a>, and I've spent the evening grinding the curves on the bracket between it and the pipe. The bracket needs a bit of tidying up I'll be ready to weld it onto the frame.</p>

<p>In unrelated news, the <a href="http://www.killacycle.com/" >KillaCycle</a> arrived in New Zealand safely, the <a href="http://sourceforge.net/apps/mediawiki/tumanako/index.php?title=Inverter" >Tumanako VC</a> motor controller had it's <a href="http://blog.greenstage.co.nz/2010/01/gs750v-electric-saker-first-drive.html" >first drive</a> yesterday in the Greenstage electric Saker (first time that has moved under electric power too!) and I have about a week left to put this car together before I'm leaving for LCA2010 in Wellington.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/122-Rear-Battery-Rack-part-1.html" rel="alternate" title="Rear Battery Rack (part 1)" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2009-12-31T05:58:23Z</published>
        <updated>2009-12-31T05:58:23Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=122</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=122</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/4-Fabrication" label="Fabrication" term="Fabrication" />
    
        <id>http://carrott.org/blog/archives/122-guid.html</id>
        <title type="html">Rear Battery Rack (part 1)</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:199 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/rear-battery-rack.jpg" alt="Rear Battery Rack" />

<p>I've mostly finished the rear battery rack. I need to fold up some feet to lift the rack up off the boot floor, decide how to support the front and rear sections (cantilever from the middle one? more feet?) and devise a way to hold the cells down.</p>

<!-- s9ymdb:200 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/too-much-welding.jpg" alt="Vice grips welded to the work" />

<p>For a while, the rack came with added vice grip.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/121-Levelling-Up.html" rel="alternate" title="Levelling Up" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2009-12-20T05:14:02Z</published>
        <updated>2009-12-20T09:48:32Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=121</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=121</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/4-Fabrication" label="Fabrication" term="Fabrication" />
    
        <id>http://carrott.org/blog/archives/121-guid.html</id>
        <title type="html">Levelling Up</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:197 --><img width='600' height='689' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/motor-x-y-load-leveller.jpg" alt="2 Load Levellers For X &amp; Y control" />

<p>I <a href="http://carrott.org/blog/archives/73-Motor-Installed.html" >once said</a> I should get a load leveller. Well, I finally gave in and got two. I think I did well with $50 Chinese units from <a href="http://www.savebarn.co.nz/Engine-Load-Level-750kgs-Heavy-Duty.html" >Save Barn</a>. After a little fabrication, they hang at right angles and I can adjust everything in comfort. I'm never installing another engine without one.</p>

<!-- s9ymdb:198 --><img width='600' height='446' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/chinese-steel.jpg" alt="Chinese Steel Does not Bend" />

<p>Part of the fabrication involved a strap with two holes, and the levellers came with a piece that just needed a little straightening. I'm not sure if this steel is particularly hard, or just poor, but it did not take kindly to being straightened.</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/120-Gearbox-Mount-Takes-Shape.html" rel="alternate" title="Gearbox Mount Takes Shape" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2009-12-02T12:47:48Z</published>
        <updated>2009-12-02T12:47:48Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=120</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=120</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/4-Fabrication" label="Fabrication" term="Fabrication" />
    
        <id>http://carrott.org/blog/archives/120-guid.html</id>
        <title type="html">Gearbox Mount Takes Shape</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:195 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/gearbox-mount-takes-shape.jpg" alt="Gearbox Mount Progress" />

<p>I'm making progress fashioning the structure between the gearbox and the mount that will isolate it from the frame of the car. I'm using an aluminium and rubber mount from a small Nissan (the round silver and black thing between the tube on the left and the gearbox in the middle).</p>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/119-SDCC-Compiler-Bug.html" rel="alternate" title="SDCC Compiler Bug" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2009-11-26T12:27:10Z</published>
        <updated>2009-11-26T12:27:10Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=119</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=119</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/2-Battery-Management-System" label="Battery Management System" term="Battery Management System" />
    
        <id>http://carrott.org/blog/archives/119-guid.html</id>
        <title type="html">SDCC Compiler Bug</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>I've been messing around with the BMS master hardware instead of welding stuff together. I'm trying to send a CAN message and, rather than write my own library from the datasheet, I tried to use <a href="http://www.microchip.com/" >Microchip</a> application note <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en012117" >AN878</a>. It was easy to adjust so it would compile with <a href="https://sourceforge.net/projects/sdcc/" >SDCC</a> but I seem to have <a href="http://sourceforge.net/tracker/?func=detail&aid=2904512&group_id=599&atid=100599" >found a bug</a> in the compiler. 

<p>Because the <a href="http://en.wikipedia.org/wiki/PIC_microcontroller" >PIC</a> is a <a href="http://en.wikipedia.org/wiki/Harvard_architecture" >Harvard Architecture</a> CPU, <a href="http://en.wikipedia.org/wiki/Pointer_%28computing%29" >pointers</a> to code and pointers to data are handled differently, which SDCC implements by adding some extra bits to the pointer. Unfortunately it's possible to loose those bits while casting the address of an <a href="http://en.wikipedia.org/wiki/Special_Function_Register" >SFR</a> to a pointer and assigning that to a pointer array element by index.</p>

<p>With the the bits cleared, the write-to-pointer-target helper will do nothing, leaving the pointer on the <a href="http://en.wikipedia.org/wiki/Stack_%28data_structure%29" >stack</a>. When it returns, the rest of the code freaks out because it expects the pointer to have been popped off the stack.</p>

<p>The solution (apart from fixing the compiler bug) is to leave out the cast. It seems that assigning an SFR to a pointer array element doesn't actually need a cast.</p>

<table>
<tr><th>BAD</th><td>pb[1] = (unsigned char *) &TXB0CON;</td>
<tr><th>GOOD</th><td>pb[1] = &TXB0CON;</td>
</table>  
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://carrott.org/blog/archives/118-Subframe-Reinforced.html" rel="alternate" title="Subframe Reinforced" />
        <author>
            <name>carrott</name>
            <email>tom@carrott.org</email>
        </author>
    
        <published>2009-11-22T10:46:19Z</published>
        <updated>2009-11-24T08:55:27Z</updated>
        <wfw:comment>http://carrott.org/blog/wfwcomment.php?cid=118</wfw:comment>
    
        <wfw:commentRss>http://carrott.org/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=118</wfw:commentRss>
    
            <category scheme="http://carrott.org/blog/categories/4-Fabrication" label="Fabrication" term="Fabrication" />
    
        <id>http://carrott.org/blog/archives/118-guid.html</id>
        <title type="html">Subframe Reinforced</title>
        <content type="xhtml" xml:base="http://carrott.org/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <!-- s9ymdb:194 --><img width='600' height='399' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="http://carrott.org/blog/uploads/subframe-reinforcing.jpg" alt="Mini Front Subframe Reinforced" />

<p>After many hours of fettling and weld practice, I've managed to weld the reinforcing bars into my front subframe. The motor will hang between these bars and they also provide strength at the front of the frame for cells or other equipment. </p>

<p>My 175A welder took a bit of tweeking to make good welds in 3mm steel. The biggest change that made the most difference was switching from 0.6mm to 0.8mm wire. I think this could also have been achieved by turning up the wire feed on the 0.6mm wire. MIG is a little counter-intuitive, if you weld isn't penetrating and the wire is building up in a large bead on top of the work, you'd think that you have to turn down the wire speed and weld slower so the heat has more time to penetrate. Actually you want to do the opposite, as the faster you push the wire into the work, the smaller the arc, the greater the current and the deeper the penetration. Of course wire speed isn't the only parameter which affects the current.</p>  
            </div>
        </content>
        
    </entry>

</feed>