<?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>Franklin Dattein</title>
	<atom:link href="http://dattein.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://dattein.com/blog</link>
	<description>My personal blog in English and Brazilian Portuguese.</description>
	<lastBuildDate>Fri, 05 Feb 2010 20:48:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to produce T-shirts</title>
		<link>http://dattein.com/blog/how-to-produce-t-shirts/</link>
		<comments>http://dattein.com/blog/how-to-produce-t-shirts/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 20:05:29 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=474</guid>
		<description><![CDATA[Introduction

I have started thinking about producing some Kiteboarding T-Shirts and perhaps start a small Kite Wear Company about six months ago. As a software developer, I am comfortable with computers and I thought I could do the designs myself, after watching some Illustrators Tutorials on the internet. I quickly realized that I was completely wrong. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p><img class="alignleft" style="border: 3px solid white; margin: 3px;" title="Brother GT541 sample" src="http://farm3.static.flickr.com/2527/4222892102_c652f941f3_m.jpg" alt="" width="240" height="176" /></p>
<p>I have started thinking about producing some Kiteboarding T-Shirts and perhaps start a small Kite Wear Company about six months ago. As a software developer, I am comfortable with computers and I thought I could do the designs myself, after watching some Illustrators Tutorials on the internet. I quickly realized that I was completely wrong. I have no skills neither talent to create artistic designs. Thus, I went to the Auto Tracing Tools, such as Corel Trace and some others.<br />
Their result were even worse than my manually generated designs.<br />
I had no choice, if I wanted to produce high quality t-shirts, I would have to hire a professional designer.</p>
<p>I did some budged estimates and I almost gave up due to the high cost to produce a vector design. It was about U$100,00.  To be honest it is not a that expensive for a established company. However, I hadn&#8217;t a established company, I was not even thinking about creating a company. I was willing to produce small quantities of 5 or 10 different designs. In this case, the U$100,00 for images would be too expensive.<br />
In order to produce T-shirts with good quality and an affordable price, we have to find and talented and affordable  designer and a base image to start.</p>
<p><strong>Requirements</strong></p>
<p>This paragraph is to explain what are the requirements involved in the life-cycle of the t-shirt production, such as tools, prototyping, vectorization, printing, colors, fabric types and cuts.</p>
<p><span id="more-474"></span></p>
<p>- Basic understanding of vectorization tools like Adobe Illustrator or Corel Draw<br />
- A good designer capable of producing vector images<br />
- A way to prototype before producing large quantities<br />
- A good silk screen company<br />
- A good fabric provider<br />
<strong> </strong></p>
<p><strong>Tools</strong></p>
<p>You can&#8217;t use regular images like JPGs to print using silk-screen, this image needs to be converted to the vector format.<br />
The Silk Screen process consists in the separation of every color in an image and printing them one after the other. so, it requires you to provide a way to print every color in separete<br />
There are some tools that can convert an image to vector automatically, such as Coral Trace, but unfortunately the result is almost always with low quality.</p>
<p>I prefer to use Adobe Illustrator because it is user friendly, but keep in mind that most of the silk-screen companies only have Corel.</p>
<p><strong>Finding a good designer</strong></p>
<p>I have no doubt that hiring a consultant designer is the best way to get exactly what you want and with high quality. However, professional designers are usually expensive and not suitable for small projects. I have found consultants charging an average of U$100,00 per job. By job I mean, a complete T-shirt design without review limitations.<br />
So, I started browsing the web for cheap alternatives, as always. In this journey I have passed through several designers, charging from U$5,00 to U$40,00. Most of them are natural from India, China and Russia, Pakistan, etc.</p>
<p><strong>- PGConversion.com: </strong><br />
These guys are amazing. They charge U$26,00 to convert and JPG to vector and U$40,00 to convert and JPG and add their creativity to a complete T-shirt design. They also offer unlimited reviews in this price.<br />
My first try with them was to convert and picture to a vector and that was the result after 2 or 3 reviews:</p>
<div>
<table style="height: 303px;" border="0" width="473">
<tbody>
<tr>
<td style="text-align: center;">
<div class="wp-caption alignnone" style="width: 205px"><img src="http://farm2.static.flickr.com/1384/3270506728_57a3a770b3_m.jpg" alt="" width="195" height="213" /><p class="wp-caption-text">Before</p></div></td>
<td>
<p><div class="wp-caption alignnone" style="width: 208px"><img src="http://farm5.static.flickr.com/4022/4323193486_f3b028dd1c_m.jpg" alt="After" width="198" height="227" /><p class="wp-caption-text">After</p></div></td>
</tr>
</tbody>
</table>
</div>
<p><strong> </strong></p>
<p>In a second try I gave them a more complex image to be converted and asked (and payed more) them to use their creativity. It took about 20 reviews, has cost U$40,00 but the resulting vector was pretty good.<br />
Although the result is very good, it is a JPG to Vector conversion as usual, without many creativity. I had to provide all the elements in the picture:</p>
<p><div class="wp-caption alignnone" style="width: 250px"><img src="http://farm5.static.flickr.com/4014/4332597629_9c2fa0ded3_m.jpg" alt="" width="240" height="180" /><p class="wp-caption-text">Base image</p></div>
<div class="wp-caption alignnone" style="width: 386px"><img src="http://farm5.static.flickr.com/4039/4323193320_e5dbeb05ef.jpg" alt="After" width="376" height="199" /><p class="wp-caption-text">First version. (Nice, but too many colors for a T-Shirt)</p></div>
<div class="wp-caption alignnone" style="width: 321px"><img src="http://farm3.static.flickr.com/2730/4332563056_8b35483f61.jpg" alt="Final result" width="311" height="177" /><p class="wp-caption-text">Final version after about 20 reviews.</p></div>
<p><strong>- RentACoder.com: </strong><br />
ReantACoder is a auction web-site for developers. You can offer you skills and hire skilled developer and designers. They provide a very good interface to add your requirements and instructions on how to get them done well and without frustration.<br />
The main advantage of RaC is the price. You can get vectors as low as U$5,00. Off course you get what you pay for.<br />
I have asked for samples in all my auctions. If you don&#8217;t ask for a sample you might get an &#8220;auto-trace&#8217;d vector&#8221;.<br />
It worth the try, specially if you image is simple.<br />
The conversion below has a cartoons style and its cost was only U$10,00.</p>
<div>
<table border="0">
<tbody>
<tr>
<td style="text-align: center;">
<div>
<dl style="width: 220px;">
<dt><img class="alignnone" src="http://farm2.static.flickr.com/1011/3270499244_1ddfcc1c90_m.jpg" alt="" width="210" height="240" /> </dt>
<dd>Before</dd>
</dl>
</div>
</td>
<td><img class="alignnone" src="http://farm5.static.flickr.com/4059/4251840336_1be075bfe9_m.jpg" alt="" width="240" height="206" /></p>
<div>
<dl style="width: 208px;">
<dt> </dt>
<dd style="text-align: center;">After</dd>
</dl>
</div>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<p><strong> </strong></p>
<p><strong><br />
</strong><strong>Prototyping</strong></p>
<p>The Silk Screen companies usually require you to print a minimum quantity of 20 units. Imagine if there is a small mistake in the entire production. You would end up with 20 brand new pijamas.<br />
Fortunately there are two good ways to prototype. Imaging prototyping and with a Inkjet printer.</p>
<p>The imaging prototyping is simple as putting your art over a clena T-shirt picture in your preferred image editor. You can use this clean pictures: <a href="http://www.flickr.com/photos/frankllin/tags/tshirtbackground/">http://www.flickr.com/photos/frankllin/tags/tshirtbackground/</a> (These are not the best T-shirt color in the world. I would appreciate you someone could provide me other colors)</p>
<p>After that you can print a sample in a  T-shirt Printer and avoid the most common mistakes.<strong> </strong>There is a &#8220;T-Shirt Kiosk&#8221; in a shopping mall closer to my home, which has a Brother GT-541 printer and charges U$12,00 per t-shirt. The result is usually poor, lacks for the white color and the cost is slightly higher than Silk Screen, but the advantage is that you can print a single unit before sending your artwork for production.</p>
<p>These are the mistakes that I look when prototyping:</p>
<ul>
<li>Position and alignment of the image.</li>
<li>If the combination of colors fits well in the fabric.</li>
<li>If my art has more details than a printing can handle.</li>
</ul>
<p>Finally,  a good Silk Screen Company has to provide a sample. If they don&#8217;t provide you samples, find another company. Believe me, without a sample you build a collection of pijamas.<strong><br />
</strong></p>
<p><strong>Printing with </strong><strong>Silk Screen<br />
</strong></p>
<p>A t-shirt is generally printed with silk-screen, which requires every color to be printed separetelly. that is why we need to use vectors and not flat images, so the colors can be separated and printed one by one.</p>
<p>ps. I write this blog in English willing to practice my Eglish writting skills. I will appreciate if you post a comment either with fixes or pieces of advice.</p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/how-to-produce-t-shirts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino potentiometer sensor</title>
		<link>http://dattein.com/blog/arduino-potentiometer-sensor/</link>
		<comments>http://dattein.com/blog/arduino-potentiometer-sensor/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 19:05:05 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=447</guid>
		<description><![CDATA[Plug it and Arduino  read rotation ! 
This post is a copy of the Original post on EBay. I am replicating it here because ended items on Ebay are not indexed by Google, the author&#8217;s page is written in Chinese and doesn&#8217;t contains the Source code. If you are the author and you are obset with [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong><span style="color: #15bd97; font-size: x-big;">Plug it and Arduino  read rotation ! </span></strong></span></p>
<blockquote><p>This post is a copy of the <a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&amp;item=200403947599">Original post on EBay</a>. I am replicating it here because ended items on Ebay are not indexed by Google, the <a href="http://www.flamingoeda.com">author&#8217;s page</a> is written in Chinese and doesn&#8217;t contains the Source code. If you are the author and you are obset with this, please get in touch.</p></blockquote>
<p><span style="font-family: Arial,Helvetica,sans-serif;">This Potentiometer module is a simple knob that provides a variable resistance, which we can read into the Arduino board as an analog value. By turning the shaft of the potentiometer, we change the input signal to analog pin. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Building interactive work is as easy as piling bricks, just plug it to our Arduino Sensor Shield with a buckled cable, and make it looks professional and neat.<br />
</span><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_Potentiometer_module_0.jpg" alt="" width="388" height="285" /></p>
<p><span id="more-447"></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The code below controls frequency of on and off of a LED light , </span></p>
<pre class="c-sharp">int potPin = 4;    // pin for potentiometer
int ledPin = 13;   // pin for LED
int val = 0;       

void setup() {
  pinMode(ledPin, OUTPUT);  // state ledPin as an OUTPUT
}

void loop() {
  val = analogRead(potPin);
  digitalWrite(ledPin, HIGH);
  delay(val);
  digitalWrite(ledPin, LOW);
  delay(val);
}</pre>
<p><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_Potentiometer_module_2.jpg" alt="" width="388" height="285" /></p>
<p><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_Potentiometer_module_1.jpg" alt="" /></p>
<p><a href="http://dattein.com/blog/wp-content/uploads/2009/12/PotentiometerSensor.zip">PotentiometerSensor</a> Source code</p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-potentiometer-sensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino light sensor</title>
		<link>http://dattein.com/blog/arduino-light-sensor/</link>
		<comments>http://dattein.com/blog/arduino-light-sensor/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 19:02:09 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/arduino-light-sensor/</guid>
		<description><![CDATA[Arduino light sensor module for Sensor Shield 
Original post on EBay
Based on LDR (Light Detect Resistor), this Light Sensor Module measures the environment light intensity and input data to Arduino through the analog IO port of Sensor Shield. Great tool for light following robot, gardening system or home alert system.
Building interactive work is as easy [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #002cfd;"><span style="font-size: medium;">Arduino light sensor module for Sensor Shield</span> </span></p>
<p><a href="http://cgi.ebay.com/Arduino-light-sensor-module-for-Sensor-Shield_W0QQitemZ170413021051QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item27ad68577b">Original post on EBay</a></p>
<p>Based on LDR (Light Detect Resistor), this Light Sensor Module measures the environment light intensity and input data to Arduino through the analog IO port of Sensor Shield. Great tool for light following robot, gardening system or home alert system.</p>
<p>Building interactive work is as easy as piling bricks, just plug it to our Arduino Sensor Shield with a buckled cable, and make it looks professional and neat.</p>
<p><img src="http://ckw.615.googlepages.com/bb_analog_sensor_light_11.png" alt="" /></p>
<p><span id="more-445"></span><img src="http://ckw.615.googlepages.com/arduino_sensor_shield_v4_61.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-light-sensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino temperature sensor</title>
		<link>http://dattein.com/blog/arduino-temperaturesensor/</link>
		<comments>http://dattein.com/blog/arduino-temperaturesensor/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:57:46 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=438</guid>
		<description><![CDATA[Plug it and Arduino senses temperature ! 
Based on thermistor, this Temperature Sensor Module measures the environment temperature and input data to Arduino through the analog IO port of Sensor Shield. Great tool for gardening projects, home alert system etc.
Building interactive work is as easy as piling bricks, just plug it to our Arduino Sensor [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong><span style="color: #15bd97; font-size: x-big;">Plug it and Arduino senses temperature ! </span></strong></span></p>
<p>Based on thermistor, this Temperature Sensor Module measures the environment temperature and input data to Arduino through the analog IO port of Sensor Shield. Great tool for gardening projects, home alert system etc.</p>
<p>Building interactive work is as easy as piling bricks, just plug it to our Arduino Sensor Shield with a buckled cable, and make it looks professional and neat.</p>
<p><span id="more-438"></span></p>
<p>A simple program below converts data from Temperature Sensor Module to Fahrenheit and displays it in Serial Monitor. This function utilizes the Steinhart-Hart Thermistor Equation to convert &#8220;Thermistor Resistance&#8221; to &#8220;Temperature in Degrees Kelvin.&#8221; For details, please read here.<br />
<code> </code></p>
<pre>#include

double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 * Temp) + (0.0000000876741 * Temp * Temp * Temp));
Temp = Temp - 273.15;            // Convert Kelvin to Celcius
return Temp;
}

void setup() {
Serial.begin(115200);
}

void loop() {
Serial.println(int(Thermister(analogRead(0))));  // display Fahrenheit
delay(100);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-temperaturesensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino magnet sensor</title>
		<link>http://dattein.com/blog/arduino-magnet-senso/</link>
		<comments>http://dattein.com/blog/arduino-magnet-senso/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:54:40 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=436</guid>
		<description><![CDATA[Plug it and Arduino can sense magnet!
The magnetic reed switch module is a wonderful tool for designers who would like to turn a circuit on and off based on proximity. A digital “high” value is given when approached by magnet in around 1 inch (depends on strength of the magnet)
Building interactive work is as easy [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #15bd97; font-size: x-big;">Plug it and Arduino can sense magnet!</span></span></strong></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The magnetic reed switch module is a wonderful tool for designers who would like to turn a circuit on and off based on proximity. A digital “high” value is given when approached by magnet in around 1 inch (depends on strength of the magnet)</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Building interactive work is as easy as piling bricks, just plug it to our Sensor Shield with a buckled cable, and make it looks professional and neat.</span></p>
<pre><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_magnetic_switch_2.jpg" alt="" />

<span style="font-family: Arial,Helvetica,sans-serif;"><span id="more-436"></span>
Building interactive work is as easy as piling bricks, just plug it to our Sensor Shield with a buckled cable, and make it looks professional and neat.
</span>
<pre><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_magnetic_switch_3.jpg" alt="" /></pre>
<p><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_magnetic_switch_0.jpg" alt="" /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Example code to turn off LED when approached by a magnet:</span></p>
<pre><code>int ledPin = 13;               // choose pin for the LED
int inputPin = 2;               // choose input pin (for magnetic switch)
int val = 0;                   // variable for reading the pin status

void setup() {
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare magnetic switch as input
}

void loop(){
  val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    digitalWrite(ledPin, LOW);  // turn LED OFF
  } else {
    digitalWrite(ledPin, HIGH); // turn LED ON
  }
}</code></pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-magnet-senso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Sound Sensor</title>
		<link>http://dattein.com/blog/arduino-sound-sensor/</link>
		<comments>http://dattein.com/blog/arduino-sound-sensor/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:32:09 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=433</guid>
		<description><![CDATA[Arduino Sound Sensor Module for Sensor Shield 
 
Original post on EBay

Example code to read data from the sensor:

int sensorPin = 2;    // select the input pin for the sensor
int ledPin = 13;   // select the pin for the LED
int val = 0;       // [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial; color: #002cfd;">Arduino Sound Sensor Module for Sensor Shield </span></p>
<p><span style="font-family: Arial; font-size: x-small;"> </span></p>
<blockquote><p><span style="font-family: Arial; font-size: x-small;"><span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><a href="http://cgi.ebay.com/Arduino-Sound-Sensor-Module-for-Sensor-Shield_W0QQitemZ170412853657QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item27ad65c999">Original post on EBay</a></span></span></p></blockquote>
<p><span style="font-family: Arial; font-size: x-small;"><span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><img class="alignnone" title="s" src="http://i.ebayimg.com/08/%21BetW5T%21%21mk%7E$%28KGrHqUH-CkErgHyK7pmBK-Ybt8,E%21%7E%7E_12.JPG" alt="" width="313" height="207" /><br />
Example code to read data from the sensor:<br />
<span id="more-433"></span></span></span></p>
<pre><code><span style="font-family: Arial; font-size: x-small;"><span style="font-size: small;">int sensorPin = 2;    // select the input pin for the sensor
int ledPin = 13;   // select the pin for the LED
int val = 0;       // variable to store the value coming from the sensor

void setup() {
  pinMode(ledPin, OUTPUT);  // declare the ledPin as an OUTPUT
  Serial.begin(9600);        // initialize serial communication with computer
}

void loop() {
  val = analogRead(sensorPin);    // read the value from the sensor
  Serial.println(val);          // send it to the computer (as ASCII digits)
  digitalWrite(ledPin, HIGH);  // turn the ledPin on
  delay(val);                  // stop the program for some time
  digitalWrite(ledPin, LOW);   // turn the ledPin off
  delay(val);                  // stop the program for some time</span>
}
</span></code></pre>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-sound-sensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Buzzer Module for Sensor shield</title>
		<link>http://dattein.com/blog/arduino-buzzer-module-for-sensor-shield/</link>
		<comments>http://dattein.com/blog/arduino-buzzer-module-for-sensor-shield/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:28:45 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=431</guid>
		<description><![CDATA[Arduino Buzzer Module for Sensor Shield 
 
Original Ebay post.
This is a small buzzer for the Sensor Shield. It creates different noises based on the different frequency of I/O toggling. All you need to do is to plug in the buzzer module to sensor shield, and tell the function which pin you&#8217;d like to use, [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #002cfd;"><span style="font-size: medium;">Arduino Buzzer Module for Sensor</span></span><span style="color: #002cfd;"><span style="font-size: medium;"> Shield </span></span></p>
<p><span style="color: #002cfd;"> </span></p>
<blockquote><p><a href="http://cgi.ebay.com/Arduino-Buzzer-Module-for-Sensor-Shield_W0QQitemZ170418550240QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item27adbcb5e0">Original Ebay post.</a></p></blockquote>
<p><span style="color: #002cfd;"><span style="color: #000000;">This is a small buzzer for the Sensor Shield. It creates different noises based on the different frequency of I/O toggling. All you need to do is to plug in the buzzer module to sensor shield, and tell the function which pin you&#8217;d like to use, the frequency you want to hear, and the duration to play that frequency. </span></span></p>
<p><span style="color: #002cfd;"> </span></p>
<p><span style="color: #002cfd;"><span style="color: #000000;">Building interactive work is as easy as piling bricks, just plug it to our Buzzer Module with a buckled cable, and make it looks professional and neat.<br />
</span></span><img src="http://ckw.615.googlepages.com/bb_digital_buzzer_11.jpg" alt="" /></p>
<p><span style="color: #002cfd;"><span style="color: #000000;">Example code to play melody:<br />
<span id="more-431"></span></span></span></p>
<pre><code>
int BuzzerPin = 9;
int length = 15; // the number of noteschar notes[] = "ccggaagffeeddc "; // a space represents a rest
int beats[] = { 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 4 };
int tempo = 300;
void playTone(int tone, int duration) {
for (long i = 0; i &lt; duration * 1000L; i += tone * 2) {
digitalWrite(BuzzerPin, HIGH);

delayMicroseconds(tone);

digitalWrite(BuzzerPin, LOW);

delayMicroseconds(tone);

}

}

void playNote(char note, int duration) {

char names[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'b', 'C' };

int tones[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };

// play the tone corresponding to the note name

for (int i = 0; i &lt; 8; i++) {

if (names[i] == note) {

playTone(tones[i], duration);

}

}

}

void setup() {

pinMode(BuzzerPin, OUTPUT);

}

void loop() {

for (int i = 0; i &lt; length; i++) {

if (notes[i] == ' ') {

delay(beats[i] * tempo); // rest

} else {

playNote(notes[i], beats[i] * tempo);

}

// pause between notes

delay(tempo / 2);

}

}
</code></pre>
<p><img src="http://ckw.615.googlepages.com/bb_digital_buzzer_21.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-buzzer-module-for-sensor-shield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino sensor shield</title>
		<link>http://dattein.com/blog/arduino-sensor-shield/</link>
		<comments>http://dattein.com/blog/arduino-sensor-shield/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:08:10 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=427</guid>
		<description><![CDATA[Arduino Sensor Shield V4 digital analog module &#38; servos
This is a copy of the original post on Ebay
Arduino Sensor Shield V4.0 allows you to connect to various modules like sensors, servos, relays, buttons, potentiometers……….just plug &#38; play.
Each functional module has buckled port with VCC, GND and Output, which has corresponding port on the Sensor Shield, [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Arial; font-size: x-small;"><span style="font-family: Arial; color: #002cfd; font-size: medium;">Arduino Sensor Shield V4 digital analog module &amp; servos</span></span></p>
<p><a href="http://cgi.ebay.com/Arduino-Sensor-Shield-V4-digital-analog-module-servos_W0QQitemZ170420544091QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item27addb225b"><span style="font-family: Arial; font-size: x-small;">This is a copy of the original post on Ebay</span></a><br />
Arduino Sensor Shield V4.0 allows you to connect to various modules like sensors, servos, relays, buttons, potentiometers……….just plug &amp; play.</p>
<p>Each functional module has buckled port with VCC, GND and Output, which has corresponding port on the Sensor Shield, connected with a plain 2.54mm dual-female cable you may start playing already. Buckled brick cables are like cement for bricks, make the connections easier, secure and more professional looking.</p>
<p><img src="http://ckw.615.googlepages.com/v4.jpg" alt="" /></p>
<p><span id="more-427"></span></p>
<p>1. Buckled Analog Port</p>
<p>Handy, solid connection to 6 Analog inputs with VCC/GND</p>
<p>2. Digital IO port</p>
<p>13 ports prepared to digital modules or servos</p>
<p>3. Analog IO Port</p>
<p>2.54 grid male pin header connections</p>
<p>4. Buckled Communication Port</p>
<p>Selectable between I2C and UART</p>
<p><span style="font-family: Arial; font-size: x-small;"><img src="http://ckw.615.googlepages.com/arduino_sensor_shield_v4_21.png" alt="" /><img src="http://ckw.615.googlepages.com/arduino_sensor_shield_v4_41.png" alt="" /></span></p>
<p><span style="font-family: Arial; font-size: x-small;"><img src="http://ckw.615.googlepages.com/arduino_sensor_shield_v4_51.png" alt="" /><img src="http://ckw.615.googlepages.com/arduino_sensor_shield_v4_81.png" alt="" /><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-sensor-shield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Infrared sensor</title>
		<link>http://dattein.com/blog/arduino-infrared-sensor/</link>
		<comments>http://dattein.com/blog/arduino-infrared-sensor/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 17:54:26 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=425</guid>
		<description><![CDATA[Plug it and Arduino can sense your presence of object by infrared! 
 
 Original post on Ebay

The Infrared Reflectance Sensor Module carries a single infrared LED and phototransistor pair in an inexpensive, tiny module that can be mounted almost anywhere and is great for obstacle detection of robot and home alert system. The optimal [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cgi.ebay.com/Arduino-Infrared-Reflectance-Sensor-for-Sensor-Shield_W0QQitemZ200416910942QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item2ea9c75e5e"><span style="font-family: Arial,Helvetica,sans-serif;"><strong><span style="color: #15bd97; font-size: x-big;">Plug it and Arduino can sense your presence of object by infrared! </span></strong></span></a></p>
<p><a href="http://cgi.ebay.com/Arduino-Infrared-Reflectance-Sensor-for-Sensor-Shield_W0QQitemZ200416910942QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item2ea9c75e5e"><span style="font-family: Arial,Helvetica,sans-serif;"><strong><span style="color: #15bd97; font-size: x-big;"> </span></strong></span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"> Original post on Ebay</span></a></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><br />
The Infrared Reflectance Sensor Module carries a single infrared LED and phototransistor pair in an inexpensive, tiny module that can be mounted almost anywhere and is great for obstacle detection of robot and home alert system. The optimal sensing distance is within 50cm (20 inches). </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Building interactive work is as easy as piling bricks, just plug it to our <strong>Arduino Sensor Shield</strong> with a buckled cable, and make it looks professional and neat. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;">The Infrared Reflectance Sensor Module simply gives a digital signal when it detects infrared reflection from a person or object, so the code is exactly as the one we would use for a pushbutton. Please be noted that, when reflection is detected, it gives a “low” value. </span></span></p>
<pre><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_infrared_reflectance_sen-2.jpg" alt="" width="400" height="298" />
<strong><a href="http://cgi.ebay.com/Arduino-Infrared-Reflectance-Sensor-for-Sensor-Shield_W0QQitemZ200416910942QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item2ea9c75e5e"><span style="font-family: Arial,Helvetica,sans-serif;"><strong><span style="color: #15bd97;"><img title="More..." src="../wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></span></strong></span></a></strong></pre>
<pre><code>
int ledPin = 13;       // choose pin for the LED
int inputPin = 2;      // choose input pin (for Infrared sensor)
int val = 0;           // variable for reading the pin status

void setup() {
  pinMode(ledPin, OUTPUT);   // declare LED as output
  pinMode(inputPin, INPUT);  // declare Infrared sensor as input
}

void loop(){
  val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    digitalWrite(ledPin, LOW);  // turn LED OFF
  } else {
    digitalWrite(ledPin, HIGH); // turn LED ON
  }
}
</code>

<img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_infrared_reflectance_sen-3.gif" alt="" width="400" height="240" />

<img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_infrared_reflectance_sen-1.jpg" alt="" width="400" height="289" />

<img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_infrared_reflectance_sensor.jpg" alt="" width="400" height="290" />

<strong><span style="font-family: Arial,Helvetica,sans-serif;">red light at the back to show presence of object </span></strong></pre>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-infrared-sensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Relay module</title>
		<link>http://dattein.com/blog/arduino-relay-module/</link>
		<comments>http://dattein.com/blog/arduino-relay-module/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 17:10:30 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=416</guid>
		<description><![CDATA[Ever wanted to control the lights from your home computer?
Or perhaps some other appliance in the house?
This post is a copy of this Arduino Relay on Ebay. I am replicating it here because ended items on Ebay are not indexed by Google, the author&#8217;s page is written in Chinese and doesn&#8217;t contains the Source code. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ever wanted to control the lights from your home computer?<br />
Or perhaps some other appliance in the house?</strong></p>
<blockquote><p>This post is a copy of this <a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&amp;item=190346257212">Arduino Relay on Ebay</a>. I am replicating it here because ended items on Ebay are not indexed by Google, the <a href="http://www.flamingoeda.com">author&#8217;s page</a> is written in Chinese and doesn&#8217;t contains the Source code. If you are the author and you are obset with this, please get in touch.</p></blockquote>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;">Appliances with high voltage and current can’t be controlled by the Arduino digital IO ports directly, we need a relay to solve this problem. The Arduino Relay module allows Arduino Sensor Shield with digital outputs to control larger loads and devices like AC or DC Motors, electromagnets, solenoids, and incandescent light bulbs. </span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">-Featuring Omron G5LE relay</span><span style="font-family: Arial,Helvetica,sans-serif;">-Switching capacity of 250 Vac / 5 Vdc </span><span style="font-family: Arial,Helvetica,sans-serif;">-LED indicator display the output status of the Relay Module</span><span style="font-family: Arial,Helvetica,sans-serif;">-Compatible with our Arduino Sensor Shield<br />
</span><img src="http://i636.photobucket.com/albums/uu89/pokaralake/Arduino_relay_module_4.jpg" alt="" /><br />
<span id="more-416"></span><br />
<span style="font-family: Arial,Helvetica,sans-serif;"><br />
</span><span style="font-family: Arial,Helvetica,sans-serif;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/red.gif" alt="" />-Connect to external appliance</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/green.gif" alt="" />-Connect to digital IO port of Sensor Shield </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/yellow.gif" alt="" />-Not neccessary when using Sensor Shield, only for use directly with Arduino or other MCU </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong>WARNING: When working with this device, you will be dealing with ~120V / ~220 AC. This is considered HIGH VOLTAGE, which as many know, can be lethal. Be careful when working with high voltage; NEVER work on this when it is plugged in. Make sure all connections are how they should be, and verify that they are fully insulated and won&#8217;t short each other out, or you could cause a fire. Also, be aware of what is going on around you, be alert, and never work on with high voltage if you feel you can&#8217;t devote enough concentration towards what you are doing. And lastly, if you ever have to service the connections inside this device, ALWAYS unplug it before doing so. </strong></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">In this experiment, we will need the Arduino Duemilanove, Sensor Shield, Relay module, LED module, Button Switch module and a 220V or 110V desk lamp. A relay is an electrically controlled mechanical switch. Inside the little plastic box is an electromagnet that, when energized, causes a switch to trip.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN1092a.jpg" alt="" /><br />
</span><span style="color: #0066cc;"><strong><span style="font-family: Arial,Helvetica,sans-serif; font-size: xx-small;">Example of using Relay module to switch a household desk lamp</span></strong></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">1. Stack the Sensor Shield onto the Arduino Duemilanove, and connect the modules with our specialized cables at the buckled end.<br />
</span><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN1093a.jpg" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">2. On the other end of the cables, connect the Relay module to digital pin 8, LED module to digital pin 13 and Button Switch module to digital pin 2.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN1099a.jpg" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">3. Now, let’s test the arduino connection before connecting the appliance. Copy the code below and upload to the arduino. </span></p>
<pre class="java">int switchPin = 2;
int relayPin = 8;
int ledPin = 13;
int value = 0;

void setup() {
 pinMode(switchPin, INPUT);
 pinMode(relayPin, OUTPUT);
 pinMode(ledPin, OUTPUT);
}

void loop() {
 value = digitalRead(switchPin);
 if (HIGH == value) {
  digitalWrite(relayPin, HIGH);
  digitalWrite(ledPin, HIGH);
 } else {
  digitalWrite(relayPin, LOW);
  digitalWrite(ledPin, LOW);
 }
}</pre>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"> </span><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">When you click the push button, the relay will give out a very satisfying clicking sound, which means it is switching the appliance. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">4. My desk lamp is in UK wiring system without earth (ground), so you only see two wires in the cord. Cut the hot (live) or neutral wire in half and expose metal in 5mm. Here is a table to show the color of each wire:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN1100a.jpg" alt="" /><br />
</span><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">5. In the relay module, we will only use the wire contacts on the left (the one above the “Relay” logo) when we connect it with the Sensor Shield. There are 3 wire contacts. We can use either set A or set B as shown in the picture, just make sure the middle one is used.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN0016a.jpg" alt="" /></span><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><br />
</span><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN1103a.jpg" alt="" /></span><br />
<span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">6. Screw the two wires into the contacts. Make sure no metal wire is exposed outside of the plastic for safety.</span><br />
<span style="font-family: Arial,Helvetica,sans-serif; color: #000000;"><img src="http://i636.photobucket.com/albums/uu89/pokaralake/DSCN1104a.jpg" alt="" /></span><br />
<span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">7. This last step is easy, plug the socket of the appliance and you can control the on/off by the arduino now.</span></p>
<table style="height: 66px;" border="1" cellspacing="0" cellpadding="0" width="1213">
<tbody>
<tr>
<td><strong><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Wires</span></strong></td>
<td><strong><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Color in US </span></strong></td>
<td><strong><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Colour in UK </span></strong></td>
</tr>
<tr>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">hot/live</span></td>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Black</span></td>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Brown</span></td>
</tr>
<tr>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">neutral</span></td>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">White</span></td>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Blue</span></td>
</tr>
<tr>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">earth/ground</span></td>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Green</span></td>
<td><span style="font-family: Arial,Helvetica,sans-serif; color: #000000;">Yellow/Green</span></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-relay-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
