<?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>Hasse&#039;s Hacks &#187; Wii</title>
	<atom:link href="http://hacks.hasse.nl/category/wii/feed/" rel="self" type="application/rss+xml" />
	<link>http://hacks.hasse.nl</link>
	<description>just playing with technology</description>
	<lastBuildDate>Thu, 03 Dec 2009 23:53:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RGWii</title>
		<link>http://hacks.hasse.nl/13/wii/rgwii/</link>
		<comments>http://hacks.hasse.nl/13/wii/rgwii/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 18:00:56 +0000</pubDate>
		<dc:creator>Hasse</dc:creator>
				<category><![CDATA[LED]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[glovepie]]></category>
		<category><![CDATA[moodvision]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[rs232]]></category>
		<category><![CDATA[vogel's]]></category>

		<guid isPermaLink="false">http://hacks.hasse.nl/?p=13</guid>
		<description><![CDATA[Use a Nintendo Wii to control the
color of your LED Lighting

After my first Wiimote project in which I controlled my curtains, I realized the endless possibilties of home automation with a Nintendo Wii and it&#8217;s Wiimote controller. On this page you can read how I set the color of my LED lighting with the Wiimote. Read [...]]]></description>
			<content:encoded><![CDATA[<h1>Use a Nintendo Wii to control the<br />
color of your LED Lighting</h1>
<p><img class="alignnone size-full wp-image-34" title="RGWii_header" src="http://hacks.hasse.nl/wp-content/uploads/2008/03/RGWii_header.jpg" alt="RGWii_header" width="738" height="184" /></p>
<p><strong>After my <a href="http://hacks.hasse.nl/9/wii/wiindow-curtain-control/" target="_parent">first</a> Wiimote project in which I controlled my curtains, I realized the endless possibilties of home automation with a Nintendo Wii and it&#8217;s Wiimote controller. On this page you can read how I set the color of my LED lighting with the Wiimote.</strong><strong> Read on to get a detailed HowTo.</strong></p>
<p>Let&#8217;s start with a video of the end-result:</p>
<p><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/FyBjt5KYyZ8&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/FyBjt5KYyZ8&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>
<p><strong><span id="more-13"></span>The RGB Controller</strong><br />
The controller I used is from a <a href="http://www.vogels.com/" target="_blank">Vogel&#8217;s</a> Moodvision XLF200 set. These real nice looking, very intense LED lighting tubes are available in 2 versions. There is a button controlled version (XLF200) and a remote controlled version (XLF300). Extra LED tubes are available in the XLF100 package. I used the XLF200 controller with a nice blue button.</p>
<p><img src="http://hacks.hasse.nl/wp-content/uploads/2008/03/xlf200_controller.jpg" alt="XLF200 Moodvision Controller" width="544" height="240" /></p>
<p><strong>Hacking the controller</strong><br />
I wanted to be able to make any color and not only simulate button presses with my Wiimote. So I had to modify the controller a bit. It&#8217;s rather easy to open the controller. Inside is a microcontroller, some fet&#8217;s that drive the LEDs and a switch. I wanted to talk to this controller by RS232 so I soldered a SUB-D9 connector to the TDO and RDI pins of the micro. Picture below:<br />
<img src="http://hacks.hasse.nl/wp-content/uploads/2008/03/electronics.jpg" alt="Moodvision Inside" width="434" height="251" /></p>
<p><img src="http://hacks.hasse.nl/wp-content/uploads/2008/03/before_and_after.jpg" alt="" width="534" height="191" /></p>
<p><strong>Bluetooth Dongle</strong><br />
On the PC I attached a cheap USB Bluetooth dongle that I bought in China. It comes with a free version of the <a href="http://www.bluesoleil.com/" target="_blank">Blue Soleil</a> bluetooth stack.</p>
<p>I paired my Wiimote with my PC. This is done by holding down the 1 and 2 button on the Wiimote (leds will flash) and use the bluetooth software to set op a connection with a HID device.</p>
]]></content:encoded>
			<wfw:commentRss>http://hacks.hasse.nl/13/wii/rgwii/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Wiindow curtain control</title>
		<link>http://hacks.hasse.nl/9/wii/wiindow-curtain-control/</link>
		<comments>http://hacks.hasse.nl/9/wii/wiindow-curtain-control/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 18:00:06 +0000</pubDate>
		<dc:creator>Hasse</dc:creator>
				<category><![CDATA[Wii]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[curtains]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[window control]]></category>

		<guid isPermaLink="false">http://hacks.hasse.nl/?p=9</guid>
		<description><![CDATA[I got inspired by all those great Nintendo Wii projects on the internet. I used my Wiimote to control my curtains. Read below how I did that.
Let&#8217;s start with a video of the end-result:

Curtain Controller
The curtain control system is an existing system from Goelst and is called &#8220;G-Rail 6200&#8243;. Normally it is controlled by infrared or [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I got inspired by all those great Nintendo Wii projects on the internet. I used my Wiimote to control my curtains. Read below how I did that.</strong></p>
<p>Let&#8217;s start with a video of the end-result:</p>
<p><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/FSMJiGPPzGM&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/FSMJiGPPzGM&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>
<p><strong><span id="more-9"></span>Curtain Controller</strong><br />
The curtain control system is an existing system from <a href="http://www.goelst.nl/" target="_blank">Goelst</a> and is called &#8220;G-Rail 6200&#8243;. Normally it is controlled by infrared or wallswitches. However, it can also be controlled with a CAN bus. I used this CAN bus to interface with an old PC.</p>
<p><strong>Bluetooth Dongle</strong><br />
On the PC I attached a cheap USB Bluetooth dongle that I bought in China. It comes with a free version of the <a href="http://www.bluesoleil.com/" target="_blank">Blue Soleil</a> bluetooth stack.</p>
<p>I paired my Wiimote with my PC. This is done by holding down the 1 and 2 button on the Wiimote (leds will flash) and use the bluetooth software to set op a connection with a HID device.</p>
<p><strong>GlovePIE</strong><br />
There are several free programs on the internet that make it possible to interface your Wiimote with PC applications. I used a program called <a href="http://carl.kenner.googlepages.com/glovepie" target="_blank">GlovePIE</a>. It takes some time to understand the functions of the program because the documentation seems to be written for people that already know GlovePIE. Also the copyright disclaimer is really strange. But after investing some time to learn the functions of the programm and going through many examples and forums on the internet I found it one of the best solutions currently available. Actually real good solutions do not yet exists.</p>
<p>GlovePIE has no function to send messages to a CAN bus. So I started up my good old visual basic and made a little program that handles the CAN messaging. In the first version I used the keypressed event. I made a GlovePIE script that sends out keyboard keys when the Wiimote has a certain orientation and voila&#8230; L is for left, R is for Right and S is for Stop.</p>
<p>This is the first version of my script:</p>
<p><span style="font-size: 12px; color: #0000ff;"><em>ExitScript = HeldDown(Wiimote.Home, 3s)</em></span><span style="font-size: 12px; color: #0000ff;"> // a safety break</span></p>
<p style="font-size: 12px; color: #0000ff;"><em>if window.title == &#8220;G-rail control&#8221; then<br />
//only do this when grail control software is active</em></p>
<p><em> </em></p>
<p><em>key.RepeatFakeKeys = false<br />
</em></p>
<p style="font-size: 12px; color: #0000ff;"><em>// read values from Wiimote<br />
var.x = wiimote1.gx<br />
var.y = wiimote1.gy<br />
var.z = wiimote1.gz</em></p>
<p style="font-size: 12px; color: #0000ff;"><em>// now control the curtains </em><em><br />
if var.x &gt; 0.8 then</em></p>
<blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>var.debug = &#8216;L&#8217;<br />
key.R = false<br />
key.S = false<br />
key.L = true</em></p></blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>elseif var.x &lt; -0.8 then</em></p>
<blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>var.debug = &#8216;R&#8217;<br />
key.S = false<br />
key.L = false<br />
key.R = true</em></p></blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>elseif var.y &gt; 0.9 then</em></p>
<blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>var.debug = &#8216;S&#8217;<br />
key.R = false<br />
key.L = false<br />
key.S = true</em></p></blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>else</em></p>
<blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>var.debug = &#8221;<br />
key.R = false<br />
key.L = false<br />
key.S = false</em></p></blockquote>
<p style="font-size: 12px; color: #0000ff;"><em>endif</em></p>
<p style="font-size: 12px; color: #0000ff;"><em>debug = var.x + &#8216; &#8216; + var.y + &#8216; &#8216; + var.z + &#8216; &#8216; + var.debug<br />
endif</em></p>
<p style="font-size: 12px; color: #0000ff;"><em>else<br />
debug = window.title<br />
endif</em></p>
<p>So the GlovePIE script sends keystrokes to a visual basic program that sends CAN messages to the curtain controllers.<strong> </strong></p>
<p><strong> </strong></p>
<p><strong>Next version<br />
</strong>After the basic version I demanded more. I wanted forcefeedback when curtains are already on their maximum position. I also wanted speech feedback and even speech control as a backup for Wiimote control. Most is basic GlovePIE functionality but getting feedback from the CAN to GlovePIE was real tricky. I ended up using the OSC (Open Sound Control) function to send messages to and from my Visual Basic program. Basically this is an UDP package on localhost. So with that I could tell GlovePIE that the curtains are on their end position and give force and audio feedback. I will soon add the technical details to this website.</p>
]]></content:encoded>
			<wfw:commentRss>http://hacks.hasse.nl/9/wii/wiindow-curtain-control/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
