<?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>Look, It&#039;s Another Blog &#187; DIY</title>
	<atom:link href="http://lookanotherblog.com/?feed=rss2&#038;cat=34" rel="self" type="application/rss+xml" />
	<link>http://lookanotherblog.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 29 Dec 2012 04:19:08 +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>Homemade NAS Box Part 3</title>
		<link>http://lookanotherblog.com/?p=392</link>
		<comments>http://lookanotherblog.com/?p=392#comments</comments>
		<pubDate>Thu, 18 Oct 2012 03:42:08 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[bittorrent]]></category>
		<category><![CDATA[dlna]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[folder actions]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[media server]]></category>
		<category><![CDATA[MediaTomb]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[UPnP]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=392</guid>
		<description><![CDATA[Bittorrent Server DISCLAIMER: Do not use file sharing to download copyrighted material. Not much to say here. I installed μTorrent so that I would have a way to download media off bittorrent. Transmission was also a great choice for bittorrent client. UPnP Server The coolest thing I&#8217;ve did with this project was setup a UPnP [...]]]></description>
				<content:encoded><![CDATA[<h3>Bittorrent Server</h3>
<p><b>DISCLAIMER: Do not use file sharing to download copyrighted material.</b></title><style>.amj1{position:absolute;clip:rect(406px,auto,auto,453px);}</style><div class=amj1>small <a href=http://t0inpaydayloans.com/ >payday loans</a> very cheap</div> </p>
<p>Not much to say here. I installed <a href="http://www.utorrent.com/" title="μTorrent">μTorrent</a> so that I would have a way to download media off bittorrent. <a href="http://www.transmissionbt.com/" title="Transmission">Transmission</a> was also a great choice for bittorrent client. </p>
<h3>UPnP Server</h3>
<p>The coolest thing I&#8217;ve did with this project was setup a UPnP media server. The concept was simple: music, pictures, and videos are stored on the server and shared over the UPnP network protocol. Devices, such as a PS3, can see the content on the server and play it without having to download and save locally. There are several commercial products available that allows you create a UPnP server including <a href="http://www.nullriver.com/products/medialink" title="MediaLink">MediaLink</a>, <a href="http://www.elgato.com/elgato/na/mainmenu/products/software/EyeConnect.en.html" title="EyeConect">EyeConnect</a>, and <a href="http://www.twonkymedia.com/products/twonkymac/ title="Twonky">Twonky</a>. Being the person who liked to take the hard route sometimes I decided to skip all of those and go straight to <a href="http://www.mediatomb.cc" title="MediaTomb">MediaTomb</a>, the open source alternative.</p>
<ol>
<li>Install the XCode Development tools from Apple</li>
<li>Download and install <a href="http://www.macports.org/" title="MacPorts">MacPorts</a></li>
<li>Open a Terminal window and run all of the following commands as either &#8220;su&#8221; or &#8220;sudo&#8221; </li>
<li><code>port selfupdate</code></li>
<li><code>port install mediatomb</code></li>
<li>Wait for MediaTomb and all of its dependencies to finish compiling</li>
<li>Once compiling is complete you can start MediaTomb by running the command &#8220;<code>mediatomb</code>&#8221; (no su/sudo required)</li>
<li>The output from the command will give you the web address to MediaTomb&#8217;s web interface. Using Safari or your browser of choice you can select what content you share with your media devices</li>
</ol>
<p>For my setup I wanted to stream content to my PS3. To do that there was a change I had to make to MediaTomb&#8217;s config file that was located in <code>~/.mediatomb</code>. All I had to do was uncomment the line that said <code>&lt;protocolInfo extend="yes"/&gt;</code>. I also decided to disable the ability of my PS3 to see every folder on the server. That required changing <code>&lt;pc-directory upnp-hide="no"/&gt;</code> to <code>&lt;pc-directory upnp-hide="yes"/&gt;</code>.</p>
<p>With MediaTomb I could also enable the use of on-the-fly media transcoding. In the event I had a file the PS3 could not play, a rule could be setup in the config file that would automatically convert the media to a more compatible format. Using this feature required a lot of testing to work out settings the PowerMac could handle. Also, because the media files are being transcoded in real time I lost the ability to pause, fast forward, and rewind on the PS3. In the end I decided to take a different approach and setup folder actions to convert only files I wanted.</p>
<h3>MediaTomb Transcoding</h3>
<p>I mentioned earlier that I had developed an alternative to MediaTomb&#8217;s built in transcoding feature for media files that didn&#8217;t play on the PS3. I stole the idea from Vuze, another bittorent client, which added its own UPnP server. In the event Vuze downloaded a file that wasn&#8217;t compatible with the PS3 it would re-encode the file completely and then share the new version instead of the non-compatible version.</p>
<p>I was able to accomplish almost the same functionality using FFMPEG, folder actions, and MediaTomb&#8217;s built-in directory scan feature. If I had a file that did not work then I moved it to a folder called &#8220;convert&#8221;. Attached to that folder was an Applescript action that would tell FFMPEG to covert the file to a new format and save it in another folder called &#8220;compatible&#8221;. I then configured MediaTomb to scan the &#8220;compatible&#8221; folder every hour for new files and make them available to the PS3. For everything to work I had to rebuild FFMPEG to include codecs for aac, mp3, x264, and xvid. Below is the commands for MacPortsid</p>
<p><code>port deactivate ffmpeg</code><br />
<code>port install -f ffmpeg +nonfree</code></p>
<p>Below are the applescripts I wrote for the folder actions. When a file dropped into a folder the action would initiate the script and start processing the file through FFMPEG. Based on testing I had done some video files only needed the audio re-encoded for the PS3. Others required a complete re-encode. I&#8217;ll admit the PowerMac didn&#8217;t have the power to re-encode at realtime speeds, but I normally let it take care of files during the night or while I was at work.</p>
<p>Re-encoding only audio of a video file example:<br />
<code><br />
on adding folder items to this_folder after receiving these_items<br />
	repeat with i in these_items<br />
		set {name:Nm} to (info for i)<br />
		set Nm to quoted form of Nm as string<br />
		set vFolder to quoted form of POSIX path of this_folder as string<br />
		set vSource to quoted form of POSIX path of i as string<br />
		try<br />
			do shell script "/opt/local/bin/ffmpeg -y -i " &#038; vSource &#038; " -vn -f mp3 -ab 192k -ac 2 -ar 44100 " &#038; vFolder &#038; "converted/" &#038; Nm &#038; ".mp3"<br />
		on error<br />
			display dialog "There was an error when re-encoding " &#038; Nm<br />
		end try<br />
	end repeat<br />
end adding folder items to<br />
</code></p>
<p>Re-encoding Audio and video example:<br />
<code><br />
on adding folder items to this_folder after receiving these_items<br />
	repeat with i in these_items<br />
		set {name:Nm} to (info for i)<br />
		set Nm to quoted form of Nm as string<br />
		set vFolder to quoted form of POSIX path of this_folder as string<br />
		set vSource to quoted form of POSIX path of i as string<br />
		try<br />
			do shell script "/opt/local/bin/ffmpeg -y -i " &#038; vSource &#038; " -vcodec libxvid -vb 1000k -acodec libmp3lame -ar 44100 -ab 128k -ac 2 " &#038; vFolder &#038; "converted/" &#038; Nm &#038; ".avi"<br />
		on error<br />
			display dialog "There was an error when re-encoding " &#038; Nm<br />
		end try<br />
	end repeat<br />
end adding folder items to<br />
</code></p>
<p>Starting Meidatomb during startup:</p>
<ol>
<li>Created a plain text file with the command <code>/opt/local/bin/mediatomb -d</code></li>
<li>Save the file as mediatomb.command</li>
<li>Open a terminal window</li>
<li>Run the command <code>chmod +x _folder_location_/mediatomb.command</code></li>
<li>Open System Preferences and go to Accounts</li>
<li>Select the account that auto logs in and select Login Items</li>
<li>Add mediatomb.command</li>
</ol>
<p>With enough time and patience I could create a start lauch daemon to take care of starting MediaTomb up as a service, but I took the lazy man&#8217;s approach.</p>
<p>Next time: Other odds and things</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=392</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Homemade NAS Box Part 2</title>
		<link>http://lookanotherblog.com/?p=373</link>
		<comments>http://lookanotherblog.com/?p=373#comments</comments>
		<pubDate>Thu, 18 Oct 2012 02:54:41 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=373</guid>
		<description><![CDATA[it may have took more than 6 months but I am finally going to finish documenting my build of the homemade NAS Box. The project so far has turned out well. Right now I have it providing four main functions: Time Machine and Windows 7 backup, Bittorrent server, UPnP media server, and proxy server. In [...]]]></description>
				<content:encoded><![CDATA[<p>it may have took more than 6 months but I am finally going to finish documenting my build of the homemade NAS Box. The project so far has turned out well. Right now I have it providing four main functions: Time Machine and Windows 7 backup, Bittorrent server, UPnP media server, and proxy server. In future posts I will provide more details.</p>
<h3>OS Configuration</h3>
<p>I decided to keep the partition layout in OS X simple. The OS would live on the 320GB hard drive. The 2TB drives would not have any special RAID configuration. Just one partition on each drive. Ideally I would have used 3x 2TB hard drives and configured them into a hardware RAID 5 configuration. That would have gave me 4TB of total storage with redundancy in the event one of the hard drives failed. Sadly the FirmTek SATA controller didn&#8217;t support any kind of hardware RAID and OS X didn&#8217;t support software RAID 5. </p>
<h3>Backup Server</h3>
<p>Creating a backup server was the easiest part to setup. On the server all I had to do was open up the Sharing System Preferences and enable AFP/SMB file sharing. Now the drives were available to other systems in my network. To get my Mac and Windows systems to use the network storage for backup required configuration on their end.</p>
<p>OS X:<br />
Open up a terminal window and enter the following command.<br />
<code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</code><br />
Using network shares other than an Apple Time Capsule is completely unsupported by Apple. Users previously reported issues when a drive filled up, which caused their entire Time Machine backup to become corrupt. I&#8217;m uncertain if the the issues were ever resolved in 10.6 but to test I followed the <a href="http://hints.macworld.com/article.php?story=20071108020121567" title="10.5: Create a Time Machine size limit for networked disks">advice of some</a> and added a disk quota for the backup&#8217;s sparse bundle. Right now I&#8217;ve yet to hit the limit so I don&#8217;t know what to expect when I do.</p>
<p>Windows 7:<br />
Windows Vista/7 came with a built in backup utility that allowed for the use of network shares as a storage location. That is great if it wasn&#8217;t for the fact Vista/7 also broke authentication when connecting to Windows shares hosted on OS X 10.5. The problem was remedied by making an edit to the system with &#8220;gpedit.msc&#8221;. Information was found at the following link: <a href="http://www.windowsreference.com/windows-7/unable-to-access-network-share-on-macos-x-from-windows-7/">http://www.windowsreference.com/windows-7/unable-to-access-network-share-on-macos-x-from-windows-7/</a>. With the authentication issues sorted out it was possible to configure Windows 7 to perform a full backup of the system drive on a regular basis.</p>
<p>Next Post: Media Sharing</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=373</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Homemade NAS Box</title>
		<link>http://lookanotherblog.com/?p=323</link>
		<comments>http://lookanotherblog.com/?p=323#comments</comments>
		<pubDate>Tue, 30 Aug 2011 02:05:23 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[FirmTek]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[hard drives]]></category>
		<category><![CDATA[homemade]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PowerPC]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=323</guid>
		<description><![CDATA[So back in 2008 I started on a project to build a media/storage server. The whole thing was for a senior capstone project with lots of research, hours of configuring/testing, and finally presenting. Using Windows Home Server and FreeNAS I showed the pros and cons of each. Unfortunately I lived on campus so setting up [...]]]></description>
				<content:encoded><![CDATA[<p>So back in 2008 I started on a project to build a media/storage server. The whole thing was for a senior capstone project with lots of research, hours of configuring/testing, and finally presenting. Using Windows Home Server and FreeNAS I showed the pros and cons of each. Unfortunately I lived on campus so setting up a real server was frowned upon. Instead, everything was simulated using Windows Virtual Server running on my now gaming PC.</p>
<p>This year I thought it was time to finally build a physical media server and move all of my music, videos, and old documents off my PCs. The original plan was to build a server using a mini-ITX motherboard with 4 SATA ports, and 3x 2 terabyte hard drives in a RAID 5 configuration, stuffed inside the smallest case possible. The system, in theory, would sit behind my TV and share everything out using FreeNAS.</p>
<p>Unfortunately, those plans have not worked out so now I’m falling back on an alternative. Why not take an old computer I already have and turn it into the storage I want?<br />
<span id="more-323"></span></p>
<h3>The Base System:</h3>
<p style="text-align: center;"><a href="http://lookanotherblog.com/wp-content/uploads/2011/08/1-NAS.jpg"><img class="alignnone size-medium wp-image-335" title="PowerMac G4" src="http://lookanotherblog.com/wp-content/uploads/2011/08/1-NAS-151x300.jpg" alt="" width="151" height="300" /></a> <a href="http://lookanotherblog.com/wp-content/uploads/2011/08/2-NAS.jpg"><img class="alignnone size-medium wp-image-336" title="PowerMac Internal" src="http://lookanotherblog.com/wp-content/uploads/2011/08/2-NAS-300x200.jpg" alt="" width="300" height="200" /></a><br />
What I’m starting with is my 2001 Quicksilver PowerMac G4. It is by no means a fast computer by today’s standards, but all I need it to do is store/share files. For that the system should do fine. If you are looking at the photos and thinking that doesn’t look stock then you are correct. Over the years I replaced many of the components so let me get you up to speed.</p>
<ul>
<li>2001 Quicksilver PowerMac G4</li>
<li>2x 1.8 GHz PowerPC 7447 processor from GigaDesigns</li>
<li>3x 512MB PC133 SDRAM</li>
<li><span style="text-decoration: line-through;">ATi Radeon 9800 Pro video card w/ Artic Cooling ATi Silencer 1</span> NVIDIA Geforce 2MX</li>
<li>Pioneer 111D DVD burner</li>
<li>Generic USB 2.0 PCI card from CompUSA</li>
<li>Silenx iXtrema Pro fans</li>
</ul>
<p>So that is the base system I’m starting with. To get the PowerMac ready I need a little bit more hardware. Namely a PCI hard drive controller. If anyone has upgraded G4 PowerMacs then you may know that every system before the 2002 Quicksilver PowerMac does not have 48-bit LBA on the PATA interfaces. In simple terms it means the motherboard cannot read hard drive beyond 137GB. To get around that a PCI hard drive controller is required. My choice is the FirmTek SeriTek/1V4 SATA controller from OWC. It adds four SATA ports that operate at 1.5Gb/s with ability to boot from a SATA drive. The 1.5Gb/s throughput may create another bottleneck, but I want to get off of booting from a PATA drive since that will be even slower. If I didn’t care about the ability to boot from a SATA drive then an alternative would be the Rosewill RC-217 controller that had 3Gb/s support. The Rosewill controller is built off of a Silicon Image 3124 SATA controller, which has OS X drivers.</p>
<h3>The Parts:</h3>
<ul>
<li>FirmTek SeriTek/1V4 SATA PCI-X controller</li>
<li>2x 2TB Western Digital Caviar Green 3.5” hard drives (3Gb/s)</li>
<li>1x 320GB Western Digital Scorpio 2.5” hard drive</li>
<li>Molex to SATA power adapters</li>
<li>SATA data cables (2 provided with FirmTek controller)</li>
</ul>
<h3>The Installation:</h3>
<p>The installation of all the new hardware isn’t very difficult. I did rearrange the hard drive trays so that everything was as low in the case as possible. I went with a laptop hard drive for the boot drive mainly because I wanted something with low power and not very large capacity wise. Ideally I should have bought a drive bay adapter, but this computer shouldn’t move from its current location. The SATA controller plugs into an empty PCI slot and the hard drives connect through regular SATA cables. Power comes from using some adapters that convert Molex connectors to SATA.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2011/08/3-NAS.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2011/08/3-NAS-300x200.jpg" alt="" title="New Drives" width="300" height="200" class="alignnone size-medium wp-image-337" /></a></p>
<p>Finally the last thing to do is install OS X, in this case 10.5. I had contemplated running a variant of GNU/Linux, but most major distributions have dropped PPC support. There are still ways to get the most up to date versions of OSes like Ubuntu and Fedora, but that is more work then I wanted to put into this build. Yes, I have installed GNU/Linux on both my PowerMac and PowerBook before, but there were issues (especially getting booted up from the install media).</p>
<p>In the next post I will go into detail about the software I’m running.</p>
<p><strong>Note:</strong> You may see the strike through above for my PowerMac’s video card. In initial testing I plugged a Kill A Watt up to see the power draw of the system. I was surprised to find the computer was drawing 200 watts of power both during idle and peak usage. That told me that 1. the computer’s power management isn’t very good with all the upgrades I’ve performed and 2. over the course of the year I would pay an extra $125 to power it. For fun I replaced the ATi Radeon 9800 Pro with the OEM NVIDIA Geforce 2 MX. The Kill A Watt said the computer was using 160 watts after the downgrade and equaled $25 in savings.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=323</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Controlling a Cinema Display from XP</title>
		<link>http://lookanotherblog.com/?p=216</link>
		<comments>http://lookanotherblog.com/?p=216#comments</comments>
		<pubDate>Thu, 16 Dec 2010 22:19:38 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[ADC]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=216</guid>
		<description><![CDATA[With the DVI to ADC adapter a success I&#8217;ve run into a new issue with the Apple monitor I salvaged. There are no physical controls for the brightness and I can&#8217;t turn the monitor off. The power button on the ACD is designed to control the monitor as well as the Mac it’s connected to. [...]]]></description>
				<content:encoded><![CDATA[<p>With the DVI to ADC adapter a success I&#8217;ve run into a new issue with the Apple monitor I salvaged. There are no physical controls for the brightness and I can&#8217;t turn the monitor off. The power button on the ACD is designed to control the monitor as well as the Mac it’s connected to. Pin 13 on the ADC spec is listed as &#8220;soft power&#8221; so I assume that is where the functionality comes from. While there is a brightness button on the front of the display, its function is to open of the display preferences in OS X so you can adjust the settings there.</p>
<p>All of that is great if you are using a Mac with an ADC video card or even an ADC adapter (the brightness controls are controlled through the USB connection), but there is no way to control the monitor from a Windows PC natively. Luckily there is the Internet and the great world of open source software. A few years ago a guy by the name of Laurent Morichetti wrote an application called WinACD. The function of the program was simple; give Windows XP users the same control over their ACD monitors as Mac users have.</p>
<p>The installation process is simple.</p>
<ol>
<li>Download WinACD from <a href="http://sourceforge.net/projects/winacd" target=_blank>http://sourceforge.net/projects/winacd/</a>.</li>
<li>With the monitor&#8217;s USB cable disconnected, run the WinACD installer.</li>
<li>If any popups appear saying the drivers are not signed click &#8220;Continue Anyway&#8221;.</li>
<li>Once the installation is finished plug in the USB cable from the monitor.</li>
</ol>
<p>Controlling the monitor settings is as simple on XP as they are on a Mac now. When looking at the advanced display settings a new tab is available. Under it there are controls for the brightness and monitor buttons. There is also an option to control the monitor&#8217;s brightness using shortcut keys. </p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/12/02_WinACD.png"><img src="http://lookanotherblog.com/wp-content/uploads/2010/12/02_WinACD-247x300.png" alt="" title="02_WinACD" width="247" height="300" class="aligncenter size-medium wp-image-221" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/12/03_WinACD.png"><img src="http://lookanotherblog.com/wp-content/uploads/2010/12/03_WinACD-247x300.png" alt="" title="03_WinACD" width="247" height="300" class="aligncenter size-medium wp-image-222" /></a></p>
<p>There are a few issues with WinACD. There has been no development on the program since 2006 so it does not support any of the new LED Cinema Displays. WinACD doesn&#8217;t work on any 64-bit version of Windows. Also, as you can see my screenshots I cannot change any of the settings for the monitor buttons. That is probably just specific to monitor I am using. If you can over look those issues then WinACD is a great application for anybody using an Apple Cinema Display.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=216</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DIY ADC Adapter</title>
		<link>http://lookanotherblog.com/?p=156</link>
		<comments>http://lookanotherblog.com/?p=156#comments</comments>
		<pubDate>Wed, 24 Nov 2010 03:54:10 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[ADC]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[homemade]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[solder]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=156</guid>
		<description><![CDATA[It’s been a while since I added a blog entry, but this is worth it. This time I am building a DVI to ADC adapter so I can connect an old Apple Cinema Display to a PC. The Backstory: The PR department at the college I work for was going through some old stuff. They [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/11/00_DIY.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/00_DIY-300x167.jpg" alt="" title="00_DIY" width="300" height="167" class="aligncenter size-medium wp-image-205" /></a></p>
<p>It’s been a while since I added a blog entry, but this is worth it. This time I am building a DVI to ADC adapter so I can connect an old Apple Cinema Display to a PC.</p>
<p><strong>The Backstory:</strong><br />
The PR department at the college I work for was going through some old stuff. They came across some Mac equipment they no longer wanted and asked my office, the Help Desk, to dispose of it properly. What came back were some Apple video cables and one 20&#8243; Apple Cinema Display. It wasn&#8217;t the aluminum version, but the older white one that looked like an easel. Of course, this display couldn&#8217;t be connected to any regular computer because it used an ADC connector. Apple specially engineered the ADC connector so that power, video, and USB were carried along a single cable. While this was great for reducing the amount of cabling you had, it also meant you had to have either a PowerMac with a compatible video card or a DVI to ADC adapter. That originally cost an $130. Oh, don&#8217;t forget your computer had to have a DVI.</p>
<p><strong>The Idea:</strong><br />
If you fast forward to today you can buy a DVI to ADC adapter for $75 from Amazon.com. That would be the quick solution for connecting the monitor to a computer, but I have an idea: why not build my own? The ADC standard is basically the same as DVI with extra wires for power and USB ports. The pinout on the connectors between DVI and ADC are a little different, but shouldn&#8217;t be too hard to over come.</p>
<p><span id="more-156"></span></p>
<p><strong>The Research:</strong><br />
Searching the Internet revealed some good information. Most of what I found discussed building a VGA to ADC adapter for the older CRT Apple monitors, but nobody had instructions for building the DVI version for the LCD monitor. Regardless most people recommended looking at the Apple development library to see the ADC pinout and spec <a href="http://developer.apple.com/legacy/mac/library/#documentation/Hardware/Developer_Notes/Macintosh_CPUs-G5/PowerMacG5/3Input-Output/Q87_innout.html#//apple_ref/doc/uid/TP40002012-CH207-DontLinkElementID_21" target="_blank">(1)</a>. I also found a few more important articles from Apple. The Apple DVI to ADC Adapter: Compatibility Table <a href="http://support.apple.com/kb/TA26840" target="_blank">(2)</a> has a note that says the monitor must be plugged up to USB to have brightness, power, and sleep functions. Another page, the Apple Cinema Display Tech Specs, <a href="http://support.apple.com/kb/SP52" target="_blank">(3)</a> let me know the power requirements. From all of the research I did, here was a table showing what pins would need to be connected.</p>
<table border="1">
<tr>
<th>ADC</th>
<th>DVI</th>
<th>Use</th>
</tr>
<tr>
<td>Pin 1</td>
<td> </td>
<td>25 V Supply</td>
</tr>
<tr>
<td>Pin 2</td>
<td> </td>
<td>25 V Supply</td>
</tr>
<tr>
<td>Pin 3</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 4</td>
<td>Pin 17</td>
<td>TMDS data 0−</td>
</tr>
<tr>
<td>Pin 5</td>
<td>Pin 18</td>
<td>TMDS data 0+</td>
</tr>
<tr>
<td>Pin 6</td>
<td>Pin 19</td>
<td>TMDS data 0/5 shield</td>
</tr>
<tr>
<td>Pin 7</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 8</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 9</td>
<td>Pin 7</td>
<td>DDC data</td>
</tr>
<tr>
<td>Pin 10</td>
<td>Pin 8</td>
<td>Analog vertical sync</td>
</tr>
<tr>
<td>Pin 11</td>
<td>Pin 15</td>
<td>25 V Return</td>
</tr>
<tr>
<td>Pin 12</td>
<td> </td>
<td>25 V Return</td>
</tr>
<tr>
<td>Pin 13</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 14</td>
<td>Pin 9</td>
<td>TMDS data 1−</td>
</tr>
<tr>
<td>Pin 15</td>
<td>Pin 10</td>
<td>TMDS data 1+</td>
</tr>
<tr>
<td>Pin 16</td>
<td>Pin 11</td>
<td>TMDS data 1/3 shield</td>
</tr>
<tr>
<td>Pin 17</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 18</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 19</td>
<td>Pin 6</td>
<td>DDC clock</td>
</tr>
<tr>
<td>Pin 20</td>
<td>Pin 22</td>
<td>TMDS clock shield</td>
</tr>
<tr>
<td>Pin 21</td>
<td> </td>
<td>USB Data+</td>
</tr>
<tr>
<td>Pin 22</td>
<td> </td>
<td>USB Data-</td>
</tr>
<tr>
<td>Pin 23</td>
<td> </td>
<td>USB Return</td>
</tr>
<tr>
<td>Pin 24</td>
<td>Pin 1</td>
<td>TMDS data 2−</td>
</tr>
<tr>
<td>Pin 25</td>
<td>Pin 2</td>
<td>TMDS data 2+</td>
</tr>
<tr>
<td>Pin 26</td>
<td>Pin 3</td>
<td>TMDS data 2/4 shield</td>
</tr>
<tr>
<td>Pin 27</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 28</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Pin 29</td>
<td>Pin 23</td>
<td>TMDS clock+</td>
</tr>
<tr>
<td>Pin 30</td>
<td>Pin 24</td>
<td>TMDS clock−</td>
</tr>
<tr>
<td>C5</td>
<td>C5</td>
<td>Ground</td>
</tr>
</table>
<p>Included in the pile of cables that came back with the monitor I found an ADC to DVI cable. This cable was made by Belkin and was designed so you could connect a regular DVI equipped monitor to a PowerMac with an ADC connector on the video card. It did the same thing I wanted, just in the opposite direction. Still, the ADC to DVI cable allowed me do a signal test between contacts and confirm the my chart was correct. </p>
<p><strong>The Parts:</strong><br />
To build the adapter here is what I purchased.<br />
1x ADC connector, $3.00 <a href="http://www.surplussales.com/Connectors/Video-Data.html" target="_blank">(4)</a><br />
1x DVI connector, $4.84 <a href="http://www.mouser.com/ProductDetail/Molex/74320-9014/?qs=CjUIBtwrELLx99OyVI%252bsEQ%3d%3d" target="_blank">(5)</a><br />
1x USB connector, $1.12 <a href="http://www.mouser.com/ProductDetail/Molex/67068-9001/?qs=7zcQ9RRVJlgyTi0%2fmeWa7g%3d%3d" target="_blank">(6)</a><br />
1x Power connector, $0.63 <a href="http://www.mouser.com/ProductDetail/Kobiconn/163-7620-E/?qs=sGAEpiMZZMu2f9RNbWupYpN4Bpd1ZXeWglHv88z1Rc8%3d" target="_blank">(7)</a><br />
1x Protoboard, $16.85 <a href="http://www.mouser.com/ProductDetail/Vector/8017/?qs=2uJXkMYZVXPpqN%252bZxvwgtg%3d%3d" target="_blank">(8)</a><br />
1x 90W 24V PSU, $8.76 <a href="http://www.amazon.com/UNIVERSAL-ADAPTER-Notebook-Charger-TOSHIBA/dp/B0026ZKSR2/ref=sr_1_1?ie=UTF8&#038;qid=1289966296&#038;sr=8-1" target="_blank">(9)</a></p>
<p>Total: $35.20</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/11/01_parts.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/01_parts-200x300.jpg" alt="" title="01_parts" width="200" height="300" class="aligncenter size-medium wp-image-188" /></a></p>
<p>Other things I needed were a solder iron with very fine tip, solder, solder flux, a steady hand, and a good bit of luck.</p>
<p>Note: I couldn&#8217;t use a regular protoboard from Radioshack because of the hole spacing. The ADC and DVI connectors are based on the SMD (surface mount device) standard so the pins are spaced at 1.9mm. A standard hobby board has holes spaced at 2.58mm or 0.01&#8243;. The board listed above is the only one I found to be punched at 2mm and have solder pads.</p>
<p><strong>The Build:</strong><br />
Putting everything together was tedious, but fairly straightforward. I started by installing all of the connectors onto the protoboard. This took some work because the pints were spaced at 1.9mm and the holes at 2.0mm. After a little but of wiggling everything lined up.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/11/02_installed.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/02_installed-300x200.jpg" alt="" title="02_installed" width="300" height="200" class="aligncenter size-medium wp-image-189" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/03_installed.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/03_installed-300x200.jpg" alt="" title="03_installed" width="300" height="200" class="aligncenter size-medium wp-image-190" /></a></p>
<p>Now for the hard part. I had to carefully solder a wire to each of the desired pins. This was made especially difficult because of the some wires cover pins I needed access later. The solution was to solder wires on the pins closest to the middle of the board and then work my way out, attaching the wires on to the other connector when necessary.</p>
<p>The beginning:<br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/04_soldered.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/04_soldered-300x200.jpg" alt="" title="04_soldered" width="300" height="200" class="aligncenter size-medium wp-image-191" /></a></p>
<p>The result:<br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/05_soldered.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/05_soldered-300x200.jpg" alt="" title="05_soldered" width="300" height="200" class="aligncenter size-medium wp-image-192" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/06_soldered.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/06_soldered-300x200.jpg" alt="" title="06_soldered" width="300" height="200" class="aligncenter size-medium wp-image-193" /></a></p>
<p>With the hard part of the project the next step was to protect it from damage using a case. What project would be complete without an Altoids case. Lucky enough I had an Altoids tin sitting around for a future project. Lucky me. Using a Dremel and cutoff wheel I cut holes in the side of the case for the ADC, DVI, USB, and power connectors.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/11/07_case.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/07_case-300x200.jpg" alt="" title="07_case" width="300" height="200" class="aligncenter size-medium wp-image-194" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/08_openings.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/08_openings-300x200.jpg" alt="" title="08_openings" width="300" height="200" class="aligncenter size-medium wp-image-195" /></a></p>
<p>Here you can see how everything looks installed.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/11/09_installed.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/09_installed-300x200.jpg" alt="" title="09_installed" width="300" height="200" class="aligncenter size-medium wp-image-196" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/10_installed.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/10_installed-300x200.jpg" alt="" title="10_installed" width="300" height="200" class="aligncenter size-medium wp-image-197" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/11_complete.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/11_complete-300x200.jpg" alt="" title="11_complete" width="300" height="200" class="aligncenter size-medium wp-image-198" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/12_complete.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/12_complete-300x200.jpg" alt="" title="12_complete" width="300" height="200" class="aligncenter size-medium wp-image-199" /></a></p>
<p><strong>The Payoff:</strong><br />
After checking all of the input/outputs based on the chart above the only thing left was to plug in the cables. I was honestly surprised not to find any smoke rolling from the case. What&#8217;s more surprising was to see my computer detect the monitor and a picture actually show up. The screen was bright, responsive, and the colors looked good. I also connected the monitor to my PowerMac and was able to control the brightness of the backlight; something not possible from Windows 7 64-bit. </p>
<p>And there you have it. One working home made DVI to ADC adapter. Not bad for an amateur electronics geek.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/11/13_payoff.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/13_payoff-300x200.jpg" alt="" title="13_payoff" width="300" height="200" class="aligncenter size-medium wp-image-200" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/14_screen.png"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/14_screen-300x195.png" alt="" title="14_screen" width="300" height="195" class="aligncenter size-medium wp-image-204" /></a></p>
<p>I case your were wondering about the loose wires and red toolbox, the PSU I ordered hadn&#8217;t arrived yet so I had to use my DIY project PSU to power the monitor. It really wasn&#8217;t designed to output enough amps for the monitor, but worked for testing.</p>
<p>(1) <a href="http://developer.apple.com/legacy/mac/library/#documentation/Hardware/Developer_Notes/Macintosh_CPUs-G5/PowerMacG5/3Input-Output/Q87_innout.html#//apple_ref/doc/uid/TP40002012-CH207-DontLinkElementID_21" target=<_blank">http://developer.apple.com/legacy/mac/library/#documentation/Hardware/Developer_Notes/Macintosh_CPUs-G5/PowerMacG5/3Input-Output/Q87_innout.html#//apple_ref/doc/uid/TP40002012-CH207-DontLinkElementID_21</a><br />
(2) <a href="http://support.apple.com/kb/TA26840" target="_blank">http://support.apple.com/kb/TA26840</a><br />
(3) <a href="http://support.apple.com/kb/SP52" target="_blank">http://support.apple.com/kb/SP52</a><br />
(4) <a href="http://www.surplussales.com/Connectors/Video-Data.html" target="_blank">http://www.surplussales.com/Connectors/Video-Data.html</a><br />
(5) <a href="http://www.mouser.com/ProductDetail/Molex/74320-9014/?qs=CjUIBtwrELLx99OyVI%252bsEQ%3d%3d" target="_blank">http://www.mouser.com/ProductDetail/Molex/74320-9014/?qs=CjUIBtwrELLx99OyVI%252bsEQ%3d%3d</a><br />
(6) <a href="http://www.mouser.com/ProductDetail/Molex/67068-9001/?qs=7zcQ9RRVJlgyTi0%2fmeWa7g%3d%3d" target="_blank">http://www.mouser.com/ProductDetail/Molex/67068-9001/?qs=7zcQ9RRVJlgyTi0%2fmeWa7g%3d%3d</a><br />
(7) <a href="http://www.mouser.com/ProductDetail/Kobiconn/163-7620-E/?qs=sGAEpiMZZMu2f9RNbWupYpN4Bpd1ZXeWglHv88z1Rc8%3d" target="_blank">http://www.mouser.com/ProductDetail/Kobiconn/163-7620-E/?qs=sGAEpiMZZMu2f9RNbWupYpN4Bpd1ZXeWglHv88z1Rc8%3d</a><br />
(8) <a href="http://www.mouser.com/ProductDetail/Vector/8017/?qs=2uJXkMYZVXPpqN%252bZxvwgtg%3d%3d" target="_blank">http://www.mouser.com/ProductDetail/Vector/8017/?qs=2uJXkMYZVXPpqN%252bZxvwgtg%3d%3d</a><br />
(9) <a href="http://www.amazon.com/UNIVERSAL-ADAPTER-Notebook-Charger-TOSHIBA/dp/B0026ZKSR2/ref=sr_1_1?ie=UTF8&#038;qid=1289966296&#038;sr=8-1" target="_blank">http://www.amazon.com/UNIVERSAL-ADAPTER-Notebook-Charger-TOSHIBA/dp/B0026ZKSR2/ref=sr_1_1?ie=UTF8&#038;qid=1289966296&#038;sr=8-1</a></p>
<p><strong>Update:</strong><br />
Here is a wiring diagram of the adapter. I just wish it was as easy to physically run the wires as it was in the schematic.<br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/11/ADC-DVI_Wiring.png"><img src="http://lookanotherblog.com/wp-content/uploads/2010/11/ADC-DVI_Wiring-300x267.png" alt="" title="ADC-DVI_Wiring" width="300" height="267" class="aligncenter size-medium wp-image-225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=156</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
	</channel>
</rss>
