<?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>TKJ Electronics &#187; Arduino Projects</title>
	<atom:link href="http://elec.tkjweb.dk/blog/tag/arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://elec.tkjweb.dk/blog</link>
	<description>The electronics-blog</description>
	<lastBuildDate>Sun, 20 Jun 2010 11:51:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Arduino Mega and ILI9320 Display</title>
		<link>http://elec.tkjweb.dk/blog/2010/03/arduino-mega-and-ili9320-display/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/03/arduino-mega-and-ili9320-display/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 13:13:43 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[320x240]]></category>
		<category><![CDATA[arduino mega]]></category>
		<category><![CDATA[Display]]></category>
		<category><![CDATA[ILI9320]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=435</guid>
		<description><![CDATA[Hi everybody.
Last week I started making a ILI9320 library for the Arduino Mega, as I was hoping it would work with my 2.8&#8243; Display (with a ILI9320 controller of course).
After a couple of hours I&#8217;ve made the code doing the timings correctly, and then I made a simple PutPixel routine. It worked, so I continued [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everybody.<br />
Last week I started making a ILI9320 library for the Arduino Mega, as I was hoping it would work with my 2.8&#8243; Display (with a ILI9320 controller of course).<br />
After a couple of hours I&#8217;ve made the code doing the timings correctly, and then I made a simple PutPixel routine. It worked, so I continued to make a Text function, and afterwards different polygons commands.<br />
When I had made all these commands I began to optimise everything, as the Arduino isn&#8217;t running fast enough, so a complete screen clear takes about 2-3 second. After a couple of days optimizing, I got it down to 1 second, and other commands such as rectangle was alot faster. I had also made a function so I could &#8220;scroll&#8221; the screen &#8211; which is descriped in the ILI9320 datasheet!</p>
<p>Here you can see some pictures of the final version of the code, which you can download here: <a href='http://elec.tkjweb.dk/blog/wp-content/uploads/ILI9320_Mega.zip'>Arduino Mega and ILI9320 code</a><br />
<div id="attachment_437" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/Arduino_Mega_ILI9320.jpg"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/Arduino_Mega_ILI9320-300x225.jpg" alt="" title="Arduino Mega and ILI9320 display" width="300" height="225" class="size-medium wp-image-437" /></a><p class="wp-caption-text">Arduino Mega and a 2.8-inch display (ILI9320)</p></div><br />
<div id="attachment_438" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/Arduino_Mega_ILI9320_Screen.jpg"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/Arduino_Mega_ILI9320_Screen-300x225.jpg" alt="" title="Arduino Mega and ILI9320 display - Close Up" width="300" height="225" class="size-medium wp-image-438" /></a><p class="wp-caption-text">A close up of the Hello World screen</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/03/arduino-mega-and-ili9320-display/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magnetic Card lock with the Arduino</title>
		<link>http://elec.tkjweb.dk/blog/2010/02/magnetic-card-lock-with-the-arduino/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/02/magnetic-card-lock-with-the-arduino/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:25:42 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=370</guid>
		<description><![CDATA[I have posted alot of projects recently, and here is another project with the Arduino!
This projects is about making a magnetic card lock using the Arduino, a servo and a $4 cheap magnetic card reader from AllElectronics.com
The card reader, which you can see in the first picture, has 7 pins. The picture below shows theese [...]]]></description>
			<content:encoded><![CDATA[<p>I have posted alot of projects recently, and here is another project with the Arduino!<br />
This projects is about making a magnetic card lock using the Arduino, a servo and a $4 cheap magnetic card reader from AllElectronics.com<br />
<div id="attachment_378" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/Arduino-Magnetic-Card-Lock.jpg"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/Arduino-Magnetic-Card-Lock-300x225.jpg" alt="" title="Magnetic Card Lock project" width="300" height="225" class="size-medium wp-image-378" /></a><p class="wp-caption-text">Magnetic Card Lock project</p></div><br />
<div id="attachment_377" class="wp-caption aligncenter" style="width: 309px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/CardReaderConnections.png"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/CardReaderConnections.png" alt="" title="Magnetic Card Reader Connections" width="299" height="232" class="size-full wp-image-377" /></a><p class="wp-caption-text">Magnetic Card Reader Connections</p></div></p>
<p>The card reader, which you can see in the first picture, has 7 pins. The picture below shows theese pins functionality!</p>
<p>I&#8217;ve made a video about the project which explains it all!<br />
<span class="youtube">
<object width="480" height="360">
<param name="movie" value="http://www.youtube.com/v/S1i1DAMpy5E&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;hd=1" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube.com/v/S1i1DAMpy5E&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;hd=1" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="360"></embed>
<param name="wmode" value="transparent" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=S1i1DAMpy5E&fmt=18">www.youtube.com/watch?v=S1i1DAMpy5E</a></p></p>
<p>If you want to try it yourself, you can grab the code underneath and change the checkCode character array to match the string on your card!</p>
<pre>
#include &lt;string.h&gt;

#include &lt;Servo.h&gt;
Servo servo1;

 /* Magnetic Card lock with the Arduino and servo's
 * by Thomas Jespersen http://elec.tkjweb.dk
 *
 * Reads a magnetic stripe and opens lock (turns servo) if card is the same as programmed
 *
 */

// Connections: DATA = Pin 2, CLOCK = Pin 3, CARD IN = Pin 5
// See PDF "Magnetic Stripe Card Reader! << HACKMIAMI.pdf" for more connection information

<a href="http://elec.tkjweb.dk/blog/2010/02/magnetic-card-lock-with-the-arduino/#cut-1">Read more...</a>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/02/magnetic-card-lock-with-the-arduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ultrasonic Range Sensor</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 19:36:34 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Ultrasonic]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=263</guid>
		<description><![CDATA[Today I recieved a Ultrasonic Range Sensor bought on eBay.
It&#8217;s much like the Parallax Ping))), except that it has got a Trig and a Echo pin, instead of the Ping)))&#8217;s multipin (Trig and Echo on the same pin)
I quickly made some code in the Arduino IDE and got it running quick&#8230;
Just a sidenode from the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I recieved a Ultrasonic Range Sensor bought on eBay.</p>
<p>It&#8217;s much like the <a href="http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/ProductID/92/List/1/Default.aspx?SortField=ProductName,ProductName" target="_blank">Parallax Ping)))</a>, except that it has got a Trig and a Echo pin, instead of the Ping)))&#8217;s multipin (Trig and Echo on the same pin)</p>
<p>I quickly made some code in the Arduino IDE and got it running quick&#8230;</p>
<p>Just a sidenode from the physics class; as the sound is travelling thru air with a speed of 340 m/s, this can be recalculated to 0.034 cm/microsecond, which is the same as 29.411 microsecond/cm</p>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/Ultrasonic3.jpg"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/Ultrasonic3-300x225.jpg" alt="" title="Arduino with Ultrasonic Sensor" width="300" height="225" class="size-medium wp-image-312" /></a><p class="wp-caption-text">Arduino with Ultrasonic Sensor</p></div>
<p>For those who may be interested the code is here:</p>
<pre>/* Ultrasonic Sensor</p>
<p>This sketch reads a ultrasonic rangefinder and returns the<br />
distance to the closest object in range. To do this, it sends a pulse<br />
to the sensor to initiate a reading, then listens for a pulse<br />
to return.Â  The length of the returning pulse is proportional to<br />
the distance of the object from the sensor.</p>
<p>The circuit:<br />
* +V connection of the Ultrasonic Sensor attached to +5V<br />
* GND connection of the Ultrasonic Sensor attached to ground<br />
* Trig connection of the Ultrasonic Sensor attached to digital pin 2<br />
* Echo connection of the Ultrasonic Sensor attached to digital pin 3</p>
<p>created 25. Januar 2010<br />
by Thomas Jespersen</p>
<p>*/<br />
<a href="http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/#cut-1">Read more...</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WiFi SMS Gateway</title>
		<link>http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/</link>
		<comments>http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 23:04:00 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[GM862]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[SMS Gateway]]></category>
		<category><![CDATA[WiFi]]></category>
		<category><![CDATA[WiShield]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=170</guid>
		<description><![CDATA[After a long search on the internet, trying to find a cheap SMS Gateway, I got the idea to create one myself.
As I already had a GM862 module laying around, and I&#8217;ve got the WiShield WiFi module for the Arduino too, I thought it would be easy &#8211; but it wasn&#8217;t!
The hardware setup is pretty [...]]]></description>
			<content:encoded><![CDATA[<p>After a long search on the internet, trying to find a cheap SMS Gateway, I got the idea to create one myself.<br />
As I already had a GM862 module laying around, and I&#8217;ve got the <a href="http://www.asynclabs.com/store?page=shop.product_details&amp;flypage=flypage.tpl&amp;product_id=17&amp;category_id=6">WiShield</a> WiFi module for the Arduino too, I thought it would be easy &#8211; but it wasn&#8217;t!</p>
<p>The hardware setup is pretty easy, except the powering for the GM862, as it requires about 3.8V. That was made with a Linear LT1528 3A low dropout voltage regulator.<br />
After alot of testing and measuring, I finally made a working circuit, and afterwards an Eagle Schematic.</p>
<div id="attachment_174" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi_SMS_Gateway_Schematic.png"><img class="size-medium wp-image-174" title="WiFi SMS Gateway - Schematic" src="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi_SMS_Gateway_Schematic-300x145.png" alt="WiFi SMS Gateway - Schematic" width="300" height="145" /></a><p class="wp-caption-text">WiFi SMS Gateway - Schematic</p></div>
<p>Â </p>
<p>In the following picture you will see the hardware setup, which consists of the Arduino with the WiShield on the top, the GM862 on <strong>two</strong> breadboards, and alot of wires!</p>
<div id="attachment_180" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi-SMS-Gateway-Hardware.JPG"><img class="size-medium wp-image-180" title="WiFi SMS Gateway - Hardware" src="http://elec.tkjweb.dk/blog/wp-content/uploads/WiFi-SMS-Gateway-Hardware-300x168.jpg" alt="WiFi SMS Gateway - Hardware" width="300" height="168" /></a><p class="wp-caption-text">WiFi SMS Gateway - Hardware</p></div>
<p>Â </p>
<p>But the real problems appeared when I started programming! I had alot of troubles with the serial connection between the Arduino and the GM862 module, which apparently wasn&#8217;t caused by the hardware setup!</p>
<p>Â <br />
After alot of debugging I figured it out, and a simple SMS sending code was working <img src='http://elec.tkjweb.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Then after a couple of hours I&#8217;ve added the WiFi parsing code which sends an SMS to the requested number, with the requested message, read from the GET parameters!</p>
<p>You can grab the code here, and try it out:</p>
<pre>/*<br />
 * WiFi SMS Gateway sketch by Thomas Jespersen - http://elec.tkjweb.dk/blog<br />
 * --- Remeber to change the PIN, if any, in the setup() routine! ---<br />
 */</p>
<p>#include &lt;WiServer.h&gt;</p>
<p>#define WIRELESS_MODE_INFRA	1<br />
#define WIRELESS_MODE_ADHOC	2</p>
<p>// Wireless configuration parameters ----------------------------------------<br />
unsigned char local_ip[] = {192,168,1,111};	// IP address of WiShield<br />
unsigned char gateway_ip[] = {192,168,2,254};	// router or gateway IP address<br />
unsigned char subnet_mask[] = {255,255,255,0};	// subnet mask for the local network<br />
const prog_char ssid[] PROGMEM = {"SSID"};		// max 32 bytes<br />
<a href="http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/#cut-1">Read more...</a><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2009/09/wifi-sms-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RFID Modded Safe</title>
		<link>http://elec.tkjweb.dk/blog/2009/06/rfid-modded-safe/</link>
		<comments>http://elec.tkjweb.dk/blog/2009/06/rfid-modded-safe/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 10:56:05 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[id-12]]></category>
		<category><![CDATA[id-20]]></category>
		<category><![CDATA[id12]]></category>
		<category><![CDATA[id20]]></category>
		<category><![CDATA[modding]]></category>
		<category><![CDATA[rfid]]></category>
		<category><![CDATA[safe]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=142</guid>
		<description><![CDATA[This project is about my RFID Modded Safe.
I&#8217;ve modded an old electronic toy-safe, which is unlocked by typing the 4-char password.
I&#8217;ve unsoldered the locking-mechanism from the circuitboard, and connected it to the Arduino instead.
Then I connected a ID-20 RFID Reader to the Arduino and programmed it to read the tag, and see if it was [...]]]></description>
			<content:encoded><![CDATA[<p>This project is about my RFID Modded Safe.</p>
<p>I&#8217;ve modded an old electronic toy-safe, which is unlocked by typing the 4-char password.</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/IMG00021.JPG"><img class="size-medium wp-image-147" title="RFID Modded Safe" src="http://elec.tkjweb.dk/blog/wp-content/uploads/IMG00021-300x225.jpg" alt="RFID Modded Safe" width="300" height="225" /></a><p class="wp-caption-text">RFID Modded Safe</p></div>
<p>I&#8217;ve unsoldered the locking-mechanism from the circuitboard, and connected it to the Arduino instead.</p>
<div id="attachment_144" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/IMG00009.JPG"><img class="size-medium wp-image-144" title="Locking-Mechanism Hack" src="http://elec.tkjweb.dk/blog/wp-content/uploads/IMG00009-300x225.jpg" alt="Locking-Mechanism Hack" width="300" height="225" /></a><p class="wp-caption-text">Locking-Mechanism Hack</p></div>
<p>Then I connected a ID-20 RFID Reader to the Arduino and programmed it to read the tag, and see if it was allowed to enter the safe.</p>
<div id="attachment_146" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/IMG00006.JPG"><img class="size-medium wp-image-146" title="ID-20 RFID Reader" src="http://elec.tkjweb.dk/blog/wp-content/uploads/IMG00006-300x225.jpg" alt="ID-20 RFID Reader" width="300" height="225" /></a><p class="wp-caption-text">ID-20 RFID Reader</p></div>
<p>If it was allowed, the Arduino will keep the safe unlocked in 3 seconds!</p>
<p>I&#8217;ve also made this video to show how it works:<br />
<span class="youtube">
<object width="480" height="360">
<param name="movie" value="http://www.youtube.com/v/oxuD--7wWE8&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;hd=1" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube.com/v/oxuD--7wWE8&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;hd=1" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="360"></embed>
<param name="wmode" value="transparent" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=oxuD--7wWE8&fmt=18">www.youtube.com/watch?v=oxuD--7wWE8</a></p></p>
<p>You can grab the code here, and try it out:</p>
<pre>#include &lt;NewSoftSerial.h&gt;</p>
<p>NewSoftSerial ID12(5,6);<br />
//                RX,TX</p>
<p>// RFID reader ID-12 for Arduino<br />
// Based on code by BARRAGAN<br />
// and code from HC Gilje - http://hcgilje.wordpress.com/resources/rfid_id12_tagreader/<br />
// Modified for Arudino by djmatic<br />
// Modified for ID-12 and checksum by Martijn The - http://www.martijnthe.nl/<br />
//<br />
// Use the drawings from HC Gilje to wire up the ID-12.<br />
// Remark: disconnect the rx serial wire to the ID-12 when uploading the sketch<br />
<a href="http://elec.tkjweb.dk/blog/2009/06/rfid-modded-safe/#cut-1">Read more...</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2009/06/rfid-modded-safe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ethernet TV</title>
		<link>http://elec.tkjweb.dk/blog/2009/05/ethernet-tv/</link>
		<comments>http://elec.tkjweb.dk/blog/2009/05/ethernet-tv/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:18:50 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[PIC Projects]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=115</guid>
		<description><![CDATA[After my last success with the Serial TV, I&#8217;ve got the idea making it possible for you to the television using a browser.
I&#8217;m still using my Serial TV, but now it&#8217;s connected to an Arduino instead of the computer. The Arduino has an Ethernet Shield on top, and it&#8217;s programmed to make a homepage with [...]]]></description>
			<content:encoded><![CDATA[<p>After my last success with the Serial TV, I&#8217;ve got the idea making it possible for you to the television using a browser.</p>
<p>I&#8217;m still using my Serial TV, but now it&#8217;s connected to an Arduino instead of the computer. The Arduino has an Ethernet Shield on top, and it&#8217;s programmed to make a homepage with a text-field and a submit button!</p>
<p><center>Here is some pictures of the project:</center><br />
<div id="attachment_127" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-full.jpg" target="_blank"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-full-300x225.jpg" alt="Ethernet TV - Full" title="Ethernet TV - Full" width="300" height="225" class="size-medium wp-image-127" /></a><p class="wp-caption-text">Ethernet TV - Full</p></div><br />
<div id="attachment_126" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-arduino.jpg"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-arduino-300x225.jpg" alt="Ethernet TV - Arduino" title="Ethernet TV - Arduino" width="300" height="225" class="size-medium wp-image-126" /></a><p class="wp-caption-text">Ethernet TV - Arduino</p></div><br />
<div id="attachment_128" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-iphone.jpg" target="_blank"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-iphone-300x225.jpg" alt="Ethernet TV - iphone" title="Ethernet TV - iphone" width="300" height="225" class="size-medium wp-image-128" /></a><p class="wp-caption-text">Ethernet TV - iphone</p></div><br />
<div id="attachment_129" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-iphone2.jpg" target="_blank"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/ethernet_tv-iphone2-300x225.jpg" alt="Ethernet TV - iphone + TV" title="Ethernet TV - iphone + TV" width="300" height="225" class="size-medium wp-image-129" /></a><p class="wp-caption-text">Ethernet TV - iphone + TV</p></div><br />
<div id="attachment_92" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/dsc00233.jpg" target="_blank"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/dsc00233-300x225.jpg" alt="Ethernet TV - Test Text" title="Ethernet TV - Test Text" width="300" height="225" class="size-medium wp-image-92" /></a><p class="wp-caption-text">Ethernet TV - Test Text</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2009/05/ethernet-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ethernet DMX</title>
		<link>http://elec.tkjweb.dk/blog/2009/03/ethernet-dmx-controller/</link>
		<comments>http://elec.tkjweb.dk/blog/2009/03/ethernet-dmx-controller/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 20:33:58 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[dmx]]></category>
		<category><![CDATA[ethernet]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=48</guid>
		<description><![CDATA[Last week I recieved the Arduino Ethernet Shield &#8211; http://www.arduino.cc/en/Main/ArduinoEthernetShield
There were all ready complete examples provided, so it was very easy to get started.
Then I thought it would be nice to have a Ethernet DMX Controller, so i could type the IP-Adress of the Ethernet Shield in explorer, and from there control my movinghead (Stairville [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I recieved the Arduino Ethernet Shield &#8211; <a href="http://www.arduino.cc/en/Main/ArduinoEthernetShield">http://www.arduino.cc/en/Main/ArduinoEthernetShield</a><br />
There were all ready complete examples provided, so it was very easy to get started.<br />
Then I thought it would be nice to have a Ethernet DMX Controller, so i could type the IP-Adress of the Ethernet Shield in explorer, and from there control my movinghead (Stairville MV250H)</p>
<p>Â </p>
<p>Then I found this page showing how to use an MAX485 and the Arduino as a DMX interface &#8211; <a href="http://iad.projects.zhdk.ch/physicalcomputing/hardware/arduino/dmx-shield-fur-arduino/">http://iad.projects.zhdk.ch/physicalcomputing/hardware/arduino/dmx-shield-fur-arduino/</a><br />
I tried it, and it worked <img src='http://elec.tkjweb.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; And the Arduino could communicate with my movinghead.</p>
<p>Â </p>
<p>Then I combined the Ethernet example and the DMX example, to make a HTML Page where i could click on different buttons to change the DMX values that would be sent to my movinghead.<br />
Try it out yourself&#8230; You need a MAX485, follow the link above on how to connect it to the Arduino. Just use pin 3 instead of pin 11, as the Ethernet shield uses Pin 9 to 13!</p>
<p>Â </p>
<p><span style="text-decoration: underline;">Here is the Arduino code:</span></p>
<p><code></p>
<pre>#include &lt;Ethernet.h&gt;<br />
#include &lt;stdio.h&gt;</p>
<p>// include pin definition library -----------------------------------------------<br />
#include "pins_arduino.h"</p>
<p>// variable definitions ---------------------------------------------------------<br />
int sig = 3;       // DMX signal pin - DO NOT CHANGE</p>
<p>// network configuration.  gateway and subnet are optional.<br />
byte mac[] = { 0x00, 0x12, 0x34, 0x56, 0x78, 0x90 }; // Change this to the MAC the Ethernet shield should have<br />
byte ip[] = { 192, 168, 1, 1 }; // Change this to the IP-Adress the Ethernet shield should have<br />
<a href="http://elec.tkjweb.dk/blog/2009/03/ethernet-dmx-controller/#cut-1">Read more...</a><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2009/03/ethernet-dmx-controller/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
