<?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 &#187; Power</title>
	<atom:link href="http://projects.dimension-x.net/archives/category/project/power/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>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<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 stop the [...]]]></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>3</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 Lumiled&#8217;s [...]]]></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>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>
		<item>
		<title>Mint Tin Bike Light</title>
		<link>http://projects.dimension-x.net/archives/211</link>
		<comments>http://projects.dimension-x.net/archives/211#comments</comments>
		<pubDate>Thu, 20 Aug 2009 13:29:05 +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/archives/211</guid>
		<description><![CDATA[I started this project a little more than a year ago, but shelved it because it wasn&#8217;t working right and I didn&#8217;t have the correct components. It was a seasonal project that would have little use over the winter, so I sort of forgot about it. This year I&#8217;ve been going on a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>I started this project a little more than a year ago, but shelved it because it wasn&#8217;t working right and I didn&#8217;t have the correct components.  It was a seasonal project that would have little use over the winter, so I sort of forgot about it.</p>
<p>This year I&#8217;ve been going on a lot of bike rides with friends, sometimes on public roadways, sometimes after dark.  My bike has a nine watt 500 some odd lumen headlight, which makes it easy to see where I&#8217;m going, and definitely makes me visible head on.  The tail of my bike however still has the stock reflector, plus the little reflector stripes in my shoes, not exactly high visibility.  Not wanting to pale in comparison to the headlight, the taillight is a three watt 140 lumen beast powered by three AA rechargeable batteries.</p>
<p>The light is based on a boost converter from National Semiconductor, the LM3410.  I&#8217;m using the 525kHz SOT-23 version, the LM3410Y.   Originally I had trouble with the chip self destructing, as discussed on the Linear1 <a href="http://forums.linear1.org/index.php/topic,1592.0.html">forums</a>.  It was hypothesized either the inductor was underrated or the diode was too slow.  Ordering parts for another project later in 2008, I bought some better inductors and diodes, which more closely resembled the specs of parts used in National&#8217;s <a href="http://led.national.com">web bench simulator</a>.  So, lacking sufficient rear light, I rekindled this project and have a &#8220;working prototype&#8221; that&#8217;s gone on two rides with me so far.</p>
<p><a href="http://projects.dimension-x.net/pictures/bikelite/taillight_revc_sch.png"><img width=600 src="http://projects.dimension-x.net/pictures/bikelite/taillight_revc_sch_sm.png" alt="bike taillight schematic small" /></a></p>
<p>The basic function is fairly simple.  The 3410 is a constant current boost (step-up) driver.  A small inductor is used to ramp up the input voltage, from 3.6vdc nominal to 15.4v at approximately 200mA.  The current is monitored by a one ohm resistor.  A pair of output capacitors help smooth out the ripple and an input capacitor helps the batteries cope with the high demand current (as high as 1.5a in some cases).  I&#8217;m using nickle metal hydride batteries, which have a rather low internal resistance &#8211; they&#8217;re designed for high demand applications and when fresh, barely sag at all under the load.</p>
<p><img width=600 src="http://projects.dimension-x.net/pictures/bikelite/taillight_revc_brd_sm.png" alt="bike taillight pcb layout small" /></p>
<p>Originally I had planned on carrying the batteries directly on the PCB, using some through-hole spring clip battery holders I found in the Sparkfun library.  However, AA batteries must be bigger in Colorado than they are in Michigan, because using Sparkfun&#8217;s layout gave me about a quarter inch gap between the spring and the battery.  The pads were also woefully undersized for physically mounting the clip and holding it securely enough to survive the stress of batter insertion and extraction.  So I dropped their layout and drew my own that looks exactly like it, but is based on measurements from a real AA battery.</p>
<p><img width=600 src="http://projects.dimension-x.net/pictures/bikelite/taillight_just_washed.jpg" alt="" /></p>
<p>Along for the ride is a Microchip PIC microcontroller, the 12F683.  It provides a bit of user interface for the light, creating different blink patterns as well as putting the light into a &#8220;stand by&#8221; mode, with the switcher shut down.  I&#8217;ve programmed several blinking patterns, and somewhat organized them into &#8220;modes&#8221; which I can select using the little button.</p>
<p><img width=600 src="http://projects.dimension-x.net/pictures/bikelite/taillight_mint_tin_open.jpg" alt="" /></p>
<p>A year ago, I didn&#8217;t have any sort of enclosure in mind.  The led array was assembled on a &#8216;standard&#8217; sized protoboard, so I probably thought about using a plastic or aluminum prototype enclosure.  However, this year, I was thinking it would be a nice fit for a large mint tin.  After printing out some mock-ups and messing around with battery configurations, I settled on using three batteries and having the electronics crammed into one side of the tin with the led array mounted in the lid of the tin.  This setup might have worked, except for the battery snafu.  I&#8217;m using a plastic three cell holder right now, and the extra thickness it adds is preventing the lid from completely closing.  It closes enough that the light is easily held shut by some big rubberbands, and it survived bouncing around under my seat for two short rides.  The next revision will have the battery situation resolved and I might have a better mounting solution by then too.</p>
<p><img width=600 src="http://projects.dimension-x.net/pictures/bikelite/taillight_mint_tin_closed.jpg" alt="" /></p>
<p>Overall I&#8217;m very pleased with the outcome of this project.  I have more parts on order to make a few more lights for my other bikes and friends, and I want to experiment with other array configurations and colors.  There are a two videos of the light on my <a href="http://www.youtube.com/justdiy">youtube channel</a>, but they&#8217;re nothing to get excited about.</p>
<p>Thanks for reading!</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=211&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/211/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Big Ugly SMPS</title>
		<link>http://projects.dimension-x.net/archives/99</link>
		<comments>http://projects.dimension-x.net/archives/99#comments</comments>
		<pubDate>Sat, 30 Dec 2006 07:22:35 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Power]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/99</guid>
		<description><![CDATA[Usually my designs strive to create tiny boards, and I often obsess for days fine-tuning, shaving a fractions of an inch at a time. However, this design goal was get it done, get it working, then make it pretty. I&#8217;ve been trying to build a switcher to provide a portable power source for PDA&#8217;s, cell-phones, [...]]]></description>
			<content:encoded><![CDATA[<p>Usually my designs strive to create tiny boards, and I often obsess for days fine-tuning, shaving a fractions of an inch at a time.  However, this design goal was get it done, get it working, then make it pretty.</p>
<p>I&#8217;ve been trying to build a switcher to provide a portable power source for PDA&#8217;s, cell-phones, etc.  Not just enough to trickle charge said gizmo for hours, but to charge it as fast as possible, like the cradle or wall plug would do.   This requires quite a bit of power.  Packaging portable power is proving very tricky.   There&#8217;s two main design goals I&#8217;m trying to meet.  My primary goal the past week has been recharging the power-source, and the easiest way to do this is parallel cells.   There&#8217;s oodles of charge management chips out there designed to handle charging of single lithium-ion cells (or parallel cells).  The complexity knob gets turned WAY up once you start talking series cells.  So rather than spin my wheels on this problem, I chose to move forward with goal number two.   My secondary design goal is to get the power out.   Putting the cells in series opens a wide door for easy to use switchmode converters and controllers.   I&#8217;ve got a bin full of samples from all the big names, and I&#8217;m close to settling on a chip.   First to prototype is the TPS5430 from Texas Instruments.   This chip claims to have a three-amp switch on board, and it&#8217;s pretty easy to use.   The switcher is internally compensated, eliminating an RC network often needed to compensate high frequency switchers.   The 5430 comes in fixed voltage models, but I went with adjustable this time.</p>
<p><a href="http://projects.dimension-x.net/pictures/smps/tps5403_cv_1_sch.png"><br />
<img src="/pictures/smps/tps5403_cv_1_sch_sm.png" alt="tps5430 schematic" /></a></p>
<p>Using TI&#8217;s SwiftDesigner to generate a reference design, I drew that up in Eagle.  Their reference design specified solid tantalum capacitors, which have properties that lend themselves well to switchmode applications.   However, having priced 100+ uF tantalum caps, I&#8217;ve decided to use aluminum electrolytic instead.   To offset some of the short-comings of aluminum caps, I have connected several in parallel.   The main disadvantage is ESR, and wiring caps in parallel cuts the ESR dramatically. </p>
<p><img src="/pictures/smps/tps5403_cv_1_brd.png" alt="tps5430 printed circuit board" /></p>
<p>Loosely following TI&#8217;s reference layout, I came up with this design.  I drew the design using the top layer, and ended up flipping it over when I assembled it.   It doesn&#8217;t really make a big difference, just as long I remember to solder everything in a mirror image of what&#8217;s shown on the screen.   For example, the screen shows the input stage on the right, but on the prototype, the input stage is on the left.   The reference design called for a single 100uF solid tantalum capacitor rated at 25 volts (I spec&#8217;d 14v as VinMax).   It also called for a 47uF tant as a bypass cap for the IC.   So instead, I went with two 100uF 25v electrolytic caps and one 47uF 16v cap.   I realize 16v is cutting it a bit close, but it&#8217;s all I could come up with, and this is only a first pass.  The output stage called for a single 220uF 10v tant, instead, I drew room for three 100uF caps but only installed two for now.   The chip needs a bootstrap cap to help it start-up with low input voltages.   The datasheet called for 10nF, so thats what I used.   The voltage divider is a 10k resistor coupled with a 10k pot.  A resistor and LED were added to show &#8220;power on&#8221;.   The three pin terminal at the bottom is tied to the enable line.   Enable should float for normal operation and be pulled low for shutdown.   I used a big &#8216;ol coil I had laying in the parts bin,  it was labeled 22uH but the actual inductor is not marked.   Looking at the size of the bobbin and heft of the wire, I&#8217;d say this inductor can handle some serious current.   A three amp schottky diode completes this bit of kit.</p>
<p><img src="/pictures/smps/tps5403_cv_1_sm.jpg" alt="" /></p>
<p>With one set of fingers crossed, I hooked the switcher up to a wimpy 200mA 12v wall-wart, used for charging a screwdriver.   To my relief the LED came on, nothing started smoking, and the ammeter read 10mA on the 10a scale (later I re-read 13.59mA on the 20mA scale).   The datasheet claims 3-4mA of quiescent current, so the switcher is taking 10mA at 12v to supply 20mA at 5v.  Although I haven&#8217;t done the algebra in the datasheet, comparing watts in to watts out puts the efficiency in the not-bad to pretty good range.  (100mw / 120mw = 83%).   Better still, when I connected my Dell PDA to the switcher, it was able to supply as much current as the Dell could ask for, without raising above ambient temperature.   With a low internal battery, cpu set to 400mhz, external wifi card inserted, backlight full-on, the Dell peaked at 1.1 amps.   I left it laying on the bench and watched a movie for a few hours.   Coming back, the dell was completely charged, and the output had dropped to about 170mA.</p>
<p><img src="/pictures/smps/tps5403_cv_1b_sm.jpg" alt="" /></p>
<p>My next goal will be to miniaturize this circuit as best I can, hopefully to fit it into an altoids tin which holds my lithium cells so very nicely.</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=99&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
