<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2413910027789468063</id><updated>2011-11-27T15:25:56.969-08:00</updated><title type='text'>Ray's Hobby Projects</title><subtitle type='html'>The blog has moved to a new site: http://rayshobby.net/blog/
&lt;br&gt;Please leave comments there.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-8294952086744165339</id><published>2011-08-03T20:58:00.000-07:00</published><updated>2011-10-09T07:43:32.873-07:00</updated><title type='text'>Blog moved to rayshobby.net</title><content type='html'>I have decided to move my blog to &lt;a href="http://rayshobby.net/blog/"&gt;http://rayshobby.net/blog/&lt;/a&gt;, which is based on WordPress. All previous posts and comments have been moved to the new site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-8294952086744165339?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/8294952086744165339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2011/08/blog-moved-to-rayshobbynet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8294952086744165339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8294952086744165339'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2011/08/blog-moved-to-rayshobbynet.html' title='Blog moved to &lt;a href=&quot;http://rayshobby.net/blog/&quot;&gt;rayshobby.net&lt;/a&gt;'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-2513077683651347836</id><published>2011-02-01T18:49:00.002-08:00</published><updated>2011-02-08T14:10:42.586-08:00</updated><title type='text'>A MOSFET based fix to the Makerbot extruder motor problem</title><content type='html'>As described in my previous blog about &lt;a href="http://rayshobby.blogspot.com/2011/01/first-time-experience-with-makerbot.html"&gt;the first-time experience with the Makerbot&lt;/a&gt;, we encountered a problem where the extruder motor would stop moving after a while. Apparently there have been many discussions about this issue, such as &lt;a href="http://printthat.wordpress.com/2011/01/23/makerbot-thing-o-matic-extruder-relay-fix/"&gt;here&lt;/a&gt;, &lt;a href="http://wiki.makerbot.com/forum/t-297960/time-to-get-serious-diagnosing-extruder-drive-issues"&gt;here&lt;/a&gt;, and &lt;a href="http://wiki.makerbot.com/forum/t-294403/thing-o-matic-extruder-controller-problem"&gt;here&lt;/a&gt;. It seems to be generally agreed that the problem originated from the suboptimal performance of the extruder motor, particularly that its resistance can drop to close to 0 during operation, causing an overload current that fails the H-bridge (A3949) on the extruder controller board. I tried connecting a small power resistor in series with the motor and it still failed after a while.&lt;br /&gt;&lt;br /&gt;The most commonly used solution seems to be &lt;a href="http://www.thingiverse.com/thing:5492"&gt;the relay fix by rwensley&lt;/a&gt;. This allows the extruder motor to be powered directly from the +12V supply line, avoiding the failure of A3949. But the downside of a relay fix is that PWM is disabled, thus the feed speed cannot be fully controlled. So I started thinking about a MOSFET based fix. The first version is to use a single MOSFET (IRF510) in the place of relay, and this allows the motor to only move forward (which often suffices). The schematic is shown below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TUja6-kmTEI/AAAAAAAAEVw/YL4l65Z2trU/s1600/single_mosfet.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 244px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TUja6-kmTEI/AAAAAAAAEVw/YL4l65Z2trU/s320/single_mosfet.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5568941646007389250" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The 1K resistor R1 is a pull-down resistor (1/4W is sufficient). Its value turns out to be important, because the on-board A3949 H-bridge seems to have a pull-up resistor of about 70K. Thus even when the H-bridge is inactive, the motor ports (1A and 1B) are pulled up to +12V, which must be pulled down to well below 2V in order for Q1 (IRF510) to remain off. The 1K value works perfectly (if the value is too large, it won't be able to pull the voltage low enough). The reason IRF510 works is because it allows a high current (20A pulsed) to pass through it, which is much larger than what the A3949 chip can handle.&lt;br /&gt;&lt;br /&gt;Using MOSFET, the main benefit is that the PWM works, hence the motor feed speed can be controlled and tuned in order to print out fine details of a 3D model. I was able to print several models with great details that I wasn't able to achieve when PWM had to be fixed to 255 all the time.&lt;br /&gt;&lt;br /&gt;After the single MOSFET solution worked, I started thinking how to make the motor move backward as well. It looked like the simplest way is to reproduce an H-bridge using 4 MOSFETs. The schematic is shown below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TUmqNgeGi9I/AAAAAAAAEWo/ZJ6QFIvvEdQ/s1600/hbridge_fix_update.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 216px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TUmqNgeGi9I/AAAAAAAAEWo/ZJ6QFIvvEdQ/s400/hbridge_fix_update.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5569169563251542994" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It's basically one of the standard H-bridge implementations. Q1 and Q4 are N-channel MOSFETs and should use IRF510 or any alternative(STP16NF06, RFP30N06LE etc.) that supports at least 10A drain-source current; Q2 and Q5 are similar but P-channel, and should use IRF9530 or any suitable alternative (STP12PF06, FQP27P06 etc.) &lt;br /&gt;&lt;br /&gt;Note that there is no special mechanism here to handle shoot-through, which is a known issue for H-bridge design. But in this case, even if shoot-through happens, it will be over a very short period of time, and the MOSFETs are able to handle a high impulse current if that happens. I've tested the circuit in continuously printing for several hours and have not encountered any problem. Also note that the kickback protection diodes are ignored as the MOSFETs already have built-in diodes. Here is the small protoboard with all components soldered on it:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TVG_VuMrXSI/AAAAAAAAEXA/XQfUi67UG6k/s1600/mosfet_hbridge_fix_pic.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 302px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TVG_VuMrXSI/AAAAAAAAEXA/XQfUi67UG6k/s320/mosfet_hbridge_fix_pic.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5571444593933376802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With this fix, the extruder motor can now move forward and backward, and PWM works in both directions! I've seen in several places that eventually the extruder motor should use a stepper as it provides much better control. But before that happens, I am sticking with my fix for now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-2513077683651347836?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/2513077683651347836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2011/02/mosfet-based-fix-to-makerbot-extruder.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/2513077683651347836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/2513077683651347836'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2011/02/mosfet-based-fix-to-makerbot-extruder.html' title='A MOSFET based fix to the Makerbot extruder motor problem'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_mhuuHR0dxnU/TUja6-kmTEI/AAAAAAAAEVw/YL4l65Z2trU/s72-c/single_mosfet.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-8784707740341200763</id><published>2011-01-21T17:06:00.000-08:00</published><updated>2011-01-21T17:14:51.739-08:00</updated><title type='text'>A little angel for the Makerbot</title><content type='html'>I tried to print out a scanned angel model. The details are a bit weak given the Makerbot's resolution. But it makes a nice decoration for the bot.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TTovQe1jIqI/AAAAAAAAEU0/050_e6BCdKs/s1600/printedangel3.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 310px; height: 400px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TTovQe1jIqI/AAAAAAAAEU0/050_e6BCdKs/s400/printedangel3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5564812249771745954" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Two additional photos:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mhuuHR0dxnU/TTovZz76nFI/AAAAAAAAEU8/omGysc5exgE/s1600/printedangel1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/TTovZz76nFI/AAAAAAAAEU8/omGysc5exgE/s320/printedangel1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5564812410054417490" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mhuuHR0dxnU/TTovenSAdQI/AAAAAAAAEVE/d6cClLFePqA/s1600/printedangel2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 218px;" src="http://3.bp.blogspot.com/_mhuuHR0dxnU/TTovenSAdQI/AAAAAAAAEVE/d6cClLFePqA/s320/printedangel2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5564812492556760322" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-8784707740341200763?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/8784707740341200763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2011/01/little-angel-for-makerbot.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8784707740341200763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8784707740341200763'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2011/01/little-angel-for-makerbot.html' title='A little angel for the Makerbot'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mhuuHR0dxnU/TTovQe1jIqI/AAAAAAAAEU0/050_e6BCdKs/s72-c/printedangel3.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-8162933569364312251</id><published>2011-01-20T23:01:00.000-08:00</published><updated>2011-01-21T05:58:10.566-08:00</updated><title type='text'>First-time experience with the MakerBot</title><content type='html'>At the MakerFaire two years ago, I saw Bre Pettis demonstrating the first generation of Makerbot. I got fascinated, and since then I've always hoped to find a reason to buy one. Fortunately, a few weeks ago one of our projects needed 3D printed objects, and we had a chance to place an order of the Cupcake CNC Ultimate kit before it went out of stock. I heard many orders were placed, and we would like to thank Ethan at Makerbot Industry for his great help in assisting us with the ordering. &lt;br /&gt;&lt;br /&gt;Assembling the Makerbot is an enjoyable task but requires skills and persistence. It took us two days to put everything together and get the device running. Here is a nice picture of the bot:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mhuuHR0dxnU/TTkzxz9kftI/AAAAAAAAEUU/ojvAm9sDWN8/s1600/makerbot_pic.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 299px;" src="http://3.bp.blogspot.com/_mhuuHR0dxnU/TTkzxz9kftI/AAAAAAAAEUU/ojvAm9sDWN8/s400/makerbot_pic.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5564535745448017618"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It really looks adorable. Now, that being said, keeping it to running stably turned out to be a quite challenging task, and there were several engineering issues we encountered. I am documenting these issues and the ways we solved them, in case they may help other Makerbot owners.&lt;br /&gt;&lt;br /&gt;The first issue we encountered was that the extruder motor was not operating properly. Sometimes it would run for a few seconds then stopped rotating. I was very puzzled by this at first, but after looking around for a while, I noticed that when it stops, the motor's resistance drops to 2.6 ohm, which is way below normal (should be around 45-50 ohm normally). I suspect that it may be due to the motor brush running across a specific point that corresponds to a low resistance state, and normally due to the inertia it would pass that point immediately. But in this case, it seems the h-bridge that is driving the motor is not capable at handling the instant large current, causing the motor to stop eventually. After searching online for a bit, I found &lt;a href="http://www.thingiverse.com/thing:5492"&gt;the extruder relay fix by rwensley&lt;/a&gt;, and we made a simpler version of the fix, assuming that the motor will only move forward and never backward. The fix involved an extra 5V relay, and 2 resistors that serve as voltage dividers to adapt the h-bridge's 12V to 5V for driving the relay. This has nicely fixed the extruder problem. I think a better option should be to use a more powerful h-bridge, or use a separate MOSFET driver. In any case, for now the quick and dirty fix works (see the picture below).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TTk3V1aVf1I/AAAAAAAAEUc/GffPi25rOWQ/s1600/relayfix.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TTk3V1aVf1I/AAAAAAAAEUc/GffPi25rOWQ/s320/relayfix.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5564539662847278930"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The second issue we encountered was that the heating unit of the automated build platform (abp) did not function -- it was simply not turning on the heating power. We thought of many potential causes of it, but none of them was correct. Eventually we noticed that the LED corresponding to the heating unit output never lit up, and this allowed us to quickly nail down the problem to the NIF5003 MOSFET. After testing, we found it's defective. This came as quite a surprise: a component on the extruder driver board is dead on arrival?! This was a hard find! I didn't have an NIF5003 replacement, but a quick look at the schematic reveals that this MOSFET is only used to drive a 12V relay, so it should be replaceable by a standard MOSFET like IRF510 (which I have tons of). Once we identified this, the fix was easy. The IRF510 is largely pin compatible with NIF5003 (even though the latter is a SMD component). After replacement as shown in the picture below, the heating unit worked like a charm. &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TTk6wCApXTI/AAAAAAAAEUk/fmuLfV8tz3U/s1600/nif5003fix.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 240px; height: 320px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TTk6wCApXTI/AAAAAAAAEUk/fmuLfV8tz3U/s320/nif5003fix.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5564543411440672050"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The last issue that got really annoying was the z-axis motor making a gigantic noise and skipping steps. We found that this was due to the overly tightened screws and one solution I found online seemed to suggest that one platform screw should be released and ignored just to remove the over-constrained tension force. I was doubtful about this fix, but to our great surprise, this actually worked! No more loud noise and no more z skipping!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mhuuHR0dxnU/TTk73SIp4TI/AAAAAAAAEUs/VvpE-zRoEy0/s1600/screwfix.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/TTk73SIp4TI/AAAAAAAAEUs/VvpE-zRoEy0/s320/screwfix.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5564544635539939634"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;At this point the device is basically functioning properly. There are still a couple of small issues we need to fix, such as the heated abp not being able to stick the objects onto the platform. But overall we are able to print some nice 3D objects and are enjoying playing with them. So much for our first-time experience with the Makerbot!&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/vJYu6NlYO9Y?hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/vJYu6NlYO9Y?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-8162933569364312251?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/8162933569364312251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2011/01/first-time-experience-with-makerbot.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8162933569364312251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8162933569364312251'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2011/01/first-time-experience-with-makerbot.html' title='First-time experience with the MakerBot'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mhuuHR0dxnU/TTkzxz9kftI/AAAAAAAAEUU/ojvAm9sDWN8/s72-c/makerbot_pic.jpg' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-4831143727239691565</id><published>2011-01-20T22:39:00.000-08:00</published><updated>2011-01-21T06:08:37.266-08:00</updated><title type='text'>Update on 'How to control Orbit 62035 valve'</title><content type='html'>It has been a while since I updated my blog. Things have been quite crazy the past few months, but now I am back alive writing more blogs sparingly.&lt;br /&gt;&lt;br /&gt;The first thing I want to share about is an update to my &lt;a href="http://rayshobby.blogspot.com/2010/08/how-to-control-orbit-62035-valve.html"&gt;previous post that talked about how to control the Orbit 62035 valve&lt;/a&gt;. There have been a couple of missing pieces there which I would like to clarify. First, I found that a MOSFET cannot reliably control that valve. I am not sure why, but it may have to do with the on-state drain to source resistance. But using a MPSA14 (NPN darlington) works, and it requires a base current limiting resistor, so I've updated the schematic as below. Second, I was reminded that two kickback protecting diodes are needed to protect the transistor from the inductive current from the solenoid, so those are also added. These are the two main changes. The circuit below has been tested to work. Feel feel to leave comments.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TTktacO3CWI/AAAAAAAAEUM/rhy5LJbHyb0/s1600/62035_controlbasic.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 640px; height: 322px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TTktacO3CWI/AAAAAAAAEUM/rhy5LJbHyb0/s1600/62035_controlbasic.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5564528746871327074" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Eagle schematic can be &lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcMGIyOTVmNzgtNzk0Zi00YWNjLTk2ODYtN2QyNzRiMDUxNjFl&amp;hl=en"&gt;downloaded from here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-4831143727239691565?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/4831143727239691565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2011/01/update-on-how-to-control-orbit-62035.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/4831143727239691565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/4831143727239691565'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2011/01/update-on-how-to-control-orbit-62035.html' title='Update on &apos;How to control Orbit 62035 valve&apos;'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_mhuuHR0dxnU/TTktacO3CWI/AAAAAAAAEUM/rhy5LJbHyb0/s72-c/62035_controlbasic.png' height='72' width='72'/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-6424874932262119460</id><published>2010-10-03T17:50:00.002-07:00</published><updated>2010-10-03T18:28:04.886-07:00</updated><title type='text'>Tesla's image on Serbian money, and Tesla coils</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mhuuHR0dxnU/TKklk1gTXcI/AAAAAAAAERE/ndVFZaD39_c/s1600/photo2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/TKklk1gTXcI/AAAAAAAAERE/ndVFZaD39_c/s320/photo2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5523987732714708418" /&gt;&lt;/a&gt;&lt;br /&gt;I was listening to the 'Ask an Engineer' show on Saturday night, and they mentioned that the $100 Serbian paper bill has Tesla's image on it. A friend of mine happened to be traveling in Serbia, and so very luckily, I requested one from him :) It seems this is equivalent to 1.29 US dollars.&lt;br /&gt;&lt;br /&gt;And speaking of that, I am excited to post this video I recorded at the Make Faire New York 2010. It's the ArcAttack guys performing in the middle of a bunch of Tesla coils. Totally awesome!&lt;br /&gt;&lt;br /&gt;&lt;object width="630" height="380"&gt;&lt;param name="movie" value="http://www.youtube.com/v/EuIHTFaA2FA?hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/EuIHTFaA2FA?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="630" height="380"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="630" height="380"&gt;&lt;param name="movie" value="http://www.youtube.com/v/hU2bYjTYE4s?hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/hU2bYjTYE4s?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="630" height="380"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="630" height="380"&gt;&lt;param name="movie" value="http://www.youtube.com/v/KrIZOCWbUGw?hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/KrIZOCWbUGw?hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="630" height="380"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-6424874932262119460?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/6424874932262119460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2010/10/teslas-image-on-serbian-money-and-tesla.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/6424874932262119460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/6424874932262119460'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2010/10/teslas-image-on-serbian-money-and-tesla.html' title='Tesla&apos;s image on Serbian money, and Tesla coils'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_mhuuHR0dxnU/TKklk1gTXcI/AAAAAAAAERE/ndVFZaD39_c/s72-c/photo2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-8893804510491757975</id><published>2010-08-29T19:54:00.000-07:00</published><updated>2010-08-29T20:34:19.244-07:00</updated><title type='text'>Mini Maker Faire and the WaterFire event at Providence, RI (08/28/2010)</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THse7oRqB2I/AAAAAAAAEPc/J_BNaIQT6to/s1600/IMG_1441.JPG"&gt;&lt;img style="float: left; margin:0px auto 10px; width: 280px; height: 210px; margin-left:5px; margin-right:5px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THse7oRqB2I/AAAAAAAAEPc/J_BNaIQT6to/s320/IMG_1441.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5511032578790524770" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THse8IroYHI/AAAAAAAAEPk/PLR9ZaRhfrc/s1600/IMG_1444.JPG"&gt;&lt;img style="float: left; margin:0px auto 10px; width: 280px; height: 210px; margin-left:5px; margin-right:5px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THse8IroYHI/AAAAAAAAEPk/PLR9ZaRhfrc/s320/IMG_1444.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5511032587489402994" /&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_mhuuHR0dxnU/THse86lsjqI/AAAAAAAAEPs/MfHK8OOA3n4/s1600/IMG_1448.JPG"&gt;&lt;img style="float: left; margin:0px auto 10px; width: 280px; height: 210px; margin-left:5px; margin-right:5px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/THse86lsjqI/AAAAAAAAEPs/MfHK8OOA3n4/s320/IMG_1448.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5511032600886283938" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THse9sOC9EI/AAAAAAAAEP0/szE6ft6J9lc/s1600/IMG_1459.JPG"&gt;&lt;img style="float: left; margin:0px auto 10px; width: 280px; height: 210px; margin-left:5px; margin-right:5px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THse9sOC9EI/AAAAAAAAEP0/szE6ft6J9lc/s320/IMG_1459.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5511032614208861250" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="float: center;"&gt;&lt;object width="560" height="446" class="BLOG_video_class" id="BLOG_video-9068c7d6d54cd72b" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v20.nonxt8.googlevideo.com/videoplayback?id%3D9068c7d6d54cd72b%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331259316%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D321CF9A4DB180EFB0AEA4FE6A3EF059541DFF2E4.4B45AC9A3B7411712B60F258DA89923B6DA33764%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D9068c7d6d54cd72b%26offsetms%3D5000%26itag%3Dw160%26sigh%3Do4EbMYGKx5_O_hSLqDtREXsRCBs&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="560" height="446" bgcolor="#FFFFFF"flashvars="flvurl=http://v20.nonxt8.googlevideo.com/videoplayback?id%3D9068c7d6d54cd72b%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331259316%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D321CF9A4DB180EFB0AEA4FE6A3EF059541DFF2E4.4B45AC9A3B7411712B60F258DA89923B6DA33764%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D9068c7d6d54cd72b%26offsetms%3D5000%26itag%3Dw160%26sigh%3Do4EbMYGKx5_O_hSLqDtREXsRCBs&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-8893804510491757975?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/8893804510491757975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2010/08/mini-maker-faire-and-waterfire-event-at.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8893804510491757975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/8893804510491757975'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2010/08/mini-maker-faire-and-waterfire-event-at.html' title='Mini Maker Faire and the WaterFire event at Providence, RI (08/28/2010)'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_mhuuHR0dxnU/THse7oRqB2I/AAAAAAAAEPc/J_BNaIQT6to/s72-c/IMG_1441.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-5177233060899265466</id><published>2010-08-21T14:11:00.000-07:00</published><updated>2010-08-23T12:26:22.375-07:00</updated><title type='text'>Meet the Arduino WaterValveShield</title><content type='html'>After finishing the previous &lt;a href="http://rayshobby.blogspot.com/2010/06/minty-water-valve-controller.html"&gt;minty water valve&lt;/a&gt; controller, I decided to make it an Arduino shield. This way, I can easily stack it onto other shields and extend its capability. I also added a few input buttons, and a DS1337 real-time clock, so that it can keep up with accurate time. Now the circuit has become much smaller, so I can't produce it with home-made PCB any more(sadly...). Instead, I ordered professionally made PCBs from Laen, and here you are, meet the Arduino WaterValveShield!&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;PCB board:&lt;/div&gt;&lt;a href="http://1.bp.blogspot.com/_mhuuHR0dxnU/THBEWhDMSeI/AAAAAAAAENo/GMvz1FbGN2A/s1600/IMG_1426.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/THBEWhDMSeI/AAAAAAAAENo/GMvz1FbGN2A/s320/IMG_1426.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5507977497893685730" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Components soldered:&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBEkM8DAOI/AAAAAAAAENw/iOE0mG1zrZo/s1600/IMG_1424.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBEkM8DAOI/AAAAAAAAENw/iOE0mG1zrZo/s320/IMG_1424.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5507977733013176546" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Close-up view:&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBEzpfBgXI/AAAAAAAAEN4/0Tdp_eLgmfs/s1600/IMG_1425.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 196px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBEzpfBgXI/AAAAAAAAEN4/0Tdp_eLgmfs/s320/IMG_1425.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5507977998374109554" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Connected to a serial LCD display&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBFNFdzs-I/AAAAAAAAEOA/o0-p6hgcUHg/s1600/IMG_1423.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBFNFdzs-I/AAAAAAAAEOA/o0-p6hgcUHg/s320/IMG_1423.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5507978435381933026" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The schematic:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBI2Y76IWI/AAAAAAAAEOY/wJvtPJps-EA/s1600/valveshield.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 263px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/THBI2Y76IWI/AAAAAAAAEOY/wJvtPJps-EA/s400/valveshield.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5507982443517976930" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can download &lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcZGYyNTAzZWQtNmYwNi00YjgwLThlZGUtYTEzZWFlNWFiN2Fm&amp;amp;hl=en"&gt;Eagle schematic and PCB design here&lt;/a&gt;. Feel free to use it and/or modify it, but be kind to give me some credit for it :)&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Parts list with Mouser/Digi-key links: &lt;a href="https://spreadsheets.google.com/ccc?key=0AlwCVYMz9QLcdDZqR2Q2YmtvY0diUHJISV83OG9rWkE&amp;amp;hl=en&amp;amp;authkey=CPu45ZYF"&gt;valve_shield_parts.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As for sketch code, refer to my previous posts for code to &lt;a href="http://rayshobby.blogspot.com/2010/06/minty-water-valve-controller.html"&gt;control the valve&lt;/a&gt; and &lt;a href="http://rayshobby.blogspot.com/2010/08/multiple-button-inputs-using-arduino.html"&gt;read input buttons&lt;/a&gt;. To interface with DS1337 RTC, I use this excellent &lt;a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1254440295"&gt;RTC library&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Next steps:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Try to make the circuit more power efficient, and run on batteries for a long time. This should be possible by &lt;a href="http://hackaday.com/2009/08/13/sleepy-arduino-saves-batteries/"&gt;periodically putting Arduino to sleep&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Modify the circuit to &lt;a href="http://rayshobby.blogspot.com/2010/08/how-to-control-orbit-62035-valve.html"&gt;control the Orbit 62035 valve&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Use &lt;a href="http://www.arduino.cc/playground/Main/RegulatedPositiveVoltageBooster"&gt;Arduino PWM voltaget booster&lt;/a&gt; to eliminate the need for the LT1303 chip.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-5177233060899265466?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/5177233060899265466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2010/08/meet-arduino-valveshield.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/5177233060899265466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/5177233060899265466'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2010/08/meet-arduino-valveshield.html' title='Meet the Arduino WaterValveShield'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mhuuHR0dxnU/THBEWhDMSeI/AAAAAAAAENo/GMvz1FbGN2A/s72-c/IMG_1426.JPG' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-7808691035900796958</id><published>2010-08-08T08:06:00.001-07:00</published><updated>2010-08-21T15:12:28.197-07:00</updated><title type='text'>Multiple button inputs using Arduino analog pin</title><content type='html'>At times I feel short of digital pins on the Arduino to handle multiple button inputs. Here is an easy way to use 1 analog pin to handle many input buttons. The way it works is very straightforward: use a resistor network as voltage dividers, and then let each button feed a different voltage to the analog pin. Thus by detecting the voltage we can tell which button has been pressed.&lt;br /&gt;&lt;br /&gt;Schematic:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TF7Kesn5gmI/AAAAAAAAENg/JeRCtP2oNNs/s1600/analog_button_input.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 269px; height: 320px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TF7Kesn5gmI/AAAAAAAAENg/JeRCtP2oNNs/s320/analog_button_input.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5503058423416717922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Download the corresponding &lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcZWUxYTEzNTgtZDNjMS00YzNiLWE4MWEtMGYxNTIzM2Q3NmM0&amp;hl=en&amp;authkey=CNyI0p8B"&gt;Arduino sketch code&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As a downside, it cannot handle simultaneous button presses. To do that, one could potentially use resistors at doubly increasing resistance (1K, 2K, 4K, 8K...). Hence by checking the detected voltage, we should be able to tell which buttons are pressed simultaneously.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-7808691035900796958?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/7808691035900796958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2010/08/multiple-button-inputs-using-arduino.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/7808691035900796958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/7808691035900796958'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2010/08/multiple-button-inputs-using-arduino.html' title='Multiple button inputs using Arduino analog pin'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_mhuuHR0dxnU/TF7Kesn5gmI/AAAAAAAAENg/JeRCtP2oNNs/s72-c/analog_button_input.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-1921609876383427752</id><published>2010-08-02T21:07:00.000-07:00</published><updated>2010-08-02T22:37:29.410-07:00</updated><title type='text'>How to control Orbit 62035 valve</title><content type='html'>As an update to my previous post, I took a look at the &lt;a href="http://www.amazon.com/Orbit-62035-Extra-Watering-System/dp/B0016HQOYC/"&gt;Orbit 62035 valve&lt;/a&gt;, which works with the older Orbit's yard watering system &lt;a href="http://www.amazon.com/Orbit-62032-Yard-Watering-System/dp/B000BH7KQO"&gt;62032&lt;/a&gt;. This valve is white colored, and has a standard 3-pin 3.5mm stereo audio plug.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TFeTb5dAjqI/AAAAAAAAEMY/tHzstpUqzBk/s1600/orbit62035.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand; width: 320px; height: 286px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TFeTb5dAjqI/AAAAAAAAEMY/tHzstpUqzBk/s320/orbit62035.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TFemxIQLdxI/AAAAAAAAENI/j6SuIdGWJO8/s1600/stereo_jack.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 90px; height: 160px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TFemxIQLdxI/AAAAAAAAENI/j6SuIdGWJO8/s320/stereo_jack.jpg" alt="" border="0" /&gt;&lt;/a&gt;To figure out how to control the valve, my initial guess is that the valve contains two coils, one opens the solenoid and one closes it. To verify this, I measured the resistance between the 3 pins of the plug. It turns out that pin 1 and 2 have a 4.5 ohm resistance, while pin 1 and 3 have a 0.9 ohm resistance. The 4.5 ohm resistance is reasonable, as it's roughly the same with the Orbit 91592 valve that I used previously. But the 0.9 ohm resistance is strange -- it clearly indicates a coil but the resistance seems too lower.&lt;br /&gt;&lt;br /&gt;Having no other reference, I went ahead to apply voltage on the pins to see what would happen. Interestingly, applying +24v on pin 1 and 2 successfully opens the valve, but doing the same on pin 1 and 3 fails to close the valve. I tried everything I could to figure out what went wrong, but nothing came up. Out of luck, I decided to buy the full kit (&lt;a href="http://www.amazon.com/Orbit-62032-Yard-Watering-System/dp/B000BH7KQO"&gt;62032&lt;/a&gt;) and reverse engineer the control unit a little bit. When I opened the control unit, I found that the entire circuit board is covered by a thick layer of water-resistant paste. This didn't look good. However, I did notice several big resistors, each reading about 3.9 ohm. The size of the resistors seems to suggest that they are rated at 2W.&lt;div&gt;&lt;br /&gt;Given this finding, my suspicion is that applying +24v directly across pin 1 and 3 discharges the voltage too quickly, thus cannot close the solenoid properly. In fact, given the 0.9 ohm resistance, a momentary current of 26 Amp is produced, which sounded quite scary. Adding a 3.9 ohm resistor is probably used to limit the current, slowing down the voltage discharge. This actually helps to build the electromagnetic field in the solenoid, allowing it to close properly. The idea turns out to work like a breeze: I connected a 3.9 ohm resistor between pin 3 and ground, and this time the valve nicely closed. At this point, I'm pretty sure I've figured out how it works.&lt;br /&gt;&lt;br /&gt;You might wonder what the differences are between this valve with the &lt;a href="http://theconsumerlink.com/OrbitIrrigation/detail/TCL+91592/100"&gt;Orbit 91592&lt;/a&gt; valve. Here are my two cents:&lt;br /&gt;&lt;br /&gt;Pros:&lt;br /&gt;- 3.5mm stereo audio jack makes it easy to connect (in comparison, the 91592 valve requires custom connector)&lt;br /&gt;- Pin 1 can remain connected to +24v, while grounding pin 2 or 3 is used to control the opening/closing of the valve. This simplifies the circuit design a lot. In fact, only two low-side drivers are needed to ground pin 2 or 3, which is much simper than h-bridge driver required by the 91592 valve.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Cons:&lt;br /&gt;- Seems to be of its own kind on the market (my impression is that this is a discontinued product). Most other latching solenoids available on the market are similar to the 91592 valve. Fortunately Walmart still carries this product currently, but I don't know how long it will last.&lt;br /&gt;&lt;br /&gt;Below is a sketched schematic when using this valve to replace the 91592 valve. As you can see, the circuit is much simpler than before. The driver can use either a darlington transistor (such as MPSA14), or an N-type MOSFET (such as IRF510).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TFeq5X5ZcgI/AAAAAAAAENQ/u04Or8GgHdE/s1600/control_circuit.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand; width: 480px; height: 360px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TFeq5X5ZcgI/AAAAAAAAENQ/u04Or8GgHdE/s320/control_circuit.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-1921609876383427752?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/1921609876383427752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2010/08/how-to-control-orbit-62035-valve.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/1921609876383427752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/1921609876383427752'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2010/08/how-to-control-orbit-62035-valve.html' title='How to control Orbit 62035 valve'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mhuuHR0dxnU/TFeTb5dAjqI/AAAAAAAAEMY/tHzstpUqzBk/s72-c/orbit62035.jpg' height='72' width='72'/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2413910027789468063.post-3650513518919402808</id><published>2010-06-14T21:19:00.001-07:00</published><updated>2010-06-16T17:53:34.063-07:00</updated><title type='text'>Minty Water Valve Controller</title><content type='html'>I've always been fascinated by minty projects -- circuits that fit neatly into a mint tin. There is an &lt;a href="http://blog.makezine.com/archive/altoids_and_tin_cases/"&gt;entire webpage on Make&lt;/a&gt; that documents such projects. For a long time I've been thinking of my own minty project: what can I build in a small mint tin?&lt;br /&gt;&lt;br /&gt;Recently an idea came up: I had a new lawn installed in my backyard a couple of weeks ago, and I needed to start watering the lawn regularly everyday. I was looking into some automatic watering option &lt;a href="http://www.orbitirrigation.com/products/Timers/01/04/01/2376/"&gt;like this one&lt;/a&gt;, but it provides limited functionality and does not suit my need. So I thought that perhaps I can build a water valve controller myself; and best of all, I can fit the circuits entirely in a mint tin. Voila, here comes my minty water valve controller!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TBcEGn6FInI/AAAAAAAAEB0/C4XxJCfWsn8/s1600/IMG_1261.JPG"&gt;&lt;img style="float: left; width: 240px; height: 180px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TBcEGn6FInI/AAAAAAAAEB0/C4XxJCfWsn8/s320/IMG_1261.JPG" alt="" id="BLOGGER_PHOTO_ID_5482855583185183346" border="0" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_mhuuHR0dxnU/TBcFH85G_0I/AAAAAAAAEB8/BCUzdL-38PI/s1600/IMG_1263.JPG"&gt;&lt;img style="float: left; width: 240px; height: 180px;" src="http://3.bp.blogspot.com/_mhuuHR0dxnU/TBcFH85G_0I/AAAAAAAAEB8/BCUzdL-38PI/s320/IMG_1263.JPG" alt="" id="BLOGGER_PHOTO_ID_5482856705509752642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before describing how to build it, let me highlight some features of it:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A single li-poly rechargeable battery drives the circuit and a 24v latch solenoid&lt;/li&gt;&lt;li&gt;An Arduino pro mini programs the valve control&lt;/li&gt;&lt;li&gt;An RF module enables wireless control&lt;/li&gt;&lt;li&gt;Above all, it fits neatly into a mint tin&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Here is a video demonstrating the controller in action:&lt;br /&gt;&lt;br /&gt;&lt;object width="630" height="380"&gt;&lt;br /&gt;&lt;param value="http://www.youtube.com/v/CbvPjfKFbiE&amp;amp;ap=%2526fmt%3D22" name="movie"&gt;&lt;param value="window" name="wmode"&gt;&lt;br /&gt;&lt;param value="true" name="allowFullScreen"&gt;&lt;embed width="630" height="380" wmode="window" allowfullscreen="true" type="application/x-shockwave-flash" src="http://www.youtube.com/v/CbvPjfKFbiE&amp;amp;ap=%2526fmt%3D22"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;(music by &lt;a href="http://www.robotandproud.com/"&gt;i am robot and proud&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;The Design&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.orbitirrigation.com/lib/img/product/58874N_600.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 150px; height: 150px;" src="http://www.orbitirrigation.com/lib/img/product/58874N_600.jpg" alt="" border="0" /&gt;&lt;/a&gt;For the water valve, I picked the &lt;a href="http://www.orbitirrigation.com/products/Timers/01/04/04/437/"&gt;Orbit yard watering valve&lt;/a&gt;. It's widely available in home improvement stores, and it is cheap. It has two pins: applying +24v opens the valve, and -24v closes the valve. It uses a latch solenoid, drawing power only when you open or close it. This makes it very power efficient.&lt;br /&gt;&lt;br /&gt;To use a single li-poly battery to drive the valve, I needed a voltage booster to raise the 3.6v provided by the battery to 24v momentarily before connecting to the valve solenoid. For this I chose an LT1303 DC/DC step-up converter, but any similar converter will do as well. Switching between applying +24v or -24v to the solenoid is achieved by using some MOSFETs. I can't use small BJT transistors because they won't handle the large impulse current through the solenoid (as high as 5A). Darlington transistor would work but I prefer MOSFETS for their power efficiency.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://arduino.cc/en/uploads/Main/ArduinoProMini.jpg"&gt;&lt;img style="float: right; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 100px; height: 48px;" src="http://arduino.cc/en/uploads/Main/ArduinoProMini.jpg" alt="" border="0" /&gt;&lt;/a&gt;To program the valve, I use an &lt;a href="http://www.arduino.cc/en/Guide/ArduinoProMini"&gt;Arduino pro mini&lt;/a&gt;. It's adorably tiny and perfect for a mint tin project. I initially wanted to use the 3.3v/8Mhz  version, as it can be directly powered by the 3.6v battery. But later I found that the wireless RF module only works with 5v anyways, so in the end I went with the 5v/16Mhz pro mini. This requires another voltage booster to raise the 3.6v battery to 5v. Fortunately I didn't have to build another voltage booster for it; instead, I reused an existing &lt;a href="http://www.ladyada.net/make/mintyboost/"&gt;minty boost&lt;/a&gt; which I soldered a while ago. I took off the tiny circuit board from it. Again, it fits cutely inside the space-limited mint tin.&lt;br /&gt;&lt;br /&gt;The wireless module I used is an RF link &lt;a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8946"&gt;434MHz transmitter&lt;/a&gt; and receiver from SparkFun. They are small and easy to use. In particular, the receiver is quite thin and can sit comfortably along one side of the mint tin.&lt;br /&gt;&lt;br /&gt;The schematic of the circuit is included below:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/TBeV5RerQQI/AAAAAAAAEDU/0qERD9DIb8U/s1600/ValveControlSch.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 500px; height: 250px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/TBeV5RerQQI/AAAAAAAAEDU/0qERD9DIb8U/s1600/ValveControlSch.png" alt="" id="BLOGGER_PHOTO_ID_5483015882524016898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;"&gt;&lt;br /&gt;Parts List&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;amp;name=LT1303CN8%23PBF-ND"&gt;LT1303&lt;/a&gt; DC/DC step-up converter&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?vendor=0&amp;amp;keywords=aop605&amp;amp;stock=1&amp;amp;rohs=1"&gt;AOP605&lt;/a&gt;  complementary MOSFETs (each contains 1 N-channel and 1 P-channel)&lt;/li&gt;&lt;li&gt;2N2222 BJT transistor&lt;/li&gt;&lt;li&gt;1N5817 and 1N4001 diodes&lt;/li&gt;&lt;li&gt;RF link 434MHz &lt;a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8946"&gt;transmitter&lt;/a&gt; and &lt;a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8950"&gt;receiver&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Li-poly rechargeable battery&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Various resistors, capacitors, and inductor as specified in the schematic.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;(note that the 2200uF capacitor C2 must be rated 25v or above)&lt;/li&gt;&lt;/ul&gt;The circuit directly draws power from the 3.6v battery. I use the Arduino pin 6 to control the shutdown pin of LT1303. This way, I turn on the voltage booster only when I need to open or close the valve. The voltage booster outputs roughly 24.4v.&lt;br /&gt;&lt;br /&gt;Arduino pin 8 and 9 are used to control opening or closing of the solenoid. Both pins are set to low at start. Next, setting pin 8 to high causes +24v to apply on the solenoid, opening the valve; on the contrary, setting pin 9 to high causes -24v to apply, closing the valve. Don't try to set both pins to high at the same time, as it may short the circuit and cause damage.&lt;br /&gt;&lt;br /&gt;Both the Arduino and the RF receiver are powered by the 5v output from minty boost. The data pin of the RF receiver is connected to Arduino pin 9 (which supports PWM).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;The PCB&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I soldered the initial prototype on a perf board. I made a mistake in connecting the MOSFET IC pins. This produced a spark and instantly fried the IC. Well, careful playing with 24v. After fixing the issue, the circuit worked like a charm.&lt;br /&gt;&lt;br /&gt;But the perf board looks a bit ugly and is too bulky for the mint tin, so I decided to design a custom PCB using Eagle CAD.  This is the first PCB I've ever designed and made, so I felt quite a bit excited. I used the toner transfer method to produce the PCB. Playing with etching chemicals was not very pleasant.  Here are two snapshots of the PCB:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_mhuuHR0dxnU/TBcVWqnVR0I/AAAAAAAAECU/lup5LsEwiQs/s1600/IMAG0068.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 200px; height: 160px;" src="http://1.bp.blogspot.com/_mhuuHR0dxnU/TBcVWqnVR0I/AAAAAAAAECU/lup5LsEwiQs/s200/IMAG0068.jpg" alt="" id="BLOGGER_PHOTO_ID_5482874550487435074" border="0" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TBcVWaMtQHI/AAAAAAAAECM/lRMWQxDlaRI/s1600/IMAG0067.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 200px; height: 154px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TBcVWaMtQHI/AAAAAAAAECM/lRMWQxDlaRI/s200/IMAG0067.jpg" alt="" id="BLOGGER_PHOTO_ID_5482874546080792690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-weight: bold;font-size:130%;"&gt;Assembly&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I picked some mint tin cans from Whole Foods. They have beautiful cover images. Assembling everything to the tin proved to be tricky than I thought: it's not that I can't fit everything, but because working with a bunch of wires and fixing buttons to the side of the can in such a small space made me feel like sowing embroidery. Tweezers are absolutely must-have tools. Also, I puts lots of electric tapes inside the tin and on various circuit parts to cover exposed area. You don't want to accidentally short wires and cause trouble. Finally, I used hot glue sparingly to fix parts together. Below are snapshots of the parts before and after they are assembled into the tin:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TBcaE9LzrqI/AAAAAAAAECg/feoL3NsnxNw/s1600/IMG_1240.JPG"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 200px; height: 150px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TBcaE9LzrqI/AAAAAAAAECg/feoL3NsnxNw/s200/IMG_1240.JPG" alt="" id="BLOGGER_PHOTO_ID_5482879743792754338" border="0" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_mhuuHR0dxnU/TBcadfhVsvI/AAAAAAAAECw/W0KJ_OLopU8/s1600/IMG_1249.JPG"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 200px; height: 150px;" src="http://4.bp.blogspot.com/_mhuuHR0dxnU/TBcadfhVsvI/AAAAAAAAECw/W0KJ_OLopU8/s200/IMG_1249.JPG" alt="" id="BLOGGER_PHOTO_ID_5482880165326729970" border="0" /&gt;&lt;/a&gt;Additionally, I added a power switch on the front and two buttons on the right to allow for manual control of the valve. Everything packs neatly!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is an annotated snapshot showing where each part is located:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_mhuuHR0dxnU/TBcdvYbna1I/AAAAAAAAEC4/ioNQaNWkZbU/s1600/IMG_1264.JPG"&gt;&lt;img style="float: center; display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 480px; height: 360px;" src="http://2.bp.blogspot.com/_mhuuHR0dxnU/TBcdvYbna1I/AAAAAAAAEC4/ioNQaNWkZbU/s1600/IMG_1264.JPG" alt="" id="BLOGGER_PHOTO_ID_5482883771196205906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;"&gt;Testing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As the tin is not water-proof, I use a zipper plastic bag together with a paper clamp to seal it. I built a simple RF transmitter circuit on a breadboard to test the wireless control. It did work, but the range is currently limited to about 5 meters. I attribute this to the low voltage (3.6v battery) I used to power the transmitter. I am sure using 12v will increase the range a lot.&lt;br /&gt;&lt;br /&gt;The whole circuit is reasonably power efficient. I've run it for two days and it is still working. The battery I use is a 900mAh rechargeable battery. A nice feature I would love to have in the future is to have it solar powered. This will completely eliminate the need to recharge the battery manually.&lt;br /&gt;&lt;br /&gt;There are currently plenty of pins left on the Arduino unused. This provides some space to possibly control more valves using the same Arduino. But  I am unsure if everything can still fit neatly in a mint tin anymore. Perhaps surface mounts are the way to go.&lt;br /&gt;&lt;br /&gt;I haven't programmed the Arduino to timer control the valve yet, but this should be straightforward. Some more advanced features can be included, such as installing a rain sensor to delay watering when it rains; or even better, use weather reports from online websites for intelligent watering! The wireless feature of the controller makes many options possible.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Code and Schematic Files&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;The Arduino code, Eagle CAD schematic/board files are attached below&lt;span style="font-weight: bold;"&gt;. Enjoy!&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcYTY0YjMxZTktMWFkYi00YTcxLWI3NWItZTFhN2RkMzNmYWZm&amp;amp;hl=en"&gt;Schematic&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcMmQ2ZjViZjYtYzEzMS00ZDIwLWEyYzgtNjM1YTAxYmNiNzZi&amp;amp;hl=en"&gt;PCB Board&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcNTdkMGExNmYtNzE0MS00NTE3LWEyYWYtNzBhNjI5MTkxZGQ0&amp;amp;hl=en"&gt;Arduino code for valve control and RF receiver&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://docs.google.com/leaf?id=0B1wCVYMz9QLcMzlkNjAxZjgtZDg4Zi00YTZkLThkM2QtYTllMGVhNDIyMjA1&amp;amp;hl=en"&gt;Arduino code for RF transmitter&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2413910027789468063-3650513518919402808?l=rayshobby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rayshobby.blogspot.com/feeds/3650513518919402808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rayshobby.blogspot.com/2010/06/minty-water-valve-controller.html#comment-form' title='27 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/3650513518919402808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2413910027789468063/posts/default/3650513518919402808'/><link rel='alternate' type='text/html' href='http://rayshobby.blogspot.com/2010/06/minty-water-valve-controller.html' title='Minty Water Valve Controller'/><author><name>Ray</name><uri>http://www.blogger.com/profile/18184292694197867602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://2.bp.blogspot.com/_mhuuHR0dxnU/TBazG7cas1I/AAAAAAAAD_U/WrW2WeGUtP4/S220/dragon_final1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mhuuHR0dxnU/TBcEGn6FInI/AAAAAAAAEB0/C4XxJCfWsn8/s72-c/IMG_1261.JPG' height='72' width='72'/><thr:total>27</thr:total></entry></feed>
