<?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 &#187; DIY</title>
	<atom:link href="http://dattein.com/blog/category/diy/feed/" rel="self" type="application/rss+xml" />
	<link>http://dattein.com/blog</link>
	<description>My personal blog in English and Brazilian Portuguese.</description>
	<lastBuildDate>Tue, 31 Aug 2010 12:15:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SMS with Java and GSM Modem</title>
		<link>http://dattein.com/blog/sending-sms-with-java/</link>
		<comments>http://dattein.com/blog/sending-sms-with-java/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:31:32 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=391</guid>
		<description><![CDATA[This is a quick tutorial about sending and receiving  SMS from/of the computer with a GSM/GPRS modem and Java.
Requirements

A Cellphone with credit and its USB cable
Java version of SMSLib (download of sources here)
Apache Jakarta Commons.Net required by SMSLib
Slf4J also required by SMSLib.

Introduction
It is possible to use a programming language to send Hayes Commands (aka AT [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick tutorial about sending and receiving  SMS from/of the computer with a GSM/GPRS modem and Java.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>A Cellphone with credit and its USB cable</li>
<li>Java version of <a href="http://www.smslib.org/">SMSLib </a>(<a href="http://www.smslib.org/download/java/">download of sources here</a>)</li>
<li><a href="http://commons.apache.org/downloads/download_net.cgi">Apache Jakarta Commons.Net </a>required by SMSLib</li>
<li><a href="http://www.slf4j.org/download.html">Slf4J</a> also required by SMSLib.</li>
</ul>
<p><strong>Introduction</strong><br />
It is possible to use a programming language to send <a href="http://en.wikipedia.org/wiki/Hayes_command_set">Hayes Commands</a> (aka AT commands) through the serial port to a cellphone modem, plugged into a PC . With these commands the cellphone can send SMS.</p>
<p><span id="more-391"></span></p>
<p>We could do the connection with the Serial port and write every AT command programatically. However, it is complex and would require learning the the <a href="http://www.zoom.com/documentation/dial_up/100498D.pdf">AT Commands list</a>.<br />
In order to avoid this complexity you can use the SMSLib, intead of writting it manually.</p>
<p><strong>Installing</strong></p>
<ul>
<li>Configure the Java communication library according to the <a href="http://www.smslib.org/doc/installation/">SMSLib Installation guide</a></li>
<li>The installation guide tells how to build SMSLib with Ant. I prefer building it with Eclipse. Thue, I have imported the sources to a new Java Project inside of Eclipse.</li>
<li>Add a reference to the Slf4j library and Commons.Net library in the recently created Eclipse project.</li>
<li> Connect the cellphone in the computer. You can use USB, BlueTooth, IrD, etc.</li>
<li> Find out what is the COM port associated to the new connection and its baud rate. Keep it in memory.<br />
On Windows: Contro Panel -&gt; system -&gt; Device Manager -&gt; Modens. Right click on the modem, tab Modem and get the value of &#8220;port&#8221;. This value is similar to COM3.</li>
</ul>
<p><strong>Running a sample<br />
</strong>The SMSLib comes with some good samples. The SendMessage class is the simple one. Open it and make the following modifications in the instantiation of SerialModemGateway:</p>
<p>- Change the cellphone number to a valid one.<br />
- Change the COM port and the baud rate with the value you me memorized before.</p>
<p>The result is something like this:<br />
new SerialModemGateway(&#8220;modem.com3&#8243;, &#8220;COM3&#8243;, 115200, &#8220;Sony Ericsson&#8221;, &#8220;W580&#8243;);</p>
<p>If you are looking for a SMS server, the class ReadMessages is a good beginning.</p>
<p><strong>Limitation</strong><br />
A regular GSM modem is slow and can send about 6 messages per minute.</p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/sending-sms-with-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino GPRS</title>
		<link>http://dattein.com/blog/arduino-gprs/</link>
		<comments>http://dattein.com/blog/arduino-gprs/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 20:00:24 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Kiteboarding]]></category>
		<category><![CDATA[anemometer]]></category>
		<category><![CDATA[GPRS]]></category>
		<category><![CDATA[GSM]]></category>
		<category><![CDATA[motorola]]></category>
		<category><![CDATA[sserial2mobile]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=375</guid>
		<description><![CDATA[Continuing in the Anemometer project, I guess I found the cheapest way to send data over the GPRS network.
The SSerial2Mobile project is a library for Arduino, to stablish a serial connection with a mobile phone.
The project web site says that they could connect with a cheap Motorola C168i.
It costs around U$27,00 plus shipping on Ebay.
I [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing in the Anemometer project, I guess I found the cheapest way to send data over the GPRS network.<img class="alignright" title="SS" src="http://farm4.static.flickr.com/3254/2507585112_60cc338bfb_m.jpg" alt="" width="240" height="161" /></p>
<p>The <a href="http://code.google.com/p/sserial2mobile/">SSerial2Mobile </a>project is a library for Arduino, to stablish a serial connection with a mobile phone.<br />
The project web site says that they could connect with a cheap <a href="http://shop.ebay.com/?_from=R40&amp;_trksid=p4012.m38.l1313&amp;_nkw=motorola+c168i&amp;_sacat=See-All-Categories">Motorola C168i.</a></p>
<p>It costs around U$27,00 plus shipping on Ebay.<br />
I bought an used one for U$14,00 (plus U$13,00 of the shipping)</p>
<p>It is pretty cheap compared to the EUR$77,00 <a href="http://www.libelium.com/tienda/catalog/product_info.php?products_id=59">GPRS Shield for Arduino from Libelium</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/arduino-gprs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaCrosse Anemometer and Arduino</title>
		<link>http://dattein.com/blog/lacrosse-anemometer-and-arduino/</link>
		<comments>http://dattein.com/blog/lacrosse-anemometer-and-arduino/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 20:00:46 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Kiteboarding]]></category>
		<category><![CDATA[anemometer]]></category>
		<category><![CDATA[kitesurfing]]></category>
		<category><![CDATA[lacrosse]]></category>
		<category><![CDATA[RF]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=360</guid>
		<description><![CDATA[In my last post about the Anemometer project I did mention that the LaCrosse station could be integrated in Arduino, but it would require a complex reverse engineering.
Looks like Jonathan Oxfer and his friend Marc Alexander have already implemented it. Check it out:
http://www.practicalarduino.com/news/id/171

I have previously discarded the option to integrate LaCrosse stations in my projet, [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://dattein.com/blog/anemometro-gprs-arduino/">last post about the Anemometer project</a> I did mention that the LaCrosse station could be integrated in Arduino, but it would require a complex reverse engineering.</p>
<p>Looks like <a href="http://jon.oxer.com.au/">Jonathan Oxfer</a> and his friend<a href="http://www.bikeinterceptor.com/"> Marc Alexander</a> have already implemented it. Check it out:</p>
<p><a href="http://www.practicalarduino.com/news/id/171">http://www.practicalarduino.com/news/id/171<br />
</a></p>
<p>I have previously discarded the option to integrate LaCrosse stations in my projet, due to its total cost. However, it is now back on the plan.<br />
I still consider that this station is too expensive when compared to a DIY version, but the truth is that many people are currently using them. Altough, many are unhappy, due to the complex infrastructure needed to transmit data over the internet, as explained in the <a href="http://dattein.com/blog/anemometro-gprs-arduino/">previous post</a>.<br />
By running a parallel project to integrate LaCrosse stations with Arduino, I could provide this &#8220;extensions&#8221; to these guys in a kind of partnership.<br />
I would give them the ability to measure wind without their expensive computers and they would give me permission to use the anemometer measurements in my web-site.</p>
<p><img class="alignnone" title="arduino RF" src="http://www.practicalarduino.com/pics/weather-station-receiver.jpg" alt="" width="480" height="240" /><br />
<span id="more-360"></span><img class="alignnone" title="Lacrosse" src="http://www.practicalarduino.com/pics/weather-station-transmitter.jpg" alt="" width="480" height="446" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/lacrosse-anemometer-and-arduino/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Project GPRS Anemometer with Arduino</title>
		<link>http://dattein.com/blog/anemometro-gprs-arduino/</link>
		<comments>http://dattein.com/blog/anemometro-gprs-arduino/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 21:28:43 +0000</pubDate>
		<dc:creator>fsamir</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Kiteboarding]]></category>
		<category><![CDATA[anemometer]]></category>
		<category><![CDATA[kitesurfing]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/?p=101</guid>
		<description><![CDATA[Summary
This project consists of the construction of an anemometer able to transmit the wind speed and direction over a GPRS network. The objective is to plug the cheapest cellphone and anemometer sensor into an Arduino.
Motivation
I have an on-line store to sell kitesurfing equipment and the most attractive page is the one that shows the wind [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Summary</strong><br />
This project consists of the construction of an anemometer able to transmit the wind speed and direction over a GPRS network. The objective is to plug the cheapest cellphone and anemometer sensor into an Arduino.</p>
<p><strong>Motivation</strong><br />
I have an on-line store to sell kitesurfing equipment and the most attractive page is the one that shows the wind speed for the main kitesurfing spots.<br />
In addition, I have been playing with Arduino and remote device monitoring in the past few months just for fun and learning, so this project is pure fun and profit.</p>
<p><strong>The problem</strong><br />
Weather monitoring is not an innovation. It is possible to buy a LaCrosse Weather Station for U$110,00 on Ebay. These stations are wireless and can be connected to a PC, which can easily transmit the wind speed through the web.<br />
So, why do you want to build a new one from scratch?</p>
<p><span id="more-101"></span>For several reasons:</p>
<ul>
<li><strong>Portability: </strong>A PC is too big to move and place on the top of a lamppost.</li>
<li><strong>Costs: </strong>A PC raises considerably (5+ times) the cost of the station.</li>
<li><strong>Connectivity:</strong> A regular internet connection is expensive and often unavailable in the most remote locations like lakes, rivers and beaches.</li>
</ul>
<p><strong>Alternative solutions</strong></p>
<p>I have been studying some of the available alternatives, before starting to spend money on parts for this project. They can be divided three areas: the wind sensor, the cellphone interfacing and the Arduino interfacing.</p>
<p><strong>The wind sensor<br />
</strong></p>
<ul>
<li>I have spent a long time looking for an Anemometer Housing on the internet, without success. There are some cheap alternatives, but due to that size the shipping cost to Brazil is too expensive.</li>
<li>Another thought was about buying a LaCrosse station and intercepting its RF signal with an Arduino RF receptor. Two disadvantages made me to put this idea on hold: 1. There is no documentation about the RF signal transmitted by the LaCrosse stations, so it would require reverse engineering, which is very complicated; 2. LaCrosse stations send their signals every 5 minutes, which is too slow for a $100 bucks sensor.</li>
<li>There is a pretty good <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8942">Anemometer sensor at Sparkfun</a> web-site for U$69.95. It has an easy Arduino interfacing and a good coding library.  It&#8217;s Almost perfect for my purpose. Unfortunately, the shipping price is around U$40,00,  making a total of U$109,95, which can double if customs catch it.</li>
<li>Do it yourself (DIY). It is possible to build one with around U$10,00 and some used parts. It is the cheapest option, but the disadvantage is obvious:  More labor.</li>
</ul>
<p>By now I will focus on the last option.</p>
<p><strong>Interfacing with the anemometer sensor<br />
</strong>This problem might be easy or difficult to solve, depending on the sensor adopted.<br />
The SparkFun and the DIY options can be easily interfaced with Arduino and a cable. The LaCrosse station would require a Arduino RF receptor and a lot of time reverse engineering its protocol.</p>
<p><strong>Interfacing with the cellphone</strong></p>
<p>That is the biggest problem, so far. There are too many variables involved like, usage of SMS or GPRS, the cheapest cellphone model, how connect arduino to the cellhpone pins and others.</p>
<p><strong>SMS vs. GPRS: </strong>The data transmission over GPRS can be expensive, particularly in a country like Brazil where data plans are not so popular.<br />
Sending data over SMS requires a complex SMS central receiver, built with another cellphone, integrated with a PC and internet. The data trasmission cost is cheaper compared to GPRS, but the required infrastructure is much more complex and expensive. It may be worth it, if there are several SMS clients communicating with the central receiver, but that is not my case.</p>
<p>At this moment I will try with the GPRS connection.</p>
<p><strong>What is the best cellphone?</strong> The cheapest one!</p>
<p>A few years ago I took a look at my LowJack (GPS tracking system for Vehicles) and it had an old Motorola, which probably does not even support GPRS. After investigating a little more I found out that any cellphone with support for AT+ commands can be used for this.<br />
After that I ended at <a style="text-decoration: none; color: #000000;" href="http://code.google.com/p/sserial2mobile/">sserial2mobile</a> web page. It is an Arduino library to abstract the Motorola C168i At+ commands. This model can be found for around U$50,00 on Ebay, including the shipping to Brazil.</p>
<p>Alternatively, it would be very nice to have a GPRS shield easy to plug into Arduino. The cheapest one is not really cheap, it is again from SparkFun and its cost is around  U$100,00 plus shipping.</p>
<p><strong>The solution<br />
</strong>Currently the best solution seems to be the DIY anemometer sensor, an Arduino and a Motorola C168i.<br />
I will be posting news about this project as soon as I have made some progress.</p>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/anemometro-gprs-arduino/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Boat controlled by Arduino</title>
		<link>http://dattein.com/blog/canoa-controlada-por-arduino-nunchunk/</link>
		<comments>http://dattein.com/blog/canoa-controlada-por-arduino-nunchunk/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 20:26:39 +0000</pubDate>
		<dc:creator>Franklin Dattein</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://dattein.com/blog/canoa-controlada-por-arduino-nunchunk/</guid>
		<description><![CDATA[It is a boat controlled by an Wii Nunchunk plugged in an Arduino.
http://growdown.blogspot.com/2008/07/half-bot-all-boat.html

WPvideo 1.10


Download!

]]></description>
			<content:encoded><![CDATA[<p>It is a boat controlled by an Wii Nunchunk plugged in an Arduino.<br />
<a href="http://growdown.blogspot.com/2008/07/half-bot-all-boat.html">http://growdown.blogspot.com/2008/07/half-bot-all-boat.html</a></p>
<div class="wpv_videoc">
<div class="wpv_self"><a href="http://www.skarcha.com/wp-plugins/wpvideo/">WPvideo 1.10</a></div>
<div class="wpv_video"><object data="http://www.youtube.com/v/viX6kC9C0Yc" type="application/x-shockwave-flash" width="100%" height="100%"><param name="movie" value="http://www.youtube.com/v/viX6kC9C0Yc"></param></object></div>
<div class="wpv_titleauthor"></div>
<div class="wpv_download"><a target="_blank" href="http://downthisvideo.com/?url=http://www.youtube.com/watch?v=viX6kC9C0Yc">Download!</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dattein.com/blog/canoa-controlada-por-arduino-nunchunk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
