<?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>adafruit industries blog &#187; duelnature</title>
	<atom:link href="http://www.adafruit.com/blog/category/duelnature/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adafruit.com/blog</link>
	<description>electronics, open source hardware, hacking and more...</description>
	<lastBuildDate>Sat, 18 May 2013 17:00:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>ValenThrowieM + TempM</title>
		<link>http://www.adafruit.com/blog/2008/02/03/valenthrowiem-tempm/</link>
		<comments>http://www.adafruit.com/blog/2008/02/03/valenthrowiem-tempm/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 01:57:59 +0000</pubDate>
		<dc:creator>ladyada</dc:creator>
				<category><![CDATA[arduino]]></category>
		<category><![CDATA[boarduino]]></category>
		<category><![CDATA[duelnature]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.ladyada.net/rant/2008/02/valenthrowiem-tempm/</guid>
		<description><![CDATA[So I got my new boarduino design in (with built-in USB!) and I have to test it so why not put it thru its paces with a BlinkM? Why not indeed! Wiring it up to a boarduino is not as easy as simply plug&#038;play as with an Arduino, so you&#8217;ll need a few wires. Still [...]]]></description>
				<content:encoded><![CDATA[<p>So I got my new boarduino design in (with built-in USB!) and I have to test it so why not put it thru its paces with a <a href="http://blinkm.thingm.com/">BlinkM</a>? Why not <em>indeed</em>!</p>
<p>Wiring it up to a boarduino is not as easy as simply plug&#038;play as with an Arduino, so you&#8217;ll need a few wires. Still its very straightforward!</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?2240092729"></script><noscript><a href="http://www.flickr.com/photos/ladyada/2240092729/"> <img src="http://static.flickr.com/2048/2240092729_1397b79fbf.jpg" /> </a> </noscript></p>
<p>when you power it up it will immediately start doing its thing which is fading thru some nice colors</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?2240884386"></script><noscript><a href="http://www.flickr.com/photos/ladyada/2240884386/"> <img src="http://static.flickr.com/2119/2240884386_6100d26048.jpg" /> </a> </noscript></p>
<p>But the real fun is programming it&#8230;upload the Arduino Communicator sketch and then run the blink Sequencer on your computer. Connect and then select which colors to display</p>
<p><a href='http://www.adafruit.com/adablog/wp-content/uploads/2008/02/seqbeat.jpg' title='seqbeat.jpg'><img src='http://www.adafruit.com/adablog/wp-content/uploads/2008/02/seqbeat_t.jpg' alt='seqbeat_t.jpg' /></a></p>
<p>2 years ago when I worked on Duel Nature, I made a table of data that approximates a heartbeat. I couldnt quite duplicate it directly because the loop time is 3 seconds not 1 second, but I didn&#8217;t do too bad. Here it is in &#8216;autoplay&#8217; mode with the heartbeat script. Sadly it doesnt seem like you can save the script to share it.</p>
<p><center>																					<script type="text/javascript" src="http://blip.tv/scripts/pokkariPlayer.js?ver=2007111701"></script>						<script type="text/javascript" src="http://blip.tv/syndication/write_player?skin=js&#038;posts_id=650897&#038;source=3&#038;autoplay=false&#038;file_type=flv&#038;player_width=320&#038;player_height=240"></script>
<div id="blip_movie_content_650897">						<a rel="enclosure" href="http://blip.tv/file/get/Ladyada-heatbeatM949.flv" onclick="play_blip_movie_650897(); return false;"><img title="Click to play" alt="Video thumbnail. Click to play." src="http://blip.tv/file/get/Ladyada-heatbeatM949.flv.jpg" border="0" title="Click To Play" /></a>						<br />						<a rel="enclosure" href="http://blip.tv/file/get/Ladyada-heatbeatM949.flv" onclick="play_blip_movie_650897(); return false;">Click To Play</a>						</div>
<p>						<script type="text/javascript">						        play_blip_movie_650897();							</script>															</center></p>
<p>Add a coin cell, and you&#8217;ve got a ValenThrowieM (Valentine LED Throwie M)!</p>
<p><center>																					<script type="text/javascript" src="http://blip.tv/scripts/pokkariPlayer.js?ver=2007111701"></script>						<script type="text/javascript" src="http://blip.tv/syndication/write_player?skin=js&#038;posts_id=650900&#038;source=3&#038;autoplay=false&#038;file_type=flv&#038;player_width=320&#038;player_height=240"></script>
<div id="blip_movie_content_650900">						<a rel="enclosure" href="http://blip.tv/file/get/Ladyada-valenthrowieM453.flv" onclick="play_blip_movie_650900(); return false;"><img title="Click to play" alt="Video thumbnail. Click to play." src="http://blip.tv/file/get/Ladyada-valenthrowieM453.flv.jpg" border="0" title="Click To Play" /></a>						<br />						<a rel="enclosure" href="http://blip.tv/file/get/Ladyada-valenthrowieM453.flv" onclick="play_blip_movie_650900(); return false;">Click To Play</a>						</div>
<p>						<script type="text/javascript">						        play_blip_movie_650900();							</script>															</center></p>
<p>Next I wanted to experiment with talking to the BlinkM over i2c. I decided to make a little temperature display. When its cold, the LED turns blue, when its hot it turns red. For the sensor I simply used a LM34 which is super simple: just give it 5V and ground and the middle pin will be at +10mV/degF. So 68 degrees is 680mV.</p>
<p>I used a little heatshrink to protect the wires:</p>
<p><a href="http://www.flickr.com/photos/ladyada/2240093647"><img src="http://static.flickr.com/2026/2240093647_0c51d52d92.jpg" width=500 ></a></p>
<p>Then wrote a sketch to tell the LED to change color, here it is at room temperature<br />
<noscript>Il <a href="http://www.nycryobank.com/come-vincere-su-internet-poker.html">http://www.nycryobank.com/come-vincere-su-internet-poker.html</a> è un gioco di carte.</noscript>
<p> (65deg, its cold in here)</p>
<p><a href="http://www.flickr.com/photos/ladyada/2240886032"><img src="http://static.flickr.com/2124/2240886032_5d1412cf8a.jpg" width=500></a></p>
<p>Squeezing the sensor brings up the temp a bit, to  maybe 85 degrees, a little pinker<br />
<a href="http://www.flickr.com/photos/ladyada/2240092547"><img src="http://static.flickr.com/2335/2240092547_564660d4e8.jpg" width=500></a></p>
<p>Then some icey water (its in a plastic bag to protect both the sensor and my drink!)</p>
<p><a href="http://www.flickr.com/photos/ladyada/2240093493"><img src="http://static.flickr.com/2137/2240093493_5ab3b6df98.jpg" width=500></a></p>
<p>and some hot tea</p>
<p><a href="http://www.flickr.com/photos/ladyada/2240093021"><img src="http://static.flickr.com/2308/2240093021_fe18c6d5a1.jpg" width=500></a></p>
<p><strong>The final analysis? </strong><br />
The BlinkM worked well and is a nifty little thing, the Sequencer software could be improved (can&#8217;t save scripts, cant adjust loopspeed, clicking on a &#8216;frame&#8217; doesnt display the RGB value&#8230;) but its impressive that theres any software at all. It seems like the real control comes from sending it direct i2c commands, so one would have to write a custom Arduino sketch to make it do what you want. (Or, probably better yet, a python script that talks to the Arduino communicator since at least then you&#8217;re not uploading sketches) While its not the right thing for people who want to make 100-LED blinky projects (since its ~$12 each), its probably a good accessory for someone with an Arduino who just needs a few lights for a  standalone project. I could see them being popular as integrated into wearables/fashion technology. They&#8217;re hella bright too!</p>
<p>ps. I&#8217;d like to see someone show how to control them directly using a motherboard i2c port such as the ones that have temp (and sometimes IR) sensors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=151</wfw:commentRss>
		<slash:comments>8</slash:comments>
<enclosure url="http://blip.tv/file/get/Ladyada-valenthrowieM453.flv" length="408848" type="video/x-flv" />
		</item>
		<item>
		<title>Reverse engineering the Mac &#8216;breathing&#8217; LED</title>
		<link>http://www.adafruit.com/blog/2006/08/11/reverse-engineering-the-mac-breathing-led/</link>
		<comments>http://www.adafruit.com/blog/2006/08/11/reverse-engineering-the-mac-breathing-led/#comments</comments>
		<pubDate>Fri, 11 Aug 2006 17:52:27 +0000</pubDate>
		<dc:creator>ladyada</dc:creator>
				<category><![CDATA[duelnature]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://www.ladyada.net/rant/?p=31</guid>
		<description><![CDATA[For the Duel nature sculpure, I wanted to have a &#8216;breathing&#8217; pattern where all the LEDs vary in brightness in a natural/organic way. A good example is the &#8216;sleep indicator&#8217; LED on recent Macs/Powerbooks. (There&#8217;s even a patent!) The problem is that, while the patent claims its a simple sinusoid (see the patent for the [...]]]></description>
				<content:encoded><![CDATA[<p>For the Duel nature sculpure, I wanted to have a &#8216;breathing&#8217; pattern where all the LEDs vary in brightness in a natural/organic way. A good example is the &#8216;sleep indicator&#8217; LED on recent Macs/Powerbooks. (<a href="http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&#038;Sect2=HITOFF&#038;d=PALL&#038;p=1&#038;u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&#038;r=1&#038;f=G&#038;l=50&#038;s1=6658577.PN.&#038;OS=PN/6658577&#038;RS=PN/6658577">There&#8217;s even a patent</a>!) The problem is that, while the patent claims its a simple sinusoid (see the patent for the image), programming in a sinusoid doesn&#8217;t look nearly as good. So I decided to get the real waveform with a kludgy reverse engineering attempt:</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?212611715"></script><noscript><a href="http://www.flickr.com/photos/ladyada/212611715/"> <img src="http://static.flickr.com/61/212611715_245b3bf8b1.jpg" /> </a> </noscript>I used a MIDIsense instead of a simple voltage divider because I want to extract the absolute LED brightness pattern and a photocell voltage divider acts &#8216;inversely&#8217; (well, 1/R) instead of linearly (ie, just R). (The MIDIsense has an opamp to linearize the resistive sensor output)</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?212611654"></script><noscript><a href="http://www.flickr.com/photos/ladyada/212611654/"> <img src="http://static.flickr.com/62/212611654_4b3106a50b.jpg" /> </a> </noscript></p>
<p>There it is! There is a bit of &#8216;noise&#8217; on the peaks because I&#8217;m picking up some of the PWM artifacts through the diffused white plastic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=592</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Duel Nature: Time to bake the PCBs! (How to make PCB reflow stencils)</title>
		<link>http://www.adafruit.com/blog/2006/08/01/duel-nature-time-to-bake-the-pcbs/</link>
		<comments>http://www.adafruit.com/blog/2006/08/01/duel-nature-time-to-bake-the-pcbs/#comments</comments>
		<pubDate>Tue, 01 Aug 2006 15:57:35 +0000</pubDate>
		<dc:creator>ladyada</dc:creator>
				<category><![CDATA[duelnature]]></category>
		<category><![CDATA[EE]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.ladyada.net/rant/?p=29</guid>
		<description><![CDATA[OK so boards came in, and there&#8217;s 80-100 to be assembled. They&#8217;re pretty simple boards: 1 8-pin micro, 3 resistors, 1 capacitor and 2 4-pin header plugs. Since it takes a long time to solder, I designed the board for mass-manufacture: surface mount parts! Eventually everyone needs to make a lot of PCBs (at home), [...]]]></description>
				<content:encoded><![CDATA[<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201021274"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201021274/"> <img src="http://static.flickr.com/72/201021274_dbe1bf1c12.jpg" /> </a> </noscript></p>
<p>OK so boards came in, and there&#8217;s 80-100 to be assembled. They&#8217;re pretty simple boards: 1 8-pin micro, 3 resistors, 1 capacitor and 2 4-pin header plugs. Since it takes a long time to solder, I designed the board for mass-manufacture: surface mount parts!</p>
<p>Eventually everyone needs to make a lot of PCBs (at home), the best way to do this is to use solder paste and a reflow oven. Since EYEBEAM has a laser cutter I can use it to make a screening stencil and a registration frame. (You can also buy stencils from your 4pcb.com and probably a bunch of other PCB manufacturers) Then it&#8217;s super fast to make tons of PCBs. Just silkscreen on solder paste (available at digikey), place the components, and bake!</p>
<p>***</p>
<p><span id="more-591"></span>First, cut out a  frame from 1/16&#8243; acrylic the same size as the PCB, this will be the registration frame</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201022618"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201022618/"> <img src="http://static.flickr.com/70/201022618_2dcbf07e01.jpg" /> </a> </noscript></p>
<p>The PCB should be a perfect fit</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201022473"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201022473/"> <img src="http://static.flickr.com/71/201022473_173f4c0813.jpg" /> </a> </noscript><br />
Extract the stencil info. I took the stop layer, viewed it in GC-prevue, printed it to a file (ie. PostScript), then opened it in CorelDraw which is set up to print directly to the lasercutter</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201023132"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201023132/"> <img src="http://static.flickr.com/67/201023132_afb35f3cb3.jpg" /> </a> </noscript></p>
<p>Cut it out in 2-3 mil Mylar</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201021392"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201021392/"> <img src="http://static.flickr.com/78/201021392_bfa8de0142.jpg" /> </a> </noscript></p>
<p>Register (align) the screen on the frame and tape it down</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201022333"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201022333/"> <img src="http://static.flickr.com/60/201022333_a2420428f1.jpg" /> </a> </noscript></p>
<p>Now&#8230;use a biz card or something similar as a squeegee. Lay down a bead of tasty solder paste&#8230;<br />
[gv  data="http://video.google.com/googleplayer.swf?docId=6066848196815777770&#038;hl=en"][/gv]</p>
<p>OK now you have a board with solder paste dots</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201020933"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201020933/"> <img src="http://static.flickr.com/74/201020933_470ad22261.jpg" /> </a> </noscript></p>
<p>Place the components with your tweezers<br />
[gv  data="http://video.google.com/googleplayer.swf?docId=-1907760876743714269&#038;hl=en"][/gv]</p>
<p>Repeat 80 times, and put them into the toaster. 200 degrees for 4 minutes, 300 for 2 and then 450 until the paste melts, then 300 for a minute to cooldown.</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201020786"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201020786/"> <img src="http://static.flickr.com/75/201020786_b1c54c4cd4.jpg" /> </a> </noscript></p>
<p>Yay you are done! now all thats left is the thru hole parts&#8230;<br />
<script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?201021144"></script><noscript><a href="http://www.flickr.com/photos/ladyada/201021144/"> <img src="http://static.flickr.com/78/201021144_0a40425d25.jpg" /> </a> </noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=591</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Duel Nature PCBs</title>
		<link>http://www.adafruit.com/blog/2006/07/28/duel-nature-pcbs/</link>
		<comments>http://www.adafruit.com/blog/2006/07/28/duel-nature-pcbs/#comments</comments>
		<pubDate>Fri, 28 Jul 2006 06:19:37 +0000</pubDate>
		<dc:creator>ladyada</dc:creator>
				<category><![CDATA[duelnature]]></category>
		<category><![CDATA[EE]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.ladyada.net/rant/?p=28</guid>
		<description><![CDATA[Last weekend I found an hour or two to relayout the PCBs to fit into the square tubing better. The boards are thinner and theres a tab below the microcontroller so you can grab it with a pair of pliers without damage. There&#8217;s also a white silkscreen square to write an address to identify each [...]]]></description>
				<content:encoded><![CDATA[<p>Last weekend I found an hour or two to relayout the PCBs to fit into the square tubing better. The boards are thinner and theres a tab below the microcontroller so you can grab it with a pair of pliers without damage.</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?200095996"></script><noscript><a href="http://www.flickr.com/photos/ladyada/200095996/"> <img src="http://static.flickr.com/59/200095996_8aed89afec.jpg" /> </a> </noscript></p>
<p>There&#8217;s also a white silkscreen square to write an address to identify each PCB (since they&#8217;re addressable)</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?200096514"></script><noscript><a href="http://www.flickr.com/photos/ladyada/200096514/"> <img src="http://static.flickr.com/62/200096514_8e78de5179.jpg" /> </a> </noscript></p>
<p>Then I checked the gerbers with GC Prevue and sent them off to 4PCB.com tuesday afternoon. With 2 day turn and overnight shipping that means they arrive Friday. Since it&#8217;s Kate&#8217;s first order with them, she gets $500 off the order&#8230; Basically we pay for shipping ($50).<br />
Tomorrow I have to solder up 80 Duel Nature PCBs (maybe try out making silkscreens on the lasercutter)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=590</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Duel Nature</title>
		<link>http://www.adafruit.com/blog/2006/07/26/24/</link>
		<comments>http://www.adafruit.com/blog/2006/07/26/24/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 05:53:48 +0000</pubDate>
		<dc:creator>ladyada</dc:creator>
				<category><![CDATA[duelnature]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.ladyada.net/rant/?p=24</guid>
		<description><![CDATA[(images (c) Kate Raudenbush) I&#8217;ve been spending the last month on-and-off working on this exciting sculpture from ultra-talented Kate Raudenbush, who designed and is fabricating the main part of the 90&#8242; sculpture. It is made of 240 &#8216;wings&#8217; of 4&#8242; x 8&#8243; plasma-cut steel sheet and mirrored red acrylic. At the tip of each wing [...]]]></description>
				<content:encoded><![CDATA[<p><img border="2" src="http://www.ladyada.net/portfolio/2006/dn_t.jpg" /><img border="2" src="http://www.kateraudenbush.com/libraries/kateraudenbush/_0000004893.jpg?x=1392795905" />(images (c) Kate Raudenbush)<br />
I&#8217;ve been spending the last month on-and-off working on this exciting sculpture from ultra-talented <a href="http://www.kateraudenbush.com">Kate Raudenbush</a>, who designed and is fabricating the main part of the 90&#8242; sculpture. It is made of 240 &#8216;wings&#8217; of 4&#8242; x 8&#8243; plasma-cut steel sheet and mirrored red acrylic. At the tip of each wing is a red LED.</p>
<p>(Starting the project&#8230;)<br />
<span id="more-586"></span></p>
<p>Kate came to me with these drawings and her original plan: the red LEDs would form a &#8217;4-chase&#8217; sequence. The budget is around $500 for all electronic parts, including LEDs, wiring, power, batteries, tools, etc. I decided to push the project a little futher: instead of a simple chase (which was well within reason), we would have each LED be individually controlled and PWM&#8217;d so that complex designs could be realized.<br />
The biggest constraint (apart from the budget) is that all the electronics must fit in the square wing-support tube: .8&#8243;x.8&#8243; and any wiring and connectors have to fit through a .5&#8243; hole that was already drilled in the wings.</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?189023677"></script><noscript><a href="http://www.flickr.com/photos/ladyada/189023677/"> <img src="http://static.flickr.com/1/189023677_285589f7b7.jpg" /> </a> </noscript>As always, I specified the connector first. Because of the small space, I couldn&#8217;t go with a feed-thru connector, and originally I wanted to use phone/cat5 cable and connectors but they wouldnt fit either. So in the end I was forced to go with 4-pin 0.1&#8243; Molex MTA. It&#8217;s not the best but it&#8217;s dirt cheap and I&#8217;ve worked with it before. The connector pins pass power (3-5V), ground, data receive &#038; clock. I decided against i2c and stuck with SPI because I&#8217;ve had good luck with it. It&#8217;s also more reliable than serial because of the clock.</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?189023544"></script><noscript><a href="http://www.flickr.com/photos/ladyada/189023544/"> <img src="http://static.flickr.com/49/189023544_7c00312910.jpg" /> </a> </noscript>To control the LEDs I picked the ATtiny13, which ends up being 75 cents each at the quantities I&#8217;m dealing with. It&#8217;s an 8 pin device: 2 pins for power, one for reset, and three for LEDs. The PWM code is written in C and uploaded to the chip using a surface-mount IC clip.</p>
<p><script language="Javascript" src="http://www.ladyada.net/flickrnotes.php?189023476"></script><noscript><a href="http://www.flickr.com/photos/ladyada/189023476/"> <img src="http://static.flickr.com/68/189023476_ba97baded2.jpg" /> </a> </noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adafruit.com/adablog/?feed=rss2&#038;p=586</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
