<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Make something: Software Engineering to Cooking</title>
	<atom:link href="http://mulps.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mulps.wordpress.com</link>
	<description>Software Engineering, Programming, Cooking, DIY</description>
	<lastBuildDate>Mon, 31 Aug 2009 22:20:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mulps.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/38d7bece39fac8b51ecad1d93a87a6e6?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Make something: Software Engineering to Cooking</title>
		<link>http://mulps.wordpress.com</link>
	</image>
			<item>
		<title>Arduino Kitchen Timer</title>
		<link>http://mulps.wordpress.com/2009/08/26/arduino-kitchen-timer/</link>
		<comments>http://mulps.wordpress.com/2009/08/26/arduino-kitchen-timer/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 18:26:38 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[arduino atmega328p 74hc164 7-segment keypad led]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/08/26/arduino-kitchen-timer/</guid>
		<description><![CDATA[Arduino Kitchen Timer is made of 4-digit 7-segment LED, and 12-key keypad, 8-bit shift register 74HC164, and some resistors, decoupling capacitor, and Piezo speaker for the sound output.
* Do not imagine I am using this timer in my kitchen because I don&#8217;t. :) It&#8217;s just the name of device&#8230;
Feature:
  Kitchen Timer. Maximum duration is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=367&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Arduino Kitchen Timer is made of 4-digit 7-segment LED, and 12-key keypad, 8-bit shift register 74HC164, and some resistors, decoupling capacitor, and Piezo speaker for the sound output.</p>
<object type="application/x-shockwave-flash" width="400" height="300" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=3860093030&amp;flickr_show_info_box=true"></param>
<param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true"
flashvars="photo_id=3860093030&amp;flickr_show_info_box=true" height="300" width="400"></embed></object>
<p>* Do not imagine I am using this timer in my kitchen because I don&#8217;t. :) It&#8217;s just the name of device&#8230;</p>
<p>Feature:<br />
  Kitchen Timer. Maximum duration is 99 minutes and 99 sec. Beep when it&#8217;s done.</p>
<p>Parts:<br />
  1 x <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8653">Keypad 12 Button</a><br />
  1 x <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9214">7-Segment Yellow 4 Digit LED</a><br />
  1 x <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=296-4235-5-ND">74AC164 </a><br />
  8 x 470 ohm Resistor (LED)<br />
    * 220 ohm may work but it&#8217;s a little bit brighter. I used <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=4116R-1-471LF-ND">470 ohm resistor array</a>.<br />
  3 x 4.7K ohm Resistor (Keypad pullup resistors)<br />
  1 x Piezo Speaker taken out from old PC.</p>
<p>Pin Assignment:<br />
  Digital 02-05 Common Cathode of LED<br />
  Digital 06-12 Keypad Scanning<br />
  Digital 13 Piezo Speaker Output<br />
  Analog 0 74AC164 Data<br />
  Analog 1 74AC164 Clock<br />
  Analog 3-5 Not Used.</p>
<p>Video and Semantic in eagle format will be added soon.<br />
Porting to Arduino Kitchen Timer Shield is on the way, but I will replace the keypad with just three or four buttons.</p>
<pre>
#include   &lt;GenKeypad.h&gt; //<a href="http://libduino.svn.sourceforge.net/viewvc/libduino/GenKeypad.tar.gz">My keypad library</a>
#include   &lt;MsTimer2.h&gt; //download this library at http://www.arduino.cc/playground/Main/MsTimer2

#define SHIFT_DATA 15     <span style="color:#777755;">// 74AC164 data pin</span>
#define SHIFT_CLOCK  14   <span style="color:#777755;">// clock pin</span>
#define SPEAKER_PIN 13

<span style="color:#996600;">int</span> NumPins[4] = {2, 3, 4, 5};
<span style="color:#996600;">int</span> SS = 0;
<span style="color:#996600;">int</span> MM = 0;
<span style="color:#996600;">int</span> start = 0;
<span style="color:#996600;">char</span> input[4] = {0, 0, 0, 0};
<span style="color:#996600;">int</span> inputIndex = 0;
<span style="color:#996600;">int</span> length = 15; <span style="color:#777755;">// the number of notes</span>
<span style="color:#996600;">char</span> notes[] = <span style="color:#CC0000;">"ccccccccccccccc"</span>;
<span style="color:#996600;">int</span> beats[] = { 3, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1 };

<span style="color:#996600;">int</span> tempo = 300;
<span style="color:#996600;">int</span> beeping = 0;

<span style="color:#777755;">/**</span>
<span style="color:#777755;">   Keypad </span>
<span style="color:#777755;"> **/</span>
GenKeypad keypad;

<span style="color:#777755;">//Key Input Callback Functions </span>

<span style="color:#CC6600;">void</span> keyUP(<span style="color:#996600;">char</span> key)
{
  <span style="color:#777755;">//Serial.print("keyUP: ");  </span>
  <span style="color:#777755;">//Serial.println(key);  </span>
}  

<span style="color:#996600;">int</span> atoi(<span style="color:#996600;">char</span> c)
{
  <span style="color:#CC6600;">if</span> (c == 0)
    <span style="color:#CC6600;">return</span> 0;
  <span style="color:#CC6600;">else</span>
    <span style="color:#CC6600;">return</span> (c - <span style="color:#CC0000;">'0'</span>);
}

<span style="color:#CC6600;">void</span> keyDOWN(<span style="color:#996600;">char</span> key)
{
  <span style="color:#996600;">Serial</span>.<span style="color:#996600;">print</span>(<span style="color:#CC0000;">"keyDOWN: "</span>);
  <span style="color:#996600;">Serial</span>.<span style="color:#996600;">println</span>(key);  

  <span style="color:#CC6600;">if</span> (key == <span style="color:#CC0000;">'#'</span> &amp;&amp; start == 0)
  {
    <span style="color:#777755;">//Convert input chars into MM:SS</span>
    MM = atoi(input[0]) * 10 + atoi(input[1]);
    SS = atoi(input[2]) * 10 + atoi(input[3]);

    <span style="color:#CC6600;">if</span> (MM + SS &gt; 0)
      start = 1;
    <span style="color:#CC6600;">return</span>;
  }
  <span style="color:#CC6600;">else</span> <span style="color:#CC6600;">if</span> (key == <span style="color:#CC0000;">'#'</span> &amp;&amp; start == 1)
  {
    start = 0;
    <span style="color:#CC6600;">return</span>;
  }

  <span style="color:#CC6600;">if</span> (key == <span style="color:#CC0000;">'*'</span>)
  {
    <span style="color:#CC6600;">if</span> (beeping == 0)
    {
      <span style="color:#CC6600;">for</span> (<span style="color:#996600;">int</span> i = 0; i &lt; 4; i++)
        input[i] = 0;
    }

    inputIndex = 0;
    start = 0;
    beeping = 0;
    <span style="color:#996600;">digitalWrite</span>(SPEAKER_PIN, <span style="color:#CC0000;">LOW</span>);
  }
  <span style="color:#CC6600;">else</span>
  {
    shiftDigit(input);
    input[3] = key;      

    inputIndex++;
    inputIndex %= 4;
  }
}  

<span style="color:#CC6600;">void</span> shiftDigit(<span style="color:#996600;">char</span> input[4])
{
  input[0] = input[1];
  input[1] = input[2];
  input[2] = input[3];
}

<span style="color:#CC6600;">void</span> keyPRESSING(<span style="color:#996600;">char</span> key)
{
  <span style="color:#777755;">//Serial.print("keyPressed: ");  </span>
  <span style="color:#777755;">//Serial.println(key);  </span>
}

<span style="color:#CC6600;">void</span> <span style="color:#993300;"><b>setup</b></span>(<span style="color:#CC6600;">void</span>)
{
  <span style="color:#996600;">Serial</span>.<span style="color:#996600;">begin</span>(9600);

  <span style="color:#777755;">//Digital pins parameter order matters!!</span>
  keypad.setRowPins(11, 6, 7, 9);  <span style="color:#777755;">//These pins are used as OUTPUT pins.</span>
  keypad.setColPins(10, 12, 8);    <span style="color:#777755;">//These pins are used as INPUT pins.  </span>
  keypad.setFunction(GenKeypad::EVENT_KEY_UP,       keyUP);
  keypad.setFunction(GenKeypad::EVENT_KEY_DOWN,     keyDOWN);
  keypad.setFunction(GenKeypad::EVENT_KEY_PRESSING, keyPRESSING);

  <span style="color:#996600;">pinMode</span>(SPEAKER_PIN, <span style="color:#CC0000;">OUTPUT</span>);

  <span style="color:#996600;">pinMode</span>(SHIFT_DATA, <span style="color:#CC0000;">OUTPUT</span>);
  <span style="color:#996600;">pinMode</span>(SHIFT_CLOCK, <span style="color:#CC0000;">OUTPUT</span>);

  <span style="color:#996600;">pinMode</span>(NumPins[0], <span style="color:#CC0000;">OUTPUT</span>);
  <span style="color:#996600;">pinMode</span>(NumPins[1], <span style="color:#CC0000;">OUTPUT</span>);
  <span style="color:#996600;">pinMode</span>(NumPins[2], <span style="color:#CC0000;">OUTPUT</span>);
  <span style="color:#996600;">pinMode</span>(NumPins[3], <span style="color:#CC0000;">OUTPUT</span>);

  <span style="color:#996600;">digitalWrite</span>(NumPins[0], <span style="color:#CC0000;">HIGH</span>);
  <span style="color:#996600;">digitalWrite</span>(NumPins[1], <span style="color:#CC0000;">HIGH</span>);
  <span style="color:#996600;">digitalWrite</span>(NumPins[2], <span style="color:#CC0000;">HIGH</span>);
  <span style="color:#996600;">digitalWrite</span>(NumPins[3], <span style="color:#CC0000;">HIGH</span>);

  <span style="color:#777755;">// writing default values (from the datasheet)</span>

  MsTimer2::set(1000, secPulse);
  MsTimer2::start();
}

<span style="color:#996600;">int</span> digitSS = 0;
<span style="color:#996600;">int</span> digitMM = 0;
<span style="color:#996600;">int</span> digit = 0;

  <span style="color:#996600;">byte</span> font[10] = {
	<span style="color:#777755;">//abcdefg.</span>
    0b11111100,
    0b01100000,
    0b11011010,
    0b11110010,
    0b01100110,
    0b10110110,
    0b10111110,
    0b11100100,
    0b11111110,
    0b11100110
  };

<span style="color:#996600;">byte</span> c2font(<span style="color:#996600;">char</span> c)
{
  const <span style="color:#996600;">byte</span> blank = 0b00000000;

  <span style="color:#CC6600;">if</span> (c == 0)
    <span style="color:#CC6600;">return</span> blank;
  <span style="color:#CC6600;">else</span>
    <span style="color:#CC6600;">return</span> font[c-<span style="color:#CC0000;">'0'</span>];
}

<span style="color:#CC6600;">void</span> setChars(<span style="color:#996600;">char</span> input[4], <span style="color:#996600;">int</span> delaymsec)
{
  <span style="color:#996600;">digitalWrite</span>(NumPins[0], <span style="color:#CC0000;">LOW</span>);
  <span style="color:#996600;">shiftOut</span>(SHIFT_DATA, SHIFT_CLOCK, <span style="color:#CC0000;">LSBFIRST</span>, c2font(input[3]));
  <span style="color:#996600;">delay</span>(delaymsec);
  <span style="color:#996600;">digitalWrite</span>(NumPins[0], <span style="color:#CC0000;">HIGH</span>);

  <span style="color:#996600;">digitalWrite</span>(NumPins[1], <span style="color:#CC0000;">LOW</span>);
  <span style="color:#996600;">shiftOut</span>(SHIFT_DATA, SHIFT_CLOCK, <span style="color:#CC0000;">LSBFIRST</span>, c2font(input[2]));
  <span style="color:#996600;">delay</span>(delaymsec);
  <span style="color:#996600;">digitalWrite</span>(NumPins[1], <span style="color:#CC0000;">HIGH</span>);

  <span style="color:#996600;">digitalWrite</span>(NumPins[2], <span style="color:#CC0000;">LOW</span>);
  <span style="color:#996600;">shiftOut</span>(SHIFT_DATA, SHIFT_CLOCK, <span style="color:#CC0000;">LSBFIRST</span>, c2font(input[1]));
  <span style="color:#996600;">delay</span>(delaymsec);
  <span style="color:#996600;">digitalWrite</span>(NumPins[2], <span style="color:#CC0000;">HIGH</span>);

  <span style="color:#996600;">digitalWrite</span>(NumPins[3], <span style="color:#CC0000;">LOW</span>);
  <span style="color:#996600;">shiftOut</span>(SHIFT_DATA, SHIFT_CLOCK, <span style="color:#CC0000;">LSBFIRST</span>, c2font(input[0]));
  <span style="color:#996600;">delay</span>(delaymsec);
  <span style="color:#996600;">digitalWrite</span>(NumPins[3], <span style="color:#CC0000;">HIGH</span>);

  <span style="color:#996600;">delay</span>(delaymsec);
}

<span style="color:#CC6600;">void</span> beep()
{
  <span style="color:#CC6600;">if</span> (start)
  {
    <span style="color:#996600;">digitalWrite</span>(SPEAKER_PIN, <span style="color:#CC0000;">HIGH</span>);
    beeping = 1;
    start = 0;
  }
  <span style="color:#CC6600;">else</span>
    <span style="color:#996600;">digitalWrite</span>(SPEAKER_PIN, <span style="color:#CC0000;">LOW</span>);
}

<span style="color:#CC6600;">void</span> secPulse()
{
  <span style="color:#CC6600;">if</span> (start)
  {
    SS--;
    <span style="color:#CC6600;">if</span> (SS == 0 &amp;&amp; MM == 0)
    {
      beep();
      start = 0;
      <span style="color:#CC6600;">return</span>;
    }

    <span style="color:#CC6600;">if</span> (SS == -1 &amp;&amp; MM &gt; 0)
    {
      MM--;
      SS = 59;
    }

  }
}
<span style="color:#CC6600;">void</span> playTone(<span style="color:#996600;">int</span> tone, <span style="color:#996600;">int</span> duration) {
  <span style="color:#CC6600;">for</span> (<span style="color:#996600;">long</span> i = 0; i &lt; duration * 1000L; i += tone * 2)
  {
    <span style="color:#996600;">digitalWrite</span>(SPEAKER_PIN, <span style="color:#CC0000;">HIGH</span>);
    <span style="color:#996600;">delayMicroseconds</span>(tone);
    <span style="color:#996600;">digitalWrite</span>(SPEAKER_PIN, <span style="color:#CC0000;">LOW</span>);
    <span style="color:#996600;">delayMicroseconds</span>(tone);
  }
}

<span style="color:#CC6600;">void</span> playNote(<span style="color:#996600;">char</span> note, <span style="color:#996600;">int</span> duration) {
  <span style="color:#996600;">char</span> names[] = { <span style="color:#CC0000;">'c'</span>, <span style="color:#CC0000;">'d'</span>, <span style="color:#CC0000;">'e'</span>, <span style="color:#CC0000;">'f'</span>, <span style="color:#CC0000;">'g'</span>, <span style="color:#CC0000;">'a'</span>, <span style="color:#CC0000;">'b'</span>, <span style="color:#CC0000;">'C'</span>, <span style="color:#CC0000;">'F'</span>, <span style="color:#CC0000;">'G'</span>};
  <span style="color:#996600;">int</span> tones[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 473, 478};

  <span style="color:#777755;">// play the tone corresponding to the note name</span>
  <span style="color:#CC6600;">for</span> (<span style="color:#996600;">int</span> i = 0; i &lt; 10; i++) {
    <span style="color:#CC6600;">if</span> (names[i] == note)
    {
      playTone(tones[i], duration);
    }
  }
}

<span style="color:#996600;">char</span> * clearLeadingZero(<span style="color:#996600;">char</span> input[4])
{
  <span style="color:#CC6600;">if</span> (input[0] == <span style="color:#CC0000;">'0'</span>)
  {
    input[0] = 0;
    <span style="color:#CC6600;">if</span> (input[1] == <span style="color:#CC0000;">'0'</span>)
    {
      input[1] = 0;
      <span style="color:#CC6600;">if</span> (input[2] == <span style="color:#CC0000;">'0'</span>)
        input[2] = 0;
    }
  }

  <span style="color:#CC6600;">return</span> input;
}

<span style="color:#CC6600;">void</span> processLCD()
{
  <span style="color:#CC6600;">static</span> <span style="color:#996600;">char</span> chs[4] = {<span style="color:#CC0000;">'0'</span>, <span style="color:#CC0000;">'0'</span>, <span style="color:#CC0000;">'0'</span>, <span style="color:#CC0000;">'0'</span>};

  <span style="color:#CC6600;">if</span> (start)
  {
    chs[3] = SS%10 + <span style="color:#CC0000;">'0'</span>;
    chs[2] = SS/10 + <span style="color:#CC0000;">'0'</span>;
    chs[1] = MM%10 + <span style="color:#CC0000;">'0'</span>;
    chs[0] = MM/10 + <span style="color:#CC0000;">'0'</span>;

    setChars(clearLeadingZero(chs), 2);
  }
  <span style="color:#CC6600;">else</span>
  {
    setChars(input, 2);
  }
}

<span style="color:#CC6600;">void</span> <span style="color:#993300;"><b>loop</b></span>()
{
  <span style="color:#996600;">int</span> someKeyDown = keypad.scanKeys(0);
  keypad.handlePostEvents(someKeyDown);      

  processLCD();

  <span style="color:#CC6600;">if</span> (beeping = 1)
  {
     beeping++;
     beeping %=3;

     <span style="color:#CC6600;">for</span> (<span style="color:#996600;">int</span> i = 0; i &lt; length; i++)
     {
       someKeyDown = keypad.scanKeys(0);
       keypad.handlePostEvents(someKeyDown);      

       processLCD();
       <span style="color:#CC6600;">if</span> (beeping != 0)
         playNote(notes[i], beats[i] * tempo/2);

       <span style="color:#777755;">// pause between notes</span>
       <span style="color:#996600;">delay</span>(tempo / 2);
     }
  }
}
</pre>
Posted in Arduino Tagged: arduino atmega328p 74hc164 7-segment keypad led <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/367/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=367&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/08/26/arduino-kitchen-timer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>NTSC on Arduino</title>
		<link>http://mulps.wordpress.com/2009/07/29/vga-on-arduino/</link>
		<comments>http://mulps.wordpress.com/2009/07/29/vga-on-arduino/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 03:56:15 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/?p=355</guid>
		<description><![CDATA[I switched to NTSC signal. I think it&#8217;s much simpler and easier, but it&#8217;s monochrome.
I&#8217;ve managed to get around 40 pixels width and working to increase vertical resolution.
It&#8217;s a very good idea to use constant length of interrupt to send NTSC signal apart from your pixel manipulation.
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1188261175/0
&#8212;
I am trying to build VGA (analog RGB) signal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=355&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I switched to NTSC signal. I think it&#8217;s much simpler and easier, but it&#8217;s monochrome.<br />
I&#8217;ve managed to get around 40 pixels width and working to increase vertical resolution.<br />
It&#8217;s a very good idea to use constant length of interrupt to send NTSC signal apart from your pixel manipulation.</p>
<p>http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1188261175/0</p>
<p>&#8212;</p>
<p>I am trying to build VGA (analog RGB) signal output on Arduino.<br />
I found out that H/V Sync can be done by the built-in timer interrupt.</p>
<p>1. Arduino Pin-out assignment.</p>
<p>02: Red<br />
03: Green<br />
04: Blue<br />
(05: SyncFlag)<br />
06: VSync<br />
07: HSync<br />
10-13: SPI for EEPROM</p>
<p>(On going memo)</p>
<p>* Memory?<br />
  Frame buffer: 640 x 480 pixels x 3 bytes per pixel = 900KB<br />
  External EEPROM <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=301">2MB AT45DB161D</a> may be needed.</p>
<p>* Find out the maximum transmission rate.</p>
<p>* Double buffering with two Atmega chips and one 2MB AT45DB161D? possible?</p>
<p>* Any suggestions?</p>
<p>References:<br />
  http://avga.prometheus4.com/index.php?p=2-0 (AVR but not written for Arduino)<br />
  http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1228264461/all (Implementation issues discussed here.)<br />
  H/V Sync code using ISR timer: http://olb7.free.fr/arduino/syncInterrupt.pde<br />
  EEPROM:<br />
    http://blog.blockos.org/?p=27<br />
    http://todotani.cocolog-nifty.com/blog/2009/07/arduino-4cf4.html</p>
Posted in Arduino  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=355&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/07/29/vga-on-arduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>Breadboard Arduino</title>
		<link>http://mulps.wordpress.com/2009/07/28/breadboard-arduino/</link>
		<comments>http://mulps.wordpress.com/2009/07/28/breadboard-arduino/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 04:04:28 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/?p=349</guid>
		<description><![CDATA[You can build DIY arduino in your breadboard. The best site I found is: http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard
I have not managed the USB part yet, but I am sure you can add the Arduino Serial USB Board 
So far, the LED blinking works good on my breadboard.
Eventually I am planning to do some VGA signal experiment on the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=349&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You can build DIY arduino in your breadboard. The best site I found is: http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard</p>
<p>I have not managed the USB part yet, but I am sure you can add the <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8165">Arduino Serial USB Board</a> </p>
<p>So far, the LED blinking works good on my breadboard.<br />
Eventually I am planning to do some VGA signal experiment on the breadboard.</p>
Posted in Arduino Tagged: Arduino <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/349/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=349&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/07/28/breadboard-arduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>Digit Counter with 7-segment LED + Arduino</title>
		<link>http://mulps.wordpress.com/2009/06/26/7-segment-led-with-arduino/</link>
		<comments>http://mulps.wordpress.com/2009/06/26/7-segment-led-with-arduino/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 01:14:01 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[7-segment]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[LTD-DB552]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/?p=266</guid>
		<description><![CDATA[It just counts 0 to 9 with 7-segment LED. Only digit 1 side has been used since the digit 2 is burned out…
Adjust output pins for your environment. For simplicity, you need 7 pins for output in this example.
I am sure I can reduce the number of pins with demux. That&#8217;s gonna be the next [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=266&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><object type="application/x-shockwave-flash" width="400" height="300" data="http://www.flickr.com/apps/video/stewart.swf?v=1.161"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="photo_id=3663934417&amp;flickr_show_info_box=true"></param>
<param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true"
flashvars="photo_id=3663934417&amp;flickr_show_info_box=true" height="300" width="400"></embed></object>
<p>It just counts 0 to 9 with 7-segment LED. Only digit 1 side has been used since the digit 2 is burned out…<br />
Adjust output pins for your environment. For simplicity, you need 7 pins for output in this example.<br />
I am sure I can reduce the number of pins with demux. That&#8217;s gonna be the next project.<br />
<br />
Parts: <a href="http://www.amazon.com/gp/product/B001VK18HC?ie=UTF8&amp;tag=usgame-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B001VK18HC">Arduino Duemilanove</a><img src="http://www.assoc-amazon.com/e/ir?t=usgame-20&amp;l=as2&amp;o=1&amp;a=B001VK18HC" width="1" height="1" border="0" alt="" style="border:none!important;margin:0!important;" />, Breadboard, a register and LTD-5523AB (<a href="http://optodatabook.liteon.com/DataBookFiles/12231/D5523AB.pdf">Datasheet</a>)<br />
</p>
<p>The LED-facing-upright LTD-5523AB pin-order is:</p>
<pre>
18, 17, 16, 15, 14, 13, 12, 11, 10pin 
[------------LTD-5523AB------------]
     | - A - |       | - A - |
     F       B       F       B
     | - G - |       | - G - |
     E       C       E       C
     | - D - |       | - D - |
[------------LTD-5523AB------------]
01, 02, 03, 04, 05, 06, 07, 08, 09pin
</pre>
<p></p>
<p style="clear:left;">
<p>[7-segment LED for digit 1]<br />
A = 16pin, B = 15pin, C = 03pin, D = 02pin, E = 01pin, F = 18pin, DP = 04pin<br />
14pin is common cathode for digit 1 (it means it should be GNDed all the time.)</p>
<p>For example, to make the digit 3, just turn on A, B, C, D and G.</p>
<pre>
[7segment.pde]
//Output Pins
//* Adjust this for your pin outputs.
int ledPin[8] = {4, 5, 6, 7, 9, 10, 11, 12};  

//Segment to Pin
//* Adjust this for your 7 segment LED spec.
//                 A,  B, C, D, E,  F,  G, DP
int Seg2Pin[8] = {11, 10, 5, 6, 7, 9, 12, 4};

//Digit to Segment
// * You don't need modify this unless you want to change digits.
int Dec2Seg[11] =
{
//A(125), B(64), C(32), D(16), E(8), F(4), G(2), DP(1)
  0x07E, //Digit 0
  0x00C, //Digit 1
  0x0B6, //Digit 2
  0x09E, //Digit 3
  0x0CC, //Digit 4
  0x0DA, //Digit 5
  0x0FB, //Digit 6
  0x00E, //Digit 7
  0x0FF, //Digit 8
  0x0DF, //Digit 9
  0x100 //DP
};

void setup()                    // run once, when the sketch starts
{
  for (int i = 0; i &lt; 8; i++)
    pinMode(ledPin[i], OUTPUT);      // sets the digital pin as output
}

void clearAllSegments()
{
  //Turn off all segments
  for (int i = 0; i  0)
  {
    seg /= 2;
    if (seg &amp; 0x1)
      digitalWrite(Seg2Pin[pin], HIGH);   // sets the LED on
    pin++;
  }
}

void loop()                     // run over and over again
{
  //Count 0 to 9
  for( int digit = 0; digit &lt;= 10; digit++)
  {
    drawDigit(digit);
    delay(1000);                  // waits for a second
    clearAllSegments();
  }
}
</pre>
<p>Update 1: I change the 13pin to 9pin for output since 13pin has some builtin register.<br />
Update 2: I implemented a bit mask to select segments.n</p>
Posted in Arduino, Video Tagged: 7-segment, Arduino, LED, LTD-DB552, Video <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=266&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/26/7-segment-led-with-arduino/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>

		<media:content url="http://www.assoc-amazon.com/e/ir?t=usgame-20&#38;l=as2&#38;o=1&#38;a=B001VK18HC" medium="image" />
	</item>
		<item>
		<title>Scanner + Printer = Copy Machine</title>
		<link>http://mulps.wordpress.com/2009/06/20/scanner-printer-copy-machine/</link>
		<comments>http://mulps.wordpress.com/2009/06/20/scanner-printer-copy-machine/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 06:42:47 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[SANE]]></category>
		<category><![CDATA[scanbuttond]]></category>
		<category><![CDATA[scanimage]]></category>
		<category><![CDATA[scanner]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/06/20/scanner-printer-copy-machine/</guid>
		<description><![CDATA[Multi-functional printer is just a combination of printer and scanner.
So, why don&#8217;t you make DIY copy machine in Linux if you have a printer and scanner?
Make sure your scanner is supported in SANE in Linux, and install scanbuttond for scanner&#8217;s button control.
scanbuttond seems no longer in active development, but it works OK in CentOS.
I added [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=247&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Multi-functional printer is just a combination of printer and scanner.<br />
So, why don&#8217;t you make DIY copy machine in Linux if you have a printer and scanner?<br />
Make sure your scanner is supported in <a href="http://www.sane-project.org/">SANE</a> in Linux, and install <a href="http://scanbuttond.sourceforge.net/index.php">scanbuttond</a> for scanner&#8217;s button control.<br />
scanbuttond seems no longer in active development, but it works OK in CentOS.</p>
<p>I added these commands in /usr/local/etc/buttonpressed.sh as follows:</p>
<p>In the button pressed event,</p>
<pre>
scanimage --mode lineart --resolution 300 -x 215 -y 297 &gt; test.pnm
pnmtops -scale 1000 -dpi 300 test.pnm | lpr -PHL-2040
convert test.pnm /some/archive/`date + %Y%m%d%H%M`.pdf
</pre>
<p>So, whenever I press the button, it automatically starts scanning, then prints it out and archives as PDF.<br />
The only thing that bugs me is the slow scanning time&#8230;</p>
Posted in CentOS, Linux Tagged: CentOS, DIY, Linux, printer, SANE, scanbuttond, scanimage, scanner <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/247/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=247&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/20/scanner-printer-copy-machine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>How to move SVN repository to other server.</title>
		<link>http://mulps.wordpress.com/2009/06/12/memo-how-to-move-svn-repository-to-other-server/</link>
		<comments>http://mulps.wordpress.com/2009/06/12/memo-how-to-move-svn-repository-to-other-server/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 21:48:46 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/06/12/memo-how-to-move-svn-repository-to-other-server/</guid>
		<description><![CDATA[On old SVN Server side:
# svnadmin dump your_repository_dir &#62; repo.dmp

 * This will take more than minutes.
On new SVN Server side:
# svnadmin create repo
# svnadmin load repo &#60; repo.dmp

Note that taking a dump of repository does NOT dump the configuration files in repository.
So make you copy the conf directory.
References:
http://www.digitalmediaminute.com/article/2251/how-to-move-a-subversion-repository
http://2tbsp.com/node/88
http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5
Posted in Linux Tagged: backup, dump, svn [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=231&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On old SVN Server side:</p>
<pre># svnadmin dump your_repository_dir &gt; repo.dmp
</pre>
<p> * This will take more than minutes.</p>
<p>On new SVN Server side:</p>
<pre># svnadmin create repo
# svnadmin load repo &lt; repo.dmp
</pre>
<p>Note that taking a dump of repository does NOT dump the configuration files in repository.<br />
So make you copy the conf directory.</p>
<p>References:</p>
<p>http://www.digitalmediaminute.com/article/2251/how-to-move-a-subversion-repository<br />
http://2tbsp.com/node/88<br />
http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5</p>
Posted in Linux Tagged: backup, dump, svn <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=231&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/12/memo-how-to-move-svn-repository-to-other-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>How to move /home to other drive.</title>
		<link>http://mulps.wordpress.com/2009/06/10/memo-how-to-move-home-to-other-drive/</link>
		<comments>http://mulps.wordpress.com/2009/06/10/memo-how-to-move-home-to-other-drive/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 00:08:52 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[/home]]></category>
		<category><![CDATA[memo]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/06/10/memo-how-to-move-home-to-other-drive/</guid>
		<description><![CDATA[Be careful to check if your /home is mounted or just a directory.
Thanks to IBM, following this instruction suffice for everybody.
http://www.ibm.com/developerworks/linux/library/l-partplan.html
I finally made the /home in software RAID 1&#8230; Next thing I need a UPS for the machine.
Posted in Linux Tagged: /home, Linux, memo      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=200&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Be careful to check if your /home is mounted or just a directory.<br />
Thanks to IBM, following this instruction suffice for everybody.<br />
http://www.ibm.com/developerworks/linux/library/l-partplan.html</p>
<p>I finally made the /home in software RAID 1&#8230; Next thing I need a UPS for the machine.</p>
Posted in Linux Tagged: /home, Linux, memo <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=200&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/10/memo-how-to-move-home-to-other-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>Xen Paravirtualized CentOS domU on CentOS 5.3 dom0</title>
		<link>http://mulps.wordpress.com/2009/06/05/paravirtualized-centos-on-centos-5-3/</link>
		<comments>http://mulps.wordpress.com/2009/06/05/paravirtualized-centos-on-centos-5-3/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 06:30:36 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[XEN]]></category>
		<category><![CDATA[Paravirtualized]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/06/05/paravirtualized-centos-on-centos-5-3/</guid>
		<description><![CDATA[How to install paravirtualized CentOS 5.3 x64 as domU

# virt-install --paravirt \
               --name centosx64 \
               --ram 512 \
          [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=185&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>How to install paravirtualized CentOS 5.3 x64 as domU</strong></p>
<pre>
# virt-install --paravirt \
               --name centosx64 \
               --ram 512 \
               --file /home/xen/images/centosx64.img \
               --file-size 10 \
               --nographics \
               --location http://mirrors.kernel.org/centos/5.3/os/x86_64/
</pre>
<p>It means Memory: 512MB, Disk Image: 10GB and No Graphics<br />
Check the comment if you want to make use of pre-downloaded iso image or dvd.</p>
<p>If you want to add Desktop environment after instrallation, just add these.</p>
<pre>
# yum groupinstall "X Window System"
# yum groupinstall "GNOME Desktop Environment"
</pre>
<p>Reference: http://www.cyberciti.biz/tips/rhel-centos-xen-virtualization-installation-howto.html</p>
Posted in CentOS, Linux, XEN Tagged: CentOS, Linux, Paravirtualized, XEN <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=185&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/05/paravirtualized-centos-on-centos-5-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>CentOS 5.3 + xen-3.4-testing</title>
		<link>http://mulps.wordpress.com/2009/06/04/centos-5-3/</link>
		<comments>http://mulps.wordpress.com/2009/06/04/centos-5-3/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 00:54:03 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/06/04/centos-5-3/</guid>
		<description><![CDATA[$ su -
$ cd /usr/src
$ hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
$ cd xen-3.4-testing.hg
$ make world
$ make install
$ ./install.sh
* eth0 is not detected with this kernel at this point.
So, I have to build the kernel&#8230;
Reference: http://bderzhavets.wordpress.com/2009/04/17/setup-xen-34-centos-53-dom0-64-bit/
Posted in CentOS, Linux       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=183&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>$ su -<br />
$ cd /usr/src<br />
$ hg clone http://xenbits.xensource.com/xen-3.4-testing.hg<br />
$ cd xen-3.4-testing.hg<br />
$ make world<br />
$ make install<br />
$ ./install.sh</p>
<p>* eth0 is not detected with this kernel at this point.<br />
So, I have to build the kernel&#8230;</p>
<p>Reference: http://bderzhavets.wordpress.com/2009/04/17/setup-xen-34-centos-53-dom0-64-bit/</p>
Posted in CentOS, Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=183&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/04/centos-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
		<item>
		<title>CentOS 5.3 + linux-2.6.27 kernel</title>
		<link>http://mulps.wordpress.com/2009/06/04/xen-and-linux-2-6-27-kernel/</link>
		<comments>http://mulps.wordpress.com/2009/06/04/xen-and-linux-2-6-27-kernel/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 20:52:09 +0000</pubDate>
		<dc:creator>genki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[XEN]]></category>
		<category><![CDATA[XEN linux-2.6.27 2.6.27]]></category>

		<guid isPermaLink="false">http://mulps.wordpress.com/2009/06/04/xen-and-linux-2-6-27-kernel/</guid>
		<description><![CDATA[Anyway, I wasn&#8217;t happy with the XEN 3.3 with the xen kernel 2.6.18-128.1.10.el5xen (got these by yum)
Let&#8217;s update the newer kernel and Xen.
So, download the xen kernel 2.6.27, then apply patches, and compile. Let&#8217;s see if it works with Xen 3.4&#8230;
$ git clone http://xenbits.xen.org/git-http/xenclient/linux-2.6.27.git
$ cd linux-2.6.27
$ git clone http://xenbits.xen.org/git-http/xenclient/linux-2.6.27-pq.git .git/patches
$ guilt-push -a
(These commands above are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=166&subd=mulps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Anyway, I wasn&#8217;t happy with the XEN 3.3 with the xen kernel 2.6.18-128.1.10.el5xen (got these by yum)<br />
Let&#8217;s update the newer kernel and Xen.</p>
<p>So, download the xen kernel 2.6.27, then apply patches, and compile. Let&#8217;s see if it works with Xen 3.4&#8230;</p>
<p>$ git clone http://xenbits.xen.org/git-http/xenclient/linux-2.6.27.git<br />
$ cd linux-2.6.27<br />
$ git clone http://xenbits.xen.org/git-http/xenclient/linux-2.6.27-pq.git .git/patches<br />
$ guilt-push -a</p>
<p>(These commands above are taken from Xen-devel ML.)<br />
I have been looking for the best Linux distro + Xen, but I hope CentOS 5.3 will be the one.</p>
<p>$ make CONFIG_DEBUG_SECTION_MISMATCH=y</p>
<p>Error 1:<br />
drivers/built-in.o: In function `acpi_ec_read&#8217;:<br />
/usr/src/linux-2.6.27/drivers/acpi/ec.c:390: undefined reference to `in_query_wmi_event_data&#8217;<br />
&#8230;<br />
make: *** [.tmp_vmlinux1] Error 1</p>
<p>Patch 1: It&#8217;s fun to see this kind of comment &#8220;HACK ALERT!!&#8221; But just comment out this hack&#8230;</p>
<p>diff &#8211;git a/drivers/acpi/ec.c b/drivers/acpi/ec.c<br />
index 2359480..b2c0221 100644<br />
&#8212; a/drivers/acpi/ec.c<br />
+++ b/drivers/acpi/ec.c<br />
@@ -387,6 +387,7 @@ static int acpi_ec_read(struct acpi_ec *ec, u8 address, u8 * data)<br />
         /* HACK ALERT<br />
          * Please refer to wmi.c for an explanation on why we added this hack.<br />
          */<br />
+/*<br />
          if ( in_query_wmi_event_data == TRUE ) {<br />
                  if ( address == 0&#215;2b ) {<br />
                          wmi_event_data_index = 0;<br />
@@ -398,6 +399,7 @@ static int acpi_ec_read(struct acpi_ec *ec, u8 address, u8 * data)<br />
                          wmi_event_data_index++;<br />
                  }<br />
         }<br />
+*/</p>
<p>        return result;<br />
 }</p>
<p>$ make<br />
$ make install<br />
$ make modules_install<br />
$ DEPMOD  2.6.27.19-5.1<br />
$ mkinitrd /boot/initrd-2.6.27.19-5.1.img 2.6.27.19-5.1</p>
<p>Then, edit /boot/grub/menu.lst accordingly.</p>
Posted in CentOS, Linux, XEN Tagged: XEN linux-2.6.27 2.6.27 <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mulps.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mulps.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mulps.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mulps.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mulps.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mulps.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mulps.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mulps.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mulps.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mulps.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mulps.wordpress.com&blog=3308690&post=166&subd=mulps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mulps.wordpress.com/2009/06/04/xen-and-linux-2-6-27-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5e5028d6a26ebbd517d43712d53e36a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">genki</media:title>
		</media:content>
	</item>
	</channel>
</rss>