<?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>justDIY Project Log</title>
	<atom:link href="http://projects.dimension-x.net/feed" rel="self" type="application/rss+xml" />
	<link>http://projects.dimension-x.net</link>
	<description>Thoughts, ideas, projects, pictures.</description>
	<lastBuildDate>Fri, 18 Sep 2009 19:09:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mint Tin Bike Light Continues</title>
		<link>http://projects.dimension-x.net/archives/249</link>
		<comments>http://projects.dimension-x.net/archives/249#comments</comments>
		<pubDate>Fri, 18 Sep 2009 19:09:39 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Power]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/?p=249</guid>
		<description><![CDATA[As the (normal) bicycling season draws to a close for my latitude, I&#8217;m nearing completion on my bicycle taillight project.  I sent out a few weeks ago for some professionally fabricated pcbs and as usual, they look great.  There were a few bugs that were entirely my fault, but nothing serious enough to [...]]]></description>
			<content:encoded><![CDATA[<p>As the (normal) bicycling season draws to a close for my latitude, I&#8217;m nearing completion on my bicycle taillight project.  I sent out a few weeks ago for some professionally fabricated pcbs and as usual, they look great.  There were a few bugs that were entirely my fault, but nothing serious enough to stop the pcb from doing its job.</p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/new_taillight_asm1_sm.jpg" alt="bicycle taillight pcb assembled" /></p>
<p>I added two &#8220;features&#8221; to the pcb before sending the design out, both of which were untested in the initial prototypes.  The main feature I wanted to have was &#8220;motion detection&#8221;, so the taillight would shut down should the bike become idle for a period of time.  No need to be wasting precious photons while the bike is leaned up against a tree or parked in a bike rack.  Motion detection is provided by a roller ball switch, intended to replace the old fashioned mercury switch.  A tiny gold plated ball rolls around in a plastic and metal cage, completing electrical circuits during its travel.  The light&#8217;s micro-controller recognizes these impulses and continues to let the light function.  As soon as the tilt switch stops changing state, resting as either a short or open circuit, the uC begins a count.  When that count totals some arbitrary number, the light returns to a standby mode with the SMPS in shutdown.  The uC then watches the tilt sensor for the state to change again and upon a change, resumes the previous operational mode.</p>
<p>The second feature is a battery minder circuit.  Using a 2.5v precision reference, the micro-controller samples the battery voltage using its on board ADC.  The idea is to detect a weak battery condition and operate the SMPS at a lower duty cycle, to make the most of the remaining power.  The assumption here is that some light is better than no light in terms of safety.  One of my pcb bugs lies in this circuit.  The Microchip 12F683 uC I selected for this project is an 8 pin device.  Its voltage reference pin is also multiplexed with the programming clock.  In my design, I had made the error of connecting the vref pin directly to the voltage reference output, which is biased with a 1k resistor to the Vdd rail (bat +).  So effectively, I have a very strong pull-up to 2.5v on that pin.  This made programming the PIC impossible as it could not detect clock transitions.  I will try salvaging these PCBs by changing to a 10k or 20k bias resistor on the reference, or cutting the trace leading to the Vref pin and soldering a 10k+ resistor in series, since we don&#8217;t need any current on that pin, just voltage.</p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/new_taillight_asm2_sm.jpg" alt="" /></p>
<p>Once I polish the code a bit more, I&#8217;ll be looking for a few folks to send a sample units to in exchange for reviews and feedback, down the road I would like to sell these either as a kit or a pre-assembled unit.</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=249&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/249/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fresh PCBs</title>
		<link>http://projects.dimension-x.net/archives/246</link>
		<comments>http://projects.dimension-x.net/archives/246#comments</comments>
		<pubDate>Wed, 16 Sep 2009 12:57:38 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Picture]]></category>
		<category><![CDATA[Power]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/?p=246</guid>
		<description><![CDATA[I just received these FedEX on Tuesday, fresh from China via Colorado.


The first stack of boards is the prototype taillight driver, sporting a tilt switch for motion detection.  The second board is a pretty similar design, with a bigger inductor and more compact layout.  The intention here is to run a trio of [...]]]></description>
			<content:encoded><![CDATA[<p>I just received these FedEX on Tuesday, fresh from China via Colorado.</p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/taillight_stack_sm.jpg" alt="taillight stack small" /></p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/headlight_stack_sm.jpg" alt="headlight stack small" /></p>
<p>The first stack of boards is the prototype taillight driver, sporting a tilt switch for motion detection.  The second board is a pretty similar design, with a bigger inductor and more compact layout.  The intention here is to run a trio of Lumiled&#8217;s Rebel leds at 0.5 to 1w each off 4AA batteries, for a compact self contained headlight.  More details on that idea later!</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=246&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/246/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Import Mouser Invoices into Excel</title>
		<link>http://projects.dimension-x.net/archives/242</link>
		<comments>http://projects.dimension-x.net/archives/242#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:22:52 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[mouser]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/?p=242</guid>
		<description><![CDATA[It would be nice if online parts vendors gave you csv or excel files of your order or invoice.  Mouser for example gives you the option of html files or pdf files.  Future lets you download a plain text file, but it&#8217;s next to useless, there&#8217;s no part numbers or anything!  I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>It would be nice if online parts vendors gave you csv or excel files of your order or invoice.  Mouser for example gives you the option of html files or pdf files.  Future lets you download a plain text file, but it&#8217;s next to useless, there&#8217;s no part numbers or anything!  I&#8217;ve created an excel spreadsheet that will convert a mouser html file into an excel format.  It&#8217;s not a magic single button click macro or anything fancy, but as long as mouser doesn&#8217;t mess with their page layout too much, it should work.</p>
<p>To start, log into &#8220;My Mouser&#8221; and go to your order history (not invoice history).  Click on an old order, and after it opens up, click on &#8220;print view&#8221;.  Print view strips out the form elements that just make things more complicated.  Now go to File, Save As and save the web page as a compiled page (MHT format).  Sorry firefox, I do love thee as my browser of choice, but this only works in IE as far as I know.</p>
<p>Now open your mht file in excel, you should see that excel properly parsed the order table into neat little rows and columns.  Now, open the excel file I&#8217;ve provided at the end of this post.  Right click on the worksheet tab and choose &#8220;Move or copy&#8230;&#8221;.  Copy the worksheet to the mouser workbook.  After you have the two worksheets together, rename the mouser worksheet into &#8220;Web&#8221;. You&#8217;re almost done!</p>
<p>At the top of my worksheet there are two cell fields, starting row number and starting cell reference.  The row number is where the parts table starts, it has been row 31 on all my orders so far.  Starting cell reference is the worksheet reference for the first cell containing parts data, this has been B31 for all my orders so far.  Be sure to include the sheet reference as well, so you want that to read &#8220;Web!B31&#8243;.  If your order history is like mine, you may not need to change either of these.  Once you get it right, you&#8217;ll see the rest of the spreadsheet fill in with your parts data.  Now you can save this as an excel file, or export it as CSV, or whatever.</p>
<p>Download the <a href="/files/mouser_convert.xls">excel spreadsheet</a></p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=242&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/242/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Painted Taillights</title>
		<link>http://projects.dimension-x.net/archives/236</link>
		<comments>http://projects.dimension-x.net/archives/236#comments</comments>
		<pubDate>Mon, 31 Aug 2009 13:48:22 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/?p=236</guid>
		<description><![CDATA[A little quick work with the rattle can this weekend &#8220;finished off&#8221; my revision 2 and revision 3 bike taillights.  Revision three is nearly the &#8216;final product&#8217; but still lacking some automatic control circuitry that I want to implement, and a few tweaks to the firmware to make it simpler to use.

I haven&#8217;t mastered [...]]]></description>
			<content:encoded><![CDATA[<p>A little quick work with the rattle can this weekend &#8220;finished off&#8221; my revision 2 and revision 3 bike taillights.  Revision three is nearly the &#8216;final product&#8217; but still lacking some automatic control circuitry that I want to implement, and a few tweaks to the firmware to make it simpler to use.</p>
<p><a href="http://projects.dimension-x.net/pictures/bikelite/two_taillights1_lg.jpg"><img src="http://projects.dimension-x.net/pictures/bikelite/two_taillights1_sm.jpg" alt="painted bicycle taillights" /></a></p>
<p>I haven&#8217;t mastered cutting a straight line with the dremel yet, once the cutting wheel bites into that thin steel it goes the direction it wants to go!</p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/empty_black_tin.JPG" alt="" /></p>
<p>I also painted the circuit boards, masking off each LED lens on the 2&#215;8 array so they&#8217;d stay nice and bright.  I also masked the smt button, the switcher and the contact springs on the battery clips.  I probably didn&#8217;t need to mask the switcher &#8211; I wasn&#8217;t sure what the paint would do it it, seeing as how it&#8217;s handling quite a bit of power at a high frequency.</p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/rev3_painted2_sm.jpg" alt="" /></p>
<p>I&#8217;ve also posted some new videos to my <a href="http://www.youtube.com/justdiy">youtube channel</a> &#8211; nothing too exciting.  There&#8217;s a naked revision 3 doing its thing and a side by side of 2 and 3 post paint job.</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=236&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/236/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mint Tin Bike Light 3</title>
		<link>http://projects.dimension-x.net/archives/230</link>
		<comments>http://projects.dimension-x.net/archives/230#comments</comments>
		<pubDate>Fri, 28 Aug 2009 02:48:00 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Power]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/?p=230</guid>
		<description><![CDATA[I completed PCB revision three of the mint tin bike light on Tuesday, but due to lack of batteries for the camera, no pictures were taken!  Luckily I&#8217;ve found and recharged a second set of batteries and the camera is once again operational.

Feature-wise, this revision adds nothing over the previous light, all the changes [...]]]></description>
			<content:encoded><![CDATA[<p>I completed PCB revision three of the mint tin bike light on Tuesday, but due to lack of batteries for the camera, no pictures were taken!  Luckily I&#8217;ve found and recharged a second set of batteries and the camera is once again operational.</p>
<p><a href="http://projects.dimension-x.net/pictures/bikelite/rev3_complete_lg.jpg"><img src="http://projects.dimension-x.net/pictures/bikelite/rev3_complete_sm.jpg" alt="" /></a></p>
<p>Feature-wise, this revision adds nothing over the previous light, all the changes are in board design.  Firstly, the artwork was redone using polygon pours instead of straight point to point wiring (traces).  The revision two switcher was running pretty warm, mostly because it didn&#8217;t have much copper to dump the heat into.  </p>
<p><img width=600 src="http://projects.dimension-x.net/pictures/bikelite/taillight_revd_brd_sm.png" alt="" /></p>
<p>The switcher&#8217;s ground pin is now tied directly into a very large copper pour, as are the Vin and Switch pins.  Using a burning finger temperature probe, the chip remained at or below T<sub>body</sub> even operating in constant on mode at full power.  Compared to the revision two board which saw the switcher running quite hot in constant on mode.</p>
<p><img src="http://projects.dimension-x.net/pictures/bikelite/rev3_nobatts_sm.jpg" alt="" /></p>
<p>The current sensing resistor was moved a lot closer to the feedback pin.  With a feedback voltage of 190mV, the tiny resistance of the trace was actually affecting output.  Shortening the trace to roughly 1mm has helped a great deal.</p>
<p>Finally, the layout for the battery clips was fixed, and generous polygon pours were drawn around the pads.  The spring clips are now soldered down very firmly and hold the batteries quite well.  I have yet to take this unit on the trail, so we&#8217;ll see if a rubber band is required or not to retain the batteries while bouncing along.</p>
<p>I plan on making one more prototype before sending the design off to Custom PCB or Gold Phoenix.  I think I&#8217;ll eliminate the battery clips on the chance excessive force could cause one to separate from the laminate and severely damage the pcb.  I also want to try a board that hosts both driver circuit and LEDs.  Additionally, I plan to add a tilt / vibration sensing switch (roller ball switch), so inactivity of the bike can be detected and the light switched off to save on batteries.</p>
<p>Thanks for reading!</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=230&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/230/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
