<?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>PocketMagic</title>
	<atom:link href="http://pocketmagic.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pocketmagic.wordpress.com</link>
	<description>www.pocketmagic.net</description>
	<lastBuildDate>Wed, 13 May 2009 09:50:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pocketmagic.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/29a58daef4bf3a7d99ec9488b341d030?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>PocketMagic</title>
		<link>http://pocketmagic.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pocketmagic.wordpress.com/osd.xml" title="PocketMagic" />
	<atom:link rel='hub' href='http://pocketmagic.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Developing for Symbian</title>
		<link>http://pocketmagic.wordpress.com/2009/05/12/developing-for-symbian/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/12/developing-for-symbian/#comments</comments>
		<pubDate>Tue, 12 May 2009 14:31:39 +0000</pubDate>
		<dc:creator>medachiorean</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Symbian]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[nokia]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=706</guid>
		<description><![CDATA[Make the first HelloWorld application for Symbian<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=706&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Getting started with the first project on my Nokia N73 was not as easy as it should have been in my opinion,<br />
as making a simple Hello world app makes you go throw a lot of files saved in different places, you&#8217;ve got to<br />
figure out how to modify some information so that you are able to build your application.</p>
<p><strong>1.Install the tools</strong></p>
<p>First thing to do is to install all the required tools:</p>
<p><em>-S60 Platform SDK for Symbian OS<br />
-ActivePerl 5.6.1.x<br />
-Carbide.c++</em><br />
-and to manage the files on the phone from the pc you can install <em>Nokia PC Suite</em>, I&#8217;ve inserted an SD-card in my Nokia N73<br />
and there I copied the <em>sisx file (nokia installer)</em>, in order to deploy my application&#8217;s installer on the phone.</p>
<p>Here is a link where you have all the information about this:</p>
<p><a href="http://www.forum.nokia.com/document/Cpp_Developers_Library/?content=GUID-232258EC-D3B4-4D72-B12B-FFC34F070B4B_GUID-9615092A-9FA2-4F4E-859F-A231A3919FC9.html">http://www.forum.nokia.com/document/Cpp_Developers_Library/?content=GUID-232258EC-D3B4-4D72-B12B-FFC34F070B4B_GUID-9615092A-9FA2-4F4E-859F-A231A3919FC9.html</a></p>
<p><strong>2.Create the first HelloWorld application</strong></p>
<p>Next step is to start with a simple <em>HelloWorld application</em>. For this run Carbide, select the working directory,<br />
then go to <em>File-&gt;New Project select Symbian OS C++ project</em> next <em>3rd-Future Ed. GUI Application</em>, next type the name<br />
of the application, next select the <em>SDKs and Buil Configurations</em>, you can select them all then latter you can choose<br />
the active one you need, next give a <em>random UID</em> for the <em>App UID field</em>, fill the other fields also, then tap next and finnish.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p21.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p21-150x150.jpg" alt="" title="p21" width="150" height="150" class="alignnone size-thumbnail wp-image-710" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p22.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p22-150x150.jpg" alt="" title="p22" width="150" height="150" class="alignnone size-thumbnail wp-image-712" /></a></td>
</tr>
</table>
<p>In the left side you&#8217;ll have the <em>Project Explorer</em> with all the projects present in the working directory,<br />
expand the current one and you can start writing code. The currently created code is not working though, you&#8217;ll have<br />
to make some changes first.</p>
<p>Choose the <em>platform</em> you want to develop for, go to<em> Project-&gt;Build Configurations-&gt;Set Active</em> and select:<br />
<em>Emulator Debug(WINSCW)</em> for the emulator, or <em>Phone Release(GCCE) </em>for device(you can also select for the ARMV5).<br />
<em>Right click-&gt;Build Project</em> on your project name(in project explorer) to build your application. You can see some errors,<br />
this is because the pkg file has to be modified, you can find it in the sis directory.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p23.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p23-150x150.jpg" alt="" title="p23" width="150" height="150" class="alignnone size-thumbnail wp-image-713" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p24.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p24-150x150.jpg" alt="" title="p24" width="150" height="150" class="alignnone size-thumbnail wp-image-715" /></a></td>
</tr>
</table>
<p><strong>3.How to modify the pkg file</strong></p>
<p>The <em>pkg file</em> is the package file that is used to create the *.sis file that can be installed to the phone.<br />
If you open the pkg file you&#8217;ll see some paths like:<br />
<em>&#8220;$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\&#8230;</em><br />
you need to change the source paths to match the place where Carbide created those files. You can set absolute paths there<br />
like c:\Symbian&#8230;, but it&#8217;s more practical to set the <em>EPOCROOT variable</em>, that will be common for all of your projects.<br />
For this open a cmd prompt(it&#8217;s not important in which directory)<br />
and write the command: &#8220;<em>set EPOCROOT</em>&#8221; to first check the value for the EPOCROOT, if the path is correct meaning<br />
that you can find  the <em>Epoc32 directory</em> there, then it is ok, you can leave it like that(it must be somethig like:<br />
(\Symbian\9.1\S60_3rd_MR\ , without the drive letter, and ending with \), otherwise you&#8217;ll have to set it<br />
correctly with the following command: &#8220;<em>set EPOCROOT=\Symbian\9.1\S60_3rd_MR\</em>&#8221; (without the drive letter &#8220;c:&#8221;).<br />
Now you must have the right value for EPOCROOT, and use it in the pkg file. You can do the same for the $(PLATFORM) and $(TARGET), but<br />
I&#8217;ve replaced them with specific directories as once I changed them they were set back to there default value, for some<br />
reason I didn&#8217;t manage to do that, if you find out why you are welcome to post a comment on this.</p>
<p>To keep the path settings, you can place the &#8216;set EPOCROOT= &#8230;&#8217; command inside <em>c:\autoexec.bat</em>, to be executed each time your PC starts,<br />
or you can configure the PATHS by right clicking my <em>computer -&gt; properties -&gt; advanced -&gt; environment variables</em>.</p>
<p>So in the end the paths must look something like this:</p>
<p>;Files to install<br />
;You should change the source paths to match that of your environment<br />
;<br />
&#8220;$(EPOCROOT)Epoc32\release\gcce\urel\test5_0xEC4573B9.exe&#8221;		-&#8221;c:\sys\bin\test5_0xEC4573B9.exe&#8221;<br />
&#8220;$(EPOCROOT)Epoc32\data\z\resource\apps\test5_0xEC4573B9.rsc&#8221;		-&#8221;c:\resource\apps\test5_0xEC4573B9.rsc&#8221;<br />
&#8220;$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\test5_0xEC4573B9_reg.rsc&#8221;	-&#8221;c:\private\10003a3f\import\apps\test5_0xEC4573B9_reg.rsc&#8221;<br />
&#8220;$(EPOCROOT)Epoc32\data\z\resource\apps\test5_0xEC4573B9.mif&#8221; -&#8221;c:\resource\apps\test5_0xEC4573B9.mif&#8221;<br />
&#8220;..\help\test5_0xEC4573B9.hlp&#8221;							 -&#8221;c:\resource\help\test5_0xEC4573B9.hlp&#8221;<br />
&#8220;$(EPOCROOT)Epoc32\Data\z\resource\apps\test5.mbm&#8221;            -&#8221;c:\resource\apps\test5.mbm&#8221;</p>
<p>you&#8217;ll have to check the paths to be correct, you must be able to locate the exe, rsc, mif&#8230;files there, if not search for them<br />
and add the correct paths. One thing you have to consider is the platform you have chosen at step 2:<br />
<em>gcce, armv5 is for device, winscw is for emulator, udeb is for debug, urel is for release, so use the correct directories</em>.<br />
Eg:<br />
 if you&#8217;ve selected the platform for the device Phone Release(GCCE) you&#8217;ll find the exe file in<br />
 $(EPOCROOT)Epoc32\release\gcce\urel\,</p>
<p>  if you&#8217;ve selected the platform for the emulator Emulator Debug(WINSCW) you&#8217;ll find the exe file in<br />
 $(EPOCROOT)Epoc32\release\winscw\udeb\,</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p311.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p311-150x150.jpg" alt="" title="p311" width="150" height="150" class="alignnone size-thumbnail wp-image-719" /></a></td>
</tr>
</table>
<p><strong>4. Create the sis, sisx files</strong></p>
<p>At this point you can rebuild you application, and the <em>sis and sisx(signed sis)</em> files must be created in the<br />
sis directory of your project. Sometimes if they are not created you must specifically set this option from:<br />
<em>Project-&gt;Properties</em> open Carbide c++ and select<br />
<em>Carbide Build Configuration</em> then go to SIS builder tab and add the pkg file,<br />
check the create self signed sis file, apply the settings and this is it,<br />
now the sis and the sisx files will be created.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p41.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p41-150x150.jpg" alt="" title="p41" width="150" height="150" class="alignnone size-thumbnail wp-image-721" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p42.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p42-150x150.jpg" alt="" title="p42" width="150" height="150" class="alignnone size-thumbnail wp-image-722" /></a></td>
</tr>
</table>
<p><strong>5. Install the application on the device or emulator</strong></p>
<p>	5.1 If you&#8217;ve made the build for the phone then you are done, just copy the sisx file on the phone. I&#8217;ve inserted an<br />
sd card and copied my sisx file there. Go to <em>Menu-&gt;Tools-&gt;File mgr </em>at second tab (using right dpad) and install it.<br />
You&#8217;ll find the  application installed in <em>Menu-&gt;Applications</em> on your device.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p51.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p51-150x150.jpg" alt="" title="p51" width="150" height="150" class="alignnone size-thumbnail wp-image-723" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p521.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p521-150x150.jpg" alt="" title="p521" width="150" height="150" class="alignnone size-thumbnail wp-image-725" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p53.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p53-150x150.jpg" alt="" title="p53" width="150" height="150" class="alignnone size-thumbnail wp-image-726" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p54.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p54-150x150.jpg" alt="" title="p54" width="150" height="150" class="alignnone size-thumbnail wp-image-727" /></a></td>
</tr>
</table>
<p>	5.2 If you want to run the installer on the emulator there are some problems that you&#8217;ll encounter.<br />
First copy for eg. the sisx file to:<br />
<em>c:\Symbian\9.1\S60_3rd_MR\Epoc32\winscw\c\Data\Installs</em><br />
on your pc, then you should find it in<br />
<em>Menu-&gt;Organizer-&gt;File Mgr-&gt;Installed Files</em><br />
on the emulator.</p>
<p>But running it you&#8217;ll get the <em>File corrupted error message</em> so you need to install this for the certificates:<br />
<a href="http://wiki.forum.nokia.com/images/a/a6/Certstore_S60_3rd_SDK.zip">http://wiki.forum.nokia.com/images/a/a6/Certstore_S60_3rd_SDK.zip</a><br />
unzip the file and copy it to the <em>epoc32</em>&#8230;(corresponding directory)</p>
<p>This does not solve the problem either cause you will get:<br />
<em>&#8220;Unable to install. Component is built-in.&#8221;. The &#8220;built-in&#8221; error message</em><br />
To solve this use &#8220;<em>abld reallyclean</em>&#8221; command to clean the project, if this doesn&#8217;t help then <em>delete the files manually</em><br />
, go to the location where your SDK is installed(c:\Symbian) and search for all files containing your project&#8217;s name<br />
(eg: my project is named test5 so I search for test5 and delete all files, the files that can&#8217;t be deleted I rename them to something else)</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p55.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p55-150x150.jpg" alt="" title="p55" width="150" height="150" class="alignnone size-thumbnail wp-image-728" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p56.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p56-150x150.jpg" alt="" title="p56" width="150" height="150" class="alignnone size-thumbnail wp-image-729" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p57.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p57-150x150.jpg" alt="" title="p57" width="150" height="150" class="alignnone size-thumbnail wp-image-730" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p58.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p58-150x150.jpg" alt="" title="p58" width="150" height="150" class="alignnone size-thumbnail wp-image-731" /></a></td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p59.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p59-150x150.jpg" alt="" title="p59" width="150" height="150" class="alignnone size-thumbnail wp-image-732" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/p510.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/p510-150x150.jpg" alt="" title="p510" width="150" height="150" class="alignnone size-thumbnail wp-image-733" /></a></td>
</tr>
</table>
<p>Having all this information you should be able to install your application on device or emulator.<br />
Next article I&#8217;ll present how to display an image, draw shapes, etc.</p>
<p>By Meda Chiorean</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/706/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=706&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/12/developing-for-symbian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71c57c3a0bb2562c24c1637595286161?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">medachiorean</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p21-150x150.jpg" medium="image">
			<media:title type="html">p21</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p22-150x150.jpg" medium="image">
			<media:title type="html">p22</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p23-150x150.jpg" medium="image">
			<media:title type="html">p23</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p24-150x150.jpg" medium="image">
			<media:title type="html">p24</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p311-150x150.jpg" medium="image">
			<media:title type="html">p311</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p41-150x150.jpg" medium="image">
			<media:title type="html">p41</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p42-150x150.jpg" medium="image">
			<media:title type="html">p42</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p51-150x150.jpg" medium="image">
			<media:title type="html">p51</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p521-150x150.jpg" medium="image">
			<media:title type="html">p521</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p53-150x150.jpg" medium="image">
			<media:title type="html">p53</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p54-150x150.jpg" medium="image">
			<media:title type="html">p54</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p55-150x150.jpg" medium="image">
			<media:title type="html">p55</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p56-150x150.jpg" medium="image">
			<media:title type="html">p56</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p57-150x150.jpg" medium="image">
			<media:title type="html">p57</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p58-150x150.jpg" medium="image">
			<media:title type="html">p58</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p59-150x150.jpg" medium="image">
			<media:title type="html">p59</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/p510-150x150.jpg" medium="image">
			<media:title type="html">p510</media:title>
		</media:content>
	</item>
		<item>
		<title>Android C native development &#8211; take full control!</title>
		<link>http://pocketmagic.wordpress.com/2009/05/12/android-c-native-development-take-full-control/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/12/android-c-native-development-take-full-control/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:32:06 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[G1]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=682</guid>
		<description><![CDATA[An useful post on how to use gcc and the android toolchain to produce native C applications for the google android.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=682&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A recent project I&#8217;ve been working on required Bluetooth programming on the Android.<br />
Having a quick look over the latest 1.5 Android SDK, I could see that bluetooth support was missing. Later research pointed out that <a href="http://source.android.com/projects/bluetooth-faq">Google expressively excluded</a> Bluetooth APIs blaming lack of time.</p>
<p>On the other hand, I&#8217;m not a big Java fan, to say the least. I find Java unfriendly, and I don&#8217;t like the look and feel of Java apps. Sorry, I prefer C/C++ since it provides better control and flexibility.  So it&#8217;s time to start doing C/C++ native applications for the Google Android.</p>
<p><font size="+2"><b>How run a C program on Google Android?</b></font><br />
First thing I&#8217;ll show here, is to compile a simple C program for the Android.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device13.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device13-150x150.jpg" alt="" title="device13" width="150" height="150" class="alignnone size-thumbnail wp-image-703" /></a></td>
<td valign="top">
<code><br />
#include &#60;stdio.h&#62;<br />
int main()<br />
{<br />
   printf("Hello Google Android world!\nwww.pocketmagic.net\n");<br />
   return 1;<br />
}<br />
</code>
</td>
</tr>
</table>
<p>Save this program as <a href='http://www.pocketmagic.net/wp-content/uploads/2009/05/test.c'>test.c</a>. In the next steps we&#8217;ll be compiling this sample for the Google Android using gcc.</p>
<p><font size="+2"><b>The tools</b></font></p>
<p>1. Download <a href="http://www.ubuntu.com/getubuntu/download">ubuntu linux</a>. I currently use Desktop edition 9.04 in a virtual machine.<br />
<b>Attention:</b> You&#8217;ll need to install Ubuntu on a machine with at least 1.5GB Ram, 10GB ext2 partition and 2GB Swap partition or you won&#8217;t be able to use this tutorial&#8217;s info (less then the minimum requirements will result in the impossibility of compiling the Android Code and we need that for the libraries).</p>
<p>2. Once Ubuntu is installed, download the <a href="http://source.android.com/download">Android Source code</a>. On your linux box install additional packages:<br />
<code>$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev<br />
$ sudo apt-get install valgrind<br />
$ sudo apt-get install lib32readline5-dev<br />
</code></p>
<p>3. Install Repo<br />
Create a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:<br />
<code><br />
$ cd ~<br />
$ mkdir bin<br />
$ echo $PATH<br />
</code><br />
To add it to the Path, you can use:<br />
<code><br />
$ PATH=$PATH:~/bin/<br />
</code><br />
Download the repo script and make sure it is executable:<br />
<code><br />
$ curl http://android.git.kernel.org/repo &gt;~/bin/repo<br />
$ chmod a+x ~/bin/repo<br />
</code></p>
<p>4. Initializing a Repo client<br />
Create an empty directory to hold your working files:<br />
<code><br />
$ mkdir mydroid<br />
$ cd mydroid<br />
</code><br />
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:<br />
<code><br />
$ repo init -u git://android.git.kernel.org/platform/manifest.git<br />
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake<br />
</code><br />
When prompted, configure Repo with your real name and email address. If you plan to submit code, use an email address that is associated with a Google account.<br />
A successful initialization will end with a message such as<br />
<code><br />
   repo initialized in /mydroid<br />
</code><br />
Your client directory should now contain a .repo directory where files such as the manifest will be kept.</p>
<p>5. Getting the files<br />
To pull down files to your working directory from the repositories as specified in the default manifest, run<br />
<code><br />
$ repo sync<br />
</code><br />
For more about repo sync and other Repo commands, see Using Repo and Git.<br />
The Android source files will be located in your working directory under their project names.</p>
<p>6.Verifying Git Tags<br />
Load the following public key into your GnuPG key database.  The key is used to sign annotated tags that represent releases.<br />
<code><br />
$ gpg --import<br />
</code><br />
then paste the key(s) below, and press Control-D to end the input and process the keys.  After importing the keys, you can verify any tag with<br />
<code><br />
   $ git tag -v tagname<br />
</code><br />
<code><br />
key 9AB10E78: "The Android Open Source Project "</p>
<p>-----BEGIN PGP PUBLIC KEY BLOCK-----<br />
Version: GnuPG v1.4.2.2 (GNU/Linux)</p>
<p>mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSV<br />
lFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw7<br />
8tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMD<br />
u4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoVks0Z<br />
wNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDyaTrkANjdYY7p2cq<br />
/HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJnuyvoizl9/I1S5<br />
jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4<br />
MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o0dpIvDPBEa9<br />
b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGhlIEFuZHJv<br />
aWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cmlidXRpb25AYW5k<br />
cm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIX<br />
gAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tgCdFfQYiHpYngkI<br />
2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAl<br />
QN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806Up<br />
hisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbk<br />
C2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMX<br />
LWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+<br />
OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/M<br />
pK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7s<br />
KZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phb<br />
N8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjA<br />
vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwo<br />
G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQ<br />
hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0l<br />
EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=<br />
=Wi5D<br />
-----END PGP PUBLIC KEY BLOCK-----<br />
</code></p>
<p>7. Building the code<br />
The Android code contains a bug that hasn&#8217;t been solved up to the date of this article.<br />
So before you start compiling the code, you&#8217;ll need a few modifications, or the build will fail (after consuming some of your time and patience). The error is:<br />
<code><br />
external/qemu/sockets.c: In function 'sock_address_init_resolve':<br />
external/qemu/sockets.c:637: error: 'EAI_NODATA' undeclared (first use<br />
in this function)<br />
external/qemu/sockets.c:637: error: (Each undeclared identifier is<br />
reported only once<br />
external/qemu/sockets.c:637: error: for each function it appears in.)<br />
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/<br />
sockets.o] Error 1<br />
</code><br />
To fix this, before compiling the android code, open ~/mydroid/external/qemu/sockets.c and add<br />
<code><br />
#define __USE_GNU<br />
</code><br />
just before the <code>#include &#60;netdb.h&#62;</code></p>
<p>Now you can build the files. Run make from within your working directory:<br />
<code><br />
$ cd ~/mydroid<br />
$ make<br />
</code><br />
On my virtual machine running ubuntu, the build process took several hours. The host PC is a 2.6GHz P4.</p>
<p><font size="+2"><b>Compile test.c with gcc for the Android platform</b></font><br />
Android uses a simplified version of libc, called bionic. We need to compile using Android&#8217;s prebuilt cross-compiler arm-eabi-gcc, and use the bionic library on the phone.<br />
The easy way to do this is to use the agcc perl wrapper. You can download the original file <a href="http://plausible.org/andy/agcc">here</a>, and modify<br />
<code><br />
my $TOOLCHAIN = "$DROID/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1";<br />
</code><br />
to<br />
<code><br />
my $TOOLCHAIN = "$DROID/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1";<br />
</code><br />
Or download this <a href='http://www.pocketmagic.net/wp-content/uploads/2009/05/agcc'>updated version</a> directly.</p>
<p>Copy agcc to your home directory, and chmod it:<br />
<code><br />
chmod +x agcc<br />
</code><br />
then set the PATH to the bionic libs and the agcc location:<br />
<code><br />
$ PATH=$PATH:~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin:~/:~/mydroid/<br />
</code></p>
<p>Now you can compile the test.c file:<br />
<code><br />
agcc test.c -o test<br />
</code></p>
<p>Take the resulting <b>test</b> binary and upload it to your android using:<br />
<code><br />
adb push test /data/local/test<br />
</code><br />
Then run it:<br />
<code><br />
adb shell<br />
chmod 775 test<br />
./test<br />
</code><br />
See the pics for more details:</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/screenshot-1.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/screenshot-1-150x150.jpg" alt="" title="screenshot-1" width="150" height="150" class="alignnone size-thumbnail wp-image-693" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/native.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/native-150x150.jpg" alt="" title="native" width="150" height="150" class="alignnone size-thumbnail wp-image-694" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device12.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device12-150x150.jpg" alt="" title="device12" width="150" height="150" class="alignnone size-thumbnail wp-image-695" /></a></td>
</tr>
</table>
<p>Next thing to do is to try to control the bluetooth functionality using native C code and the android toolchain.</p>
<p>More on native C apps for Android <a href="http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html">here</a>.</p>
<p>Best regards,<br />
Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/682/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=682&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/12/android-c-native-development-take-full-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device13-150x150.jpg" medium="image">
			<media:title type="html">device13</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/screenshot-1-150x150.jpg" medium="image">
			<media:title type="html">screenshot-1</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/native-150x150.jpg" medium="image">
			<media:title type="html">native</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device12-150x150.jpg" medium="image">
			<media:title type="html">device12</media:title>
		</media:content>
	</item>
		<item>
		<title>Developing for Google Android &#8211; the SDK</title>
		<link>http://pocketmagic.wordpress.com/2009/05/12/developing-for-google-android-the-sdk/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/12/developing-for-google-android-the-sdk/#comments</comments>
		<pubDate>Tue, 12 May 2009 11:23:34 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=665</guid>
		<description><![CDATA[Get started with Android Java development - a tutorial with detailed steps and lots of pictures to help you make your first android application.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=665&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following the recent posts on the Google Android platform, I thought it is time to go a little deeper in the programming world of this mobile device.</p>
<p>So the questions is:<br />
- What do we need to start coding for Google Android?</p>
<p>Lucky for us, there are lots of tools available online, and the Android team has provided a comprehensive guide on this. You can read it <a href="http://developer.android.com/sdk/1.5_r1/installing.html">here</a>.</p>
<p>In just a few words:<br />
1. you will be needing Eclipse, get it <a href="http://www.eclipse.org/downloads/">here</a>. I&#8217;m currently using (actually I&#8217;m currently having installed, since I&#8217;ve moved to native C/C++ Android development), Eclipse IDE for Java EE Developers (163 MB) , jee-ganymede-SR2. Download it and install it.<br />
2. the Google Android SDK, get it <a href="http://developer.android.com/sdk/1.5_r1/index.html">here </a>. Current version at this time is 1.5.r1. To install the SDK you simply need to unzip it to a location on your PC. You will have a folder named android-sdk-windows-1.5_r1, and inside several subfolders (add-ons, docs, platforms, tools, usb_driver). Keep this structure intact.<br />
3. Open Eclipse (start eclipse.exe from the installation folder), and go to menu, Help-&gt;Software Updates-&gt;Available Software-&gt;Add Site. Type in this address: <b>http://dl-ssl.google.com/android/eclipse/</b>, and press OK. Click the newly added check boxes and press Install. On the following Install window, &#8220;Android DDMS&#8221; and &#8220;Android Development Tools&#8221; must both be checked. Click Next/Accept/Finish and restart Eclipse when prompt to do so.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-1.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-1-150x150.jpg" alt="" title="sdk-1" width="150" height="150" class="alignnone size-thumbnail wp-image-666" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-2.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-2-150x150.jpg" alt="" title="sdk-2" width="150" height="150" class="alignnone size-thumbnail wp-image-668" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-3.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-3-150x150.jpg" alt="" title="sdk-3" width="150" height="150" class="alignnone size-thumbnail wp-image-669" /></a></td>
</tr>
</table>
<p>4. Add the SDK to Eclipse. Again in Eclipse menu, Click Window-&gt;Preferences-&gt;Android and browse to the location of the SDK folder you&#8217;ve unzipped earlier. Then click apply / ok.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-4.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-4-150x150.jpg" alt="" title="sdk-4" width="150" height="150" class="alignnone size-thumbnail wp-image-671" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-5.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-5-150x150.jpg" alt="" title="sdk-5" width="150" height="150" class="alignnone size-thumbnail wp-image-672" /></a></td>
</tr>
</table>
<p><b>First Android application</b><br />
A good idea for a start is to try to compile one of the SDK samples. Android SDK comes with several samples developed in JAVA.  Let&#8217;s see how we can get one running.<br />
1. Open Eclipse, go to menu File -&gt; New -&gt;Project , select Android Project and click next. Now give it a name, eg. TestHello, and select &#8220;Create project from existing source&#8221;, and browse to %SDK_PATH%/platforms/android-1.5/samples select HelloActivity folder and click OK. You should get the source code imported.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-8.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-8-150x150.jpg" alt="" title="sdk-8" width="150" height="150" class="alignnone size-thumbnail wp-image-675" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-9.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-9-150x150.jpg" alt="" title="sdk-9" width="150" height="150" class="alignnone size-thumbnail wp-image-676" /></a></td>
</tr>
</table>
<p>2. Go to Menu Project -&gt; uncheck Build automatically. Now you can right click your project name in the project explorer and select Build Project.<br />
3. Go to \android-sdk-windows-1.5_r1\platforms\android-1.5\samples\HelloActivity\bin\ and locate TestHello.apk . This is the installer for your newly compiled app.<br />
4. Using adb, from SDK tools, install the application:<br />
<b>adb install TestHello.apk</b><br />
Next you can locate it in Android programs , and execute it with a simple tap.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-10.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-10-150x150.jpg" alt="" title="sdk-10" width="150" height="150" class="alignnone size-thumbnail wp-image-678" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device10.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device10-150x150.jpg" alt="" title="device10" width="150" height="150" class="alignnone size-thumbnail wp-image-679" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device11.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device11-150x150.jpg" alt="" title="device11" width="150" height="150" class="alignnone size-thumbnail wp-image-680" /></a></td>
</tr>
</table>
<p>Next you can modify the code, and learn new things. Hope you find this start-up useful.</p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/665/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=665&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/12/developing-for-google-android-the-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-1-150x150.jpg" medium="image">
			<media:title type="html">sdk-1</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-2-150x150.jpg" medium="image">
			<media:title type="html">sdk-2</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-3-150x150.jpg" medium="image">
			<media:title type="html">sdk-3</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-4-150x150.jpg" medium="image">
			<media:title type="html">sdk-4</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-5-150x150.jpg" medium="image">
			<media:title type="html">sdk-5</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-8-150x150.jpg" medium="image">
			<media:title type="html">sdk-8</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-9-150x150.jpg" medium="image">
			<media:title type="html">sdk-9</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/sdk-10-150x150.jpg" medium="image">
			<media:title type="html">sdk-10</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device10-150x150.jpg" medium="image">
			<media:title type="html">device10</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device11-150x150.jpg" medium="image">
			<media:title type="html">device11</media:title>
		</media:content>
	</item>
		<item>
		<title>Ultraviolet Light</title>
		<link>http://pocketmagic.wordpress.com/2009/05/09/ultraviolet-light/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/09/ultraviolet-light/#comments</comments>
		<pubDate>Sat, 09 May 2009 18:51:27 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[High Voltage]]></category>
		<category><![CDATA[Optics]]></category>
		<category><![CDATA[fluorescence]]></category>
		<category><![CDATA[neodymium]]></category>
		<category><![CDATA[plasma]]></category>
		<category><![CDATA[ultraviolet]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=632</guid>
		<description><![CDATA[Powering UV light tubes. A short comparison between UVA and UVC.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=632&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1772.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1772-300x225.jpg" alt="" title="img_1772" width="300" height="225" class="alignnone size-medium wp-image-640" /></a></td>
<td valign="top">
<p>&#8220;Ultraviolet (UV) light is electromagnetic radiation with a wavelength shorter than that of visible light, but longer than x-rays, in the range 10 nm to 400 nm, and energies from 3 eV to 124 eV. It is so named because the spectrum consists of electromagnetic waves with frequencies higher than those that humans identify as the color violet.&#8221; <a href="http://en.wikipedia.org/wiki/Ultraviolet">Source.</a></td>
</tr>
</tbody>
</table>
<p>There are several ways of subdividing the UV electromagnetic spectrum. Most common is:</p>
<table border="1" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<td><strong>Name</strong></td>
<td><strong>Short</strong></td>
<td><strong>Wavelength</strong></td>
<td><strong>Photon energy</strong></td>
</tr>
<tr>
<td>Ultraviolet A, long wave, or black light</td>
<td>UVA</td>
<td>400 nm–320 nm</td>
<td>3.10–3.94 eV</td>
</tr>
<tr>
<td>Ultraviolet B or medium wave</td>
<td>UVB</td>
<td>320 nm–280 nm</td>
<td>3.94–4.43 eV</td>
</tr>
<tr>
<td>Ultraviolet C, short wave, or germicidal</td>
<td>UVC</td>
<td>280 nm–100 nm</td>
<td>4.43–12.4 eV</td>
</tr>
</tbody>
</table>
<p>There are several ways of producing UV light, that include natural sources (Eg. the Sun) or artificial sources (UV bulbs, UV tubes, N2 Lasers, etc).</p>
<p>I have tested two UV Light tubes: a black light UV tube, and a germicidal UV tube. There two correspond to UVA and UVC spectrum.</p>
<p><b>UVA</b><br />
The wavelength is in the range of 400 nm and 320 nm. I have a 6W &#8220;blacklight tube&#8221;. Looking at powered tube you barely see anything, but putting a piece of white paper shows powerful fluorescence. The second picture below shows this phenomenon:</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4425.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4425-150x150.jpg" alt="" title="img_4425" width="150" height="150" class="alignnone size-thumbnail wp-image-645" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4428.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4428-150x150.jpg" alt="" title="img_4428" width="150" height="150" class="alignnone size-thumbnail wp-image-646" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4429.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4429-150x150.jpg" alt="" title="img_4429" width="150" height="150" class="alignnone size-thumbnail wp-image-647" /></a></td>
</tr>
</table>
<p>The reason for this is that my UVA tube emits long wave UV radiation and very little visible light.<br />
In the third picture, the glass ball is an uranium doped glass. It shows greenish fluorescence when exposed to UV. See an article on this topic, <a href="http://www.pocketmagic.net/?p=292">here</a>.</p>
<p>This type of tube looks black when non energized, as the deep-bluish-purple glass called Wood&#8217;s glass, is a nickel-oxide–doped glass, which blocks almost all visible light above 400 nanometers.<br />
Unlike the other UV subdivisions with shorter wavelength, the UVA emits lower energy radiation, that doesn&#8217;t cause sunburns or skin cancer. Instead, UVA is capable of causing damage to collagen fibers and destroying vitamin A in skin.</p>
<p><b>UVC</b><br />
I got these tubes at a fair price on Ebay. They were manufactured to be used in germicidal applications. Most of the light they produce is in the 	280 nm–100 nm spectrum. The sun is a natural source for UVC radiation. Some of the UVB and UVC radiation is responsible for the generation of the ozone layer. After running my UVC tubes for a while, ozone smell could be detected in the air surrounding the tube.<br />
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/1UzyO-n_-HE?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span><br />
In this video you can see that if the magnetic field moves, the plasma moves in such a way that magnetic field lines cannot slide across the plasma.</p>
<p>UVC rays are the highest energy, most dangerous type of ultraviolet light. Unshielded exposure of the skin or eyes to UVC light sources is quite dangerous. It can produce DNA damage that leads to skin cancer, since it penetrates the skin, so protection is required.</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1766.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1766-150x150.jpg" alt="" title="img_1766" width="150" height="150" class="alignnone size-thumbnail wp-image-651" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_17721.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_17721-150x150.jpg" alt="" title="img_17721" width="150" height="150" class="alignnone size-thumbnail wp-image-652" /></a></td>
<td><a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1778.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1778-150x150.jpg" alt="" title="img_1778" width="150" height="150" class="alignnone size-thumbnail wp-image-653" /></a></td>
</tr>
</table>
<p><b>Power source</b><br />
<b>Solution 1:</b><br />
To power these tubes you need a high voltage source. A simple solution is to use an inverter. You can also build one, using a power transistor (2n3055) and a flyback transformer ferrite core:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/inverter.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/inverter.jpg" alt="" title="inverter" class="alignnone size-medium wp-image-655" /></a><br />
The resistors need to be at least 5W, and the transistor can be a 2n3055.<br />
The primary consists of 30 turns, for the feedback you&#8217;ll need 15turns and 250 turns of secondary, all concentric. You  might need to be able to swap feedback (or primary) connections in case of wrong phase polarity.</p>
<p><b>Solution 2:</b><br />
Another way of building the power source is without a feedback coil, but instead a 555 timer to trigger the power transistor. Here are the schematics:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/555-flyback-driver.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/555-flyback-driver-300x115.jpg" alt="" title="555-flyback-driver" width="300" height="115" class="alignnone size-medium wp-image-658" /></a><br />
Instead of the MPSA42 / MPSA92, you can use any other generic PNP/NPN pair of 0.5A minimum current.<br />
The Mosftet (IRF540) will be needing a heatsink. You can use a different power mosfter or a power BJT transistor instead (eg. 2n2055).<br />
The secondary can be winded manually or you can use a flyback secondary.<br />
The advantage of this circuit is that you can adjust the frequency using the pot.</p>
<p>The next few days, I&#8217;ll be publishing an article on various high voltage sources, so we&#8217;ll see more on these later.</p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/632/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=632&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/09/ultraviolet-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1772-300x225.jpg" medium="image">
			<media:title type="html">img_1772</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4425-150x150.jpg" medium="image">
			<media:title type="html">img_4425</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4428-150x150.jpg" medium="image">
			<media:title type="html">img_4428</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_4429-150x150.jpg" medium="image">
			<media:title type="html">img_4429</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1766-150x150.jpg" medium="image">
			<media:title type="html">img_1766</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_17721-150x150.jpg" medium="image">
			<media:title type="html">img_17721</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1778-150x150.jpg" medium="image">
			<media:title type="html">img_1778</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/inverter.jpg" medium="image">
			<media:title type="html">inverter</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/555-flyback-driver-300x115.jpg" medium="image">
			<media:title type="html">555-flyback-driver</media:title>
		</media:content>
	</item>
		<item>
		<title>Developing for Google Android &#8211; update the OS version</title>
		<link>http://pocketmagic.wordpress.com/2009/05/06/developing-for-google-android-update-the-os-version/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/06/developing-for-google-android-update-the-os-version/#comments</comments>
		<pubDate>Wed, 06 May 2009 17:43:45 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[rom upgrade]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=612</guid>
		<description><![CDATA[A tutorial on how to unlock your Android G1, how to upgrade the ROM version and how to get Root on your embedded linux box.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=612&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are already some very good articles and tips and tricks on how to do this, but for the purpose of having my own information structured and available online, I will describe what you need to do to update the OS version of your Android.</p>
<p><b>In no event will I be liable to you for any damages arising from the use of this info, so its only your responsibility if you decide to do the upgrade. You might loose the warranty or even make your Android unusable.</b></p>
<p>On the other hand, being able to update the OS, brings several advantages, especially for developers. You can root your device, meaning that you can get a way of using your Android linux box as root, very useful, since it provides complete access to the device.</p>
<p>Also, if you hard-reset the device and don&#8217;t have a T-Mobile SIM with data plan, you&#8217;ll need to use this article to unlock your Android G1.</p>
<p><b>STEP 1:</b> Flash your Android with OS version RC29. This is an older release, but we need it to take advantage of an exploit that will give us root.<br />
Download the <a href="http://android-dls.com/files/upload/DREAIMG.nbh">rom image (~90MB)</a>.<br />
Copy DREAIMG.nbh to the root of a micro SD card. The file should appear like this:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/step1.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/step1-150x150.jpg" alt="" title="step1" width="150" height="150" class="alignnone size-thumbnail wp-image-614" /></a></p>
<p><b>STEP 2:</b> Insert the MicroSD in the android, and turn off the phone (you can unplug the battery and then replug it). Hold the Camera button, and press Power button to entry the bootloader. You should get a white screen with instructions to flash your phone with the update on your SD card.<br />
Follow those instructions and press the Power button. The update will start and it looks like this:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/step2.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/step2-211x300.jpg" alt="" title="step2" width="211" height="300" class="alignnone size-medium wp-image-615" /></a><br />
<b>Be careful not to interrupt this update!</b><br />
When the update is complete, restart the phone.</p>
<p><b>STEP 3:</b> You should now be running the RC29 OS version, and if you don&#8217;t have a SIM card in your Android, you should get this screen:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/devicer29.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/devicer29-300x200.jpg" alt="" title="devicer29" width="300" height="200" class="alignnone size-medium wp-image-616" /></a><br />
RC29 (and RC7 as well) have an interesting vulnerability that we&#8217;ll use for our purposes: all the characters you type get executed in a background shell as ROOT!<br />
For instance type [enter]restart[enter] w/o the square brackets . The device will reboot.<br />
To take advantage of this and unlock your device type:<br />
[enter]telnetd[enter] (again, no square brackets, [enter] refers to the enter key on the Android keyboard). This will start the telnet daemon process (you won&#8217;t see it as it is running in the background).</p>
<p><b>STEP 4:</b> Connect your Android to the PC and use <b>adb shell</b> to open a remote shell command prompt. <a href="http://www.pocketmagic.net/?p=593">Here&#8217;s an article</a> showing how to do that.<br />
If you get an error (device not found), you&#8217;ll need to start the ADB server on your android. Do do that we&#8217;ll use the same background shell exploit &#8211; simply use the keyboard and type:<br />
[enter]setprop persist.service.adb.enable 1[enter]<br />
Retry connecting with adb.</p>
<p><b>STEP 5:</b> Download <a href='http://www.pocketmagic.net/wp-content/uploads/2009/05/busybox'>busybox</a> and use adb push to copy busybox binary  to your G1:<br />
<b>adb push busybox /data/local/busybox</b><br />
In the adb shell, type <b>chmod 755 /data/local/busybox</b> to make it executable and then <b>/data/local/busybox telnet 127.0.0.1</b>.<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/root.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/root-300x36.jpg" alt="" title="root" width="300" height="36" class="alignnone size-medium wp-image-623" /></a><br />
Congrats, YOU Got root!</p>
<p><b>STEP 6:</b> Disable registration and enable WLAN connectivity. Type in the adb shell:<br />
<b>setprop app.setupwizard.disable 1</b><br />
and then:<br />
<b>am start -a android.intent.action.MAIN -n com.android.settings/.Settings</b> (works without root as well)<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/android_hai.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/android_hai-300x187.jpg" alt="" title="android_hai" width="300" height="187" class="alignnone size-medium wp-image-624" /></a></p>
<p>Now you can use your device and you can stop here. But if you want more, hit continue <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><b>Flash to  latest OS build, but keep root access:</b><br />
<b>STEP 7:</b>  Copy <a href='http://www.pocketmagic.net/wp-content/uploads/2009/05/recovery.img'>recovery.img</a> and <a href='http://www.pocketmagic.net/wp-content/uploads/2009/05/update.zip'>update.zip</a> (this is the Hard SPL) to the root of your MicroSD card.</p>
<p><b>STEP 8:</b> using adb shell as root (at the # prompt), type the following commands:<br />
<b>mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system</b><br />
<b>cd sdcard</b><br />
<b>flash_image recovery recovery.img</b><br />
<b>cat recovery.img &gt; /system/recovery.img</b></p>
<p><b>STEP 9:</b> Install update.zip form sdcard (restart device while pressing HOME, then ALT+L, and finally Alt+s)</p>
<p><b>STEP 10:</b> Upgrade the Radio. Download <a href="http://jf.odiness.com/RC33/RC33radio_update_testkeys.zip">Radio ROM zip</a> (9 MB) , rename to update.zip and put it on the SDCard and install it (restart device while pressing HOME, then ALT+L, and finally Alt+s)</p>
<p><b>STEP 11:</b> Upgrade the OS ROM to latest version. Download <a href="http://andblogs.net/downloads/JFv1.41_RC33.zip">OS ROM zip</a> (42 MB) , rename to update.zip and put it on the SDCard and install it (restart device while pressing HOME, then ALT+L, and finally Alt+s)</p>
<p>Try to carefully follow these steps. It will keep you out of trouble. Should you have any questions, use the Comments form below.</p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/612/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=612&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/06/developing-for-google-android-update-the-os-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/step1-150x150.jpg" medium="image">
			<media:title type="html">step1</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/step2-211x300.jpg" medium="image">
			<media:title type="html">step2</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/devicer29-300x200.jpg" medium="image">
			<media:title type="html">devicer29</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/root-300x36.jpg" medium="image">
			<media:title type="html">root</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/android_hai-300x187.jpg" medium="image">
			<media:title type="html">android_hai</media:title>
		</media:content>
	</item>
		<item>
		<title>Developing for Google Android &#8211; introduction</title>
		<link>http://pocketmagic.wordpress.com/2009/05/06/developing-for-the-google-android-introduction/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/06/developing-for-the-google-android-introduction/#comments</comments>
		<pubDate>Wed, 06 May 2009 09:46:28 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[G1]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=593</guid>
		<description><![CDATA[Learn:
- how to connect the Android to your Windows PC
- how to take screen captures from your Android
- how to install new software on your mobile device<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=593&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_5635a.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_5635a-300x197.jpg" alt="" title="img_5635a" width="300" height="197" class="alignnone size-medium wp-image-596" /></a>
</td>
<td>
Android, the mobile platform developed by Google, offers a robust communicator with some exciting features.<br />
Taking Windows Mobile as a reference, the Android comes with some powerful new concepts:<br />
- smooth functionality &#8211; no more wait icons, the unit is quite fast<br />
- fingerfriendly everything, especially the Mobile browser is by far better then the WM PIE. Now I can actually USE the mobile internet browser<br />
- some google specific services like google maps, IM, and Gmail, easy to use as well<br />
- slim design, including a full keyboard<br />
- long battery life
</td>
</tr>
</table>
<p>All in one, this finally is what a mobile companion should be like, meaning that it does what it&#8217;s advertised to do &#8211; thanks to the way the interface is organized, and the touchscreen, it allows easy and painless interaction with the device. Direct information interchange between the user and the device, taking advantage of the small size. No more need for a sharp stylus, and this is wow!</p>
<p><b>For this article, here are a few things I&#8217;d like to show:</b><br />
- how to connect the Android to your Windows PC<br />
- how to take screen captures from your Android<br />
- how to install new software on your mobile device</p>
<p>1) First thing after you unbox your device, you need to download a set of tools provided by google.<br />
These tools are for developers, and come as an SDK package, but anyone can install and use them.<br />
So go to <a href="http://developer.android.com/sdk/1.5_r1/index.html">this link</a> and click the latest version for the Windows SDK (at the time I wrote this, it was android-sdk-windows-1.5_r1.zip)<br />
2) Once you got the file, unzip it to a local folder on your PC. You should have a folder like android-sdk-windows-1.5_r1.<br />
3) Connect the Android to the PC using the USB cable. When notified that a new hardware has been detected, instruct Windows to look for drivers into the SDK folder: android-sdk-windows-1.5_r1/usb_driver/x86<br />
If you have a micro SD card in your Android, it will appear as a new drive on your PC. Sweet.</p>
<p>Things you can do now: install new software, remove unwanted packages, get a shell on your Android (yes, it&#8217;s an embedded linux box), or take screen captures (useful for reviews).</p>
<p>So to take a screen capture of your Android, go to the SDK folder and enter Tools. Start ddms.bat .<br />
This utility will allow you to perform various control tasks:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/ddms.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/ddms-150x150.jpg" alt="" title="ddms" width="150" height="150" class="alignnone size-thumbnail wp-image-598" /></a><br />
To take a screenshot, go to the Menu, click Device and select &#8220;Screen Capture&#8221; or directly hit Control+S. Here&#8217;s what you get:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device2.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device2-300x200.jpg" alt="" title="device2" width="300" height="200" class="alignnone size-medium wp-image-599" /></a><br />
You can save the file as a PNG image file, and you can also see that the screen has a resolution of 480&#215;320.</p>
<p>To install new software, make sure you&#8217;re in the same Tools folder of the SDK package (using Total Commander), and  type cmd and hit enter. You&#8217;ve just opened a command prompt. Make sure you know where the application installer is (the .apk file) then type:<br />
<b>adb install [APK_FILE_PATH]</b><br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/cmd.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/cmd-300x145.jpg" alt="" title="cmd" width="300" height="145" class="alignnone size-medium wp-image-601" /></a><br />
And here is the installed software running on the Android G1:</p>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device3.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device3-150x150.jpg" alt="" title="device3" width="150" height="150" class="alignnone size-thumbnail wp-image-606" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/device4.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/device4-150x150.jpg" alt="" title="device4" width="150" height="150" class="alignnone size-thumbnail wp-image-606" /></a>
</td>
</tr>
</table>
<p>In a similar way you can perform other commands:<br />
<b>adb devices</b> should list the ID of the Android connected to your PC.<br />
<b>adb push [LOCAL_FILE_PATH] [REMOTE_FILE_PATH]</b> will upload a file from the PC to the Android<br />
<b>adb pull [REMOTE_FILE_PATH] [LOCAL_FILE_PATH]</b> downloads a file from the Android to the PC<br />
<b>adb shell</b> a very neat command, actually opens a shell on your Android linux box:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/shell.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/shell-300x183.jpg" alt="" title="shell" width="300" height="183" class="alignnone size-medium wp-image-605" /></a></p>
<p>To uninstall software from the Android you can use the device&#8217;s GUI:<br />
Home-&gt;Settings-&gt;Applications-&gt;Manage Applications or directly the <b>adb uninstall</b> command.</p>
<p>Hope this helps for a start,</p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/593/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=593&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/06/developing-for-the-google-android-introduction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_5635a-300x197.jpg" medium="image">
			<media:title type="html">img_5635a</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/ddms-150x150.jpg" medium="image">
			<media:title type="html">ddms</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device2-300x200.jpg" medium="image">
			<media:title type="html">device2</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/cmd-300x145.jpg" medium="image">
			<media:title type="html">cmd</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device3-150x150.jpg" medium="image">
			<media:title type="html">device3</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/device4-150x150.jpg" medium="image">
			<media:title type="html">device4</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/shell-300x183.jpg" medium="image">
			<media:title type="html">shell</media:title>
		</media:content>
	</item>
		<item>
		<title>Homemade Flyback secondary</title>
		<link>http://pocketmagic.wordpress.com/2009/05/05/homemade-flyback-secondary/</link>
		<comments>http://pocketmagic.wordpress.com/2009/05/05/homemade-flyback-secondary/#comments</comments>
		<pubDate>Tue, 05 May 2009 15:50:54 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[High Voltage]]></category>
		<category><![CDATA[flyback]]></category>
		<category><![CDATA[homemade]]></category>
		<category><![CDATA[zvs]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=585</guid>
		<description><![CDATA[An easy way to built a high performance flyback transformer. Custom and perfect to fit your needs.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=585&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While the Flyback transformers can be salvaged from old/damaged TVs, they prove to be rare components, and finding a quality Flyback secondary is often a great challenge.</p>
<p>On the other hand, a good Flyback secondary can get easily destroyed , it the voltage level inside gets too high (the insulation is punctured internally).</p>
<p>This is why I&#8217;ve decided to build one with proper insulation from scratch, since the whole thing is merely a multi-layer coil. Using 0.2mm CuEm wire and a PVC pipe for supporting the coil, I&#8217;ve created a 2500 turns flyback. The winding was deployed on multiple layer, insulated with PVC tape.</p>
<table cellspacing="5" cellpadding="5" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1897.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1897-150x150.jpg" alt="" title="img_1897" width="150" height="150" class="alignnone size-thumbnail wp-image-587" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1903.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1903-150x150.jpg" alt="" title="img_1903" width="150" height="150" class="alignnone size-thumbnail wp-image-588" /></a>
</td>
</tr>
</table>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/QTmQgpBoHMM?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span>
<p>This video shows a test run with this flyback secondary. Bottom line, I encourage you to try making your own Flybacks, since it&#8217;s quite easy. More on the ZVS driver <a href="http://www.pocketmagic.net/?p=311">here</a>.</p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/585/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=585&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/05/05/homemade-flyback-secondary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1897-150x150.jpg" medium="image">
			<media:title type="html">img_1897</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/05/img_1903-150x150.jpg" medium="image">
			<media:title type="html">img_1903</media:title>
		</media:content>
	</item>
		<item>
		<title>Tesla Coil #3</title>
		<link>http://pocketmagic.wordpress.com/2009/04/02/tesla-coil-3/</link>
		<comments>http://pocketmagic.wordpress.com/2009/04/02/tesla-coil-3/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 10:07:59 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[High Voltage]]></category>
		<category><![CDATA[plasma]]></category>
		<category><![CDATA[tesla coil]]></category>
		<category><![CDATA[zvs]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=566</guid>
		<description><![CDATA[ZVS Powered tesla coil with a nice setup on two decks<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=566&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since most of the things I build are modular, and often get disassembled to use parts in other projects, I decided to make an exception for my ZVS Tesla Coil and leave it in a form easy to plug and play.</p>
<p>I already had the <a href="http://www.pocketmagic.net/wp-content/uploads/2009/01/img_1805.jpg">ZVS module</a>, a good flyback transformer with built in HV diode, and lots of HV cables. Time to put everything together in a final form.</p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/tesla2.jpg"><img class="size-medium wp-image-567 alignleft" title="tesla2" src="http://www.pocketmagic.net/wp-content/uploads/2009/04/tesla2-300x203.jpg" alt="" width="300" height="203" /></a>
</td>
<td>
<p>A light bulb &#8220;powered&#8221; by my Tesla coil</td>
</tr>
</table>
<p>To <a href="http://www.pocketmagic.net/?p=332">my previous design</a> I&#8217;ve added a second deck, to contain the power source (<a href="http://www.pocketmagic.net/?p=311">ZVS+flyback</a>), the capacitor bank and the spark gap.</p>
<p>The tesla transformer has a secondary of 1500 windings (Cu 0.2 mm on a PVC pipe diameter 5cm/length 30cm), and a primary with 16 windings (Cu 4mm on PVC pipe diameter 11 cm/ length 10cm):<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3767.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3767-150x150.jpg" alt="" title="img_3767" width="150" height="150" class="alignnone size-thumbnail wp-image-573" /></a><br />
The primary has several plugs, used to make the primary and the secondary resonant at the same frequency.</p>
<p>The rest of the setup:</p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3768-1.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3768-1-150x150.jpg" alt="" title="img_3768-1" width="150" height="150" class="alignnone size-thumbnail wp-image-574" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3769-2.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3769-2-150x150.jpg" alt="" title="img_3769-2" width="150" height="150" class="alignnone size-thumbnail wp-image-575" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3770-3.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3770-3-150x150.jpg" alt="" title="img_3770-3" width="150" height="150" class="alignnone size-thumbnail wp-image-576" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3771-4.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3771-4-150x150.jpg" alt="" title="img_3771-4" width="150" height="150" class="alignnone size-thumbnail wp-image-577" /></a>
</td>
</tr>
</table>
<p><b>Photo 1:</b>The small PVC pipe contains the capacitor bank (9x10nF/6KV, connected for 10nF/18KV), and a small filter.<br />
I&#8217;ve used a ceramic bulb socket to contain a static spark gap and limit the noise. It also has a lid, not shown in the photo<br />
To the right you can see the ZVS module.<br />
<b>Photo 2:</b> the ZVS Heatsink, and the power-in/ground connector. It might be a bad idea to have the ground so close to the low voltage connector. I&#8217;ll need to check that.<br />
<b>Photo 3:</b> the flyback transformer, and the rewound primary (blue wire 4+4 windings). When powered by the ZVS driver at 30V the sparks start at 1.5cm and can be stretched to almost 4cm. Quite powerful.<br />
<b>Photo 4:</b> front view, the flyback , a small filter connected on the &#8216;cold&#8217; wire (black) and the capacitor bank again.</p>
<p>The complete schematics:</p>
<p><a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/schematics.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/schematics-150x150.jpg" alt="" title="schematics" width="150" height="150" class="alignnone size-thumbnail wp-image-580" /></a></p>
<p>This setup needs further improvements, so I&#8217;ll update this post soon.</p>
<p><a href="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3783-2.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3783-2-300x127.jpg" alt="" title="img_3783-2" width="300" height="127" class="alignnone size-medium wp-image-582" /></a></p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/566/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=566&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/04/02/tesla-coil-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/tesla2-300x203.jpg" medium="image">
			<media:title type="html">tesla2</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3767-150x150.jpg" medium="image">
			<media:title type="html">img_3767</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3768-1-150x150.jpg" medium="image">
			<media:title type="html">img_3768-1</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3769-2-150x150.jpg" medium="image">
			<media:title type="html">img_3769-2</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3770-3-150x150.jpg" medium="image">
			<media:title type="html">img_3770-3</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3771-4-150x150.jpg" medium="image">
			<media:title type="html">img_3771-4</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/schematics-150x150.jpg" medium="image">
			<media:title type="html">schematics</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/04/img_3783-2-300x127.jpg" medium="image">
			<media:title type="html">img_3783-2</media:title>
		</media:content>
	</item>
		<item>
		<title>Robo Evolution &#8211; how to build a better robot</title>
		<link>http://pocketmagic.wordpress.com/2009/03/22/robo-evolution-how-to-build-a-better-robot/</link>
		<comments>http://pocketmagic.wordpress.com/2009/03/22/robo-evolution-how-to-build-a-better-robot/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 13:51:20 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[atmega8]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=520</guid>
		<description><![CDATA[A not-so-short article on various robot platforms I've experimented with. See my latest designs, and learn about my findings on robotics.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=520&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This topic will try to sum up my work related to robotics, and provide as much pictures an videos as possible for those of you interested in this subject.</p>
<blockquote><p><b><font size="+2"><u>Perseus 1, 2005-06-29</u></font></b><br />
<b>General:</b>I&#8217;ve worked on this one for about 2 months, with lots of interruptions and having only little continuous work time.<br />
It was my university graduation project and major research work was on artificial vision.<br />
<b>Platform:</b> modified RC truck, with servo controlled direction on front wheels, and geared (weak) motor on back wheels for propulsion.<br />
<b>Hardware:</b> video camera, powered on 2 AA batteries, 2.6GHz video transceiver powered on 8xAA batteries, original car 35MHz RC control board connected to car&#8217;s motors running on 4xAA batteries, remote PC running custom image processing software, that I&#8217;ve created at that time.<br />
<b>Block Schematics:</b></p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/modul_fix.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/modul_fix-150x150.jpg" alt="" title="modul_fix" width="150" height="150" class="alignnone size-thumbnail wp-image-522" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/modul_mobil.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/modul_mobil-150x150.jpg" alt="" title="modul_mobil" width="150" height="150" class="alignnone size-thumbnail wp-image-523" /></a>
</td>
</tr>
</table>
<p><b>Functionality</b>:<br />
The performance was very good, the robot being capable of recognizing and following a laser spot projected in front of it (in the camera&#8217;s view port).<br />
Here are a few pictures of the robot vision itself:</p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-1.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-1-150x150.jpg" alt="" title="vision-1" width="150" height="150" class="alignnone size-thumbnail wp-image-525" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-2.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-2-150x150.jpg" alt="" title="vision-2" width="150" height="150" class="alignnone size-thumbnail wp-image-526" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-3.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-3-150x150.jpg" alt="" title="vision-3" width="150" height="150" class="alignnone size-thumbnail wp-image-527" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-4.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-4-150x150.jpg" alt="" title="vision-4" width="150" height="150" class="alignnone size-thumbnail wp-image-528" /></a>
</td>
</tr>
</table>
<p><b>Pictures</b></p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/image_00001.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/image_00001-150x150.jpg" alt="" title="image_00001" width="150" height="150" class="alignnone size-thumbnail wp-image-535" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/image_00002.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/image_00002-150x150.jpg" alt="" title="image_00002" width="150" height="150" class="alignnone size-thumbnail wp-image-536" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_1762.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_1762-150x150.jpg" alt="" title="img_1762" width="150" height="150" class="alignnone size-thumbnail wp-image-537" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_1772.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_1772-150x150.jpg" alt="" title="img_1772" width="150" height="150" class="alignnone size-thumbnail wp-image-538" /></a>
</td>
</tr>
</table>
<p><b>Resources:</b><br />
Front cover of my license work: <a href='http://www.pocketmagic.net/wp-content/uploads/2009/03/coperta.pdf'>cover.pdf</a><br />
Snapshot of desktop application:<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/gui.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/gui-150x150.jpg" alt="" title="gui" width="150" height="150" class="alignnone size-thumbnail wp-image-543" /></a>
</p></blockquote>
<blockquote><p><b><font size="+2"><u>Perseus 2, 2007-12-04</u></font></b><br />
<b>General:</b> in an attempt of continuing the perseus 1 project, the first improvement I&#8217;ve tried was to eliminate the need for a remote computer<br />
<b>Platform:</b><br />
modified RC truck, with servo controlled direction on front wheels, and geared (weak) motor on back wheels for propulsion.<br />
<b>Hardware:</b><br />
Mini ITX D201GLY2 motherboard with 1.3GHz Celeron CPU, 512MB RAM, IDE2CF and CF2SDCard adaptors for a 2GB SDCard based DOC (disk on chip), M2-ATX DC-DC PC power supply 160W, 4&#215;8 AA rechargeable batteries connected for 10.4V @ 10.4Ah .<br />
<b>Block Schematics:</b><br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/hardware.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/hardware-150x150.jpg" alt="" title="hardware" width="150" height="150" class="alignnone size-thumbnail wp-image-547" /></a><br />
<b>Functionality</b>:<br />
This design was a failure. The heavy batteries overloaded the motors, and the original H Bridge circuit transistors vaporized. The platform is too weak for the robot&#8217;s mass.<br />
Additional problems: motherboard resets when motors are triggered since there is only one common power source. Some high capacitors or separate power sources would have solved this.<br />
project was abandoned &#8211; seeking for a better platform.<br />
<b>Pictures</b></p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2321.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2321-150x150.jpg" alt="" title="img_2321" width="150" height="150" class="alignnone size-thumbnail wp-image-548" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2322.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2322-150x150.jpg" alt="" title="img_2322" width="150" height="150" class="alignnone size-thumbnail wp-image-549" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2325.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2325-150x150.jpg" alt="" title="img_2325" width="150" height="150" class="alignnone size-thumbnail wp-image-550" /></a>
</td>
</tr>
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2358.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2358-150x150.jpg" alt="" title="img_2358" width="150" height="150" class="alignnone size-thumbnail wp-image-551" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2378.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2378-150x150.jpg" alt="" title="img_2378" width="150" height="150" class="alignnone size-thumbnail wp-image-552" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2396.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2396-150x150.jpg" alt="" title="img_2396" width="150" height="150" class="alignnone size-thumbnail wp-image-553" /></a>
</td>
</tr>
</table>
</blockquote>
<blockquote><p><b><font size="+2"><u>TwinMotion 1, 2009-03-01</u></font></b><br />
<b>General:</b> Since I needed a stronger platform, but didn&#8217;t want to spend 300-400$ on commercial offers, I&#8217;ve built my own, strong, customizable robot platform FROM SCRATCH!<br />
<b>Platform:</b> Big 28 cm diameter light wooden wheels, two geared (30rpm) strong motors , some metal pieces and screws. To fix the wheels on the motor-heads, I&#8217;ve created a custom bearing, out of some tick small diameter metal pipe.</p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3086.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3086-150x150.jpg" alt="" title="img_3086" width="150" height="150" class="alignnone size-thumbnail wp-image-560" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3100.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3100-150x150.jpg" alt="" title="img_3100" width="150" height="150" class="alignnone size-thumbnail wp-image-561" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3105.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3105-150x150.jpg" alt="" title="img_3105" width="150" height="150" class="alignnone size-thumbnail wp-image-562" /></a>
</td>
</tr>
</table>
<p><b>Hardware:</b> Robot &#8220;brain&#8221; under development, currently I&#8217;ve used it with my AtMega8 H-Bridged board, available <a href="http://www.pocketmagic.net/?p=508">here</a>.<br />
<b>Block Schematics:</b> Not yet available.<br />
<b>Functionality</b>: Not yet available.<br />
<b>Pictures and videos</b></p>
<table cellspacing="10" cellpadding="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2501.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2501-150x150.jpg" alt="" title="img_2501" width="150" height="150" class="alignnone size-thumbnail wp-image-556" /></a><br />
<br />
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3064.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3064-150x150.jpg" alt="" title="img_3064" width="150" height="150" class="alignnone size-thumbnail wp-image-557" /></a>
</td>
<td>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/RMHHlKurDJQ?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span><br />
This video shows the platform in action, controlled by a simple ATMega8 microcontroller brain, that was only giving simple movement commands : forward x cm, turn left, move backwards x cm, turn left/right, etc.
</td>
</tr>
</table>
</blockquote>
<blockquote><p><b><font size="+2"><u>TwinMotion update #1, 2009-03-22</u></font></b><br />
<b>General:</b> Wheels needed better adjustment on motor axis, and I&#8217;ve decided to add a third wheel for stability, since running on two wheel can make the fixed-body turn upside down &#8211; and would create problems when using various environment sensors.<br />
<b>Platform:</b><br />
A third wheel has been added.<br />
<b>Hardware:</b> Currently the experimental setup is running on the <a href="http://www.pocketmagic.net/?p=508">same Atmega8 board</a>.<br />
<b>Pictures and videos</b><br />
Here&#8217;s a demo showing this platform, you can easily see how powerful it is, considering the complete setup is ~2 Kg weight.<br />
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/iYI8VTO4vdQ?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span>
</p></blockquote>
<p>To be continued&#8230;<br />
Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/520/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=520&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/03/22/robo-evolution-how-to-build-a-better-robot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/modul_fix-150x150.jpg" medium="image">
			<media:title type="html">modul_fix</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/modul_mobil-150x150.jpg" medium="image">
			<media:title type="html">modul_mobil</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-1-150x150.jpg" medium="image">
			<media:title type="html">vision-1</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-2-150x150.jpg" medium="image">
			<media:title type="html">vision-2</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-3-150x150.jpg" medium="image">
			<media:title type="html">vision-3</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/vision-4-150x150.jpg" medium="image">
			<media:title type="html">vision-4</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/image_00001-150x150.jpg" medium="image">
			<media:title type="html">image_00001</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/image_00002-150x150.jpg" medium="image">
			<media:title type="html">image_00002</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_1762-150x150.jpg" medium="image">
			<media:title type="html">img_1762</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_1772-150x150.jpg" medium="image">
			<media:title type="html">img_1772</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/gui-150x150.jpg" medium="image">
			<media:title type="html">gui</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/hardware-150x150.jpg" medium="image">
			<media:title type="html">hardware</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2321-150x150.jpg" medium="image">
			<media:title type="html">img_2321</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2322-150x150.jpg" medium="image">
			<media:title type="html">img_2322</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2325-150x150.jpg" medium="image">
			<media:title type="html">img_2325</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2358-150x150.jpg" medium="image">
			<media:title type="html">img_2358</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2378-150x150.jpg" medium="image">
			<media:title type="html">img_2378</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2396-150x150.jpg" medium="image">
			<media:title type="html">img_2396</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3086-150x150.jpg" medium="image">
			<media:title type="html">img_3086</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3100-150x150.jpg" medium="image">
			<media:title type="html">img_3100</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3105-150x150.jpg" medium="image">
			<media:title type="html">img_3105</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2501-150x150.jpg" medium="image">
			<media:title type="html">img_2501</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3064-150x150.jpg" medium="image">
			<media:title type="html">img_3064</media:title>
		</media:content>
	</item>
		<item>
		<title>A simple H-Bridge design</title>
		<link>http://pocketmagic.wordpress.com/2009/03/22/a-simple-h-bridge-design/</link>
		<comments>http://pocketmagic.wordpress.com/2009/03/22/a-simple-h-bridge-design/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 11:23:17 +0000</pubDate>
		<dc:creator>radumotisan</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[atmega8]]></category>
		<category><![CDATA[H-bridge]]></category>
		<category><![CDATA[microcontrollers]]></category>

		<guid isPermaLink="false">http://www.pocketmagic.net/?p=508</guid>
		<description><![CDATA[How to build a microcontroller to control a motor in both ways.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=508&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Normally I wouldn&#8217;t a topic about such a simple device, but since there are many sites offering wrong information (for eg. <a href="http://www.blogcadre.com/blog/jason_striegel/howto_make_a_robot_car_-_part_2_h-bridge_details_2005_11_10_23_18_10">this one</a> short circuits your power source), I had to do it.</p>
<p>An H-bridge is an electronic circuit which enables a voltage to be applied across a load in either direction. If you need to learn more, read <a href="http://en.wikipedia.org/wiki/H-bridge">here</a>.</p>
<p>Now, assuming you know what a hbridge is, let&#8217;s choose a topology for our implementation. You already know we&#8217;ll be needing transistors or mosfets (if not, please read the docs above), what you might not know is that these transistors will have to handle a high enough currents, especially when the motors they control are overloaded.</p>
<p>Some time ago, I&#8217;ve build a robot on a RC-truck, the load was so high because of the heavy batteries, that when the motors got the command to move forward they overheated and died.</p>
<p>So it&#8217;s important to use heat sinks, to dissipate the heat. So, for a h-bridge we will be needing 4 transistors, working in pairs at a time. If we use 2xPNPs and 2xNPNs we can have common collectors, and so, using a single heatsink per pair. For the topology this is the only requirement I will impose, and here is one possibility:</p>
<p><a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/hbridge-radu1.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/hbridge-radu1-300x222.jpg" alt="" title="hbridge-radu1" width="300" height="222" class="alignnone size-medium wp-image-512" /></a></p>
<p>You will need to place the left side MJE2955 and MJE3055 on the same heatsink since they have common collectors. A separate heat sink for the right size transistors must be used.</p>
<p>These components support up to 10A current, so they will work well for small to medium motors.<br />
Remember, a H-Bridge only controls 1 motor. So if you&#8217;ll need to driver the servo motor and also one main, propulsion motor you will need two separate h-bridges.</p>
<p>Here are some of the h-bridges I&#8217;ve created. On a board I usually create 2, since I mostly use 2 motored robots.</p>
<table cellspacing="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2240.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2240-150x150.jpg" alt="" title="img_2240" width="150" height="150" class="alignnone size-thumbnail wp-image-513" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2253.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2253-150x150.jpg" alt="" title="img_2253" width="150" height="150" class="alignnone size-thumbnail wp-image-514" /></a>
</td>
</tr>
</table>
<p>And here is a nice board having an ATMega8, a MAX232 for serial communication with a PC, and two h-bridges for controlling two big gear motors. Again I&#8217;ve used MJE2955/3055 pairs, but feel free to use any transistors/mosfets you have.</p>
<table cellspacing="0" border="0">
<tr>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3049.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3049-150x150.jpg" alt="" title="img_3049" width="150" height="150" class="alignnone size-thumbnail wp-image-516" /></a>
</td>
<td>
<a href="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3091.jpg"><img src="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3091-150x150.jpg" alt="" title="img_3091" width="150" height="150" class="alignnone size-thumbnail wp-image-517" /></a>
</td>
</tr>
</table>
<p>It runs well and it doesn&#8217;t heat up much. In case anyone needs further details on how this works, or other things like why we need the D1-D4 diodes, feel free to ask.<br />
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/Xg5m-Ld6mx8?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span><br />
Also the R3,R4 resistors can be adjusted to suit your needs. For me, they are used to limit even further the current given by the microcontroller on the output control pins. Not really required in my case.</p>
<p>Radu Motisan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pocketmagic.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pocketmagic.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pocketmagic.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pocketmagic.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pocketmagic.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pocketmagic.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pocketmagic.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pocketmagic.wordpress.com/508/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pocketmagic.wordpress.com&amp;blog=7731490&amp;post=508&amp;subd=pocketmagic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pocketmagic.wordpress.com/2009/03/22/a-simple-h-bridge-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/558582817ff1c3f3dd1e3632a221d9bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radumotisan</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/hbridge-radu1-300x222.jpg" medium="image">
			<media:title type="html">hbridge-radu1</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2240-150x150.jpg" medium="image">
			<media:title type="html">img_2240</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_2253-150x150.jpg" medium="image">
			<media:title type="html">img_2253</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3049-150x150.jpg" medium="image">
			<media:title type="html">img_3049</media:title>
		</media:content>

		<media:content url="http://www.pocketmagic.net/wp-content/uploads/2009/03/img_3091-150x150.jpg" medium="image">
			<media:title type="html">img_3091</media:title>
		</media:content>
	</item>
	</channel>
</rss>
