<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>umkk.eu &#187; pic16f84</title>
	<atom:link href="http://umkk.eu/category/pic16f84/feed/" rel="self" type="application/rss+xml" />
	<link>http://umkk.eu</link>
	<description>you can also go there !</description>
	<lastBuildDate>Fri, 25 Jun 2010 16:00:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Stepper motor controller</title>
		<link>http://umkk.eu/stepper-motor-controller/01/</link>
		<comments>http://umkk.eu/stepper-motor-controller/01/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:43:06 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[cnc]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=289</guid>
		<description><![CDATA[Hi, in this post i will explain the stepper motor controller, the "smart" part of the driver also called ROAR HB brain module.
There are a few things that should be noted here, this is not just a simple stepper controller it's a smart controller which can be easily updated and changed.
Some advantages of the driver [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi, in this post i will explain the stepper motor controller, the "smart" part of the driver also called ROAR HB brain module.</p>
<p>There are a few things that should be noted here, this is not just a simple stepper controller it's a smart controller which can be easily updated and changed.</p>
<p>Some advantages of the driver :</p>
<ul>
<li>more drive modes selectable by jumpers or program (normal, half step,  high torque)</li>
<li>power saving mode</li>
<li>ability to add temperature sensors, limit sensors to protect the machine</li>
</ul>
<p>The driver is built around a pic16f84 microcontroller, basically the circuit is a tension stabilizer, an oscillator for the pic microcontroller, some components to set pin B0 as interrupt and all the ports pins are connected to pins so they can be easily connected.</p>
<p><strong>WARNING</strong>: to create this you will need to program the pic microcontroller, and for that you need a programmer, you can see how to build one on this blog, here : <a href="http://umkk.eu/pic-16f84-jdm-programmer/03/" target="_self">pic 16f84 jdm programmer</a></p>
<p>Here is a picture with the final product :</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6333.jpg"><img class="size-medium wp-image-291" title="stepper driver front view" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6333-300x200.jpg" alt="stepper driver front view" width="300" height="200" /></a><p class="wp-caption-text">stepper driver front view</p></div>
<div id="attachment_292" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6337.jpg"><img class="size-medium wp-image-292" title="stepper driver back view" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6337-300x200.jpg" alt="stepper driver back view" width="300" height="200" /></a><p class="wp-caption-text">stepper driver back view</p></div>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6562.jpg"><img class="size-medium wp-image-294" title="2 controllers in an 2 axis driver" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6562-300x249.jpg" alt="2 controllers in an 2 axis driver" width="300" height="249" /></a><p class="wp-caption-text">2 controllers in an 2 axis driver</p></div>
<p>For the pcb design i used the eagle software (great software) to create first a schematic then the board and then the print files,</p>
<p>here is the schematic :</p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1301.png"><img class="size-medium wp-image-295" title="Stepper controller schematic" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1301-300x258.png" alt="Stepper controller schematic" width="300" height="258" /></a><p class="wp-caption-text">Stepper controller schematic</p></div>
<p>The huge advantage for this is that you have all the port pins connected to pins, and all of them except the pin b0 (which is made to be kept low or high) can be used for anything.</p>
<p>In this case we have pins bo - tact, pin b1 - direction, pins b2- b5 as phases selection.</p>
<p>And now here are the designs for this schematic :</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1306.png"><img class="size-medium wp-image-301" title="bottom view" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1306-300x297.png" alt="bottom view" width="300" height="297" /></a><p class="wp-caption-text">bottom view</p></div>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_13061.png"><img class="size-medium wp-image-302" title="top view" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_13061-300x297.png" alt="top view" width="300" height="297" /></a><p class="wp-caption-text">top view</p></div>
<p>And here is the file ready to be printed, this file is at the actual dimensions :</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/HB-brain-to-print-copy.jpg"><img class="size-medium wp-image-303" title="HB brain.brd" src="http://umkk.eu/wp-content/uploads/2010/01/HB-brain-to-print-copy-300x141.jpg" alt="stepper controller print" width="300" height="141" /></a><p class="wp-caption-text">stepper controller print</p></div>
<p>In the above image the top layer is already mirrored so all you have to do is print it and follow the instructions from this post : <a title="How to create PCB’s using toner transfer method" href="http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/" target="_self">How to create PCB’s using toner transfer method</a></p>
<p>All you have to do now is to program the pic, here is the compiled version : <a href="../wp-content/uploads/2010/01/vic.zip">Compiled program</a></p>
<p>The program is compiled using ccs compiler, if you are interested here is the  source code : <a href="http://umkk.eu/wp-content/uploads/2010/01/vic.c">source code</a></p>
<p>And this is is.... have fun.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/stepper-motor-controller/01/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller&amp;desc=Hi%2C%20in%20this%20post%20i%20will%20explain%20the%20stepper%20motor%20controller%2C%20the%20%22smart%22%20part%20of%20the%20driver%20also%20called%20ROAR%20HB%20brain%20module.%0D%0A%0D%0AThere%20are%20a%20few%20things%20that%20should%20be%20noted%20here%2C%20this%20is%20not%20just%20a%20simple%20stepper%20controller%20it%27s%20a%20smart%20controller%20which%20can%20be%20easily%20updated%20and%20changed.%0D%0A%0D%0ASome%20ad" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/stepper-motor-controller/01/&amp;t=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Stepper+motor+controller&amp;body=Link: http://umkk.eu/stepper-motor-controller/01/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%2C%20in%20this%20post%20i%20will%20explain%20the%20stepper%20motor%20controller%2C%20the%20%22smart%22%20part%20of%20the%20driver%20also%20called%20ROAR%20HB%20brain%20module.%0D%0A%0D%0AThere%20are%20a%20few%20things%20that%20should%20be%20noted%20here%2C%20this%20is%20not%20just%20a%20simple%20stepper%20controller%20it%27s%20a%20smart%20controller%20which%20can%20be%20easily%20updated%20and%20changed.%0D%0A%0D%0ASome%20ad" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/stepper-motor-controller/01/&amp;bm_description=Stepper+motor+controller&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/stepper-motor-controller/01/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Stepper+motor+controller+-+File: /data/app/webapp/functions.php<br />Line: 7<br />Message: Too many connections&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/stepper-motor-controller/01/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Stepper motor inteligent driver and controller</title>
		<link>http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/</link>
		<comments>http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 08:50:48 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[board]]></category>
		<category><![CDATA[Electric motors]]></category>
		<category><![CDATA[pcb]]></category>
		<category><![CDATA[pcb tutorial]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[toner transfer]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=212</guid>
		<description><![CDATA[Now, i'm sure that each one of you has some stepper motors laying around and wanted to test them at a given time but never had the time to build a driver or to buy one. I had the same problem until i decided that is the time to build that cnc machine that am [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Now, i'm sure that each one of you has some stepper motors laying around and wanted to test them at a given time but never had the time to build a driver or to buy one. I had the same problem until i decided that is the time to build that cnc machine that am dreaming about, for this i will need at least 3 stepper motors and of course  3 drivers... or one for 3 motors.<br />
I decided to build a separate driver for each axis, will be easier to change if something goes wrong and will be more flexible.</p>
<p>The driver is composed from 2 parts, 2 separates modules the power module (ROAR HB power module)  which contains the H bridges and the control module (ROAR MPP brain module) which will send signals to the power module.</p>
<p>The power module is pretty straight forward, will need 4 input pins, 4 output pins, and in pins for logic supply and power supply. As i was going to use the driver maybe in future robots also i decided to put some leds on the board 2 red led for each supply and 1 led for each input pin, so a total of 6 leds, i also added some pins for the cooling fan for the h bridge as the motor can suck a lot of power the bridge gets pretty hot.</p>
<p>Here is the full driver (the power module and the brain module, and a cooling fan)</p>
<div id="attachment_229" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6319.jpg"><img class="size-medium wp-image-229" title="full driver" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6319-300x200.jpg" alt="full driver" width="300" height="200" /></a><p class="wp-caption-text">full driver</p></div>
<p>Here is my final version of the power module a.k.a ROAR HB power module</p>
<div id="attachment_213" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/10/IMG_6227.JPG"><img class="size-medium wp-image-213" title="ROAR HB power module" src="http://umkk.eu/wp-content/uploads/2009/10/IMG_6227-300x199.jpg" alt="ROAR HB power module" width="300" height="199" /></a><p class="wp-caption-text">ROAR HB power module</p></div>
<p>The huge advantage of this module is that it can use on a multitude of circuits all inputs and outputs are connected to pins. This can also be used to control a robot with 2 motors (control speed and direction for each one).  All the plans and logic you need to build it is available on this web page, if you don't have the time, the mood or the tools to build it, you can post a comment and i'll build one for you on a very good price... 25$ let's say.</p>
<p>The construction pf the power module can be seen in detail on a diferent post. (i'm working on it right now)</p>
<p>Here is the components list for the ROAR HB power module :</p>
<ul>
<li>1 * L298N (dual full h bridge)</li>
<li>6 * 1k resistor</li>
<li>12 * 1N5819 (fast diode, you can use any fast diode that can handle 30V/1A)</li>
<li>2 * red leds</li>
<li>4 * green leds</li>
<li>19 * pins</li>
<li>2 * jumpers</li>
</ul>
<p>And finally here is the ROAR MPP brain module :</p>
<div id="attachment_237" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/10/IMG_6338.jpg"><img class="size-medium wp-image-237" title="IMG_6338" src="http://umkk.eu/wp-content/uploads/2009/10/IMG_6338-300x200.jpg" alt="the driver brain module" width="300" height="200" /></a><p class="wp-caption-text">the driver ROAR MPP brain module</p></div>
<p>This module is also very usefull in lots of application because it's fully customizable, on this board is everything the pic needs to run, the pin B0 seted to be used as an interrupt... and a power led.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller&amp;desc=Now%2C%20i%27m%20sure%20that%20each%20one%20of%20you%20has%20some%20stepper%20motors%20laying%20around%20and%20wanted%20to%20test%20them%20at%20a%20given%20time%20but%20never%20had%20the%20time%20to%20build%20a%20driver%20or%20to%20buy%20one.%20I%20had%20the%20same%20problem%20until%20i%20decided%20that%20is%20the%20time%20to%20build%20that%20cnc%20machine%20that%20am%20dreaming%20about%2C%20for%20this%20i%20will%20need%20at%20l" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;t=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Stepper+motor+inteligent+driver+and+controller&amp;body=Link: http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Now%2C%20i%27m%20sure%20that%20each%20one%20of%20you%20has%20some%20stepper%20motors%20laying%20around%20and%20wanted%20to%20test%20them%20at%20a%20given%20time%20but%20never%20had%20the%20time%20to%20build%20a%20driver%20or%20to%20buy%20one.%20I%20had%20the%20same%20problem%20until%20i%20decided%20that%20is%20the%20time%20to%20build%20that%20cnc%20machine%20that%20am%20dreaming%20about%2C%20for%20this%20i%20will%20need%20at%20l" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;bm_description=Stepper+motor+inteligent+driver+and+controller&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Stepper+motor+inteligent+driver+and+controller+-+http://b2l.me/6hn7p&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Asm programming vs C programming</title>
		<link>http://umkk.eu/asm-programming-vs-c-programming/03/</link>
		<comments>http://umkk.eu/asm-programming-vs-c-programming/03/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 12:26:51 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[16f84 micro controller]]></category>
		<category><![CDATA[asm language]]></category>
		<category><![CDATA[asm vs C]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[c language]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[micro controller]]></category>
		<category><![CDATA[microcontroller programming]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=91</guid>
		<description><![CDATA[

This is an article for people who are just starting to work with micro controllers and want to find out more what they should do.
I'm also a beginner at this moment but i'm trying to get better, and this post and other describe my steps so you can learn from my mistakes in programming and [...]


Related posts:<ol><li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/pic-16f84-jdm-programmer/03/' rel='bookmark' title='Permanent Link: pic 16f84 jdm programmer'>pic 16f84 jdm programmer</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://umkk.eu/wp-content/uploads/2009/03/counter.asm"><br />
</a></p>
<p>This is an article for people who are just starting to work with micro controllers and want to find out more what they should do.</p>
<p>I'm also a beginner at this moment but i'm trying to get better, and this post and other describe my steps so you can learn from my mistakes in programming and electronics.</p>
<p>So you want to program a micro controller, maybe a pic16f84 (that's what i use)  and you don't know what to use assembler or c, well i hope that after reading this article you will be able to make a choice.</p>
<p>Both languages have advantages and disadvantages, you will have to see what works best in your case, it's not a basic rule and those are just guide lines that will help you see what programming language works best for you.</p>
<p>Now, lets start with the assembler. This is good if you want to make really small programs, like turning leds on, counting, a pwm controll. Because you are a beginner now it's very hard for you to make complex programs, but it's good to use the assembler because you can learn stuff about the arhitecture of the microcontroller and learns stuff about how it's working. Also an other advantage it's that you can see exactly what's happening there and if you want to do some timing this perfect because you know exaclty how many clock cycles takes every operation. And in the finall a very important matter is the size of the program, the programs written directly in assembler language are much smaller than the programs written in C.</p>
<p>The C language. First off all you will have to find a compiler for your micro controller (if you use pic16f84 i suggest the hi-tech compiler, works really good). When you have the compiler you will have to see what features it has (data types, functions, etc). Developing in C for micro controllers it's really easy, in general developing in C is about 10 times faster than in assembler, so it's good if you want to make something really fast, also is good if you want to make complex programs. A big disadvantage is the size of the code, the code generated by the compiler is usually much bigger than the one written directly in assembler and if you use a micro controller with a few program memory that is a serious problem, for example pic16f84 has 4K of program memory, a clock program i wrote has 1.8K, so if you want to add some other features you can't add very many.</p>
<p>So here is a short comparison:</p>
<ul>
<li>development time is much much shorter using C</li>
<li>the size of the program is bigger if you use C</li>
<li>you can do more accurate timings using assembler</li>
<li>you can learn more by using assembler instead of C</li>
<li>you don't need a compiler if you use asm (mplab does everything)</li>
<li>it's hard to do complicated programs in asm.</li>
</ul>
<p>Now the decision is yours you can try to do the same thing using both languages, and do some tests to see which one fits you best.</p>
<p>Here are some files attached :</p>
<p><a href="http://umkk.eu/wp-content/uploads/2009/03/counter.asm">counter using assembler</a></p>
<p><a href="http://umkk.eu/wp-content/uploads/2009/03/main.c">an clock built in C for 16f84</a></p>
<p>The examples above are just for you to make an idea about how a program should look. If you take those and burn them on the 16f84 micro controller they will work, but maybe they won't do exactly what  you expect form them because i'm still testing using those programs.</p>
<p>Happy codding !!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/asm-programming-vs-c-programming/03/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming&amp;desc=%0D%0A%0D%0A%0D%0AThis%20is%20an%20article%20for%20people%20who%20are%20just%20starting%20to%20work%20with%20micro%20controllers%20and%20want%20to%20find%20out%20more%20what%20they%20should%20do.%0D%0A%0D%0AI%27m%20also%20a%20beginner%20at%20this%20moment%20but%20i%27m%20trying%20to%20get%20better%2C%20and%20this%20post%20and%20other%20describe%20my%20steps%20so%20you%20can%20learn%20from%20my%20mistakes%20in%20programming%20and%20e" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;t=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Asm+programming+vs+C+programming&amp;body=Link: http://umkk.eu/asm-programming-vs-c-programming/03/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0A%0D%0A%0D%0AThis%20is%20an%20article%20for%20people%20who%20are%20just%20starting%20to%20work%20with%20micro%20controllers%20and%20want%20to%20find%20out%20more%20what%20they%20should%20do.%0D%0A%0D%0AI%27m%20also%20a%20beginner%20at%20this%20moment%20but%20i%27m%20trying%20to%20get%20better%2C%20and%20this%20post%20and%20other%20describe%20my%20steps%20so%20you%20can%20learn%20from%20my%20mistakes%20in%20programming%20and%20e" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;bm_description=Asm+programming+vs+C+programming&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/asm-programming-vs-c-programming/03/&amp;title=Asm+programming+vs+C+programming" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/asm-programming-vs-c-programming/03/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Asm+programming+vs+C+programming+-+http://b2l.me/6kn6v&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/pic-16f84-jdm-programmer/03/' rel='bookmark' title='Permanent Link: pic 16f84 jdm programmer'>pic 16f84 jdm programmer</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/asm-programming-vs-c-programming/03/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>programming the pic16f84</title>
		<link>http://umkk.eu/programming-the-pic16f84/03/</link>
		<comments>http://umkk.eu/programming-the-pic16f84/03/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 20:56:58 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[development board]]></category>
		<category><![CDATA[electronic project]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[step by step]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=68</guid>
		<description><![CDATA[Hi, this is a simple tutorial which will explain in very easy steps (step by step) how to program the pic16f84 micro controller.
Step1 : get a programmer, i suggest to build your own programmer because it's very cheap and you can learn something about the pic in the process, and also it's fun  . [...]


Related posts:<ol><li><a href='http://umkk.eu/asm-programming-vs-c-programming/03/' rel='bookmark' title='Permanent Link: Asm programming vs C programming'>Asm programming vs C programming</a></li>
<li><a href='http://umkk.eu/pic-16f84-jdm-programmer/03/' rel='bookmark' title='Permanent Link: pic 16f84 jdm programmer'>pic 16f84 jdm programmer</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi, this is a simple tutorial which will explain in very easy steps (step by step) how to program the pic16f84 micro controller.</p>
<p><strong>Step1</strong> : get a programmer, i suggest to build your own programmer because it's very cheap and you can learn something about the pic in the process, and also it's fun <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . You can find the detailed tutorial in the previews post. That is a jdm programmer and uses the serial port of the computer.</p>
<p><strong>Step2</strong> : get a software for you programmer. If you use a jdm programmer as I do, i suggest to use the ponyprog2000 software, its great and does exactly what you what it to do <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  : it writes your program to the pic16f84 microcontroller. In the image bellow you can see the configuration panel for the jdm programmer (this works with the programmer described on the previews post).</p>
<div id="attachment_87" class="wp-caption aligncenter" style="width: 307px"><a href="http://umkk.eu/wp-content/uploads/2009/03/2009-03-16_2302.png"><img class="size-medium wp-image-87" title="2009-03-16_2302" src="http://umkk.eu/wp-content/uploads/2009/03/2009-03-16_2302.png" alt="programmer settings" width="297" height="292" /></a><p class="wp-caption-text">programmer settings</p></div>
<p>Don't forget to select the correct serial port if you have more than one. If you click Probe and there is an error, it's no problem, just load an hex file and write it to the pic, and it should work. If the program is transferred with success a success message will appear, else a fail message will appear</p>
<p><strong>Step3: </strong>Write a simple program to test the pic, I suggest you load a value on a port, or something really easy, with which you can test if the pic is working.</p>
<p>Here is a very simple test program which will load a bit pattern to portb:</p>
<p style="padding-left: 30px;"><em><br />
</em></p>
<h5 style="padding-left: 30px;"><em> processor 16f84A</em></h5>
<h5 style="padding-left: 30px;"><em> include  &lt;p16f84a.inc&gt;</em></h5>
<h5 style="padding-left: 30px;"><em>__config _CP_OFF &amp;_XT_OSC &amp;_WDT_OFF &amp;_PWRTE_ON<br />
list    p=16F84A<br />
radix    hex</em></h5>
<h5 style="padding-left: 30px;"><em>PortB    equ    0x06        ; we define the port b address<br />
org    0x000</em></h5>
<h5 style="padding-left: 30px;"><em>start </em></h5>
<h5 style="padding-left: 30px;"><em>movlw    0x00        ; we load the 0 value on the working register<br />
movwf    0x86       ; move the value from w to the address 0x86, this sets all the bits in port b to be outputs</em></h5>
<h5 style="padding-left: 30px;"><em>movlw   0x5b        ;load some values on the W<br />
movwf   PortB        ;move the values from W to portB, this is the moment when the leds are lighting<br />
</em></h5>
<h5 style="padding-left: 30px;"><em>repeat   goto    repeat    ; repeat this forever<br />
</em></h5>
<h5 style="padding-left: 30px;"><em>end</em></h5>
<p><strong>Step4: </strong>Get a pic simulator, i personally use the demo from oshonsoft (http://www.oshonsoft.com/pic.html) works really nice... if you like it you can buy it. Now if the program works as it should work, you can 'burn' it to the pic.</p>
<p><strong>Step5: </strong>Insert the pic into the programmer and burn the program to the pic. After this remove the pic from the programmer and insert it into the test circuit, power up the circuit and admire the results of your work.</p>
<p>Also usually when i insert and remove the pic from the programmer this is not connected to the serial port, i do this to avoid frying the microcontroller.</p>
<p>If you are a begginer like me, you will have to test a lot of things until you can start doing really amaizing stuff, so i sugest you build some kind of test board for your pic, i built one, bellow it's a picture with the pic16f86 development board. It contains the very basic stuff you need to have to make it work. My developnemt board is also under development, <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but i'll add a post as soon as possible. Now both pic's ports are taken separatly each pin is protected with a 470ohms resistor, it has an 4mhz quartz oscilatro and a voltage stabilisator and filter. I also added a 12 pin socket (on which i put a 4 digit clock display for now)</p>
<div id="attachment_79" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3806.jpg"><img class="size-medium wp-image-79" title="img_3806" src="http://umkk.eu/wp-content/uploads/2009/03/img_3806-300x200.jpg" alt="pic16f84 development board" width="300" height="200" /></a><p class="wp-caption-text">pic16f84 development board</p></div>
<div id="attachment_80" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3807.jpg"><img class="size-medium wp-image-80" title="img_3807" src="http://umkk.eu/wp-content/uploads/2009/03/img_3807-300x200.jpg" alt="development board " width="300" height="200" /></a><p class="wp-caption-text">development board </p></div>
<div id="attachment_81" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3809.jpg"><img class="size-medium wp-image-81" title="img_3809" src="http://umkk.eu/wp-content/uploads/2009/03/img_3809-300x200.jpg" alt="empty development board" width="300" height="200" /></a><p class="wp-caption-text">empty development board</p></div>
<p>I really hope that this very simple tutorial will help you to create your very first pic program or application. If you have any questions don't hesitate to comment on this post and leave me qustions.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/programming-the-pic16f84/03/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84&amp;desc=Hi%2C%20this%20is%20a%20simple%20tutorial%20which%20will%20explain%20in%20very%20easy%20steps%20%28step%20by%20step%29%20how%20to%20program%20the%20pic16f84%20micro%20controller.%0D%0A%0D%0AStep1%20%3A%20get%20a%20programmer%2C%20i%20suggest%20to%20build%20your%20own%20programmer%20because%20it%27s%20very%20cheap%20and%20you%20can%20learn%20something%20about%20the%20pic%20in%20the%20process%2C%20and%20also%20it%27s%20fun%20%3A%29." rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/programming-the-pic16f84/03/&amp;t=programming+the+pic16f84" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=programming+the+pic16f84&amp;body=Link: http://umkk.eu/programming-the-pic16f84/03/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%2C%20this%20is%20a%20simple%20tutorial%20which%20will%20explain%20in%20very%20easy%20steps%20%28step%20by%20step%29%20how%20to%20program%20the%20pic16f84%20micro%20controller.%0D%0A%0D%0AStep1%20%3A%20get%20a%20programmer%2C%20i%20suggest%20to%20build%20your%20own%20programmer%20because%20it%27s%20very%20cheap%20and%20you%20can%20learn%20something%20about%20the%20pic%20in%20the%20process%2C%20and%20also%20it%27s%20fun%20%3A%29." rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/programming-the-pic16f84/03/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/programming-the-pic16f84/03/&amp;bm_description=programming+the+pic16f84&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/programming-the-pic16f84/03/&amp;title=programming+the+pic16f84" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/programming-the-pic16f84/03/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=programming+the+pic16f84+-+http://b2l.me/6jsnf&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/asm-programming-vs-c-programming/03/' rel='bookmark' title='Permanent Link: Asm programming vs C programming'>Asm programming vs C programming</a></li>
<li><a href='http://umkk.eu/pic-16f84-jdm-programmer/03/' rel='bookmark' title='Permanent Link: pic 16f84 jdm programmer'>pic 16f84 jdm programmer</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/programming-the-pic16f84/03/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>pic 16f84 jdm programmer</title>
		<link>http://umkk.eu/pic-16f84-jdm-programmer/03/</link>
		<comments>http://umkk.eu/pic-16f84-jdm-programmer/03/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 22:27:47 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[finished pic programmer]]></category>
		<category><![CDATA[jdm programmer]]></category>
		<category><![CDATA[pic micro controller]]></category>
		<category><![CDATA[ponyprog2000 software]]></category>
		<category><![CDATA[programmer]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=46</guid>
		<description><![CDATA[Hi everybody, i hope that you reached this page because you ware searching something about micro controllers or more specifically something about the very much used pic16F84.
This page is about building a pic programmer step by step, this is a jdm programmer which will be connected to the serial port of the computer, requires no [...]


Related posts:<ol><li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi everybody, i hope that you reached this page because you ware searching something about micro controllers or more specifically something about the very much used pic16F84.</p>
<p>This page is about building a pic programmer step by step, this is a jdm programmer which will be connected to the serial port of the computer, requires no power supply and works on may types of pics.</p>
<p>I documented all the process very well (with pictures) and i'll also describe it in detail.</p>
<p>Everything starts by searching a good schematics and analyze it to see if everything is looking good, i suggest to use the pic data sheet to see if everything looks good, i used the schematics bellow :</p>
<p><img class="aligncenter size-medium wp-image-49" title="jdm-v22" src="http://umkk.eu/wp-content/uploads/2009/03/jdm-v22-300x159.gif" alt="" width="300" height="159" /></p>
<p>I would post the source site but i really can't remember the source, anyway the internet is full with this picture.</p>
<p>Next step is to create the PCB boards, i used the free version of eagle for this, works really nice, and creates really good boards, you just have to work a little bit with the parameters, and make sure that you don't forget any leads, or else the programmer will not work, and you wasted your time.</p>
<p>I used the PCB's bellow, you can use those one because they work <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). But remember to mirror one of them when you print it.</p>
<p><a href="http://umkk.eu/wp-content/uploads/2009/03/2009-03-13_2349.png"><img class="aligncenter size-medium wp-image-52" title="2009-03-13_2349" src="http://umkk.eu/wp-content/uploads/2009/03/2009-03-13_2349-264x300.png" alt="" width="264" height="300" /></a></p>
<p><a href="http://umkk.eu/wp-content/uploads/2009/03/2009-03-13_2350.png"><img class="aligncenter size-medium wp-image-53" title="2009-03-13_2350" src="http://umkk.eu/wp-content/uploads/2009/03/2009-03-13_2350-269x300.png" alt="" width="269" height="300" /></a></p>
<p><a href="http://umkk.eu/wp-content/uploads/2009/03/2009-03-13_23501.png"><img class="aligncenter size-medium wp-image-54" title="2009-03-13_23501" src="http://umkk.eu/wp-content/uploads/2009/03/2009-03-13_23501-268x300.png" alt="" width="268" height="300" /></a></p>
<p>I mirrored the one with the red lines... and all the components ware on that side, was a little hard to solder the socket where the pic micro controller will seat.</p>
<p>Now comes the tricky part, my plan was to print those on some plastic sheet and then transfer it to the pcb with the soldering iron, i had some thing like on the picture bellow :</p>
<p><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3787.jpg"><img class="aligncenter size-medium wp-image-55" title="img_3787" src="http://umkk.eu/wp-content/uploads/2009/03/img_3787-300x199.jpg" alt="" width="300" height="199" /></a></p>
<p>this should be a very good way to create really nice pcb's for any circuit very easy. But disaster stroke... the drawing was not transferring, i tried for about 3 hours (no picture from that time, because i was to busy to trow things) but no success, so i continued with the marker.... i was not going to give away, because there was a 16f84 waiting for me.</p>
<p>Mean while the pizza arrived <img src='http://umkk.eu/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="attachment_56" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3789.jpg"><img class="size-medium wp-image-56" title="pizza" src="http://umkk.eu/wp-content/uploads/2009/03/img_3789-300x200.jpg" alt="a good deserved pizza" width="300" height="200" /></a><p class="wp-caption-text">a good deserved pizza</p></div>
<p>After i eated the pizza which was almost the greatest moments of the day i finished drawing the pcb, on both sides :</p>
<div id="attachment_57" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3791.jpg"><img class="size-medium wp-image-57" title="pic16f84_programmer_pcb" src="http://umkk.eu/wp-content/uploads/2009/03/img_3791-300x200.jpg" alt="pic16f84 programmer pcb ready to be coroded" width="300" height="200" /></a><p class="wp-caption-text">pic16f84 programmer pcb ready to be coroded</p></div>
<p>But, before all the lines are drawn the holes must be drilled, this is very important because the board has 2 sides and the holes need to be in the right place, and if you use a hand held drilling machine your holes wont be exactly perpendicular and they will not come out exactly where you want them.</p>
<p>After this was ready was time to insert into the ... i don't know how its called in English (ferric chloride i think) to make the finished pcb. The solution was new, and i also put it on the heating unit, and moved all the time to work faster, it was ready in adout 10 -15 minutes.</p>
<div id="attachment_58" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3792.jpg"><img class="size-medium wp-image-58" title="img_3792" src="http://umkk.eu/wp-content/uploads/2009/03/img_3792-300x200.jpg" alt="corroding the programmers pcb" width="300" height="200" /></a><p class="wp-caption-text">corroding the programmers pcb</p></div>
<p>And here's the finished pcb, after i wached it with alchool to disolve the permanent marker :</p>
<div id="attachment_59" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3794.jpg"><img class="size-medium wp-image-59" title="img_3794" src="http://umkk.eu/wp-content/uploads/2009/03/img_3794-300x200.jpg" alt="the finished pcb" width="300" height="200" /></a><p class="wp-caption-text">the finished pcb</p></div>
<p>Also i just remembered that i forgot to say about the holes, the holes have to be made before you draw the pcb, because if you make them after maybe the holes will not fit on both sides. I used a hand held drilling macine with 1.3mm drill (1mm will be ideal).</p>
<p>Now i started soldering the pices, be very carefull on which side you solder the socket because if it's soldered on the wrong side.... well that's bad and the microcontroller won't fit, think twice before starting. I soldered the socket first, and checked if the pins are soldered with the measuring device (a very cheam one 1$ actually <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). Also be carefull when you solder the diodes and the transistors not to mess up with the pins.</p>
<p>Here's the pcb with all the components soldered</p>
<div id="attachment_60" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3797.jpg"><img class="size-medium wp-image-60" title="img_3797" src="http://umkk.eu/wp-content/uploads/2009/03/img_3797-300x200.jpg" alt="the programmer with all the pices" width="300" height="200" /></a><p class="wp-caption-text">the programmer with all the pices</p></div>
<p>Now i just puted a zif socket on the soldered socket and added a cable and a serial connector. This pcb also has support for in circuit serial programming (the pins on the left which are not yet added) so with this programmer you can progreamm pics directly in circuit (if you also add the support to the other circuit). As a cable I used the cable from an old mouse, because has exactly 5 wires and is very flexible and long, great for this use.</p>
<p>Here is the final version:</p>
<div id="attachment_61" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/03/img_3799.jpg"><img class="size-medium wp-image-61" title="img_3799" src="http://umkk.eu/wp-content/uploads/2009/03/img_3799-300x200.jpg" alt="finished pic programmer" width="300" height="200" /></a><p class="wp-caption-text">finished pic programmer</p></div>
<p>Now everythig i had to do is plug it in and test it. I used the ponyprog2000 software.</p>
<p>And IT WORKS !!!!!!!!! it's a great success ! i hope you will have the same success! have fun!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/pic-16f84-jdm-programmer/03/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer&amp;desc=Hi%20everybody%2C%20i%20hope%20that%20you%20reached%20this%20page%20because%20you%20ware%20searching%20something%20about%20micro%20controllers%20or%20more%20specifically%20something%20about%20the%20very%20much%20used%20pic16F84.%0D%0A%0D%0AThis%20page%20is%20about%20building%20a%20pic%20programmer%20step%20by%20step%2C%20this%20is%20a%20jdm%20programmer%20which%20will%20be%20connected%20to%20the%20serial%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;t=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=pic+16f84+jdm+programmer&amp;body=Link: http://umkk.eu/pic-16f84-jdm-programmer/03/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%20everybody%2C%20i%20hope%20that%20you%20reached%20this%20page%20because%20you%20ware%20searching%20something%20about%20micro%20controllers%20or%20more%20specifically%20something%20about%20the%20very%20much%20used%20pic16F84.%0D%0A%0D%0AThis%20page%20is%20about%20building%20a%20pic%20programmer%20step%20by%20step%2C%20this%20is%20a%20jdm%20programmer%20which%20will%20be%20connected%20to%20the%20serial%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;bm_description=pic+16f84+jdm+programmer&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/pic-16f84-jdm-programmer/03/&amp;title=pic+16f84+jdm+programmer" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/pic-16f84-jdm-programmer/03/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=pic+16f84+jdm+programmer+-+File: /data/app/webapp/functions.php<br />Line: 66<br />Message: Duplicate entry '6kqb7' for key 'code'&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/programming-the-pic16f84/03/' rel='bookmark' title='Permanent Link: programming the pic16f84'>programming the pic16f84</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/pic-16f84-jdm-programmer/03/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
