<?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>Tangentry &#187; Lighting</title>
	<atom:link href="http://tangentry.com/category/technology/lighting/feed/" rel="self" type="application/rss+xml" />
	<link>http://tangentry.com</link>
	<description>Business, technology, travel, wine, and whatever else seems comes to mind.</description>
	<lastBuildDate>Wed, 30 Jun 2010 19:40:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>More work on DMX lighting</title>
		<link>http://tangentry.com/2007/12/03/more-work-on-dmx-lighting/</link>
		<comments>http://tangentry.com/2007/12/03/more-work-on-dmx-lighting/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 06:41:51 +0000</pubDate>
		<dc:creator>Brooks Talley</dc:creator>
				<category><![CDATA[Lighting]]></category>

		<guid isPermaLink="false">http://apt25b.com/2007/12/03/more-work-on-dmx-lighting/</guid>
		<description><![CDATA[ome projects make sense because they&#8217;re likely to be profitable.  Other projects justify themselves by making life easier.  My DMX project, though, is all about &#8220;oooh, pretty lights.&#8221;  I&#8217;ve always enjoyed theatrical lighting, and the couple of years I was involved with lighting and lasers for raves were fantastic.   And [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><p class="flickrTag_container"><a href="http://farm3.static.flickr.com/2314/2079419506_d5d9cce06d.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/2079419506/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox"><img src="http://farm3.static.flickr.com/2314/2079419506_d5d9cce06d_m.jpg" alt="dmxrunner" class="flickr small photo" /></a></p>Some projects make sense because they&#8217;re likely to be profitable.  Other projects justify themselves by making life easier.  My DMX project, though, is all about &#8220;oooh, pretty lights.&#8221;  I&#8217;ve always enjoyed theatrical lighting, and the couple of years I was involved with lighting and lasers for raves were fantastic.   And now, with the advent of affordable LED-based, DMX-controlled lighting fixtures, it&#8217;s finally practical to do some cool interior lighting on a hobbyist&#8217;s scale.<br />
<span id="more-27"></span><br />
Since the <a href="http://apt25b.com/2007/11/01/nightstand-lamps-the-hard-way/">last time</a> I wrote about the DMX lighting project, I&#8217;ve graduated from two small LED par fixtures to six small pars (<a href="http://www.chauvetlighting.com/fixtures/colorsplashjr_fix.shtml">Chauvet Colorsplash Jr</a>&#8217;s), two <a href="http://www.chauvetlighting.com/fixtures/colorsplash196_fix.shtml">Colorsplash 196</a>&#8217;s, and one <a href="http://www.chauvetlighting.com/fixtures/ledpar200_fix.shtml">Colorsplash 200b</a>.   I&#8217;d love to get my hands on some more serious outdoor fixtures to <em>really</em> light up the building, but sadly the <a href="http://www.chauvetlighting.com/fixtures/coloradopanel_fix.shtml">really bright LED</a> fixtures are still too expensive to justify picking up just for fun.</p>
<p>The software has evolved, too, and is now all fancy, with XML-based configuration and an iPhone web interface that serves as a decent remote control.   I&#8217;ve got it set up to run any number of zones, each of which can contain any number of fixtures, and zones can either run independent programs or follow each other in various ways (for instance, it looks cool when the spotlights follow the washes by about 2 seconds, and rotated about 30 degrees through RGB space).  </p>
<p>LED-based fixtures are really a godsend to hobbyists &#8212; this same lighting project would have been doable years ago using traditional fixtures, but the expense involved in constantly replacing bulbs, in addition to higher initial cost, would have made it a very pricey hobby indeed.   LED fixtures are cheaper up front &#8212; I got my last batch of four Colorsplash Jr&#8217;s for $35 each &#8212; and will, in all likelihood, last forever.</p>
<p>DMX, on the other hand, is really not an ideal home automation protocol.  You&#8217;d think that 24 bit color (8 bits each for RGB) would be enough, but either the hardware in all of my lights is limited to less than 8 bits of resolution, or the human eye really can tell the difference between 0&#215;01 and 0&#215;02, especially in reds.   On top of that, each fixture has its own means of defining color controls and mapping them to DMX channels, so software abstraction is needed to turn an RGB value into appropriate commands, and then one fixture&#8217;s idea of R,G,B=192,192,0 is much different than another&#8217;s.   All of the fixtures I&#8217;m working with are RGB based.   For architectural or interior design purposes, this stuff would make a lot more sense as Hue, Saturation, Value (HSV) rather than Red, Green, Blue.</p>
<p>The real answer is for someone to design LED-based interior lights that run on an HSV color model and use something like <a href="http://en.wikipedia.org/wiki/ZigBee">Zigbee</a> to communicate, so all they&#8217;d need was a power cable and perhaps some rudimentary configuration.  That&#8217;s bound to happen at some point, but for now I&#8217;m happy with my homebrew and software intensive solution.  Next up: <a href="http://slimdevices.com">Slimserver</a> integration to set lighting scenes based on what music is playing, and audio input to allow for subtle tweaking of light patterns based on music.  Oh, and fog machine control.  You&#8217;ve gotta have fog, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://tangentry.com/2007/12/03/more-work-on-dmx-lighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nightstand lamps. The hard way.</title>
		<link>http://tangentry.com/2007/11/01/nightstand-lamps-the-hard-way/</link>
		<comments>http://tangentry.com/2007/11/01/nightstand-lamps-the-hard-way/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 17:34:25 +0000</pubDate>
		<dc:creator>Brooks Talley</dc:creator>
				<category><![CDATA[Lighting]]></category>

		<guid isPermaLink="false">http://apt25b.com/2007/11/01/nightstand-lamps-the-hard-way/</guid>
		<description><![CDATA[ust in case you&#8217;re looking to make a networked, computer-controlled, internet-capable nightstand lamp, I&#8217;ve put together these easy instructions for how to do it with a maximum of pain and expense.   This should have been an easy and fun project, based on DMX-enabled LED fixtures and some fairly simply homebrew software.  However, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p class="flickrTag_container"><a href="http://farm3.static.flickr.com/2075/1814166439_5194876d36.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814166439/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox"><img src="http://farm3.static.flickr.com/2075/1814166439_5194876d36_m.jpg" alt="IMG_0361" class="flickr small photo" /></a></p>Just in case you&#8217;re looking to make a networked, computer-controlled, internet-capable nightstand lamp, I&#8217;ve put together these easy instructions for how to do it with a maximum of pain and expense.   This should have been an easy and fun project, based on DMX-enabled LED fixtures and some fairly simply homebrew software.  However, a $5 part turned this into one of those projects from hell that makes one question whether reality is playing by the rules.<br />
<span id="more-18"></span></p>
<ol>
<li>Buy a new nightstand</li>
<li>Realize that the nightstand would be much more useful if it actually had a reading lamp</li>
<li>Spend hours online and going to real world stores, not finding a suitable lamp</li>
<li>Realize that you have a couple of <a href="http://www.chauvetlighting.com/fixtures/colorsplashjr_fix.shtml">Chauvet Colorsplash Jr.</a> lights sitting around which would make excellent lamps.  And they&#8217;d be computer controllable, too!  All you&#8217;d need would be a decent lampshade.  Maybe a nice frosted glass cylinder.</li>
<li>Break out the <a href="http://www.enttec.com/index.php?main_menu=Products&#038;prod=70303&#038;show=description&#038;name=opendmxusb">Enttec OpenDMX USB</a> box and attach it to the obligatory file server in the laundry room.</li>
<li>Discover that the OpenDMX uses XLR5 connectors, while the Colorsplash Jr&#8217;s use XLR3 connectors.</li>
<li>Order XLR5 to XLR3 converter from some random online store.</li>
<li>Meanwhile, start working on the software.  Hey, there&#8217;s already a <a href="http://sourceforge.net/projects/pydmx/">Python OpenDMX</a> module out there, might as well write the software in Python then.</li>
<li>Spend a bunch of hours putting some basic software together while learning a new language.</li>
<li>Receive the XLR5 to XLR3 converter.  Connect Colorsplash Jr. to server OpenDMX.  Discover that software doesn&#8217;t work at all.  No light.</li>
<li>Troubleshoot for a while and discover that the OpenDMX is not at all the same thing as the DMX USB Pro.  The OpenDMX is just a USB to RS-485 converter with no real intelligence in it.   You just have to open the FTDI-based USB-to-serial port at 250000 baud (the rate of RS-485 communication for DMX) and talk straight bytes to it.</li>
<li>Discover that the FreeBSD FTDI implementation doesn&#8217;t support 250000 baud.</li>
<li>Open a bottle of wine.</li>
<li>Get knee deep in FreeBSD kernel guts.  Spend many hours. Figure out how to modify the FTDI driver to support 250000 baud.</li>
<li>Recompile new kernel with homemade patch.</li>
<li>Discover that <a href="http://pyserial.sourceforge.net/">pySerial</a> doesn&#8217;t support 250000 baud, even if the kernel does.</li>
<li>Get knee deep in pySerial guts.  Discover that it relies on a C module which is compiled against the host OS&#8217;s termios.h.</li>
<li>Discover that the FreeBSD termios.h doesn&#8217;t support 250000 baud.</li>
<li>Patch termios.h to support 250000 baud.</li>
<li>Recompile Python and pySerial.</li>
<li>Hooray, a serial port opened at 250000 baud!</li>
<li>Discover that test DMX program <i>can</i> talk to the light fixture, but the light does not behave as expected.  Lots of strobing (undesirable in a reading lamp).</li>
<li>Through much trial and error, find that Colorsplash Jr. is responding to DMX values of 0-63 rather than 0-255, and that it&#8217;s inverted (0=bright, 63 = dark, when it should be 0=dark, 255=bright).</li>
<li>Call Chauvet tech support and be skeptical when they insist that there is no way their lights are behaving in this weird scaled, inverted way.  Yeah, right, it&#8217;s tech support.  What do they know?</li>
<li>Hack software to allow for inverting and scaling brightness range.</li>
<li>Discover that even now, simple gradient fades result in flashing and weird behavior.  Sending 0xFF on channel 3 sets makes channel 4 dimmer!</li>
<li>Read lots of DMX specifications.  Find out about serial break and make-after-break timings.  Find that DMX expects break times of 120usec.  Discover that Freebsd is hardcoded to produce 400ms break signals &#8212; more than 3000 times too long.  Suspect that this timing may be an issue.</li>
<li>More kernel hacking.  Make FreeBSD FTDI serial break signals dependent on that&#8217;s-what-it&#8217;s-there-for break timing parameter, which is otherwise unused.</li>
<li>More PySerial hacking.  Make it pass the requested break length in to the FreeBSD serial system.</li>
<li>Discover that the light still strobes undesirably and generally acts weird.</li>
<li>Decide that this OpenDMX is crap and relies on the host too much for timing.  Order <a href="http://www.enttec.com/index.php?main_menu=Products&#038;prod=70304&#038;show=description&#038;name=dmxusbpro">DMX USB Pro</a>.</li>
<li>While waiting, work on getting light wired to nightstand using nearby Ethernet wiring that goes to laundry room.  Research DMX-over-XLR3 to DMX-over-Cat5 cables.</li>
<li>Make appropriate cables to bring DMX from laundry room to nightstand via Cat5.</li>
<li>Discover that light doesn&#8217;t work at all, as opposed to just acting weird when right next to the server.</li>
<li>Drink more wine.</li>
<li>Try XLR3-RJ45 cables on a different cat5 port which is known to work for Ethernet.</li>
<li>Do a little dance when <i>that</i> works.  At least copper wiring still behaves according to the laws of reality.</li>
<li>Buy multimeter.  Make RJ45 loopback plug.  Start testing Cat5 wiring near nightstand.</li>
<li>Discover that the laundry room patch panel is TI-568A, wiring next to nightstand is wired 568B.</li>
<li>Unpunch / repunch nightstand wiring to conform to 568A.</li>
<li>Reconnect light and XLR3-RJ45 cables on nightstand.</li>
<li>Celebrate that the light behaves just as badly over a long cable run as it did next to the server.  But at least it sort of almost works!</li>
<li>Receive DMX USB Pro, with comes with another XLR5-to-XLR3 converter.</li>
<li>Swap out homebrew OpenDMX python code for open source Python DMX USB Pro code.</li>
<li>Discover that light behaves <i>exactly the same way</i> with different DMX interface and different code.</li>
<li>Scream.  Drink more wine.</li>
<li>Test a different Colorsplash Jr.  and get exact same result.</li>
<li>Buy small version of commercial lighting management package for Windows.</li>
<li>Confirm that commercial package has exactly the same problem.</li>
<li>Figure that there <i>must</i> be something wrong with one or both DMX interfaces.</li>
<li>Attach both OpenDMX and DMX USB Pro to FreeBSD server. </li>
<li>Cable the two DMX interfaces together using two XLR5-to-XLR3 converters and an XLR3 cable.</li>
<li>Write software that sets one to read and one to write to troubleshoot serial communication.</li>
<li>Confirm that communication is borked.  Send 0&#215;00, receive 0&#215;3F.  Send 0&#215;3F, receive 0&#215;02.  Send 0&#215;80, receive 0xF4.  That sort of thing.  And no matter how many bytes are sent, one more is always received.   Aaaaaargh.</li>
<li>Scream again.  Drink more wine.</li>
<li>Decide that the problem must be in FreeBSD&#8217;s USB or serial subsystems.  Tear into them.  Add debugging instrumentation everywhere.</li>
<li>Pour over dmesg logs.  Trace every serial and USB interaction.  Confirm that the correct number of correct bytes are sent at the correct speed, and the wrong number of wrong bytes are received at the correct speed.</li>
<li>Scream.  Open more wine.</li>
<li>Take Windows laptop over next to light.  Plug in OpenDMX.  Confirm problem with commercial software.</li>
<li>Swap for DMX USB Pro.  Confirm problem with commercial software.</li>
<li>Just for kicks, swap XLR5-to-XLR3 converters.  It&#8217;s just a 3 wire cable, right?</li>
<li>Commercial software works fine.</li>
<li>Scream.  Lots.</li>
<li>Reconnect OpenDMX to FreeBSD machine over cat5.</li>
<li>Rejoice that it works.</li>
<li>Swap OpenDMX for USB DMX Pro</li>
<li>Rejoice that that works, too.</li>
<li>Try to think of a suitable and emotionally satisfying way to torture and kill the misbehaving XLR5-to-XLR3 converter.</li>
<li>Enjoy the now-working nighstand light.</li>
<li>Realize that it would be much better with a proper shade.  Maybe a frosted glass cylinder.</li>
<li>Start looking online and calling glass stores.</li>
<li>Discover that it&#8217;s pretty much impossible to buy a 5&#8243; inside diameter, 18&#8243; tall frosted glass cylinder.</li>
<li>Decide that the bare up-light is good enough.</li>
</ol>
<p><p class="flickrTag_container"><a href="http://farm3.static.flickr.com/2042/1814175817_4dcd5d1c69.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814175817/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2042/1814175817_4dcd5d1c69_s.jpg" alt="IMG_0363" class="flickr square set" /></a><a href="http://farm3.static.flickr.com/2091/1814171485_3f0993c4f5.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814171485/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2091/1814171485_3f0993c4f5_s.jpg" alt="IMG_0362" class="flickr square set" /></a><a href="http://farm3.static.flickr.com/2075/1814166439_5194876d36.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814166439/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2075/1814166439_5194876d36_s.jpg" alt="IMG_0361" class="flickr square set" /></a><a href="http://farm3.static.flickr.com/2185/1814161251_e063d184c4.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814161251/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2185/1814161251_e063d184c4_s.jpg" alt="IMG_0358" class="flickr square set" /></a><a href="http://farm3.static.flickr.com/2337/1814999580_c6247f2048.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814999580/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2337/1814999580_c6247f2048_s.jpg" alt="IMG_0356" class="flickr square set" /></a><a href="http://farm3.static.flickr.com/2377/1814152001_a4bf406fe8.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814152001/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2377/1814152001_a4bf406fe8_s.jpg" alt="IMG_0354" class="flickr square set" /></a><a href="http://farm3.static.flickr.com/2182/1814149399_c531f63b53.jpg" class="flickr" title=" &lt;a href=&quot;http://www.flickr.com/photos/7192285@N03/1814149399/in/set-72157602826104327/&quot;&gt;view&amp;nbsp;on&amp;nbsp;flickr&amp;raquo;&lt;/a&gt;" rel="lightbox[96aec337361337664c545b6a45a57ccd]"><img src="http://farm3.static.flickr.com/2182/1814149399_c531f63b53_s.jpg" alt="IMG_0350" class="flickr square set" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tangentry.com/2007/11/01/nightstand-lamps-the-hard-way/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LED Blacklight</title>
		<link>http://tangentry.com/2007/02/14/led-blacklight/</link>
		<comments>http://tangentry.com/2007/02/14/led-blacklight/#comments</comments>
		<pubDate>Thu, 15 Feb 2007 05:35:13 +0000</pubDate>
		<dc:creator>Brooks Talley</dc:creator>
				<category><![CDATA[Lighting]]></category>

		<guid isPermaLink="false">http://apt25b.com/?p=5</guid>
		<description><![CDATA[
Ok, it&#8217;s not that much, but it&#8217;s a start.  The Chauvet LED Shadow is one of the first LED based blacklights.  It&#8217;s moderately bright, and it&#8217;s a lot more durable and reliable than traditional fluorescent blacklights.  However, it&#8217;s not nearly as powerful as some of the big UV floodlights, so it looks [...]]]></description>
			<content:encoded><![CDATA[<p></p><div style="float: left; margin-right: 10px; margin-bottom: 0px"><a title="photo sharing" href="http://www.flickr.com/photos/7192285@N03/409592189/"><img style="border: 2px solid #000000" src="http://farm1.static.flickr.com/175/409592189_058852681f_m.jpg" /></a></div>
<p>Ok, it&#8217;s not that much, but it&#8217;s a start.  The <a href="http://www.chauvetlighting.com/fixtures/ledtechstrobeuv_fix.shtml">Chauvet LED Shadow</a> is one of the first LED based blacklights.  It&#8217;s moderately bright, and it&#8217;s a lot more durable and reliable than traditional fluorescent blacklights.  However, it&#8217;s not nearly as powerful as some of the big UV floodlights, so it looks like just one of them won&#8217;t be enough to really light the place.  We&#8217;ll have to fix that.</p>
]]></content:encoded>
			<wfw:commentRss>http://tangentry.com/2007/02/14/led-blacklight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
