<?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>Tinkerlog &#187; misc</title>
	<atom:link href="http://tinkerlog.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://tinkerlog.com</link>
	<description>Alex' blog</description>
	<lastBuildDate>Fri, 21 Oct 2011 06:16:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Soldering is Easy</title>
		<link>http://tinkerlog.com/2011/04/11/soldering-is-easy/</link>
		<comments>http://tinkerlog.com/2011/04/11/soldering-is-easy/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 16:10:00 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=1404</guid>
		<description><![CDATA[
Soldering is easy. It realy is. If you are still in doubt, head over to mightyohm.com, where you can find a really nice comic on how to solder, done by my good friends Jeff Keyzer and Mitch Altman. 
Best of all, it&#8217;s totally open source!
Links

Soldering is easy as PDF

]]></description>
			<content:encoded><![CDATA[<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/04/soldering.png" alt="" title="soldering is easy" width="490" height="634" class="alignnone size-full wp-image-1405" /></p>
<p>Soldering is easy. It realy is. If you are still in doubt, head over to <a target="_blank" href="http://mightyohm.com/blog/2011/04/soldering-is-easy-comic-book/">mightyohm.com</a>, where you can find a really nice comic on how to solder, done by my good friends Jeff Keyzer and Mitch Altman. </p>
<p>Best of all, it&#8217;s totally open source!</p>
<h3>Links</h3>
<ul>
<li><a href="http://mightyohm.com/files/soldercomic/FullSolderComic_20110409.pdf">Soldering is easy</a> as PDF</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2011/04/11/soldering-is-easy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Xeyes in Processing</title>
		<link>http://tinkerlog.com/2011/02/25/xeyes-in-processing/</link>
		<comments>http://tinkerlog.com/2011/02/25/xeyes-in-processing/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 11:22:42 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=1346</guid>
		<description><![CDATA[
 
Do you remember, when you first started your X and stared at Xeyes? Aaaah, those were the days.
I wanted to have Xeyes in Processing to have it as an example of some lines of code that could be easily integrated into an interactive demo or the like. So I thought, ok, that&#8217;s quite easy, [...]]]></description>
			<content:encoded><![CDATA[<p><script src="/wordpress/static/processing-1.0.0.js"></script><br />
<canvas data-processing-sources="/wordpress/static/xeyes.pde"></canvas> </p>
<p>Do you remember, when you first started your <a target="_blank" href="http://en.wikipedia.org/wiki/X386">X</a> and stared at <a target="_blank" href="http://en.wikipedia.org/wiki/Xeyes">Xeyes</a>? Aaaah, those were the days.</p>
<p>I wanted to have Xeyes in Processing to have it as an example of some lines of code that could be easily integrated into an interactive demo or the like. So I thought, ok, that&#8217;s quite easy, just draw a bunch or ellipses and circles. Turns out that it is not <i>that</i> easy.</p>
<p><span id="more-1346"></span></p>
<p>First you draw an eye, then a straight line from the middle of the eye to the current position of the mouse. Then draw a tiny circle at the intersection of the line with the ellipse. But how to find that intersection?</p>
<p>The solution is to equate the formula of the straight line with the formula of the ellipse. </p>
<pre>
  y = mx + c  // straight line
  x<sup>2</sup>/a<sup>2</sup> + y<sup>2</sup>/b<sup>2</sup> = 1 // ellipse
</pre>
<p>Now insert one formula into the other, and solve it for x and y. If you still know how to do that, great! I failed in a few attempts. And felt lazy. <a href="http://mathworld.wolfram.com/Ellipse-LineIntersection.html">Wolfram Alpha</a> to the rescue! </p>
<p>Using the Wolfram Alpha it was easy to get the right solution. See <a target="_blank" href="http://www.wolframalpha.com/input/?i=x^2%2fa^2+%2b+y^2%2fb^2+%3d+1+AND+y+%3d+mx+%2b+c&#038;s=21">here</a> and <a target="_blank" href="http://www.wolframalpha.com/input/?i=+{x^2%2F4^2+%2B+y^2%2F9^2+%3D+1+AND+y+%3D+0.5x}">here</a> for examples. Now just calculate the values for the intersection coordinates and handle some special cases (e.g. prevent division by zero).</p>
<p>Another example how to use math to solve real world problems <img src='http://tinkerlog.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><em>Updated</em> 26.02.2011 to the much easier version as proposed by cjameshuff.</p>
<pre name="code" class="c">
/**
 * xeyes in Processing
 */

int eyeDist = 60;
int eyeWidth = 70;
int eyeHeight = 100;

void setup() {
  size(450, 450);
  smooth();
  background(120, 120, 120);
}

void draw() {
  int eyeX = width / 2 - eyeDist;
  int eyeY = height / 2;
  translate(eyeX, eyeY);
  drawEye(eyeWidth, eyeHeight, mouseX - eyeX, mouseY - eyeY);
  translate(2 * eyeDist, 0);
  drawEye(eyeWidth, eyeHeight, mouseX-(eyeX+2*eyeDist), mouseY - eyeY);
}

void drawEye(int eyeWidth, int eyeHeight, int mx, int my) {
 // draw the eye
 fill(220, 220, 220);
 strokeWeight(10);
 ellipse(0, 0, eyeWidth+35, eyeHeight+35);

 float x2 = mx/((float)eyeWidth/eyeHeight);
 float t = max(1, sqrt(x2*x2 + my*my)/(eyeHeight/2));
 float sx = mx/t, sy = my/t;

 // draw the pupil
 strokeWeight(1);
 fill(0);
 ellipse(sx, sy, 20, 20);
}
</pre>
<h3>Links</h3>
<ul>
<li><a target="_blank" href="http://en.wikipedia.org/wiki/Xeyes">Xeyes</a></li>
<li><a target="_blank" href="http://www.wolframalpha.com/input/?i=+{x^2%2F4^2+%2B+y^2%2F9^2+%3D+1+AND+y+%3D+0.5x}">Wolfram Alpha Ellipse Line intersection</a></li>
<li><a target="_blank" href="http://processingjs.org/">Processing.js</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2011/02/25/xeyes-in-processing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Neoprene sleeve for a Galaxy Tab</title>
		<link>http://tinkerlog.com/2011/02/07/neoprene-sleeve-for-a-galaxy-tab/</link>
		<comments>http://tinkerlog.com/2011/02/07/neoprene-sleeve-for-a-galaxy-tab/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 09:40:18 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[craft]]></category>
		<category><![CDATA[neoprene]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=1314</guid>
		<description><![CDATA[
Two years ago I posted about how to build a neoprene sleeve for a Macbook. This time it&#8217;s a sleeve for a Samsung Galaxy Tab. As last time, my mom did the work, I did the documenting  


We had some remains from the first project. This piece is a front part of a neoprene [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-.jpg" alt="" title="Sleeve for Galaxy Tab" width="480" height="320" class="alignnone size-full wp-image-1315" /></p>
<p>Two years ago I posted about how to build a <a href="http://tinkerlog.com/2008/02/03/neoprene-macbook-sleeve/">neoprene sleeve for a Macbook</a>. This time it&#8217;s a sleeve for a Samsung Galaxy Tab. As last time, my mom did the work, I did the documenting <img src='http://tinkerlog.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-1314"></span></p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06211.jpg" alt="" title="Find a piece of neoprene" width="480" height="320" class="alignnone size-full wp-image-1316" /></p>
<p>We had some remains from the first project. This piece is a front part of a neoprene wetsuit. Cut out the biggest piece you can get. Then use chalk to mark the size. The size is about 15cm x 51.5cm. You may want to cut it a bigger as you think you need it.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06251.jpg" alt="" title="Cut it" width="480" height="320" class="alignnone size-full wp-image-1317" /></p>
<p>Now cut it out.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06281.jpg" alt="" title="Check the size" width="480" height="320" class="alignnone size-full wp-image-1318" /></p>
<p>Check, if the size still fits.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06391.jpg" alt="" title="Sew it" width="480" height="320" class="alignnone size-full wp-image-1319" /></p>
<p>Now sew the envelope inside out. Then cut the overlapping neoprene as close to the seam as possible. Flip the envelope back to have the outside out.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06481.jpg" alt="" title="First test" width="480" height="320" class="alignnone size-full wp-image-1320" /></p>
<p>Check if the tab fits. If its too loose, you can always sew another time to make it a bit tighter. Mine got a tiny bit too tight at the first try, so you have press it a bit.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06501.jpg" alt="" title="Cut rings from the sleeve" width="480" height="320" class="alignnone size-full wp-image-1321" /></p>
<p>To keep the tongue in place, we decided to simply cut stripes from the sleeve.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06521.jpg" alt="" title="Looks pretty good" width="480" height="320" class="alignnone size-full wp-image-1322" /></p>
<p>Ok, that looks great. Now just trim the tongue a bit to make it fit into the strap.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-0673.jpg" alt="" title="Sleeve for Samsung Galaxy Tab" width="480" height="320" class="alignnone size-full wp-image-1324" /></p>
<p>Here&#8217;s the finished sleeve.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2011/02/s_img-06821.jpg" alt="" title="Sleeve for Samsung Galaxy Tab" width="480" height="321" class="alignnone size-full wp-image-1325" /></p>
<p>Ready to throw it into my bag. All together the project took only one hour. And for me the result is way cooler than any sleeve you can buy.</p>
<h3>Links</h3>
<ul>
<li><a href="http://www.flickr.com/photos/8123185@N02/sets/72157625995221534/">Flickr set with hires pictures</a></li>
<li><a href="http://tinkerlog.com/2008/02/03/neoprene-macbook-sleeve/">Neoprene Macbook sleeve</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2011/02/07/neoprene-sleeve-for-a-galaxy-tab/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fireflies in Elektor</title>
		<link>http://tinkerlog.com/2010/07/09/fireflies-in-elektor/</link>
		<comments>http://tinkerlog.com/2010/07/09/fireflies-in-elektor/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 08:49:55 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[fireflies]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=1129</guid>
		<description><![CDATA[
Yay, here is my second article, this time published in the famous Elektor magazine. It&#8217;s about the synchronizing fireflies.

I met Jerry at last years HAR2009 and we chatted about the fireflies and all things electronics. He works for the Elektor magazine in the Netherlands and asked me, if I would like to publish an article [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/07/DSC_0222.jpg" alt="" title="Elektor July/August" width="480" height="300" class="alignnone size-full wp-image-1131" /></p>
<p>Yay, here is my second article, this time published in the famous Elektor magazine. It&#8217;s about the <a href="http://tinkerlog.com/howto/synchronizing-firefly-how-to/">synchronizing fireflies</a>.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/07/DSC_0221.jpg" alt="" title="Elektor, page 100" width="480" height="300" class="alignnone size-full wp-image-1130" /></p>
<p>I met <a href="http://www.xor-gate.org/electronics">Jerry</a> at last years HAR2009 and we chatted about the fireflies and all things electronics. He works for the Elektor magazine in the Netherlands and asked me, if I would like to publish an article about the fireflies. And here it is. Thanks Jerry, for making this possible!</p>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2010/07/09/fireflies-in-elektor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Palo Altona built MakerBot CupCake CNC</title>
		<link>http://tinkerlog.com/2010/04/16/palo-altona-built-makerbot-cupcake-cnc/</link>
		<comments>http://tinkerlog.com/2010/04/16/palo-altona-built-makerbot-cupcake-cnc/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 08:20:32 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[cnc]]></category>
		<category><![CDATA[makerbot]]></category>
		<category><![CDATA[palo altona]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=1095</guid>
		<description><![CDATA[

Last weekend, a small group of tinkerers of Palo Altona built a MakerBot Cupcake CNC. Simone and Christian from Good School bought the MakerBot and asked Palo Altona for assistance with the assembly. Of course we were happy to help out.

We startet on Saturday and made good progress. We assembled the CNC and the extruder [...]]]></description>
			<content:encoded><![CDATA[<p><object width="490" height="368"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10852657&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=10852657&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="490" height="368"></embed></object></p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/04/DSC_0085-1.jpg" alt="" title="X-Y stage MakerBot" width="480" height="322" class="alignnone size-full wp-image-1096" /></p>
<p>Last weekend, a small group of tinkerers of <a href="http://paloaltona.posterous.com/">Palo Altona</a> built a MakerBot Cupcake CNC. Simone and Christian from <a target="_blank" href="http://www.good-school.de/">Good School</a> bought the MakerBot and asked Palo Altona for assistance with the assembly. Of course we were happy to help out.</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/04/DSC_0094-1.jpg" alt="" title="MakerBot assembly" width="480" height="322" class="alignnone size-full wp-image-1098" /></p>
<p>We startet on Saturday and made good progress. We assembled the CNC and the extruder and made the first tests with stinking hot ABS. Yeah! </p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/04/DSC_0006.jpg" alt="" title="MakerBot first print" width="480" height="322" class="alignnone size-full wp-image-1097" /></p>
<p>Next day was for learning firmware and tools. We switched X, Y and Z directions of the stepper motors a couple of times and managed to drive the heated nozzle into the platform at first try. *sigh*</p>
<p><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/04/DSC_0009.jpg" alt="" title="First attempt shotglass" width="480" height="301" class="alignnone size-full wp-image-1099" /></p>
<p>This is the very first print out. Although it is not tight enough to drink from it, I was really impressed by the result. What a cool machine! </p>
<p>Here are some more pictures:</p>
<ul>
<li><a target="_blank" href="http://www.flickr.com/photos/8123185@N02/sets/72157623825590568/">My Flickr set</a></li>
<li><a target="_blank" href="http://goodschool.posterous.com/">Good School</a> on posterous</li>
<li><a target="_blank" href="http://cgast.posterous.com/">Christian</a> on posterous</li>
<li><a target="_blank" href="http://paloaltona.posterous.com/tag/makerbot">Palo Altona</a> on posterous</li>
<li><a target="_blank" href="http://www.flickr.com/photos/29486873@N08/sets/72157623832621642/">Marcus</a> Flickr set</li>
</ul>
<p>Thanks Simone and Christian for inviting us, it was a pleasure!</p>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2010/04/16/palo-altona-built-makerbot-cupcake-cnc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pong Time</title>
		<link>http://tinkerlog.com/2010/03/20/pong-time/</link>
		<comments>http://tinkerlog.com/2010/03/20/pong-time/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 12:15:33 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[pong]]></category>
		<category><![CDATA[pong clock]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=1066</guid>
		<description><![CDATA[
This is a Pong clock for your Android phone. It tells the time by playing Pong against itself.
Sander Muller came up first with the idea to have a Pong Clock. A really great idea and a fantastic device. Then lately Lady Ada designed a wonderful hackable clock platform, called MONOCHRON. The first implementation on the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tinkerlog.com/wordpress/wp-content/uploads/2010/03/l_DSC_0049.jpg"><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2010/03/s_DSC_0049.jpg" alt="" title="PongTime on Motorola Milestone" width="480" height="321" class="alignnone size-full wp-image-1067" /></a></p>
<p>This is a Pong clock for your Android phone. It tells the time by playing Pong against itself.</p>
<p>Sander Muller came up first with the idea to have a <a target="_blank" href="http://www.sandermulder.com/pong_clock.html">Pong Clock</a>. A really great idea and a fantastic device. Then lately Lady Ada designed a wonderful hackable clock platform, called <a target="_blank" href="http://www.adafruit.com/index.php?cPath=39&#038;main_page=product_info&#038;products_id=204">MONOCHRON</a>. The first implementation on the platform was, of course, a Pong Clock.</p>
<p>As I received my new Android phone, a Motorola Milestone, I was looking for a simple project to get my hands dirty. So what could be more obvious than writing a Pong Clock.</p>
<p>If you want to take a look at the source, check out my <a target="_blank" href="http://github.com/tinkerlog/PongTime">PongTime</a> repo at github. The code is not pretty as can be, mostly because of optimizations to get rid of object creation and thus garbage collection.</p>
<p><object width="490" height="276"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10291532&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=10291532&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="490" height="276"></embed></object></p>
<p>If you are reading this with your Android phone, you can grab the <a href="market://search?q=pname:com.tinkerlog.android.pongtime">Pong Time app</a> directly in the Android Market. Otherwise search for &#8220;Pong Time&#8221;.</p>
<ul>
<li><a href="market://search?q=pname:com.tinkerlog.android.pongtime">Pong Time market://search?q=pname:com.tinkerlog.android.pongtime</a> in the Adroid Market</li>
<li><a target="_blank" href="http://github.com/tinkerlog/PongTime">PongTime repository</a> at github</li>
<li>Original <a target="_blank" href="http://www.sandermulder.com/pong_clock.html">Pong Clock</a> by Sander Muller</li>
<li><a target="_blank" href="http://www.adafruit.com/index.php?cPath=39&#038;main_page=product_info&#038;products_id=204">MONOCHRON</a> by Adafruit</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2010/03/20/pong-time/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>LiPoly charging with MCP73833</title>
		<link>http://tinkerlog.com/2009/09/19/lipoly-charging-with-mcp73833/</link>
		<comments>http://tinkerlog.com/2009/09/19/lipoly-charging-with-mcp73833/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 12:08:32 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[lipo]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=802</guid>
		<description><![CDATA[
For my latest projects I used a lot of single cell lipo batteries. They are really nice. High power density, low self-discharge, no memory effect and they can deliver quite an amount of current.
But lipo battery handling is a bit more complicated as with other rechargeable batteries. You have to take care of under voltage [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tinkerlog.com/wordpress/wp-content/uploads/2009/09/l_dsc_0100.jpg"><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2009/09/dsc_0100.jpg" alt="" title="Lipo charging with MCP73833" width="490" height="351" class="alignnone size-full wp-image-807" /></a></p>
<p>For my latest projects I used a lot of single cell lipo batteries. They are really nice. High power density, low self-discharge, no memory effect and they can deliver quite an amount of current.<br />
But lipo battery handling is a bit more complicated as with other rechargeable batteries. You have to take care of under voltage and over charging as that may destroy the battery.</p>
<p>I used the <a target="_blank" href="http://www.sparkfun.com/commerce/product_info.php?products_id=726">Sparkfun LiPoly charger</a>, based on <a target="_blank" href="http://pdfserv.maxim-ic.com/en/ds/MAX1551-MAX1555.pdf">MAX1555</a>, for some time and it works really well. The only thing I missed was a way to control the current. After some research I decided to try another chip, the <a target="_blank" href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en027785">Microchip MCP73833</a>.</p>
<p><span id="more-802"></span></p>
<h3>Features of the MCP73833</h3>
<p>Copied from the specs:</p>
<ul>
<li>High accuracy preset output voltage regulation</li>
<li>Regulated output voltage options</li>
<li>User-programmable charge current up to 1A</li>
<li>Two open-drain Status outputs</li>
<li>Preconditioning and end-of-charge ratio options</li>
<li>Under-voltage lockout</li>
<li>Power Good output</li>
</ul>
<p>What I like is the ability to adjust the charging current and the status outputs, which should get really useful if integrated into a greater application.</p>
<h3>The schematic</h3>
<p><a href="http://tinkerlog.com/wordpress/wp-content/uploads/2009/09/l_charger.png"><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2009/09/s_charger.png" alt="" title="s_charger" width="497" height="327" class="alignnone size-full wp-image-803" /></a></p>
<p>The schematic is mostly a copy of the reference design. It has three LEDs, one for <em>power good</em>, one for <em>charging</em> and one for <em>charging complete</em>. All pins of the chip itself are also available on two header rows. The idea was to enable easy integration on a breadboard. Actually I misplaced the rows, so they don&#8217;t fit (#fail).</p>
<p>The resistor R4 is used to control the charge current. I used a socket for that, so I am able to adapt the current for different batteries. The 10k resistor results in a charge current of 100 mA.</p>
<h3>The result</h3>
<p><a href="http://tinkerlog.com/wordpress/wp-content/uploads/2009/09/l_dsc_0072.jpg"><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2009/09/dsc_0072.jpg" alt="" title="MCP73833 breakout board" width="490" height="351" class="alignnone size-full wp-image-806" /></a></p>
<p>All components were 0805 SMD parts, despite the MCP73833, which is 10-MSOP. This was my first attempt to do something useful with SMD. I used my brand new hot air reflow station, which turns out to work as expected. Only I had to be very precise at dosing the solder paste. Applying too much had to be removed with solder wick later on. </p>
<h3>Issues</h3>
<p>The next version should include a jack for a wall adapter. The two header pins are not really useful to connect to a power supply. And of course the two rows of header pins should be aligned correctly to fit on a breadboard.</p>
<p>As a sidenote: as you see, the board has a mini-USB connector to be able to connect the charger to a notebook.<br />
<strong>I stronly recommend to use some kind of USB hub to test any newly build USB hardware.</strong><br />
I didn&#8217;t. And now I have a burned first prototype of my charger and only one USB port left on my MacBook. Although the OS warned me with &#8220;something is sucking too much, port gets shut down&#8221;, it wasn&#8217;t fast enough. So, you have been warned.</p>
<h3>Links</h3>
<ul>
<li><a target="_blank" href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en027785">Microchip MCP73833</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2009/09/19/lipoly-charging-with-mcp73833/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Resistor cheat sticker</title>
		<link>http://tinkerlog.com/2009/07/05/resistor-cheat-sticker/</link>
		<comments>http://tinkerlog.com/2009/07/05/resistor-cheat-sticker/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 08:56:45 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[sticker]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=764</guid>
		<description><![CDATA[
While we were at cheating, here is a new sticker for your notebook. It helps you to read and learn resistor values.
The first 10 direct messages to me will get one for free. And of course every next order at the Tinker Store will include one of these.  
]]></description>
			<content:encoded><![CDATA[<p><a href="http://tinkerlog.com/wordpress/wp-content/uploads/2009/07/l_dsc_0016.jpg"><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2009/07/s_dsc_0016.jpg" alt="" title="Resistor cheat sticker" width="480" height="344" class="alignnone size-full wp-image-766" /></a></p>
<p>While we were at <a target="_blank" href="http://tinkerlog.com/2009/06/18/microcontroller-cheat-sheet/">cheating</a>, here is a new sticker for your notebook. It helps you to read and learn resistor values.</p>
<p>The first 10 direct messages to <a target="_blank" href="http://twitter.com/9600baud">me</a> will get one for free. And of course every next order at the <a href="http://store.tinkerlog.com/store/">Tinker Store</a> will include one of these.  </p>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2009/07/05/resistor-cheat-sticker/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tinker Store is online</title>
		<link>http://tinkerlog.com/2008/11/28/tinker-store-is-online/</link>
		<comments>http://tinkerlog.com/2008/11/28/tinker-store-is-online/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 14:53:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[tinker store]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/?p=367</guid>
		<description><![CDATA[
The last couple of weeks I have been busy to put up a store for my kits and now I am glad to announce the one and only Tinker Store. The very first two kits are the Programmable LED and the Synchronizing Firefly. Along with the kits I did very detailed step-by-step instructions on how [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://store.tinkerlog.com/store/" target="_blank"><img src="http://tinkerlog.com/wordpress/wp-content/uploads/2008/11/shop.jpg" alt="" title="Tinker Store" width="480" height="405" class="alignnone size-full wp-image-368" /></a></p>
<p>The last couple of weeks I have been busy to put up a store for my kits and now I am glad to announce the one and only <a href="http://store.tinkerlog.com/store/" target="_blank">Tinker Store</a>. The very first two kits are the <a href="http://store.tinkerlog.com/store/index.php?main_page=product_info&#038;cPath=1&#038;products_id=4&#038;language=en">Programmable LED</a> and the <a href="http://store.tinkerlog.com/store/index.php?main_page=product_info&#038;cPath=2&#038;products_id=2">Synchronizing Firefly</a>. Along with the kits I did very detailed step-by-step instructions on how to assemble and solder them. Check them out on the <a href="http://tinkerlog.com/howto/">HowTo</a> page.</p>
<p>If you encounter any problems with the shop, then just drop me an email and I will fix it as soon as possible. </p>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2008/11/28/tinker-store-is-online/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Talking twitter</title>
		<link>http://tinkerlog.com/2008/06/29/talking-twitter/</link>
		<comments>http://tinkerlog.com/2008/06/29/talking-twitter/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 13:38:24 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[macbook]]></category>
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://tinkerlog.com/2008/06/29/talking-twitter/</guid>
		<description><![CDATA[This is for Mac OS X only, sorry folks.
I saw the funny command line interface to speech at Nerdlogger. Try this to play some tunes:

say -v Cellos "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo"

If you are [...]]]></description>
			<content:encoded><![CDATA[<p>This is for Mac OS X only, sorry folks.</p>
<p>I saw the funny command line interface to speech at <a href="http://www.nerdlogger.com/2008/06/some-cli-tunes.html" title="Nerdlogger: some cli tunes" target="_blank">Nerdlogger</a>. Try this to play some tunes:</p>
<p><code><br />
say -v Cellos "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo"<br />
</code></p>
<p>If you are brave enough, copy&#8217;n'paste the snippet below, replace USER and PASSWORD with your twitter account and it will read out loud the latest tweets of your friends.</p>
<p><code><br />
curl -s -u user:password http://twitter.com/statuses/friends_timeline.xml | grep "&lt;text&gt;\|&lt;screen_name&gt;" | sed -e 's/&amp;#228;/Ã¤/' -e 's/&amp;#246;/Ã¶/' -e 's/&amp;#252;/Ã¼/' -e 's/&lt;text&gt;\(.*\)&lt;\/text&gt;/\1 from /' -e 's/&lt;screen_name&gt;\(.*\)&lt;\/screen_name&gt;/\1. . . . /' | say<br />
</code></p>
<p>Still a one liner <img src='http://tinkerlog.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tinkerlog.com/2008/06/29/talking-twitter/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

