<?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>DIY Live &#187; Programming</title>
	<atom:link href="http://www.diylive.net/index.php/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.diylive.net</link>
	<description>Do-it-yourself projects and technology updates</description>
	<lastBuildDate>Tue, 15 Mar 2011 17:44:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Video signal generation with PIC chip</title>
		<link>http://www.diylive.net/index.php/2006/01/22/video-signal-generation-with-pic-chip/</link>
		<comments>http://www.diylive.net/index.php/2006/01/22/video-signal-generation-with-pic-chip/#comments</comments>
		<pubDate>Sun, 22 Jan 2006 23:04:16 +0000</pubDate>
		<dc:creator>Greg Lipscomb</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.diylive.net/?p=106</guid>
		<description><![CDATA[The idea of creating video signals with a microcontroller is very fascinating to me. Creating live video data through software is not an easy task. The task is even more complicated if implemented on a PIC chip. The video signal has to constantly be generated, and any calculations have to be done during a small [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://diy.griffshp.com/wp-content/picgamesys.jpg' alt='' /><br />
<br />
The idea of creating video signals with a microcontroller is very fascinating to me.  Creating live video data through software is not an easy task.  The task is even more complicated if implemented on a PIC chip.  The video signal has to constantly be generated, and any calculations have to be done during a small window of time between frames being drawn.  It is much easier to have a hardware video signal generator such as a video card, and then feed the preformed information to it.<br />
<br />
The above picture is a picture of a game system created around the PIC16F84.  It contains both the video generation software, as well as the game software.  This chip is an 18 pin microcontroller made by <a href="http://www.microchip.com" rel="nofollow">Microchip</a>.  Rickard Grunee writes:<br />
<em>&#8230;I have designed the hardware of the PIC game system to be able to run several different kinds of games. It has two standard C64/Amiga/Atari joysticks and video and audio output. The processor is a PIC16F84 running at 12MHz. The description of the hardware is placed on this separate page as it is the same for both of my PIC-based video games. So far I&#8217;ve only made two games, <a href="http://www.rickard.gunee.com/projects/video/pic/pong.php" rel="nofollow">Pong</a> and <a href="http://www.rickard.gunee.com/projects/video/pic/tetris.php" rel="nofollow">Tetris</a>, but some day there might be more games for the system. (Most unlikely that I write more games though as I probably will write more games for the <a href="http://www.rickard.gunee.com/projects/video/sx/gamesys.php" rel="nofollow">SX-system</a>  instead)&#8230;</em><br />
<br />
You can read all about how to generate video on this chip at <a href="http://www.rickard.gunee.com/projects/video/pic/gamesys.php" rel="nofollow">www.rickard.gunee.com</a>  Sadly my new microcontroller programmer will not program the 16F84.  I may have to build my own <a href="http://www.diylive.net/index.php/2005/11/12/build-your-own-microcontroller-programmer/">programmer</a>.<br />
<br />
<img src='http://diy.griffshp.com/wp-content/video_signal.png' alt='' /><br />
<br />
<img src='http://diy.griffshp.com/wp-content/video_signal_output.png' alt='' /><br />
<br />
I am not going to go into the specifics of how to generate video, because it is very complicated.  You can read a good article on it <a href="http://www.rickard.gunee.com/projects/video/pic/howto.php" rel="nofollow">here.</a>  The two pictures you see are from rickard gunee&#8217;s site.  The first one is a sample video signal output from his chip, and the next picture is the output on the screen.  The timing of the video signal is very important.  The spikes on the signal correspond to the vertical lines on the screen.  This signal is the information for one horizontal sweep across the screen.  It gives all of the information for one row of pixels.  It has on the left, a set-up spike, and then there is an 8 microsecond pause.  The other spikes you see correspond to the white, and gray stripes.  The baseline is the information for black.  This video only has thre shades.  The first is black, then their is gray, and then their is white.  One warning for this site, is that since it is produced in Europe, it is on the PALS system, and not NTSC, which is the American format for telivision.<br />
<br />
Another good resource for creating video signals using a microcontroller (Atmel mega32) can be found <a href="http://instruct1.cit.cornell.edu/courses/ee476/video/index.html" rel="nofollow">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diylive.net/index.php/2006/01/22/video-signal-generation-with-pic-chip/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>DIY pong game</title>
		<link>http://www.diylive.net/index.php/2005/11/15/diy-pong-game/</link>
		<comments>http://www.diylive.net/index.php/2005/11/15/diy-pong-game/#comments</comments>
		<pubDate>Tue, 15 Nov 2005 14:19:43 +0000</pubDate>
		<dc:creator>Greg Lipscomb</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.diylive.net/?p=45</guid>
		<description><![CDATA[Well, here is yet another cornell project. Why am I still using them? Because they are cool, and complex, and I really want to make one of these. They use an atmel mega 32 microcontroller. They program the entire game, including the video output to control a television. This is the game that I would [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://diy.griffshp.com/wp-content/pong.jpg' alt='' /><br />
<br />
Well, here is yet another cornell project.  Why am I still using them?  Because they are cool, and complex, and I really want to make one of these.  They use an atmel mega 32 microcontroller.  They program the entire game, including the video output to control a television.  This is the game that I would love to make.  They even made their own controllers.  You can see this next picture is a pic of their circuit board.</p>
<p><img src='http://diy.griffshp.com/wp-content/pong_circuit.jpg' alt='' /><br />
</p>
<p>It is not that complex of a circuit, but if you look at the code, you see it is really hard.  They use bitmaps to create the components that move, and they have a bouncing ball program, and just build it from there.  You have to keep track of the ball, by giving it coordinates, and if your coordinates match that of one of your paddles, you know to bounce it back at a certain angle.  I would love to make this, because it was the beginning of all of our gaming.  Anyway, go see the link here for a thorough walkthrough of how it is done.<br />
<a href="http://instruct1.cit.cornell.edu/courses/ee476/FinalProjects/s2004/dc248/dc248amz8/photos.html">[link]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diylive.net/index.php/2005/11/15/diy-pong-game/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Robot follows black tape</title>
		<link>http://www.diylive.net/index.php/2005/11/04/robot-follows-black-tape/</link>
		<comments>http://www.diylive.net/index.php/2005/11/04/robot-follows-black-tape/#comments</comments>
		<pubDate>Sat, 05 Nov 2005 03:23:36 +0000</pubDate>
		<dc:creator>Greg Lipscomb</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Robots]]></category>

		<guid isPermaLink="false">http://diy.griffshp.com/?p=33</guid>
		<description><![CDATA[Here is a website that makes a robot that will follow a line of electrical tape layed down on the floor. This is similar to one I made in undergrad. If I can find my notebook, I might put up how I did it. I do have a video of mine somewhere, also, but no [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://diy.griffshp.com/wp-content/SweetInsides.jpg' alt='' /><br />
<br />
Here is a website that makes a robot that will follow a line of electrical tape layed down on the floor.  This is similar to one I made in undergrad.  If I can find my notebook, I might put up how I did it.  I do have a video of mine somewhere, also, but no pics.  This guy&#8217;s robot is a little more complex than mine, though mine did have some cool features.  It would follow a line, and when it found the end, it would stop for exactly two seconds, and retrace its steps.  Mine was different than everyone elses in the class.  They all made their robot turn around, and use the same sensor.  Mine had a sensor on the back, and backed up along the line.  I will look for the video, it is really cool.  Anyway,  check out this guy&#8217;s site.  It looks like a fun thing to make.</p>
<p><a href="http://www.robotroom.com/Sweet.html">[Link]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diylive.net/index.php/2005/11/04/robot-follows-black-tape/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build a Gps</title>
		<link>http://www.diylive.net/index.php/2005/11/01/build-a-gps/</link>
		<comments>http://www.diylive.net/index.php/2005/11/01/build-a-gps/#comments</comments>
		<pubDate>Tue, 01 Nov 2005 18:48:46 +0000</pubDate>
		<dc:creator>Greg Lipscomb</dc:creator>
				<category><![CDATA[Circuits]]></category>
		<category><![CDATA[DIY Projects]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://diy.griffshp.com/?p=27</guid>
		<description><![CDATA[Here is a how-to project for making your own GPS. This guy takes a LCD from a cell phone, and a GPS unit, and makes everything he needs for his own personal GPS. It seems hard, but what a challenge. [Link]]]></description>
			<content:encoded><![CDATA[<p><img src='http://diy.griffshp.com/wp-content/board_small.jpg' alt='' /><br />
Here is a how-to project for making your own GPS.  This guy takes a LCD from a cell phone, and a GPS unit, and makes everything he needs for his own personal GPS.  It seems hard, but what a challenge.</p>
<p><a href="http://www.mhd.miun.se/~stok/ghetto-gps/">[Link]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diylive.net/index.php/2005/11/01/build-a-gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play mario brothers on your ipod.</title>
		<link>http://www.diylive.net/index.php/2005/10/27/play-mario-brothers-on-your-ipod/</link>
		<comments>http://www.diylive.net/index.php/2005/10/27/play-mario-brothers-on-your-ipod/#comments</comments>
		<pubDate>Thu, 27 Oct 2005 21:29:12 +0000</pubDate>
		<dc:creator>Greg Lipscomb</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://diy.griffshp.com/?p=11</guid>
		<description><![CDATA[Here is a hack that will let you play your old gameboy games on your ipod. Very cool!!! [link]]]></description>
			<content:encoded><![CDATA[<p>Here is a hack that will let you play your old gameboy games on your ipod.  Very cool!!!</p>
<p><a href="http://ipastudio.com/forums/showthread.php/t/2315">[link]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diylive.net/index.php/2005/10/27/play-mario-brothers-on-your-ipod/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

