<?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>Brett&#039;s Build Log &#187; motor</title>
	<atom:link href="http://brettinman.com/tag/motor/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettinman.com</link>
	<description>Hardware tinkering with the occasional bit of software</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:24:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Intelligent Control of Woot-Off Lights</title>
		<link>http://brettinman.com/2009/05/16/intelligent-control-of-woot-off-lights/</link>
		<comments>http://brettinman.com/2009/05/16/intelligent-control-of-woot-off-lights/#comments</comments>
		<pubDate>Sat, 16 May 2009 08:32:01 +0000</pubDate>
		<dc:creator>brettinman</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Woot-Off Lights Project]]></category>
		<category><![CDATA[communications]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[motor]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[uln2803]]></category>
		<category><![CDATA[wootofflights]]></category>

		<guid isPermaLink="false">http://brettinman.com/?p=11</guid>
		<description><![CDATA[Please see the WootOff Lights Project category for the most up-to-date posts about this project. Occasionally, Woot has extravaganzas where they post item after item in what is known as a woot-off. Little .gif lights spin round and round to alert visitors to this spectacle. Playing on this, Woot occasionally sells physical woot-off lights. They [...]]]></description>
			<content:encoded><![CDATA[<p><em>Please see the <a href="http://brettinman.com/category/woot-off-lights-project/">WootOff Lights Project category</a> for the most up-to-date posts about this project.</em></p>
<p>Occasionally, <a href="http://www.woot.com">Woot</a> has extravaganzas where they post item after item in what is known as a woot-off. Little .gif lights spin round and round to alert visitors to this spectacle. Playing on this, Woot occasionally sells physical woot-off lights. They run off of USB power, with a switch in each light/motor piece. Since it&#8217;s a standard 5V connection, this opens the doors for all sorts of hackery.</p>
<p>The ultimate goal of this project is to have these lights come on whenever there is a woot-off.</p>
<p>If you aren&#8217;t already familiar with the <a href="http://www.arduino.cc/">Arduino</a>, become familiar now. I&#8217;ll wait.</p>
<p>Ok, so the Arduino is a microcontroller system with a USB-serial input communication, a microprocessor with a bootloader to run &#8220;sketches&#8221;, and the ability to control over a dozen digital logic pins (including a few with PWM or Analog-In). </p>
<p>The setup will use a PC application for monitoring a &#8220;<a href="http://www.brettinman.com/woot">Woot Tracker</a>&#8221; (many of these are available online to reduce load on Woot&#8217;s own servers). The application will check for the presence of the woot-off lights logo, indicating a woot-off &#8211; in the future, the lights will be activated by each changing of an item. The application will then send a byte over serial to indicate the woot-off status to the Arduino. Based on the input from the computer, the Arduino will turn the lights on or off.</p>
<p>Great &#8211; so in order to turn on the lights all we have to do is turn on one of the Arduino&#8217;s pins (they are 5V at digital high). Unfortunately each pin is only capable of supplying at most 50mA, and these lights run on over 100mA. Luckily, the 5V power regulator on the Arduino is capable of supplying much more current &#8211; up to 500mA or so if a good DC power supply is used. So if we hook up the positive lead of these unit to the 5V, we now need to control the ground connection to control the circuit &#8211; connect the ground and the lights go on because the circuit completes.</p>
<p>The ULN2803 chip provides this exact function. The chip is connected to 5V and ground. The ground from the device to be controlled is connected to a pin (remember that the positive of the device is already connected to 5V), and the control signal from the Arduino is connected to the corresponding control pin. When the control pin sees 5V (from the Arduino control signal), the ground lead from the device is connected to the ground of the chip, completing the circuit and sending current to the device. In this case, the lights spin up.</p>
<div id="attachment_14" class="wp-caption aligncenter" style="width: 610px"><img src="http://brettinman.com/blog/wp-content/uploads/2009/05/wootoff1.jpg" alt="Early Woot-Off Light Software/Arduino Control" title="Early Woot-Off Light Software/Arduino Control" width="600" height="450" class="size-full wp-image-14" /><p class="wp-caption-text">Early Woot-Off Light Software/Arduino Control</p></div>
<p>So far I have the hardware running, and have used the Arduino PC software to send input down the serial connection, turning the lights on and off. The next step will be to write an application to send serial information, and then to expand that application to search the textfile of the woot tracker for the lights.gif. The final stage will be to integrate all the hardware into a small package so the device can be used permanently.</p>
]]></content:encoded>
			<wfw:commentRss>http://brettinman.com/2009/05/16/intelligent-control-of-woot-off-lights/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
